blob: f8b8dba683a80565ff90d970df2ee872af76807f [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy29eb34e2011-10-16 00:46:08 +00003# Generated by GNU Autoconf 2.68 for ImageMagick 7.0.0-0.
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'
cristy09b53e12011-10-14 12:47:22 +0000576PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000577PACKAGE_VERSION='7.0.0-0'
578PACKAGE_STRING='ImageMagick 7.0.0-0'
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
cristy4c08aed2011-07-01 19:47:50 +0000582ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000583ac_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
cristy670aa3c2011-11-03 00:54:00 +0000724SHAREARCH_PATH
cristy3ed852e2009-09-05 21:47:34 +0000725SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000726CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000727DOCUMENTATION_PATH
728FILTER_PATH
729CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000730LIBRARY_PATH
731EXECUTABLE_PATH
cristy2a11bef2011-10-28 18:33:11 +0000732INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000733PERLMAINCC
734XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000735XML_DELEGATE_FALSE
736XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000737xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000738WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000739WMF_DELEGATE_FALSE
740WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000741WEBP_LIBS
742WEBP_DELEGATE_FALSE
743WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000744TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000745TIFF_DELEGATE_FALSE
746TIFF_DELEGATE_TRUE
747CAIRO_DELEGATE_FALSE
748CAIRO_DELEGATE_TRUE
749RSVG_DELEGATE_FALSE
750RSVG_DELEGATE_TRUE
751CAIRO_SVG_LIBS
752CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000753RSVG_LIBS
754RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000755PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000756PNG_DELEGATE_FALSE
757PNG_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000758PANGOFT2_DELEGATE_FALSE
759PANGOFT2_DELEGATE_TRUE
760PANGO_DELEGATE_FALSE
761PANGO_DELEGATE_TRUE
762PANGO_LIBS
763PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000764OPENEXR_DELEGATE_FALSE
765OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000766OPENEXR_LIBS
767OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000768LZMA_DELEGATE_FALSE
769LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000770LZMA_LIBS
771LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000772LQR_DELEGATE_FALSE
773LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000774LQR_LIBS
775LQR_CFLAGS
776LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777LCMS_DELEGATE_FALSE
778LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000779JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000780JP2_DELEGATE_FALSE
781JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000782JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000783JPEG_DELEGATE_FALSE
784JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000785JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000786JBIG_DELEGATE_FALSE
787JBIG_DELEGATE_TRUE
788GVC_DELEGATE_FALSE
789GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000790GVC_LIBS
791GVC_CFLAGS
792GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000793GS_DELEGATE_FALSE
794GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000795FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000796FREETYPE_DELEGATE_FALSE
797FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000798freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000799FONTCONFIG_DELEGATE_FALSE
800FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000801FONTCONFIG_LIBS
802FONTCONFIG_CFLAGS
803FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804FPX_DELEGATE_FALSE
805FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000806FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000807FFTW_DELEGATE_FALSE
808FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000809DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000810DJVU_DELEGATE_FALSE
811DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000812DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813DPS_DELEGATE_FALSE
814DPS_DELEGATE_TRUE
815AUTOTRACE_DELEGATE_FALSE
816AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000817AUTOTRACE_LIBS
818AUTOTRACE_CFLAGS
819LIB_DL
820ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000821ZLIB_DELEGATE_FALSE
822ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000823XEXT_LIBS
824X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000825X11_DELEGATE_FALSE
826X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000827X_EXTRA_LIBS
828X_LIBS
829X_PRE_LIBS
830X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000831XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000832BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000833BZLIB_DELEGATE_FALSE
834BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000835CCMALLOCDelegate
836UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000837HasUMEM_FALSE
838HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000839THREAD_LIBS
840GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000841WITH_MAGICK_PLUS_PLUS_FALSE
842WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000843OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000844MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000845POW_LIB
846LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000847UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000848UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000849UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000850UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000851UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000852UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000853INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000854INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000855UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000856UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000857INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000858INT32_T
859UINT16_T
860INT16_T
861UINT8_T
862INT8_T
863LIBRARY_EXTRA_CPPFLAGS
864MODULE_EXTRA_CPPFLAGS
865LIBSTDCLDFLAGS
866PERL_MAKE_OPTIONS
867QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000868MAINT
869MAINTAINER_MODE_FALSE
870MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000871MAGICK_HDRI
872DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000873WITH_LTDL_FALSE
874WITH_LTDL_TRUE
875WITH_MODULES_FALSE
876WITH_MODULES_TRUE
877WITH_SHARED_LIBS_FALSE
878WITH_SHARED_LIBS_TRUE
879LTDLOPEN
880LT_CONFIG_H
881CONVENIENCE_LTDL_FALSE
882CONVENIENCE_LTDL_TRUE
883INSTALL_LTDL_FALSE
884INSTALL_LTDL_TRUE
885ARGZ_H
886sys_symbol_underscore
887LIBADD_DL
888LT_DLPREOPEN
889LIBADD_DLD_LINK
890LIBADD_SHL_LOAD
891LIBADD_DLOPEN
892LT_DLLOADERS
893INCLTDL
894LTDLINCL
895LTDLDEPS
896LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000897LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000898CXXCPP
899OTOOL64
900OTOOL
901LIPO
902NMEDIT
903DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000904MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000905RANLIB
cristyda16f162011-02-19 23:52:17 +0000906ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000907AR
908NM
909ac_ct_DUMPBIN
910DUMPBIN
911LIBTOOL
912OBJDUMP
913DLLTOOL
914AS
cristy3ed852e2009-09-05 21:47:34 +0000915LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000916CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000917CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000918OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000919PTHREAD_CFLAGS
920PTHREAD_LIBS
921PTHREAD_CC
922ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000923SHAREARCH_DIR
924INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000925WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000926USING_CL_FALSE
927USING_CL_TRUE
928CYGWIN_BUILD_FALSE
929CYGWIN_BUILD_TRUE
930WIN32_NATIVE_BUILD_FALSE
931WIN32_NATIVE_BUILD_TRUE
932WINGDI32_DELEGATE_FALSE
933WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000934GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000935PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000936LN_S
cristy3ed852e2009-09-05 21:47:34 +0000937LD
cristy73bd4a52010-10-05 11:24:23 +0000938FGREP
939SED
940am__fastdepCXX_FALSE
941am__fastdepCXX_TRUE
942CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000943ac_ct_CXX
944CXXFLAGS
945CXX
cristya0b81c32010-01-22 02:54:33 +0000946EGREP
947GREP
948CPP
cristy73bd4a52010-10-05 11:24:23 +0000949am__fastdepCC_FALSE
950am__fastdepCC_TRUE
951CCDEPMODE
952AMDEPBACKSLASH
953AMDEP_FALSE
954AMDEP_TRUE
955am__quote
956am__include
957DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000958OBJEXT
959EXEEXT
960ac_ct_CC
961CPPFLAGS
962LDFLAGS
963CFLAGS
964CC
965DIRSEP
966MAGICK_FILTER_MODULE_PATH
967MAGICK_CONFIGURE_BUILD_PATH
968MAGICK_CONFIGURE_SRC_PATH
969MAGICK_CODER_MODULE_PATH
970MAN_DIR
971INFO_DIR
972PERSISTINCLUDE_DIR
973INCLUDE_DIR
974LIB_DIR
975LOCALSTATE_DIR
976SHAREDSTATE_DIR
977SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000978DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000979DATA_DIR
980LIBEXEC_DIR
981SBIN_DIR
982BIN_DIR
983EXEC_PREFIX_DIR
984PREFIX_DIR
985CONFIG_STATUS_DEPENDENCIES
986MAGICK_LIB_VERSION_NUMBER
987MAGICK_LIB_VERSION_TEXT
988MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000989AM_BACKSLASH
990AM_DEFAULT_VERBOSITY
991am__untar
992am__tar
993AMTAR
994am__leading_dot
995SET_MAKE
996AWK
997mkdir_p
998MKDIR_P
999INSTALL_STRIP_PROGRAM
1000STRIP
1001install_sh
1002MAKEINFO
1003AUTOHEADER
1004AUTOMAKE
1005AUTOCONF
1006ACLOCAL
1007VERSION
1008PACKAGE
1009CYGPATH_W
1010am__isrc
1011INSTALL_DATA
1012INSTALL_SCRIPT
1013INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001014PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001015PACKAGE_RELEASE_DATE
1016PACKAGE_LIB_VERSION_NUMBER
1017PACKAGE_LIB_VERSION
1018PACKAGE_CHANGE_DATE
1019PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001020PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001021MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001022MAGICK_LIBRARY_VERSION_INFO
1023MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001024MAGICK_LIBRARY_AGE
1025MAGICK_LIBRARY_REVISION
1026MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001027MAGICK_TARGET_OS
1028MAGICK_TARGET_VENDOR
1029MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001030target_os
1031target_vendor
1032target_cpu
1033target
1034host_os
1035host_vendor
1036host_cpu
1037host
1038build_os
1039build_vendor
1040build_cpu
1041build
1042CONFIGURE_ARGS
1043DISTCHECK_CONFIG_FLAGS
1044target_alias
1045host_alias
1046build_alias
1047LIBS
1048ECHO_T
1049ECHO_N
1050ECHO_C
1051DEFS
1052mandir
1053localedir
1054libdir
1055psdir
1056pdfdir
1057dvidir
1058htmldir
1059infodir
1060docdir
1061oldincludedir
1062includedir
1063localstatedir
1064sharedstatedir
1065sysconfdir
1066datadir
1067datarootdir
1068libexecdir
1069sbindir
1070bindir
1071program_transform_name
1072prefix
1073exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001074PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001075PACKAGE_BUGREPORT
1076PACKAGE_STRING
1077PACKAGE_VERSION
1078PACKAGE_TARNAME
1079PACKAGE_NAME
1080PATH_SEPARATOR
1081SHELL'
1082ac_subst_files=''
1083ac_user_opts='
1084enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001085enable_silent_rules
1086enable_dependency_tracking
1087with_gnu_ld
1088with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001089enable_bounds_checking
1090enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001091with_includearch_dir
1092with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001093with_threads
1094enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001095enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001096enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001097enable_shared
1098enable_static
1099with_pic
1100enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001101with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001102enable_libtool_lock
1103with_included_ltdl
1104with_ltdl_include
1105with_ltdl_lib
1106enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001107with_modules
1108enable_delegate_build
1109enable_deprecated
1110enable_installed
1111enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001112enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001113enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001114enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001115enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001116enable_ccmalloc
1117enable_efence
1118enable_prof
1119enable_gprof
1120enable_gcov
1121with_method_prefix
1122with_quantum_depth
1123with_cache
1124with_frozenpaths
1125with_magick_plus_plus
1126with_perl
1127with_perl_options
1128with_umem
1129with_libstdc
1130with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001131with_x
cristy3ed852e2009-09-05 21:47:34 +00001132with_zlib
1133with_autotrace
1134with_dps
1135with_djvu
cristy430a7312010-01-21 20:44:04 +00001136with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001137with_fftw
1138with_fpx
1139with_fontconfig
1140with_freetype
1141with_gslib
1142with_fontpath
1143with_gs_font_dir
1144with_gvc
1145with_jbig
1146with_jpeg
1147with_jp2
1148with_lcms
cristy71203402010-06-18 13:12:03 +00001149with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001150with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001151with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001152with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001153with_pango
cristy3ed852e2009-09-05 21:47:34 +00001154with_png
1155with_rsvg
1156with_tiff
cristyb1860752011-03-14 00:27:46 +00001157with_webp
cristy3ed852e2009-09-05 21:47:34 +00001158with_windows_font_dir
1159with_wmf
1160with_xml
1161'
1162 ac_precious_vars='build_alias
1163host_alias
1164target_alias
1165CC
1166CFLAGS
1167LDFLAGS
1168LIBS
1169CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001170CPP
cristy3ed852e2009-09-05 21:47:34 +00001171CXX
1172CXXFLAGS
1173CCC
cristy73bd4a52010-10-05 11:24:23 +00001174PKG_CONFIG
1175CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001176XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001177AUTOTRACE_CFLAGS
1178AUTOTRACE_LIBS
1179FONTCONFIG_CFLAGS
1180FONTCONFIG_LIBS
1181GVC_CFLAGS
1182GVC_LIBS
1183LQR_CFLAGS
1184LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001185LZMA_CFLAGS
1186LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001187OPENEXR_CFLAGS
1188OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001189PANGO_CFLAGS
1190PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001191RSVG_CFLAGS
1192RSVG_LIBS
1193CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001194CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001195
1196
1197# Initialize some variables set by options.
1198ac_init_help=
1199ac_init_version=false
1200ac_unrecognized_opts=
1201ac_unrecognized_sep=
1202# The variables have the same names as the options, with
1203# dashes changed to underlines.
1204cache_file=/dev/null
1205exec_prefix=NONE
1206no_create=
1207no_recursion=
1208prefix=NONE
1209program_prefix=NONE
1210program_suffix=NONE
1211program_transform_name=s,x,x,
1212silent=
1213site=
1214srcdir=
1215verbose=
1216x_includes=NONE
1217x_libraries=NONE
1218
1219# Installation directory options.
1220# These are left unexpanded so users can "make install exec_prefix=/foo"
1221# and all the variables that are supposed to be based on exec_prefix
1222# by default will actually change.
1223# Use braces instead of parens because sh, perl, etc. also accept them.
1224# (The list follows the same order as the GNU Coding Standards.)
1225bindir='${exec_prefix}/bin'
1226sbindir='${exec_prefix}/sbin'
1227libexecdir='${exec_prefix}/libexec'
1228datarootdir='${prefix}/share'
1229datadir='${datarootdir}'
1230sysconfdir='${prefix}/etc'
1231sharedstatedir='${prefix}/com'
1232localstatedir='${prefix}/var'
1233includedir='${prefix}/include'
1234oldincludedir='/usr/include'
1235docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1236infodir='${datarootdir}/info'
1237htmldir='${docdir}'
1238dvidir='${docdir}'
1239pdfdir='${docdir}'
1240psdir='${docdir}'
1241libdir='${exec_prefix}/lib'
1242localedir='${datarootdir}/locale'
1243mandir='${datarootdir}/man'
1244
1245ac_prev=
1246ac_dashdash=
1247for ac_option
1248do
1249 # If the previous option needs an argument, assign it.
1250 if test -n "$ac_prev"; then
1251 eval $ac_prev=\$ac_option
1252 ac_prev=
1253 continue
1254 fi
1255
1256 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001257 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1258 *=) ac_optarg= ;;
1259 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001260 esac
1261
1262 # Accept the important Cygnus configure options, so we can diagnose typos.
1263
1264 case $ac_dashdash$ac_option in
1265 --)
1266 ac_dashdash=yes ;;
1267
1268 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1269 ac_prev=bindir ;;
1270 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1271 bindir=$ac_optarg ;;
1272
1273 -build | --build | --buil | --bui | --bu)
1274 ac_prev=build_alias ;;
1275 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1276 build_alias=$ac_optarg ;;
1277
1278 -cache-file | --cache-file | --cache-fil | --cache-fi \
1279 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1280 ac_prev=cache_file ;;
1281 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1282 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1283 cache_file=$ac_optarg ;;
1284
1285 --config-cache | -C)
1286 cache_file=config.cache ;;
1287
1288 -datadir | --datadir | --datadi | --datad)
1289 ac_prev=datadir ;;
1290 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1291 datadir=$ac_optarg ;;
1292
1293 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1294 | --dataroo | --dataro | --datar)
1295 ac_prev=datarootdir ;;
1296 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1297 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1298 datarootdir=$ac_optarg ;;
1299
1300 -disable-* | --disable-*)
1301 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001304 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001305 ac_useropt_orig=$ac_useropt
1306 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307 case $ac_user_opts in
1308 *"
1309"enable_$ac_useropt"
1310"*) ;;
1311 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1312 ac_unrecognized_sep=', ';;
1313 esac
1314 eval enable_$ac_useropt=no ;;
1315
1316 -docdir | --docdir | --docdi | --doc | --do)
1317 ac_prev=docdir ;;
1318 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1319 docdir=$ac_optarg ;;
1320
1321 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1322 ac_prev=dvidir ;;
1323 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1324 dvidir=$ac_optarg ;;
1325
1326 -enable-* | --enable-*)
1327 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1328 # Reject names that are not valid shell variable names.
1329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001330 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001331 ac_useropt_orig=$ac_useropt
1332 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333 case $ac_user_opts in
1334 *"
1335"enable_$ac_useropt"
1336"*) ;;
1337 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1338 ac_unrecognized_sep=', ';;
1339 esac
1340 eval enable_$ac_useropt=\$ac_optarg ;;
1341
1342 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1343 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1344 | --exec | --exe | --ex)
1345 ac_prev=exec_prefix ;;
1346 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1347 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1348 | --exec=* | --exe=* | --ex=*)
1349 exec_prefix=$ac_optarg ;;
1350
1351 -gas | --gas | --ga | --g)
1352 # Obsolete; use --with-gas.
1353 with_gas=yes ;;
1354
1355 -help | --help | --hel | --he | -h)
1356 ac_init_help=long ;;
1357 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1358 ac_init_help=recursive ;;
1359 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1360 ac_init_help=short ;;
1361
1362 -host | --host | --hos | --ho)
1363 ac_prev=host_alias ;;
1364 -host=* | --host=* | --hos=* | --ho=*)
1365 host_alias=$ac_optarg ;;
1366
1367 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1368 ac_prev=htmldir ;;
1369 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1370 | --ht=*)
1371 htmldir=$ac_optarg ;;
1372
1373 -includedir | --includedir | --includedi | --included | --include \
1374 | --includ | --inclu | --incl | --inc)
1375 ac_prev=includedir ;;
1376 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1377 | --includ=* | --inclu=* | --incl=* | --inc=*)
1378 includedir=$ac_optarg ;;
1379
1380 -infodir | --infodir | --infodi | --infod | --info | --inf)
1381 ac_prev=infodir ;;
1382 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1383 infodir=$ac_optarg ;;
1384
1385 -libdir | --libdir | --libdi | --libd)
1386 ac_prev=libdir ;;
1387 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1388 libdir=$ac_optarg ;;
1389
1390 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1391 | --libexe | --libex | --libe)
1392 ac_prev=libexecdir ;;
1393 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1394 | --libexe=* | --libex=* | --libe=*)
1395 libexecdir=$ac_optarg ;;
1396
1397 -localedir | --localedir | --localedi | --localed | --locale)
1398 ac_prev=localedir ;;
1399 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1400 localedir=$ac_optarg ;;
1401
1402 -localstatedir | --localstatedir | --localstatedi | --localstated \
1403 | --localstate | --localstat | --localsta | --localst | --locals)
1404 ac_prev=localstatedir ;;
1405 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1406 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1407 localstatedir=$ac_optarg ;;
1408
1409 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1410 ac_prev=mandir ;;
1411 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1412 mandir=$ac_optarg ;;
1413
1414 -nfp | --nfp | --nf)
1415 # Obsolete; use --without-fp.
1416 with_fp=no ;;
1417
1418 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1419 | --no-cr | --no-c | -n)
1420 no_create=yes ;;
1421
1422 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1423 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1424 no_recursion=yes ;;
1425
1426 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1427 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1428 | --oldin | --oldi | --old | --ol | --o)
1429 ac_prev=oldincludedir ;;
1430 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1431 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1432 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1433 oldincludedir=$ac_optarg ;;
1434
1435 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1436 ac_prev=prefix ;;
1437 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1438 prefix=$ac_optarg ;;
1439
1440 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1441 | --program-pre | --program-pr | --program-p)
1442 ac_prev=program_prefix ;;
1443 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1444 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1445 program_prefix=$ac_optarg ;;
1446
1447 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1448 | --program-suf | --program-su | --program-s)
1449 ac_prev=program_suffix ;;
1450 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1451 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1452 program_suffix=$ac_optarg ;;
1453
1454 -program-transform-name | --program-transform-name \
1455 | --program-transform-nam | --program-transform-na \
1456 | --program-transform-n | --program-transform- \
1457 | --program-transform | --program-transfor \
1458 | --program-transfo | --program-transf \
1459 | --program-trans | --program-tran \
1460 | --progr-tra | --program-tr | --program-t)
1461 ac_prev=program_transform_name ;;
1462 -program-transform-name=* | --program-transform-name=* \
1463 | --program-transform-nam=* | --program-transform-na=* \
1464 | --program-transform-n=* | --program-transform-=* \
1465 | --program-transform=* | --program-transfor=* \
1466 | --program-transfo=* | --program-transf=* \
1467 | --program-trans=* | --program-tran=* \
1468 | --progr-tra=* | --program-tr=* | --program-t=*)
1469 program_transform_name=$ac_optarg ;;
1470
1471 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1472 ac_prev=pdfdir ;;
1473 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1474 pdfdir=$ac_optarg ;;
1475
1476 -psdir | --psdir | --psdi | --psd | --ps)
1477 ac_prev=psdir ;;
1478 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1479 psdir=$ac_optarg ;;
1480
1481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1482 | -silent | --silent | --silen | --sile | --sil)
1483 silent=yes ;;
1484
1485 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1486 ac_prev=sbindir ;;
1487 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1488 | --sbi=* | --sb=*)
1489 sbindir=$ac_optarg ;;
1490
1491 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1492 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1493 | --sharedst | --shareds | --shared | --share | --shar \
1494 | --sha | --sh)
1495 ac_prev=sharedstatedir ;;
1496 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1497 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1498 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1499 | --sha=* | --sh=*)
1500 sharedstatedir=$ac_optarg ;;
1501
1502 -site | --site | --sit)
1503 ac_prev=site ;;
1504 -site=* | --site=* | --sit=*)
1505 site=$ac_optarg ;;
1506
1507 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1508 ac_prev=srcdir ;;
1509 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1510 srcdir=$ac_optarg ;;
1511
1512 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1513 | --syscon | --sysco | --sysc | --sys | --sy)
1514 ac_prev=sysconfdir ;;
1515 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1516 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1517 sysconfdir=$ac_optarg ;;
1518
1519 -target | --target | --targe | --targ | --tar | --ta | --t)
1520 ac_prev=target_alias ;;
1521 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1522 target_alias=$ac_optarg ;;
1523
1524 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1525 verbose=yes ;;
1526
1527 -version | --version | --versio | --versi | --vers | -V)
1528 ac_init_version=: ;;
1529
1530 -with-* | --with-*)
1531 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1532 # Reject names that are not valid shell variable names.
1533 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001534 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001535 ac_useropt_orig=$ac_useropt
1536 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1537 case $ac_user_opts in
1538 *"
1539"with_$ac_useropt"
1540"*) ;;
1541 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1542 ac_unrecognized_sep=', ';;
1543 esac
1544 eval with_$ac_useropt=\$ac_optarg ;;
1545
1546 -without-* | --without-*)
1547 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1548 # Reject names that are not valid shell variable names.
1549 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001550 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001551 ac_useropt_orig=$ac_useropt
1552 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1553 case $ac_user_opts in
1554 *"
1555"with_$ac_useropt"
1556"*) ;;
1557 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1558 ac_unrecognized_sep=', ';;
1559 esac
1560 eval with_$ac_useropt=no ;;
1561
1562 --x)
1563 # Obsolete; use --with-x.
1564 with_x=yes ;;
1565
1566 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1567 | --x-incl | --x-inc | --x-in | --x-i)
1568 ac_prev=x_includes ;;
1569 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1570 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1571 x_includes=$ac_optarg ;;
1572
1573 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1574 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1575 ac_prev=x_libraries ;;
1576 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1577 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1578 x_libraries=$ac_optarg ;;
1579
cristy98dddb52010-11-04 00:30:15 +00001580 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1581Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001582 ;;
1583
1584 *=*)
1585 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1586 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001587 case $ac_envvar in #(
1588 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001589 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001590 esac
cristy3ed852e2009-09-05 21:47:34 +00001591 eval $ac_envvar=\$ac_optarg
1592 export $ac_envvar ;;
1593
1594 *)
1595 # FIXME: should be removed in autoconf 3.0.
1596 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1597 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1598 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001599 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001600 ;;
1601
1602 esac
1603done
1604
1605if test -n "$ac_prev"; then
1606 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001607 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001608fi
1609
1610if test -n "$ac_unrecognized_opts"; then
1611 case $enable_option_checking in
1612 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001613 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001614 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1615 esac
1616fi
1617
1618# Check all directory arguments for consistency.
1619for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1620 datadir sysconfdir sharedstatedir localstatedir includedir \
1621 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1622 libdir localedir mandir
1623do
1624 eval ac_val=\$$ac_var
1625 # Remove trailing slashes.
1626 case $ac_val in
1627 */ )
1628 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1629 eval $ac_var=\$ac_val;;
1630 esac
1631 # Be sure to have absolute directory names.
1632 case $ac_val in
1633 [\\/$]* | ?:[\\/]* ) continue;;
1634 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1635 esac
cristy98dddb52010-11-04 00:30:15 +00001636 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001637done
1638
1639# There might be people who depend on the old broken behavior: `$host'
1640# used to hold the argument of --host etc.
1641# FIXME: To remove some day.
1642build=$build_alias
1643host=$host_alias
1644target=$target_alias
1645
1646# FIXME: To remove some day.
1647if test "x$host_alias" != x; then
1648 if test "x$build_alias" = x; then
1649 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001650 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1651 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001652 elif test "x$build_alias" != "x$host_alias"; then
1653 cross_compiling=yes
1654 fi
1655fi
1656
1657ac_tool_prefix=
1658test -n "$host_alias" && ac_tool_prefix=$host_alias-
1659
1660test "$silent" = yes && exec 6>/dev/null
1661
1662
1663ac_pwd=`pwd` && test -n "$ac_pwd" &&
1664ac_ls_di=`ls -di .` &&
1665ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001666 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001667test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001668 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001669
1670
1671# Find the source files, if location was not specified.
1672if test -z "$srcdir"; then
1673 ac_srcdir_defaulted=yes
1674 # Try the directory containing this script, then the parent directory.
1675 ac_confdir=`$as_dirname -- "$as_myself" ||
1676$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1677 X"$as_myself" : 'X\(//\)[^/]' \| \
1678 X"$as_myself" : 'X\(//\)$' \| \
1679 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1680$as_echo X"$as_myself" |
1681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1682 s//\1/
1683 q
1684 }
1685 /^X\(\/\/\)[^/].*/{
1686 s//\1/
1687 q
1688 }
1689 /^X\(\/\/\)$/{
1690 s//\1/
1691 q
1692 }
1693 /^X\(\/\).*/{
1694 s//\1/
1695 q
1696 }
1697 s/.*/./; q'`
1698 srcdir=$ac_confdir
1699 if test ! -r "$srcdir/$ac_unique_file"; then
1700 srcdir=..
1701 fi
1702else
1703 ac_srcdir_defaulted=no
1704fi
1705if test ! -r "$srcdir/$ac_unique_file"; then
1706 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001707 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001708fi
1709ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1710ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001711 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001712 pwd)`
1713# When building in place, set srcdir=.
1714if test "$ac_abs_confdir" = "$ac_pwd"; then
1715 srcdir=.
1716fi
1717# Remove unnecessary trailing slashes from srcdir.
1718# Double slashes in file names in object file debugging info
1719# mess up M-x gdb in Emacs.
1720case $srcdir in
1721*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1722esac
1723for ac_var in $ac_precious_vars; do
1724 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1725 eval ac_env_${ac_var}_value=\$${ac_var}
1726 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1727 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1728done
1729
1730#
1731# Report the --help message.
1732#
1733if test "$ac_init_help" = "long"; then
1734 # Omit some internal or obsolete options to make the list less imposing.
1735 # This message is too long to be a string in the A/UX 3.1 sh.
1736 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001737\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001738
1739Usage: $0 [OPTION]... [VAR=VALUE]...
1740
1741To assign environment variables (e.g., CC, CFLAGS...), specify them as
1742VAR=VALUE. See below for descriptions of some of the useful variables.
1743
1744Defaults for the options are specified in brackets.
1745
1746Configuration:
1747 -h, --help display this help and exit
1748 --help=short display options specific to this package
1749 --help=recursive display the short help of all the included packages
1750 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001751 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001752 --cache-file=FILE cache test results in FILE [disabled]
1753 -C, --config-cache alias for \`--cache-file=config.cache'
1754 -n, --no-create do not create output files
1755 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1756
1757Installation directories:
1758 --prefix=PREFIX install architecture-independent files in PREFIX
1759 [$ac_default_prefix]
1760 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1761 [PREFIX]
1762
1763By default, \`make install' will install all the files in
1764\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1765an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1766for instance \`--prefix=\$HOME'.
1767
1768For better control, use the options below.
1769
1770Fine tuning of the installation directories:
1771 --bindir=DIR user executables [EPREFIX/bin]
1772 --sbindir=DIR system admin executables [EPREFIX/sbin]
1773 --libexecdir=DIR program executables [EPREFIX/libexec]
1774 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1775 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1776 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1777 --libdir=DIR object code libraries [EPREFIX/lib]
1778 --includedir=DIR C header files [PREFIX/include]
1779 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1780 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1781 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1782 --infodir=DIR info documentation [DATAROOTDIR/info]
1783 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1784 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001785 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001786 --htmldir=DIR html documentation [DOCDIR]
1787 --dvidir=DIR dvi documentation [DOCDIR]
1788 --pdfdir=DIR pdf documentation [DOCDIR]
1789 --psdir=DIR ps documentation [DOCDIR]
1790_ACEOF
1791
1792 cat <<\_ACEOF
1793
cristy73bd4a52010-10-05 11:24:23 +00001794Program names:
1795 --program-prefix=PREFIX prepend PREFIX to installed program names
1796 --program-suffix=SUFFIX append SUFFIX to installed program names
1797 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1798
cristy3ed852e2009-09-05 21:47:34 +00001799X features:
1800 --x-includes=DIR X include files are in DIR
1801 --x-libraries=DIR X library files are in DIR
1802
1803System types:
1804 --build=BUILD configure for building on BUILD [guessed]
1805 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1806 --target=TARGET configure for building compilers for TARGET [HOST]
1807_ACEOF
1808fi
1809
1810if test -n "$ac_init_help"; then
1811 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001812 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001813 esac
1814 cat <<\_ACEOF
1815
1816Optional Features:
1817 --disable-option-checking ignore unrecognized --enable/--with options
1818 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1819 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001820 --enable-silent-rules less verbose build output (undo: `make V=1')
1821 --disable-silent-rules verbose build output (undo: `make V=0')
1822 --disable-dependency-tracking speeds up one-time build
1823 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001824 --bounds-checking enable run-time bounds-checking
1825 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001826 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001827 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001828 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001829 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001830 --enable-shared[=PKGS] build shared libraries [default=yes]
1831 --enable-static[=PKGS] build static libraries [default=yes]
1832 --enable-fast-install[=PKGS]
1833 optimize for fast installation [default=yes]
1834 --disable-libtool-lock avoid locking (might break parallel builds)
1835 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001836 --enable-delegate-build look for delegate libraries in build directory
1837 --disable-deprecated exclude deprecated methods in MagickCore and
1838 MagickWand API's
1839 --disable-installed Formally install ImageMagick under PREFIX
1840 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001841 --enable-zero-configuration
1842 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001843 zero-configuration ImageMagick
1844 --enable-hdri accurately represent the wide range of intensity
1845 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001846 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001847 --enable-maintainer-mode enable make rules and dependencies not useful
1848 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001849 --enable-ccmalloc enable 'ccmalloc' memory debug support
1850 --enable-efence enable 'efence' memory debug support
1851 --enable-prof enable 'prof' profiling support
1852 --enable-gprof enable 'gprof' profiling support
1853 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001854 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001855
1856Optional Packages:
1857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001859 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1860 --with-dmalloc use dmalloc, as in
1861 http://www.dmalloc.com/dmalloc.tar.gz
cristy670aa3c2011-11-03 00:54:00 +00001862 --includearch-dir=DIR ARCH specific include directory
1863 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001864 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001865 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001866 both]
cristyda16f162011-02-19 23:52:17 +00001867 --with-sysroot=DIR Search for dependent libraries within DIR
1868 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001869 --with-included-ltdl use the GNU ltdl sources included here
1870 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1871 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001872 --with-modules enable building dynamically loadable modules
1873 --with-method-prefix=PREFIX
1874 prefix MagickCore API methods
1875 --with-quantum-depth=DEPTH
1876 number of bits in a pixel quantum (default 16)
1877 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1878 memory)
1879 --with-frozenpaths freeze delegate paths
1880 --without-magick-plus-plus
1881 disable build/install of Magick++
1882 --with-perl enable build/install of PerlMagick
1883 --with-perl-options=OPTIONS
1884 options to pass on command-line when generating
1885 PerlMagick's build file
1886 --with-umem enable umem memory allocation library support
1887 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1888 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001889 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001890 --without-zlib disable ZLIB support
1891 --with-autotrace enable autotrace support
1892 --without-dps disable Display Postscript support
1893 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001894 --with-dejavu-font-dir=DIR
1895 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001896 --without-fftw disable FFTW support
1897 --without-fpx disable FlashPIX support
1898 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001899 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001900 --without-gslib enable Ghostscript library support
1901 --with-fontpath=DIR prepend to default font search path
1902 --with-gs-font-dir=DIR Ghostscript font directory
1903 --without-gvc disable GVC support
1904 --without-jbig disable JBIG support
1905 --without-jpeg disable JPEG support
1906 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001907 --without-lcms disable lcms (v1.1X) support
1908 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001909 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001910 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001911 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001912 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001913 --without-png disable PNG support
1914 --without-rsvg disable RSVG support
1915 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001916 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001917 --with-windows-font-dir=DIR
1918 directory containing MS-Windows fonts
1919 --without-wmf disable WMF support
1920 --without-xml disable XML support
1921
1922Some influential environment variables:
1923 CC C compiler command
1924 CFLAGS C compiler flags
1925 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1926 nonstandard directory <lib dir>
1927 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001928 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001929 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001930 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001931 CXX C++ compiler command
1932 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001933 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001934 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001935 XMKMF Path to xmkmf, Makefile generator for X Window System
1936 AUTOTRACE_CFLAGS
1937 C compiler flags for AUTOTRACE, overriding pkg-config
1938 AUTOTRACE_LIBS
1939 linker flags for AUTOTRACE, overriding pkg-config
1940 FONTCONFIG_CFLAGS
1941 C compiler flags for FONTCONFIG, overriding pkg-config
1942 FONTCONFIG_LIBS
1943 linker flags for FONTCONFIG, overriding pkg-config
1944 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1945 GVC_LIBS linker flags for GVC, overriding pkg-config
1946 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1947 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001948 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1949 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001950 OPENEXR_CFLAGS
1951 C compiler flags for OPENEXR, overriding pkg-config
1952 OPENEXR_LIBS
1953 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001954 PANGO_CFLAGS
1955 C compiler flags for PANGO, overriding pkg-config
1956 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001957 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1958 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1959 CAIRO_SVG_CFLAGS
1960 C compiler flags for CAIRO_SVG, overriding pkg-config
1961 CAIRO_SVG_LIBS
1962 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001963
1964Use these variables to override the choices made by `configure' or to help
1965it to find libraries and programs with nonstandard names/locations.
1966
1967Report bugs to <http://www.imagemagick.org>.
1968_ACEOF
1969ac_status=$?
1970fi
1971
1972if test "$ac_init_help" = "recursive"; then
1973 # If there are subdirs, report their specific --help.
1974 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1975 test -d "$ac_dir" ||
1976 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1977 continue
1978 ac_builddir=.
1979
1980case "$ac_dir" in
1981.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1982*)
1983 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1984 # A ".." for each directory in $ac_dir_suffix.
1985 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1986 case $ac_top_builddir_sub in
1987 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1988 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1989 esac ;;
1990esac
1991ac_abs_top_builddir=$ac_pwd
1992ac_abs_builddir=$ac_pwd$ac_dir_suffix
1993# for backward compatibility:
1994ac_top_builddir=$ac_top_build_prefix
1995
1996case $srcdir in
1997 .) # We are building in place.
1998 ac_srcdir=.
1999 ac_top_srcdir=$ac_top_builddir_sub
2000 ac_abs_top_srcdir=$ac_pwd ;;
2001 [\\/]* | ?:[\\/]* ) # Absolute name.
2002 ac_srcdir=$srcdir$ac_dir_suffix;
2003 ac_top_srcdir=$srcdir
2004 ac_abs_top_srcdir=$srcdir ;;
2005 *) # Relative name.
2006 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2007 ac_top_srcdir=$ac_top_build_prefix$srcdir
2008 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2009esac
2010ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2011
2012 cd "$ac_dir" || { ac_status=$?; continue; }
2013 # Check for guested configure.
2014 if test -f "$ac_srcdir/configure.gnu"; then
2015 echo &&
2016 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2017 elif test -f "$ac_srcdir/configure"; then
2018 echo &&
2019 $SHELL "$ac_srcdir/configure" --help=recursive
2020 else
2021 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2022 fi || ac_status=$?
2023 cd "$ac_pwd" || { ac_status=$?; break; }
2024 done
2025fi
2026
2027test -n "$ac_init_help" && exit $ac_status
2028if $ac_init_version; then
2029 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002030ImageMagick configure 7.0.0-0
cristyda16f162011-02-19 23:52:17 +00002031generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002032
cristy98dddb52010-11-04 00:30:15 +00002033Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002034This configure script is free software; the Free Software Foundation
2035gives unlimited permission to copy, distribute and modify it.
2036_ACEOF
2037 exit
2038fi
cristy8b350f62009-11-15 23:12:43 +00002039
2040## ------------------------ ##
2041## Autoconf initialization. ##
2042## ------------------------ ##
2043
2044# ac_fn_c_try_compile LINENO
2045# --------------------------
2046# Try to compile conftest.$ac_ext, and return whether this succeeded.
2047ac_fn_c_try_compile ()
2048{
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 rm -f conftest.$ac_objext
2051 if { { ac_try="$ac_compile"
2052case "(($ac_try" in
2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2055esac
2056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057$as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_compile") 2>conftest.err
2059 ac_status=$?
2060 if test -s conftest.err; then
2061 grep -v '^ *+' conftest.err >conftest.er1
2062 cat conftest.er1 >&5
2063 mv -f conftest.er1 conftest.err
2064 fi
2065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066 test $ac_status = 0; } && {
2067 test -z "$ac_c_werror_flag" ||
2068 test ! -s conftest.err
2069 } && test -s conftest.$ac_objext; then :
2070 ac_retval=0
2071else
2072 $as_echo "$as_me: failed program was:" >&5
2073sed 's/^/| /' conftest.$ac_ext >&5
2074
2075 ac_retval=1
2076fi
cristyda16f162011-02-19 23:52:17 +00002077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002078 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002079
2080} # ac_fn_c_try_compile
2081
cristy95646052009-11-28 23:05:30 +00002082# ac_fn_c_try_cpp LINENO
2083# ----------------------
2084# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2085ac_fn_c_try_cpp ()
2086{
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 if { { ac_try="$ac_cpp conftest.$ac_ext"
2089case "(($ac_try" in
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2092esac
2093eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2094$as_echo "$ac_try_echo"; } >&5
2095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2096 ac_status=$?
2097 if test -s conftest.err; then
2098 grep -v '^ *+' conftest.err >conftest.er1
2099 cat conftest.er1 >&5
2100 mv -f conftest.er1 conftest.err
2101 fi
2102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002103 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2105 test ! -s conftest.err
2106 }; then :
2107 ac_retval=0
2108else
2109 $as_echo "$as_me: failed program was:" >&5
2110sed 's/^/| /' conftest.$ac_ext >&5
2111
2112 ac_retval=1
2113fi
cristyda16f162011-02-19 23:52:17 +00002114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002115 as_fn_set_status $ac_retval
2116
2117} # ac_fn_c_try_cpp
2118
cristy8b350f62009-11-15 23:12:43 +00002119# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2120# -------------------------------------------------------
2121# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2122# the include files in INCLUDES and setting the cache variable VAR
2123# accordingly.
2124ac_fn_c_check_header_mongrel ()
2125{
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002127 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002130if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002131 $as_echo_n "(cached) " >&6
2132fi
2133eval ac_res=\$$3
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135$as_echo "$ac_res" >&6; }
2136else
2137 # Is the header compilable?
2138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2139$as_echo_n "checking $2 usability... " >&6; }
2140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141/* end confdefs.h. */
2142$4
2143#include <$2>
2144_ACEOF
2145if ac_fn_c_try_compile "$LINENO"; then :
2146 ac_header_compiler=yes
2147else
2148 ac_header_compiler=no
2149fi
2150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2152$as_echo "$ac_header_compiler" >&6; }
2153
2154# Is the header present?
2155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2156$as_echo_n "checking $2 presence... " >&6; }
2157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158/* end confdefs.h. */
2159#include <$2>
2160_ACEOF
2161if ac_fn_c_try_cpp "$LINENO"; then :
2162 ac_header_preproc=yes
2163else
2164 ac_header_preproc=no
2165fi
cristyda16f162011-02-19 23:52:17 +00002166rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2168$as_echo "$ac_header_preproc" >&6; }
2169
2170# So? What about this header?
2171case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2172 yes:no: )
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2174$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2176$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2177 ;;
2178 no:yes:* )
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2180$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2182$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2184$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2186$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2188$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002189( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002190## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002191## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002192 ) | sed "s/^/$as_me: WARNING: /" >&2
2193 ;;
2194esac
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2196$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002197if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002198 $as_echo_n "(cached) " >&6
2199else
2200 eval "$3=\$ac_header_compiler"
2201fi
2202eval ac_res=\$$3
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204$as_echo "$ac_res" >&6; }
2205fi
cristyda16f162011-02-19 23:52:17 +00002206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002207
2208} # ac_fn_c_check_header_mongrel
2209
2210# ac_fn_c_try_run LINENO
2211# ----------------------
2212# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2213# that executables *can* be run.
2214ac_fn_c_try_run ()
2215{
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217 if { { ac_try="$ac_link"
2218case "(($ac_try" in
2219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220 *) ac_try_echo=$ac_try;;
2221esac
2222eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2223$as_echo "$ac_try_echo"; } >&5
2224 (eval "$ac_link") 2>&5
2225 ac_status=$?
2226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2227 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2228 { { case "(($ac_try" in
2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230 *) ac_try_echo=$ac_try;;
2231esac
2232eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233$as_echo "$ac_try_echo"; } >&5
2234 (eval "$ac_try") 2>&5
2235 ac_status=$?
2236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2237 test $ac_status = 0; }; }; then :
2238 ac_retval=0
2239else
2240 $as_echo "$as_me: program exited with status $ac_status" >&5
2241 $as_echo "$as_me: failed program was:" >&5
2242sed 's/^/| /' conftest.$ac_ext >&5
2243
2244 ac_retval=$ac_status
2245fi
2246 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002247 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002248 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002249
2250} # ac_fn_c_try_run
2251
2252# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2253# -------------------------------------------------------
2254# Tests whether HEADER exists and can be compiled using the include files in
2255# INCLUDES, setting the cache variable VAR accordingly.
2256ac_fn_c_check_header_compile ()
2257{
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2260$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002261if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002262 $as_echo_n "(cached) " >&6
2263else
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265/* end confdefs.h. */
2266$4
2267#include <$2>
2268_ACEOF
2269if ac_fn_c_try_compile "$LINENO"; then :
2270 eval "$3=yes"
2271else
2272 eval "$3=no"
2273fi
2274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275fi
2276eval ac_res=\$$3
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002280
2281} # ac_fn_c_check_header_compile
2282
cristya0b81c32010-01-22 02:54:33 +00002283# ac_fn_cxx_try_compile LINENO
2284# ----------------------------
2285# Try to compile conftest.$ac_ext, and return whether this succeeded.
2286ac_fn_cxx_try_compile ()
2287{
2288 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289 rm -f conftest.$ac_objext
2290 if { { ac_try="$ac_compile"
2291case "(($ac_try" in
2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293 *) ac_try_echo=$ac_try;;
2294esac
2295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2296$as_echo "$ac_try_echo"; } >&5
2297 (eval "$ac_compile") 2>conftest.err
2298 ac_status=$?
2299 if test -s conftest.err; then
2300 grep -v '^ *+' conftest.err >conftest.er1
2301 cat conftest.er1 >&5
2302 mv -f conftest.er1 conftest.err
2303 fi
2304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2305 test $ac_status = 0; } && {
2306 test -z "$ac_cxx_werror_flag" ||
2307 test ! -s conftest.err
2308 } && test -s conftest.$ac_objext; then :
2309 ac_retval=0
2310else
2311 $as_echo "$as_me: failed program was:" >&5
2312sed 's/^/| /' conftest.$ac_ext >&5
2313
2314 ac_retval=1
2315fi
cristyda16f162011-02-19 23:52:17 +00002316 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002317 as_fn_set_status $ac_retval
2318
2319} # ac_fn_cxx_try_compile
2320
cristy8b350f62009-11-15 23:12:43 +00002321# ac_fn_c_try_link LINENO
2322# -----------------------
2323# Try to link conftest.$ac_ext, and return whether this succeeded.
2324ac_fn_c_try_link ()
2325{
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 rm -f conftest.$ac_objext conftest$ac_exeext
2328 if { { ac_try="$ac_link"
2329case "(($ac_try" in
2330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331 *) ac_try_echo=$ac_try;;
2332esac
2333eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2334$as_echo "$ac_try_echo"; } >&5
2335 (eval "$ac_link") 2>conftest.err
2336 ac_status=$?
2337 if test -s conftest.err; then
2338 grep -v '^ *+' conftest.err >conftest.er1
2339 cat conftest.er1 >&5
2340 mv -f conftest.er1 conftest.err
2341 fi
2342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2343 test $ac_status = 0; } && {
2344 test -z "$ac_c_werror_flag" ||
2345 test ! -s conftest.err
2346 } && test -s conftest$ac_exeext && {
2347 test "$cross_compiling" = yes ||
2348 $as_test_x conftest$ac_exeext
2349 }; then :
2350 ac_retval=0
2351else
2352 $as_echo "$as_me: failed program was:" >&5
2353sed 's/^/| /' conftest.$ac_ext >&5
2354
2355 ac_retval=1
2356fi
2357 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2358 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2359 # interfere with the next link command; also delete a directory that is
2360 # left behind by Apple's compiler. We do this before executing the actions.
2361 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002362 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002363 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002364
2365} # ac_fn_c_try_link
2366
cristy73bd4a52010-10-05 11:24:23 +00002367# ac_fn_c_check_func LINENO FUNC VAR
2368# ----------------------------------
2369# Tests whether FUNC exists, setting the cache variable VAR accordingly
2370ac_fn_c_check_func ()
2371{
2372 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2374$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002375if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002376 $as_echo_n "(cached) " >&6
2377else
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379/* end confdefs.h. */
2380/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2382#define $2 innocuous_$2
2383
2384/* System header to define __stub macros and hopefully few prototypes,
2385 which can conflict with char $2 (); below.
2386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2387 <limits.h> exists even on freestanding compilers. */
2388
2389#ifdef __STDC__
2390# include <limits.h>
2391#else
2392# include <assert.h>
2393#endif
2394
2395#undef $2
2396
2397/* Override any GCC internal prototype to avoid an error.
2398 Use char because int might match the return type of a GCC
2399 builtin and then its argument prototype would still apply. */
2400#ifdef __cplusplus
2401extern "C"
2402#endif
2403char $2 ();
2404/* The GNU C library defines this for functions which it implements
2405 to always fail with ENOSYS. Some functions are actually named
2406 something starting with __ and the normal name is an alias. */
2407#if defined __stub_$2 || defined __stub___$2
2408choke me
2409#endif
2410
2411int
2412main ()
2413{
2414return $2 ();
2415 ;
2416 return 0;
2417}
2418_ACEOF
2419if ac_fn_c_try_link "$LINENO"; then :
2420 eval "$3=yes"
2421else
2422 eval "$3=no"
2423fi
2424rm -f core conftest.err conftest.$ac_objext \
2425 conftest$ac_exeext conftest.$ac_ext
2426fi
2427eval ac_res=\$$3
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2429$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002430 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002431
2432} # ac_fn_c_check_func
2433
2434# ac_fn_cxx_try_cpp LINENO
2435# ------------------------
2436# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2437ac_fn_cxx_try_cpp ()
2438{
2439 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2440 if { { ac_try="$ac_cpp conftest.$ac_ext"
2441case "(($ac_try" in
2442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443 *) ac_try_echo=$ac_try;;
2444esac
2445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2446$as_echo "$ac_try_echo"; } >&5
2447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2448 ac_status=$?
2449 if test -s conftest.err; then
2450 grep -v '^ *+' conftest.err >conftest.er1
2451 cat conftest.er1 >&5
2452 mv -f conftest.er1 conftest.err
2453 fi
2454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002455 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002456 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2457 test ! -s conftest.err
2458 }; then :
2459 ac_retval=0
2460else
2461 $as_echo "$as_me: failed program was:" >&5
2462sed 's/^/| /' conftest.$ac_ext >&5
2463
2464 ac_retval=1
2465fi
cristyda16f162011-02-19 23:52:17 +00002466 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002467 as_fn_set_status $ac_retval
2468
2469} # ac_fn_cxx_try_cpp
2470
2471# ac_fn_cxx_try_link LINENO
2472# -------------------------
2473# Try to link conftest.$ac_ext, and return whether this succeeded.
2474ac_fn_cxx_try_link ()
2475{
2476 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2477 rm -f conftest.$ac_objext conftest$ac_exeext
2478 if { { ac_try="$ac_link"
2479case "(($ac_try" in
2480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481 *) ac_try_echo=$ac_try;;
2482esac
2483eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2484$as_echo "$ac_try_echo"; } >&5
2485 (eval "$ac_link") 2>conftest.err
2486 ac_status=$?
2487 if test -s conftest.err; then
2488 grep -v '^ *+' conftest.err >conftest.er1
2489 cat conftest.er1 >&5
2490 mv -f conftest.er1 conftest.err
2491 fi
2492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2493 test $ac_status = 0; } && {
2494 test -z "$ac_cxx_werror_flag" ||
2495 test ! -s conftest.err
2496 } && test -s conftest$ac_exeext && {
2497 test "$cross_compiling" = yes ||
2498 $as_test_x conftest$ac_exeext
2499 }; then :
2500 ac_retval=0
2501else
2502 $as_echo "$as_me: failed program was:" >&5
2503sed 's/^/| /' conftest.$ac_ext >&5
2504
2505 ac_retval=1
2506fi
2507 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2508 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2509 # interfere with the next link command; also delete a directory that is
2510 # left behind by Apple's compiler. We do this before executing the actions.
2511 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002512 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002513 as_fn_set_status $ac_retval
2514
2515} # ac_fn_cxx_try_link
2516
cristy98dddb52010-11-04 00:30:15 +00002517# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2518# ---------------------------------------------
2519# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2520# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002521ac_fn_c_check_decl ()
2522{
2523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002524 as_decl_name=`echo $2|sed 's/ *(.*//'`
2525 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2527$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002528if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002529 $as_echo_n "(cached) " >&6
2530else
2531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532/* end confdefs.h. */
2533$4
2534int
2535main ()
2536{
cristy98dddb52010-11-04 00:30:15 +00002537#ifndef $as_decl_name
2538#ifdef __cplusplus
2539 (void) $as_decl_use;
2540#else
2541 (void) $as_decl_name;
2542#endif
cristy73bd4a52010-10-05 11:24:23 +00002543#endif
2544
2545 ;
2546 return 0;
2547}
2548_ACEOF
2549if ac_fn_c_try_compile "$LINENO"; then :
2550 eval "$3=yes"
2551else
2552 eval "$3=no"
2553fi
2554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2555fi
2556eval ac_res=\$$3
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2558$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002560
2561} # ac_fn_c_check_decl
2562
cristy8b350f62009-11-15 23:12:43 +00002563# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2564# -------------------------------------------
2565# Tests whether TYPE exists after having included INCLUDES, setting cache
2566# variable VAR accordingly.
2567ac_fn_c_check_type ()
2568{
2569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2571$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002572if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002573 $as_echo_n "(cached) " >&6
2574else
2575 eval "$3=no"
2576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2577/* end confdefs.h. */
2578$4
2579int
2580main ()
2581{
2582if (sizeof ($2))
2583 return 0;
2584 ;
2585 return 0;
2586}
2587_ACEOF
2588if ac_fn_c_try_compile "$LINENO"; then :
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590/* end confdefs.h. */
2591$4
2592int
2593main ()
2594{
2595if (sizeof (($2)))
2596 return 0;
2597 ;
2598 return 0;
2599}
2600_ACEOF
2601if ac_fn_c_try_compile "$LINENO"; then :
2602
2603else
2604 eval "$3=yes"
2605fi
2606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607fi
2608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609fi
2610eval ac_res=\$$3
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2612$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002614
2615} # ac_fn_c_check_type
2616
cristy92703d82010-04-26 00:18:18 +00002617# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2618# ----------------------------------------------------
2619# Tries to find if the field MEMBER exists in type AGGR, after including
2620# INCLUDES, setting cache variable VAR accordingly.
2621ac_fn_c_check_member ()
2622{
2623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2625$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002626if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002627 $as_echo_n "(cached) " >&6
2628else
2629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630/* end confdefs.h. */
2631$5
2632int
2633main ()
2634{
2635static $2 ac_aggr;
2636if (ac_aggr.$3)
2637return 0;
2638 ;
2639 return 0;
2640}
2641_ACEOF
2642if ac_fn_c_try_compile "$LINENO"; then :
2643 eval "$4=yes"
2644else
2645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2646/* end confdefs.h. */
2647$5
2648int
2649main ()
2650{
2651static $2 ac_aggr;
2652if (sizeof ac_aggr.$3)
2653return 0;
2654 ;
2655 return 0;
2656}
2657_ACEOF
2658if ac_fn_c_try_compile "$LINENO"; then :
2659 eval "$4=yes"
2660else
2661 eval "$4=no"
2662fi
2663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664fi
2665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666fi
2667eval ac_res=\$$4
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2669$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002671
2672} # ac_fn_c_check_member
2673
cristy501c8042011-05-26 17:46:28 +00002674# ac_fn_c_find_intX_t LINENO BITS VAR
2675# -----------------------------------
2676# Finds a signed integer type with width BITS, setting cache variable VAR
2677# accordingly.
2678ac_fn_c_find_intX_t ()
2679{
2680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2682$as_echo_n "checking for int$2_t... " >&6; }
2683if eval \${$3+:} false; then :
2684 $as_echo_n "(cached) " >&6
2685else
2686 eval "$3=no"
2687 # Order is important - never check a type that is potentially smaller
2688 # than half of the expected target width.
2689 for ac_type in int$2_t 'int' 'long int' \
2690 'long long int' 'short int' 'signed char'; do
2691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2692/* end confdefs.h. */
2693$ac_includes_default
2694 enum { N = $2 / 2 - 1 };
2695int
2696main ()
2697{
2698static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2699test_array [0] = 0
2700
2701 ;
2702 return 0;
2703}
2704_ACEOF
2705if ac_fn_c_try_compile "$LINENO"; then :
2706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707/* end confdefs.h. */
2708$ac_includes_default
2709 enum { N = $2 / 2 - 1 };
2710int
2711main ()
2712{
2713static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2714 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2715test_array [0] = 0
2716
2717 ;
2718 return 0;
2719}
2720_ACEOF
2721if ac_fn_c_try_compile "$LINENO"; then :
2722
2723else
2724 case $ac_type in #(
2725 int$2_t) :
2726 eval "$3=yes" ;; #(
2727 *) :
2728 eval "$3=\$ac_type" ;;
2729esac
2730fi
2731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2732fi
2733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2734 if eval test \"x\$"$3"\" = x"no"; then :
2735
2736else
2737 break
2738fi
2739 done
2740fi
2741eval ac_res=\$$3
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2743$as_echo "$ac_res" >&6; }
2744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2745
2746} # ac_fn_c_find_intX_t
2747
2748# ac_fn_c_find_uintX_t LINENO BITS VAR
2749# ------------------------------------
2750# Finds an unsigned integer type with width BITS, setting cache variable VAR
2751# accordingly.
2752ac_fn_c_find_uintX_t ()
2753{
2754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2756$as_echo_n "checking for uint$2_t... " >&6; }
2757if eval \${$3+:} false; then :
2758 $as_echo_n "(cached) " >&6
2759else
2760 eval "$3=no"
2761 # Order is important - never check a type that is potentially smaller
2762 # than half of the expected target width.
2763 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2764 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2766/* end confdefs.h. */
2767$ac_includes_default
2768int
2769main ()
2770{
2771static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2772test_array [0] = 0
2773
2774 ;
2775 return 0;
2776}
2777_ACEOF
2778if ac_fn_c_try_compile "$LINENO"; then :
2779 case $ac_type in #(
2780 uint$2_t) :
2781 eval "$3=yes" ;; #(
2782 *) :
2783 eval "$3=\$ac_type" ;;
2784esac
2785fi
2786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2787 if eval test \"x\$"$3"\" = x"no"; then :
2788
2789else
2790 break
2791fi
2792 done
2793fi
2794eval ac_res=\$$3
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2796$as_echo "$ac_res" >&6; }
2797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2798
2799} # ac_fn_c_find_uintX_t
2800
cristy8b350f62009-11-15 23:12:43 +00002801# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2802# --------------------------------------------
2803# Tries to find the compile-time value of EXPR in a program that includes
2804# INCLUDES, setting VAR accordingly. Returns whether the value could be
2805# computed
2806ac_fn_c_compute_int ()
2807{
2808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2809 if test "$cross_compiling" = yes; then
2810 # Depending upon the size, compute the lo and hi bounds.
2811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2812/* end confdefs.h. */
2813$4
2814int
2815main ()
2816{
2817static int test_array [1 - 2 * !(($2) >= 0)];
2818test_array [0] = 0
2819
2820 ;
2821 return 0;
2822}
2823_ACEOF
2824if ac_fn_c_try_compile "$LINENO"; then :
2825 ac_lo=0 ac_mid=0
2826 while :; do
2827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2828/* end confdefs.h. */
2829$4
2830int
2831main ()
2832{
2833static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2834test_array [0] = 0
2835
2836 ;
2837 return 0;
2838}
2839_ACEOF
2840if ac_fn_c_try_compile "$LINENO"; then :
2841 ac_hi=$ac_mid; break
2842else
2843 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2844 if test $ac_lo -le $ac_mid; then
2845 ac_lo= ac_hi=
2846 break
2847 fi
2848 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2849fi
2850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851 done
2852else
2853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854/* end confdefs.h. */
2855$4
2856int
2857main ()
2858{
2859static int test_array [1 - 2 * !(($2) < 0)];
2860test_array [0] = 0
2861
2862 ;
2863 return 0;
2864}
2865_ACEOF
2866if ac_fn_c_try_compile "$LINENO"; then :
2867 ac_hi=-1 ac_mid=-1
2868 while :; do
2869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2870/* end confdefs.h. */
2871$4
2872int
2873main ()
2874{
2875static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2876test_array [0] = 0
2877
2878 ;
2879 return 0;
2880}
2881_ACEOF
2882if ac_fn_c_try_compile "$LINENO"; then :
2883 ac_lo=$ac_mid; break
2884else
2885 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2886 if test $ac_mid -le $ac_hi; then
2887 ac_lo= ac_hi=
2888 break
2889 fi
2890 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2891fi
2892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2893 done
2894else
2895 ac_lo= ac_hi=
2896fi
2897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2898fi
2899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2900# Binary search between lo and hi bounds.
2901while test "x$ac_lo" != "x$ac_hi"; do
2902 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2904/* end confdefs.h. */
2905$4
2906int
2907main ()
2908{
2909static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2910test_array [0] = 0
2911
2912 ;
2913 return 0;
2914}
2915_ACEOF
2916if ac_fn_c_try_compile "$LINENO"; then :
2917 ac_hi=$ac_mid
2918else
2919 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2920fi
2921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2922done
2923case $ac_lo in #((
2924?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2925'') ac_retval=1 ;;
2926esac
2927 else
2928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929/* end confdefs.h. */
2930$4
2931static long int longval () { return $2; }
2932static unsigned long int ulongval () { return $2; }
2933#include <stdio.h>
2934#include <stdlib.h>
2935int
2936main ()
2937{
2938
2939 FILE *f = fopen ("conftest.val", "w");
2940 if (! f)
2941 return 1;
2942 if (($2) < 0)
2943 {
2944 long int i = longval ();
2945 if (i != ($2))
2946 return 1;
2947 fprintf (f, "%ld", i);
2948 }
2949 else
2950 {
2951 unsigned long int i = ulongval ();
2952 if (i != ($2))
2953 return 1;
2954 fprintf (f, "%lu", i);
2955 }
2956 /* Do not output a trailing newline, as this causes \r\n confusion
2957 on some platforms. */
2958 return ferror (f) || fclose (f) != 0;
2959
2960 ;
2961 return 0;
2962}
2963_ACEOF
2964if ac_fn_c_try_run "$LINENO"; then :
2965 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2966else
2967 ac_retval=1
2968fi
2969rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2970 conftest.$ac_objext conftest.beam conftest.$ac_ext
2971rm -f conftest.val
2972
2973 fi
cristyda16f162011-02-19 23:52:17 +00002974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002975 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002976
2977} # ac_fn_c_compute_int
2978
2979# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2980# ---------------------------------------------------------
2981# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2982# the include files in INCLUDES and setting the cache variable VAR
2983# accordingly.
2984ac_fn_cxx_check_header_mongrel ()
2985{
2986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002987 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2989$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002990if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002991 $as_echo_n "(cached) " >&6
2992fi
2993eval ac_res=\$$3
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2995$as_echo "$ac_res" >&6; }
2996else
2997 # Is the header compilable?
2998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2999$as_echo_n "checking $2 usability... " >&6; }
3000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3001/* end confdefs.h. */
3002$4
3003#include <$2>
3004_ACEOF
3005if ac_fn_cxx_try_compile "$LINENO"; then :
3006 ac_header_compiler=yes
3007else
3008 ac_header_compiler=no
3009fi
3010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3012$as_echo "$ac_header_compiler" >&6; }
3013
3014# Is the header present?
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3016$as_echo_n "checking $2 presence... " >&6; }
3017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018/* end confdefs.h. */
3019#include <$2>
3020_ACEOF
3021if ac_fn_cxx_try_cpp "$LINENO"; then :
3022 ac_header_preproc=yes
3023else
3024 ac_header_preproc=no
3025fi
cristyda16f162011-02-19 23:52:17 +00003026rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3028$as_echo "$ac_header_preproc" >&6; }
3029
3030# So? What about this header?
3031case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3032 yes:no: )
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3034$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3036$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3037 ;;
3038 no:yes:* )
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3040$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3042$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3044$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3046$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3048$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003049( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003050## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003051## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003052 ) | sed "s/^/$as_me: WARNING: /" >&2
3053 ;;
3054esac
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3056$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003057if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003058 $as_echo_n "(cached) " >&6
3059else
3060 eval "$3=\$ac_header_compiler"
3061fi
3062eval ac_res=\$$3
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3064$as_echo "$ac_res" >&6; }
3065fi
cristyda16f162011-02-19 23:52:17 +00003066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003067
3068} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003069cat >config.log <<_ACEOF
3070This file contains any messages produced by compilers while
3071running configure, to aid debugging if configure makes a mistake.
3072
cristy29eb34e2011-10-16 00:46:08 +00003073It was created by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +00003074generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003075
3076 $ $0 $@
3077
3078_ACEOF
3079exec 5>>config.log
3080{
3081cat <<_ASUNAME
3082## --------- ##
3083## Platform. ##
3084## --------- ##
3085
3086hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3087uname -m = `(uname -m) 2>/dev/null || echo unknown`
3088uname -r = `(uname -r) 2>/dev/null || echo unknown`
3089uname -s = `(uname -s) 2>/dev/null || echo unknown`
3090uname -v = `(uname -v) 2>/dev/null || echo unknown`
3091
3092/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3093/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3094
3095/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3096/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3097/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3098/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3099/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3100/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3101/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3102
3103_ASUNAME
3104
3105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106for as_dir in $PATH
3107do
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003110 $as_echo "PATH: $as_dir"
3111 done
cristy3ed852e2009-09-05 21:47:34 +00003112IFS=$as_save_IFS
3113
3114} >&5
3115
3116cat >&5 <<_ACEOF
3117
3118
3119## ----------- ##
3120## Core tests. ##
3121## ----------- ##
3122
3123_ACEOF
3124
3125
3126# Keep a trace of the command line.
3127# Strip out --no-create and --no-recursion so they do not pile up.
3128# Strip out --silent because we don't want to record it for future runs.
3129# Also quote any args containing shell meta-characters.
3130# Make two passes to allow for proper duplicate-argument suppression.
3131ac_configure_args=
3132ac_configure_args0=
3133ac_configure_args1=
3134ac_must_keep_next=false
3135for ac_pass in 1 2
3136do
3137 for ac_arg
3138 do
3139 case $ac_arg in
3140 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3142 | -silent | --silent | --silen | --sile | --sil)
3143 continue ;;
3144 *\'*)
3145 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3146 esac
3147 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003148 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003149 2)
cristy8b350f62009-11-15 23:12:43 +00003150 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003151 if test $ac_must_keep_next = true; then
3152 ac_must_keep_next=false # Got value, back to normal.
3153 else
3154 case $ac_arg in
3155 *=* | --config-cache | -C | -disable-* | --disable-* \
3156 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3157 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3158 | -with-* | --with-* | -without-* | --without-* | --x)
3159 case "$ac_configure_args0 " in
3160 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3161 esac
3162 ;;
3163 -* ) ac_must_keep_next=true ;;
3164 esac
3165 fi
cristy8b350f62009-11-15 23:12:43 +00003166 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003167 ;;
3168 esac
3169 done
3170done
cristy8b350f62009-11-15 23:12:43 +00003171{ ac_configure_args0=; unset ac_configure_args0;}
3172{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003173
3174# When interrupted or exit'd, cleanup temporary files, and complete
3175# config.log. We remove comments because anyway the quotes in there
3176# would cause problems or look ugly.
3177# WARNING: Use '\'' to represent an apostrophe within the trap.
3178# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3179trap 'exit_status=$?
3180 # Save into config.log some information that might help in debugging.
3181 {
3182 echo
3183
cristy98dddb52010-11-04 00:30:15 +00003184 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003185## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003186## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003187 echo
3188 # The following way of writing the cache mishandles newlines in values,
3189(
3190 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3191 eval ac_val=\$$ac_var
3192 case $ac_val in #(
3193 *${as_nl}*)
3194 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003195 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003196$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3197 esac
3198 case $ac_var in #(
3199 _ | IFS | as_nl) ;; #(
3200 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003201 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003202 esac ;;
3203 esac
3204 done
3205 (set) 2>&1 |
3206 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3207 *${as_nl}ac_space=\ *)
3208 sed -n \
3209 "s/'\''/'\''\\\\'\'''\''/g;
3210 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3211 ;; #(
3212 *)
3213 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3214 ;;
3215 esac |
3216 sort
3217)
3218 echo
3219
cristy98dddb52010-11-04 00:30:15 +00003220 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003221## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003222## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003223 echo
3224 for ac_var in $ac_subst_vars
3225 do
3226 eval ac_val=\$$ac_var
3227 case $ac_val in
3228 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3229 esac
3230 $as_echo "$ac_var='\''$ac_val'\''"
3231 done | sort
3232 echo
3233
3234 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003235 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003236## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003237## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003238 echo
3239 for ac_var in $ac_subst_files
3240 do
3241 eval ac_val=\$$ac_var
3242 case $ac_val in
3243 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3244 esac
3245 $as_echo "$ac_var='\''$ac_val'\''"
3246 done | sort
3247 echo
3248 fi
3249
3250 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003251 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003252## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003253## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003254 echo
3255 cat confdefs.h
3256 echo
3257 fi
3258 test "$ac_signal" != 0 &&
3259 $as_echo "$as_me: caught signal $ac_signal"
3260 $as_echo "$as_me: exit $exit_status"
3261 } >&5
3262 rm -f core *.core core.conftest.* &&
3263 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3264 exit $exit_status
3265' 0
3266for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003267 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003268done
3269ac_signal=0
3270
3271# confdefs.h avoids OS command line length limits that DEFS can exceed.
3272rm -f -r conftest* confdefs.h
3273
cristy8b350f62009-11-15 23:12:43 +00003274$as_echo "/* confdefs.h */" > confdefs.h
3275
cristy3ed852e2009-09-05 21:47:34 +00003276# Predefined preprocessor variables.
3277
3278cat >>confdefs.h <<_ACEOF
3279#define PACKAGE_NAME "$PACKAGE_NAME"
3280_ACEOF
3281
cristy3ed852e2009-09-05 21:47:34 +00003282cat >>confdefs.h <<_ACEOF
3283#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3284_ACEOF
3285
cristy3ed852e2009-09-05 21:47:34 +00003286cat >>confdefs.h <<_ACEOF
3287#define PACKAGE_VERSION "$PACKAGE_VERSION"
3288_ACEOF
3289
cristy3ed852e2009-09-05 21:47:34 +00003290cat >>confdefs.h <<_ACEOF
3291#define PACKAGE_STRING "$PACKAGE_STRING"
3292_ACEOF
3293
cristy3ed852e2009-09-05 21:47:34 +00003294cat >>confdefs.h <<_ACEOF
3295#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3296_ACEOF
3297
cristy8b350f62009-11-15 23:12:43 +00003298cat >>confdefs.h <<_ACEOF
3299#define PACKAGE_URL "$PACKAGE_URL"
3300_ACEOF
3301
cristy3ed852e2009-09-05 21:47:34 +00003302
3303# Let the site file select an alternate cache file if it wants to.
3304# Prefer an explicitly selected file to automatically selected ones.
3305ac_site_file1=NONE
3306ac_site_file2=NONE
3307if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003308 # We do not want a PATH search for config.site.
3309 case $CONFIG_SITE in #((
3310 -*) ac_site_file1=./$CONFIG_SITE;;
3311 */*) ac_site_file1=$CONFIG_SITE;;
3312 *) ac_site_file1=./$CONFIG_SITE;;
3313 esac
cristy3ed852e2009-09-05 21:47:34 +00003314elif test "x$prefix" != xNONE; then
3315 ac_site_file1=$prefix/share/config.site
3316 ac_site_file2=$prefix/etc/config.site
3317else
3318 ac_site_file1=$ac_default_prefix/share/config.site
3319 ac_site_file2=$ac_default_prefix/etc/config.site
3320fi
3321for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3322do
3323 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003324 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003325 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003326$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3327 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003328 . "$ac_site_file" \
3329 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331as_fn_error $? "failed to load site script $ac_site_file
3332See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003333 fi
3334done
3335
3336if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003337 # Some versions of bash will fail to source /dev/null (special files
3338 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3339 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003340 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003341$as_echo "$as_me: loading cache $cache_file" >&6;}
3342 case $cache_file in
3343 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3344 *) . "./$cache_file";;
3345 esac
3346 fi
3347else
cristy8b350f62009-11-15 23:12:43 +00003348 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003349$as_echo "$as_me: creating cache $cache_file" >&6;}
3350 >$cache_file
3351fi
3352
cristycd4c5312009-11-22 01:19:08 +00003353as_fn_append ac_header_list " stdlib.h"
3354as_fn_append ac_header_list " unistd.h"
3355as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003356# Check that the precious variables saved in the cache have kept the same
3357# value.
3358ac_cache_corrupted=false
3359for ac_var in $ac_precious_vars; do
3360 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3361 eval ac_new_set=\$ac_env_${ac_var}_set
3362 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3363 eval ac_new_val=\$ac_env_${ac_var}_value
3364 case $ac_old_set,$ac_new_set in
3365 set,)
cristy8b350f62009-11-15 23:12:43 +00003366 { $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 +00003367$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3368 ac_cache_corrupted=: ;;
3369 ,set)
cristy8b350f62009-11-15 23:12:43 +00003370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003371$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3372 ac_cache_corrupted=: ;;
3373 ,);;
3374 *)
3375 if test "x$ac_old_val" != "x$ac_new_val"; then
3376 # differences in whitespace do not lead to failure.
3377 ac_old_val_w=`echo x $ac_old_val`
3378 ac_new_val_w=`echo x $ac_new_val`
3379 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003381$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3382 ac_cache_corrupted=:
3383 else
cristy8b350f62009-11-15 23:12:43 +00003384 { $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 +00003385$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3386 eval $ac_var=\$ac_old_val
3387 fi
cristy8b350f62009-11-15 23:12:43 +00003388 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003389$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003390 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003391$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3392 fi;;
3393 esac
3394 # Pass precious variables to config.status.
3395 if test "$ac_new_set" = set; then
3396 case $ac_new_val in
3397 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3398 *) ac_arg=$ac_var=$ac_new_val ;;
3399 esac
3400 case " $ac_configure_args " in
3401 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003402 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003403 esac
3404 fi
3405done
3406if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003407 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003408$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003410$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003411 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003412fi
cristy8b350f62009-11-15 23:12:43 +00003413## -------------------- ##
3414## Main body of script. ##
3415## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003416
3417ac_ext=c
3418ac_cpp='$CPP $CPPFLAGS'
3419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421ac_compiler_gnu=$ac_cv_c_compiler_gnu
3422
3423
3424
3425ac_aux_dir=
3426for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003427 if test -f "$ac_dir/install-sh"; then
3428 ac_aux_dir=$ac_dir
3429 ac_install_sh="$ac_aux_dir/install-sh -c"
3430 break
3431 elif test -f "$ac_dir/install.sh"; then
3432 ac_aux_dir=$ac_dir
3433 ac_install_sh="$ac_aux_dir/install.sh -c"
3434 break
3435 elif test -f "$ac_dir/shtool"; then
3436 ac_aux_dir=$ac_dir
3437 ac_install_sh="$ac_aux_dir/shtool install -c"
3438 break
3439 fi
cristy3ed852e2009-09-05 21:47:34 +00003440done
3441if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003442 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003443fi
3444
3445# These three variables are undocumented and unsupported,
3446# and are intended to be withdrawn in a future Autoconf release.
3447# They can cause serious problems if a builder's source tree is in a directory
3448# whose full name contains unusual characters.
3449ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3450ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3451ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3452
3453
3454
3455
3456ac_config_headers="$ac_config_headers config/config.h"
3457
cristy24fc1fe2010-10-23 21:13:01 +00003458
cristy4c08aed2011-07-01 19:47:50 +00003459ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003460
cristy4c08aed2011-07-01 19:47:50 +00003461ac_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 MagickCore/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/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 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003462
3463
3464#
3465# Save initial user-tunable values
3466#
3467USER_LIBS=$LIBS
3468for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3469 eval isset=\${$var+set}
3470 if test "$isset" = 'set'; then
3471 eval val=$`echo $var`
3472 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3473 fi
3474done
3475
3476
3477CONFIGURE_ARGS="$0 ${ac_configure_args}"
3478
3479
3480# Source file containing package/library versioning information.
3481. ${srcdir}/version.sh
3482
cristy15a88782010-01-31 23:24:49 +00003483echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003484# Make sure we can run config.sub.
3485$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003486 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003487
cristy8b350f62009-11-15 23:12:43 +00003488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003489$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003490if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003491 $as_echo_n "(cached) " >&6
3492else
3493 ac_build_alias=$build_alias
3494test "x$ac_build_alias" = x &&
3495 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3496test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003497 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003498ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003499 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003500
3501fi
cristy8b350f62009-11-15 23:12:43 +00003502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003503$as_echo "$ac_cv_build" >&6; }
3504case $ac_cv_build in
3505*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003506*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003507esac
3508build=$ac_cv_build
3509ac_save_IFS=$IFS; IFS='-'
3510set x $ac_cv_build
3511shift
3512build_cpu=$1
3513build_vendor=$2
3514shift; shift
3515# Remember, the first character of IFS is used to create $*,
3516# except with old shells:
3517build_os=$*
3518IFS=$ac_save_IFS
3519case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3520
3521
cristy8b350f62009-11-15 23:12:43 +00003522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003523$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003524if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003525 $as_echo_n "(cached) " >&6
3526else
3527 if test "x$host_alias" = x; then
3528 ac_cv_host=$ac_cv_build
3529else
3530 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003531 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003532fi
3533
3534fi
cristy8b350f62009-11-15 23:12:43 +00003535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003536$as_echo "$ac_cv_host" >&6; }
3537case $ac_cv_host in
3538*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003539*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003540esac
3541host=$ac_cv_host
3542ac_save_IFS=$IFS; IFS='-'
3543set x $ac_cv_host
3544shift
3545host_cpu=$1
3546host_vendor=$2
3547shift; shift
3548# Remember, the first character of IFS is used to create $*,
3549# except with old shells:
3550host_os=$*
3551IFS=$ac_save_IFS
3552case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3553
3554
cristy8b350f62009-11-15 23:12:43 +00003555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003556$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003557if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003558 $as_echo_n "(cached) " >&6
3559else
3560 if test "x$target_alias" = x; then
3561 ac_cv_target=$ac_cv_host
3562else
3563 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003564 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003565fi
3566
3567fi
cristy8b350f62009-11-15 23:12:43 +00003568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003569$as_echo "$ac_cv_target" >&6; }
3570case $ac_cv_target in
3571*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003572*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003573esac
3574target=$ac_cv_target
3575ac_save_IFS=$IFS; IFS='-'
3576set x $ac_cv_target
3577shift
3578target_cpu=$1
3579target_vendor=$2
3580shift; shift
3581# Remember, the first character of IFS is used to create $*,
3582# except with old shells:
3583target_os=$*
3584IFS=$ac_save_IFS
3585case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3586
3587
3588# The aliases save the names the user supplied, while $host etc.
3589# will get canonicalized.
3590test -n "$target_alias" &&
3591 test "$program_prefix$program_suffix$program_transform_name" = \
3592 NONENONEs,x,x, &&
3593 program_prefix=${target_alias}-
3594
cristy837d6dc2010-02-27 01:16:57 +00003595
3596
3597
cristy19615b82011-04-13 20:02:01 +00003598MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003599
3600
cristy19615b82011-04-13 20:02:01 +00003601MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003602
3603
cristy19615b82011-04-13 20:02:01 +00003604MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003605
3606
cristy3ed852e2009-09-05 21:47:34 +00003607# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003608MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3609
3610MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3611
cristy99bd5232011-12-07 14:38:20 +00003612MAGICK_SVN_REVISION=6141
cristyd694ca32011-03-27 21:42:54 +00003613
3614
cristy3ed852e2009-09-05 21:47:34 +00003615
3616
3617# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3619$as_echo_n "checking whether build environment is sane... " >&6; }
3620# Just in case
3621sleep 1
3622echo timestamp > conftest.file
3623# Reject unsafe characters in $srcdir or the absolute working directory
3624# name. Accept space and tab only in the latter.
3625am_lf='
3626'
3627case `pwd` in
3628 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003629 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003630esac
3631case $srcdir in
3632 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003633 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003634esac
cristy3ed852e2009-09-05 21:47:34 +00003635
cristy73bd4a52010-10-05 11:24:23 +00003636# Do `set' in a subshell so we don't clobber the current shell's
3637# arguments. Must try -L first in case configure is actually a
3638# symlink; some systems play weird games with the mod time of symlinks
3639# (eg FreeBSD returns the mod time of the symlink's containing
3640# directory).
3641if (
3642 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3643 if test "$*" = "X"; then
3644 # -L didn't work.
3645 set X `ls -t "$srcdir/configure" conftest.file`
3646 fi
3647 rm -f conftest.file
3648 if test "$*" != "X $srcdir/configure conftest.file" \
3649 && test "$*" != "X conftest.file $srcdir/configure"; then
3650
3651 # If neither matched, then we have a broken ls. This can happen
3652 # if, for instance, CONFIG_SHELL is bash and it inherits a
3653 # broken ls alias from the environment. This has actually
3654 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003655 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003656alias in your environment" "$LINENO" 5
3657 fi
3658
3659 test "$2" = conftest.file
3660 )
3661then
3662 # Ok.
3663 :
3664else
cristy98dddb52010-11-04 00:30:15 +00003665 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003666Check your system clock" "$LINENO" 5
3667fi
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3669$as_echo "yes" >&6; }
3670
3671am__api_version='1.11'
3672
3673# Find a good install program. We prefer a C program (faster),
3674# so one script is as good as another. But avoid the broken or
3675# incompatible versions:
3676# SysV /etc/install, /usr/sbin/install
3677# SunOS /usr/etc/install
3678# IRIX /sbin/install
3679# AIX /bin/install
3680# AmigaOS /C/install, which installs bootblocks on floppy discs
3681# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3682# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3683# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3684# OS/2's system install, which has a completely different semantic
3685# ./install, which can be erroneously created by make from ./install.sh.
3686# Reject install programs that cannot install multiple files.
3687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3688$as_echo_n "checking for a BSD-compatible install... " >&6; }
3689if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003690if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003691 $as_echo_n "(cached) " >&6
3692else
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694for as_dir in $PATH
3695do
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
3698 # Account for people who put trailing slashes in PATH elements.
3699case $as_dir/ in #((
3700 ./ | .// | /[cC]/* | \
3701 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3702 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3703 /usr/ucb/* ) ;;
3704 *)
3705 # OSF1 and SCO ODT 3.0 have their own names for install.
3706 # Don't use installbsd from OSF since it installs stuff as root
3707 # by default.
3708 for ac_prog in ginstall scoinst install; do
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3711 if test $ac_prog = install &&
3712 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3713 # AIX install. It has an incompatible calling convention.
3714 :
3715 elif test $ac_prog = install &&
3716 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3717 # program-specific install script used by HP pwplus--don't use.
3718 :
3719 else
3720 rm -rf conftest.one conftest.two conftest.dir
3721 echo one > conftest.one
3722 echo two > conftest.two
3723 mkdir conftest.dir
3724 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3725 test -s conftest.one && test -s conftest.two &&
3726 test -s conftest.dir/conftest.one &&
3727 test -s conftest.dir/conftest.two
3728 then
3729 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3730 break 3
3731 fi
3732 fi
3733 fi
3734 done
3735 done
3736 ;;
3737esac
3738
3739 done
3740IFS=$as_save_IFS
3741
3742rm -rf conftest.one conftest.two conftest.dir
3743
3744fi
3745 if test "${ac_cv_path_install+set}" = set; then
3746 INSTALL=$ac_cv_path_install
3747 else
3748 # As a last resort, use the slow shell script. Don't cache a
3749 # value for INSTALL within a source directory, because that will
3750 # break other packages using the cache if that directory is
3751 # removed, or if the value is a relative name.
3752 INSTALL=$ac_install_sh
3753 fi
3754fi
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3756$as_echo "$INSTALL" >&6; }
3757
3758# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3759# It thinks the first close brace ends the variable substitution.
3760test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3761
3762test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3763
3764test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3765
3766test "$program_prefix" != NONE &&
3767 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3768# Use a double $ so make ignores it.
3769test "$program_suffix" != NONE &&
3770 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3771# Double any \ or $.
3772# By default was `s,x,x', remove it if useless.
3773ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3774program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3775
3776# expand $ac_aux_dir to an absolute path
3777am_aux_dir=`cd $ac_aux_dir && pwd`
3778
3779if test x"${MISSING+set}" != xset; then
3780 case $am_aux_dir in
3781 *\ * | *\ *)
3782 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3783 *)
3784 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3785 esac
3786fi
3787# Use eval to expand $SHELL
3788if eval "$MISSING --run true"; then
3789 am_missing_run="$MISSING --run "
3790else
3791 am_missing_run=
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3793$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3794fi
3795
3796if test x"${install_sh}" != xset; then
3797 case $am_aux_dir in
3798 *\ * | *\ *)
3799 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3800 *)
3801 install_sh="\${SHELL} $am_aux_dir/install-sh"
3802 esac
3803fi
3804
3805# Installed binaries are usually stripped using `strip' when the user
3806# run `make install-strip'. However `strip' might not be the right
3807# tool to use in cross-compilation environments, therefore Automake
3808# will honor the `STRIP' environment variable to overrule this program.
3809if test "$cross_compiling" != no; then
3810 if test -n "$ac_tool_prefix"; then
3811 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3812set dummy ${ac_tool_prefix}strip; ac_word=$2
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003815if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003816 $as_echo_n "(cached) " >&6
3817else
3818 if test -n "$STRIP"; then
3819 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3820else
3821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822for as_dir in $PATH
3823do
3824 IFS=$as_save_IFS
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3828 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3830 break 2
3831 fi
3832done
3833 done
3834IFS=$as_save_IFS
3835
3836fi
3837fi
3838STRIP=$ac_cv_prog_STRIP
3839if test -n "$STRIP"; then
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3841$as_echo "$STRIP" >&6; }
3842else
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844$as_echo "no" >&6; }
3845fi
3846
3847
3848fi
3849if test -z "$ac_cv_prog_STRIP"; then
3850 ac_ct_STRIP=$STRIP
3851 # Extract the first word of "strip", so it can be a program name with args.
3852set dummy strip; ac_word=$2
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3854$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003855if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003856 $as_echo_n "(cached) " >&6
3857else
3858 if test -n "$ac_ct_STRIP"; then
3859 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3860else
3861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862for as_dir in $PATH
3863do
3864 IFS=$as_save_IFS
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3868 ac_cv_prog_ac_ct_STRIP="strip"
3869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3870 break 2
3871 fi
3872done
3873 done
3874IFS=$as_save_IFS
3875
3876fi
3877fi
3878ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3879if test -n "$ac_ct_STRIP"; then
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3881$as_echo "$ac_ct_STRIP" >&6; }
3882else
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884$as_echo "no" >&6; }
3885fi
3886
3887 if test "x$ac_ct_STRIP" = x; then
3888 STRIP=":"
3889 else
3890 case $cross_compiling:$ac_tool_warned in
3891yes:)
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3894ac_tool_warned=yes ;;
3895esac
3896 STRIP=$ac_ct_STRIP
3897 fi
3898else
3899 STRIP="$ac_cv_prog_STRIP"
3900fi
3901
3902fi
3903INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3904
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3906$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3907if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003908 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003909 $as_echo_n "(cached) " >&6
3910else
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3913do
3914 IFS=$as_save_IFS
3915 test -z "$as_dir" && as_dir=.
3916 for ac_prog in mkdir gmkdir; do
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3919 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3920 'mkdir (GNU coreutils) '* | \
3921 'mkdir (coreutils) '* | \
3922 'mkdir (fileutils) '4.1*)
3923 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3924 break 3;;
3925 esac
3926 done
3927 done
3928 done
3929IFS=$as_save_IFS
3930
3931fi
3932
3933 test -d ./--version && rmdir ./--version
3934 if test "${ac_cv_path_mkdir+set}" = set; then
3935 MKDIR_P="$ac_cv_path_mkdir -p"
3936 else
3937 # As a last resort, use the slow shell script. Don't cache a
3938 # value for MKDIR_P within a source directory, because that will
3939 # break other packages using the cache if that directory is
3940 # removed, or if the value is a relative name.
3941 MKDIR_P="$ac_install_sh -d"
3942 fi
3943fi
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3945$as_echo "$MKDIR_P" >&6; }
3946
3947mkdir_p="$MKDIR_P"
3948case $mkdir_p in
3949 [\\/$]* | ?:[\\/]*) ;;
3950 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3951esac
3952
3953for ac_prog in gawk mawk nawk awk
3954do
3955 # Extract the first word of "$ac_prog", so it can be a program name with args.
3956set dummy $ac_prog; ac_word=$2
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003959if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003960 $as_echo_n "(cached) " >&6
3961else
3962 if test -n "$AWK"; then
3963 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3964else
3965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966for as_dir in $PATH
3967do
3968 IFS=$as_save_IFS
3969 test -z "$as_dir" && as_dir=.
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3972 ac_cv_prog_AWK="$ac_prog"
3973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3974 break 2
3975 fi
3976done
3977 done
3978IFS=$as_save_IFS
3979
3980fi
3981fi
3982AWK=$ac_cv_prog_AWK
3983if test -n "$AWK"; then
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3985$as_echo "$AWK" >&6; }
3986else
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988$as_echo "no" >&6; }
3989fi
3990
3991
3992 test -n "$AWK" && break
3993done
3994
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3996$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3997set x ${MAKE-make}
3998ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00003999if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004000 $as_echo_n "(cached) " >&6
4001else
4002 cat >conftest.make <<\_ACEOF
4003SHELL = /bin/sh
4004all:
4005 @echo '@@@%%%=$(MAKE)=@@@%%%'
4006_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004007# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004008case `${MAKE-make} -f conftest.make 2>/dev/null` in
4009 *@@@%%%=?*=@@@%%%*)
4010 eval ac_cv_prog_make_${ac_make}_set=yes;;
4011 *)
4012 eval ac_cv_prog_make_${ac_make}_set=no;;
4013esac
4014rm -f conftest.make
4015fi
4016if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4018$as_echo "yes" >&6; }
4019 SET_MAKE=
4020else
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022$as_echo "no" >&6; }
4023 SET_MAKE="MAKE=${MAKE-make}"
4024fi
4025
4026rm -rf .tst 2>/dev/null
4027mkdir .tst 2>/dev/null
4028if test -d .tst; then
4029 am__leading_dot=.
4030else
4031 am__leading_dot=_
4032fi
4033rmdir .tst 2>/dev/null
4034
cristya448bd22011-10-14 12:38:13 +00004035# Check whether --enable-silent-rules was given.
4036if test "${enable_silent_rules+set}" = set; then :
4037 enableval=$enable_silent_rules;
4038fi
4039
4040case $enable_silent_rules in
4041yes) AM_DEFAULT_VERBOSITY=0;;
4042no) AM_DEFAULT_VERBOSITY=1;;
4043*) AM_DEFAULT_VERBOSITY=1;;
4044esac
4045AM_BACKSLASH='\'
4046
cristy73bd4a52010-10-05 11:24:23 +00004047if test "`cd $srcdir && pwd`" != "`pwd`"; then
4048 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4049 # is not polluted with repeated "-I."
4050 am__isrc=' -I$(srcdir)'
4051 # test to see if srcdir already configured
4052 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004053 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004054 fi
4055fi
4056
4057# test whether we have cygpath
4058if test -z "$CYGPATH_W"; then
4059 if (cygpath --version) >/dev/null 2>/dev/null; then
4060 CYGPATH_W='cygpath -w'
4061 else
4062 CYGPATH_W=echo
4063 fi
4064fi
4065
4066
4067# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004068 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004069 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004070
4071
cristya448bd22011-10-14 12:38:13 +00004072cat >>confdefs.h <<_ACEOF
4073#define PACKAGE "$PACKAGE"
4074_ACEOF
4075
4076
4077cat >>confdefs.h <<_ACEOF
4078#define VERSION "$VERSION"
4079_ACEOF
4080
cristy73bd4a52010-10-05 11:24:23 +00004081# Some tools Automake needs.
4082
4083ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4084
4085
4086AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4087
4088
4089AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4090
4091
4092AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4093
4094
4095MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4096
4097# We need awk for the "check" target. The system "awk" is bad on
4098# some platforms.
4099# Always define AMTAR for backward compatibility.
4100
4101AMTAR=${AMTAR-"${am_missing_run}tar"}
4102
4103am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4104
4105
4106
4107
4108
cristy3ed852e2009-09-05 21:47:34 +00004109
4110# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004111# Check whether --enable-silent-rules was given.
4112if test "${enable_silent_rules+set}" = set; then :
4113 enableval=$enable_silent_rules;
4114fi
4115
4116case $enable_silent_rules in
4117yes) AM_DEFAULT_VERBOSITY=0;;
4118no) AM_DEFAULT_VERBOSITY=1;;
4119*) AM_DEFAULT_VERBOSITY=0;;
4120esac
4121AM_BACKSLASH='\'
4122
cristy3ed852e2009-09-05 21:47:34 +00004123
4124MAGICK_LIB_VERSION="0x"
4125if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4126 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4127fi
4128MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4129if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4130 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4131fi
4132MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4133if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4134 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4135fi
4136MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4137
4138
4139# Definition used to define MagickLibVersionText in version.h
4140MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4141
4142
4143# Definition used to define MagickLibVersionNumber in version.h
4144MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4145
4146
4147# Regenerate config.status if ChangeLog or version.sh is updated.
4148CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4149
4150
4151PERLMAINCC=$CC
4152
4153MAGICK_CFLAGS=''
4154MAGICK_CPPFLAGS=$CPPFLAGS_USER
4155MAGICK_PCFLAGS=$CPPFLAGS_USER
4156MAGICK_LDFLAGS=''
4157MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004158MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004159
4160#
4161# Evaluate shell variable equivalents to Makefile directory variables
4162#
4163if test "x$prefix" = xNONE; then
4164 prefix=$ac_default_prefix
4165fi
4166# Let make expand exec_prefix.
4167if test "x$exec_prefix" = xNONE; then
4168 exec_prefix='${prefix}'
4169fi
4170
4171#
4172eval "eval PREFIX_DIR=${prefix}"
4173
4174eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4175
4176eval "eval BIN_DIR=$bindir"
4177
4178eval "eval SBIN_DIR=$sbindir"
4179
4180eval "eval LIBEXEC_DIR=$libexecdir"
4181
4182eval "eval DATA_DIR=$datadir"
4183
cristyd55889c2011-03-27 00:50:24 +00004184eval "eval DOC_DIR=$docdir"
4185
cristy3ed852e2009-09-05 21:47:34 +00004186eval "eval SYSCONF_DIR=$sysconfdir"
4187
4188eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4189
4190eval "eval LOCALSTATE_DIR=$localstatedir"
4191
4192eval "eval LIB_DIR=$libdir"
4193
4194eval "eval INCLUDE_DIR=$includedir"
4195
4196eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4197
4198eval "eval INFO_DIR=$infodir"
4199
4200eval "eval MAN_DIR=$mandir"
4201
4202
4203# Get full paths to source and build directories
4204srcdirfull="`cd $srcdir && pwd`"
4205builddir="`pwd`"
4206
4207#
4208# Compute variables useful for running uninstalled software.
4209#
4210MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4211MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4212MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4213MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4214DIRSEP=':'
4215case "${build_os}" in
4216 mingw* )
4217 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4218 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4219 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4220 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4221 DIRSEP=';'
4222 ;;
4223esac
4224case "${host_os}" in
4225 mingw* )
4226 DIRSEP=';'
4227 ;;
4228esac
4229
4230
4231
4232
4233
4234
cristya0b81c32010-01-22 02:54:33 +00004235
4236#
4237# Enable OS features.
4238#
cristy73bd4a52010-10-05 11:24:23 +00004239DEPDIR="${am__leading_dot}deps"
4240
4241ac_config_commands="$ac_config_commands depfiles"
4242
4243
4244am_make=${MAKE-make}
4245cat > confinc << 'END'
4246am__doit:
4247 @echo this is the am__doit target
4248.PHONY: am__doit
4249END
4250# If we don't find an include directive, just comment out the code.
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4252$as_echo_n "checking for style of include used by $am_make... " >&6; }
4253am__include="#"
4254am__quote=
4255_am_result=none
4256# First try GNU make style include.
4257echo "include confinc" > confmf
4258# Ignore all kinds of additional output from `make'.
4259case `$am_make -s -f confmf 2> /dev/null` in #(
4260*the\ am__doit\ target*)
4261 am__include=include
4262 am__quote=
4263 _am_result=GNU
4264 ;;
4265esac
4266# Now try BSD make style include.
4267if test "$am__include" = "#"; then
4268 echo '.include "confinc"' > confmf
4269 case `$am_make -s -f confmf 2> /dev/null` in #(
4270 *the\ am__doit\ target*)
4271 am__include=.include
4272 am__quote="\""
4273 _am_result=BSD
4274 ;;
4275 esac
4276fi
4277
4278
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4280$as_echo "$_am_result" >&6; }
4281rm -f confinc confmf
4282
4283# Check whether --enable-dependency-tracking was given.
4284if test "${enable_dependency_tracking+set}" = set; then :
4285 enableval=$enable_dependency_tracking;
4286fi
4287
4288if test "x$enable_dependency_tracking" != xno; then
4289 am_depcomp="$ac_aux_dir/depcomp"
4290 AMDEPBACKSLASH='\'
4291fi
4292 if test "x$enable_dependency_tracking" != xno; then
4293 AMDEP_TRUE=
4294 AMDEP_FALSE='#'
4295else
4296 AMDEP_TRUE='#'
4297 AMDEP_FALSE=
4298fi
4299
4300
cristy3ed852e2009-09-05 21:47:34 +00004301ac_ext=c
4302ac_cpp='$CPP $CPPFLAGS'
4303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4305ac_compiler_gnu=$ac_cv_c_compiler_gnu
4306if test -n "$ac_tool_prefix"; then
4307 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4308set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004310$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004311if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004312 $as_echo_n "(cached) " >&6
4313else
4314 if test -n "$CC"; then
4315 ac_cv_prog_CC="$CC" # Let the user override the test.
4316else
4317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318for as_dir in $PATH
4319do
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004322 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004326 break 2
4327 fi
4328done
cristy8b350f62009-11-15 23:12:43 +00004329 done
cristy3ed852e2009-09-05 21:47:34 +00004330IFS=$as_save_IFS
4331
4332fi
4333fi
4334CC=$ac_cv_prog_CC
4335if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004337$as_echo "$CC" >&6; }
4338else
cristy8b350f62009-11-15 23:12:43 +00004339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004340$as_echo "no" >&6; }
4341fi
4342
4343
4344fi
4345if test -z "$ac_cv_prog_CC"; then
4346 ac_ct_CC=$CC
4347 # Extract the first word of "gcc", so it can be a program name with args.
4348set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004350$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004351if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004352 $as_echo_n "(cached) " >&6
4353else
4354 if test -n "$ac_ct_CC"; then
4355 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4356else
4357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358for as_dir in $PATH
4359do
4360 IFS=$as_save_IFS
4361 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004362 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4364 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004366 break 2
4367 fi
4368done
cristy8b350f62009-11-15 23:12:43 +00004369 done
cristy3ed852e2009-09-05 21:47:34 +00004370IFS=$as_save_IFS
4371
4372fi
4373fi
4374ac_ct_CC=$ac_cv_prog_ac_ct_CC
4375if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004377$as_echo "$ac_ct_CC" >&6; }
4378else
cristy8b350f62009-11-15 23:12:43 +00004379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004380$as_echo "no" >&6; }
4381fi
4382
4383 if test "x$ac_ct_CC" = x; then
4384 CC=""
4385 else
4386 case $cross_compiling:$ac_tool_warned in
4387yes:)
cristy8b350f62009-11-15 23:12:43 +00004388{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4390ac_tool_warned=yes ;;
4391esac
4392 CC=$ac_ct_CC
4393 fi
4394else
4395 CC="$ac_cv_prog_CC"
4396fi
4397
4398if test -z "$CC"; then
4399 if test -n "$ac_tool_prefix"; then
4400 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4401set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004403$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004404if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004405 $as_echo_n "(cached) " >&6
4406else
4407 if test -n "$CC"; then
4408 ac_cv_prog_CC="$CC" # Let the user override the test.
4409else
4410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411for as_dir in $PATH
4412do
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004415 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4417 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004419 break 2
4420 fi
4421done
cristy8b350f62009-11-15 23:12:43 +00004422 done
cristy3ed852e2009-09-05 21:47:34 +00004423IFS=$as_save_IFS
4424
4425fi
4426fi
4427CC=$ac_cv_prog_CC
4428if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004430$as_echo "$CC" >&6; }
4431else
cristy8b350f62009-11-15 23:12:43 +00004432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004433$as_echo "no" >&6; }
4434fi
4435
4436
4437 fi
4438fi
4439if test -z "$CC"; then
4440 # Extract the first word of "cc", so it can be a program name with args.
4441set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004443$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004444if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004445 $as_echo_n "(cached) " >&6
4446else
4447 if test -n "$CC"; then
4448 ac_cv_prog_CC="$CC" # Let the user override the test.
4449else
4450 ac_prog_rejected=no
4451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452for as_dir in $PATH
4453do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004456 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4459 ac_prog_rejected=yes
4460 continue
4461 fi
4462 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004464 break 2
4465 fi
4466done
cristy8b350f62009-11-15 23:12:43 +00004467 done
cristy3ed852e2009-09-05 21:47:34 +00004468IFS=$as_save_IFS
4469
4470if test $ac_prog_rejected = yes; then
4471 # We found a bogon in the path, so make sure we never use it.
4472 set dummy $ac_cv_prog_CC
4473 shift
4474 if test $# != 0; then
4475 # We chose a different compiler from the bogus one.
4476 # However, it has the same basename, so the bogon will be chosen
4477 # first if we set CC to just the basename; use the full file name.
4478 shift
4479 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4480 fi
4481fi
4482fi
4483fi
4484CC=$ac_cv_prog_CC
4485if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004487$as_echo "$CC" >&6; }
4488else
cristy8b350f62009-11-15 23:12:43 +00004489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004490$as_echo "no" >&6; }
4491fi
4492
4493
4494fi
4495if test -z "$CC"; then
4496 if test -n "$ac_tool_prefix"; then
4497 for ac_prog in cl.exe
4498 do
4499 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4500set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004502$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004503if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004504 $as_echo_n "(cached) " >&6
4505else
4506 if test -n "$CC"; then
4507 ac_cv_prog_CC="$CC" # Let the user override the test.
4508else
4509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510for as_dir in $PATH
4511do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004514 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4516 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004518 break 2
4519 fi
4520done
cristy8b350f62009-11-15 23:12:43 +00004521 done
cristy3ed852e2009-09-05 21:47:34 +00004522IFS=$as_save_IFS
4523
4524fi
4525fi
4526CC=$ac_cv_prog_CC
4527if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004529$as_echo "$CC" >&6; }
4530else
cristy8b350f62009-11-15 23:12:43 +00004531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004532$as_echo "no" >&6; }
4533fi
4534
4535
4536 test -n "$CC" && break
4537 done
4538fi
4539if test -z "$CC"; then
4540 ac_ct_CC=$CC
4541 for ac_prog in cl.exe
4542do
4543 # Extract the first word of "$ac_prog", so it can be a program name with args.
4544set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004546$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004547if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004548 $as_echo_n "(cached) " >&6
4549else
4550 if test -n "$ac_ct_CC"; then
4551 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4552else
4553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554for as_dir in $PATH
4555do
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004558 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004562 break 2
4563 fi
4564done
cristy8b350f62009-11-15 23:12:43 +00004565 done
cristy3ed852e2009-09-05 21:47:34 +00004566IFS=$as_save_IFS
4567
4568fi
4569fi
4570ac_ct_CC=$ac_cv_prog_ac_ct_CC
4571if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004573$as_echo "$ac_ct_CC" >&6; }
4574else
cristy8b350f62009-11-15 23:12:43 +00004575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004576$as_echo "no" >&6; }
4577fi
4578
4579
4580 test -n "$ac_ct_CC" && break
4581done
4582
4583 if test "x$ac_ct_CC" = x; then
4584 CC=""
4585 else
4586 case $cross_compiling:$ac_tool_warned in
4587yes:)
cristy8b350f62009-11-15 23:12:43 +00004588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4590ac_tool_warned=yes ;;
4591esac
4592 CC=$ac_ct_CC
4593 fi
4594fi
4595
4596fi
4597
4598
cristy8b350f62009-11-15 23:12:43 +00004599test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004601as_fn_error $? "no acceptable C compiler found in \$PATH
4602See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004603
4604# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004605$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004606set X $ac_compile
4607ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004608for ac_option in --version -v -V -qversion; do
4609 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004610case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4613esac
cristy8b350f62009-11-15 23:12:43 +00004614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4615$as_echo "$ac_try_echo"; } >&5
4616 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004617 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004618 if test -s conftest.err; then
4619 sed '10a\
4620... rest of stderr output deleted ...
4621 10q' conftest.err >conftest.er1
4622 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004623 fi
cristycd4c5312009-11-22 01:19:08 +00004624 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4626 test $ac_status = 0; }
4627done
cristy3ed852e2009-09-05 21:47:34 +00004628
cristy8b350f62009-11-15 23:12:43 +00004629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004630/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004631
cristy3ed852e2009-09-05 21:47:34 +00004632int
4633main ()
4634{
4635
4636 ;
4637 return 0;
4638}
4639_ACEOF
4640ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004641ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004642# Try to create an executable without -o first, disregard a.out.
4643# It will help us diagnose broken compilers, and finding out an intuition
4644# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4646$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004647ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4648
4649# The possible output files:
4650ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4651
4652ac_rmfiles=
4653for ac_file in $ac_files
4654do
4655 case $ac_file in
4656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4657 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4658 esac
4659done
4660rm -f $ac_rmfiles
4661
cristy8b350f62009-11-15 23:12:43 +00004662if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004663case "(($ac_try" in
4664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665 *) ac_try_echo=$ac_try;;
4666esac
cristy8b350f62009-11-15 23:12:43 +00004667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4668$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004669 (eval "$ac_link_default") 2>&5
4670 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4672 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004673 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4674# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4675# in a Makefile. We should not override ac_cv_exeext if it was cached,
4676# so that the user can short-circuit this test for compilers unknown to
4677# Autoconf.
4678for ac_file in $ac_files ''
4679do
4680 test -f "$ac_file" || continue
4681 case $ac_file in
4682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4683 ;;
4684 [ab].out )
4685 # We found the default executable, but exeext='' is most
4686 # certainly right.
4687 break;;
4688 *.* )
cristy8b350f62009-11-15 23:12:43 +00004689 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004690 then :; else
4691 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4692 fi
4693 # We set ac_cv_exeext here because the later test for it is not
4694 # safe: cross compilers may not add the suffix if given an `-o'
4695 # argument, so we may need to know it at that point already.
4696 # Even if this section looks crufty: it has the advantage of
4697 # actually working.
4698 break;;
4699 * )
4700 break;;
4701 esac
4702done
4703test "$ac_cv_exeext" = no && ac_cv_exeext=
4704
4705else
4706 ac_file=''
4707fi
cristy8b350f62009-11-15 23:12:43 +00004708if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710$as_echo "no" >&6; }
4711$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004712sed 's/^/| /' conftest.$ac_ext >&5
4713
cristy8b350f62009-11-15 23:12:43 +00004714{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004716as_fn_error 77 "C compiler cannot create executables
4717See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004718else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4720$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004721fi
cristycd4c5312009-11-22 01:19:08 +00004722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4723$as_echo_n "checking for C compiler default output file name... " >&6; }
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4725$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004726ac_exeext=$ac_cv_exeext
4727
cristycd4c5312009-11-22 01:19:08 +00004728rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004729ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004731$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004732if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004733case "(($ac_try" in
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4736esac
cristy8b350f62009-11-15 23:12:43 +00004737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4738$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004739 (eval "$ac_link") 2>&5
4740 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4742 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004743 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4744# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4745# work properly (i.e., refer to `conftest.exe'), while it won't with
4746# `rm'.
4747for ac_file in conftest.exe conftest conftest.*; do
4748 test -f "$ac_file" || continue
4749 case $ac_file in
4750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4751 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4752 break;;
4753 * ) break;;
4754 esac
4755done
4756else
cristy8b350f62009-11-15 23:12:43 +00004757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004758$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004759as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4760See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004761fi
cristycd4c5312009-11-22 01:19:08 +00004762rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004764$as_echo "$ac_cv_exeext" >&6; }
4765
4766rm -f conftest.$ac_ext
4767EXEEXT=$ac_cv_exeext
4768ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770/* end confdefs.h. */
4771#include <stdio.h>
4772int
4773main ()
4774{
4775FILE *f = fopen ("conftest.out", "w");
4776 return ferror (f) || fclose (f) != 0;
4777
4778 ;
4779 return 0;
4780}
4781_ACEOF
4782ac_clean_files="$ac_clean_files conftest.out"
4783# Check that the compiler produces executables we can run. If not, either
4784# the compiler is broken, or we cross compile.
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4786$as_echo_n "checking whether we are cross compiling... " >&6; }
4787if test "$cross_compiling" != yes; then
4788 { { ac_try="$ac_link"
4789case "(($ac_try" in
4790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791 *) ac_try_echo=$ac_try;;
4792esac
4793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4794$as_echo "$ac_try_echo"; } >&5
4795 (eval "$ac_link") 2>&5
4796 ac_status=$?
4797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4798 test $ac_status = 0; }
4799 if { ac_try='./conftest$ac_cv_exeext'
4800 { { case "(($ac_try" in
4801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4802 *) ac_try_echo=$ac_try;;
4803esac
4804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4805$as_echo "$ac_try_echo"; } >&5
4806 (eval "$ac_try") 2>&5
4807 ac_status=$?
4808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4809 test $ac_status = 0; }; }; then
4810 cross_compiling=no
4811 else
4812 if test "$cross_compiling" = maybe; then
4813 cross_compiling=yes
4814 else
4815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004817as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004818If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004819See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004820 fi
4821 fi
4822fi
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4824$as_echo "$cross_compiling" >&6; }
4825
4826rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4827ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004829$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004830if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004831 $as_echo_n "(cached) " >&6
4832else
cristy8b350f62009-11-15 23:12:43 +00004833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004834/* end confdefs.h. */
4835
4836int
4837main ()
4838{
4839
4840 ;
4841 return 0;
4842}
4843_ACEOF
4844rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004845if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004846case "(($ac_try" in
4847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4848 *) ac_try_echo=$ac_try;;
4849esac
cristy8b350f62009-11-15 23:12:43 +00004850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4851$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004852 (eval "$ac_compile") 2>&5
4853 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4855 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004856 for ac_file in conftest.o conftest.obj conftest.*; do
4857 test -f "$ac_file" || continue;
4858 case $ac_file in
4859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4860 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4861 break;;
4862 esac
4863done
4864else
4865 $as_echo "$as_me: failed program was:" >&5
4866sed 's/^/| /' conftest.$ac_ext >&5
4867
cristy8b350f62009-11-15 23:12:43 +00004868{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004870as_fn_error $? "cannot compute suffix of object files: cannot compile
4871See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004872fi
cristy3ed852e2009-09-05 21:47:34 +00004873rm -f conftest.$ac_cv_objext conftest.$ac_ext
4874fi
cristy8b350f62009-11-15 23:12:43 +00004875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004876$as_echo "$ac_cv_objext" >&6; }
4877OBJEXT=$ac_cv_objext
4878ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004880$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004881if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004882 $as_echo_n "(cached) " >&6
4883else
cristy8b350f62009-11-15 23:12:43 +00004884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004885/* end confdefs.h. */
4886
4887int
4888main ()
4889{
4890#ifndef __GNUC__
4891 choke me
4892#endif
4893
4894 ;
4895 return 0;
4896}
4897_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004898if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004899 ac_compiler_gnu=yes
4900else
cristy8b350f62009-11-15 23:12:43 +00004901 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004902fi
cristy3ed852e2009-09-05 21:47:34 +00004903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4904ac_cv_c_compiler_gnu=$ac_compiler_gnu
4905
4906fi
cristy8b350f62009-11-15 23:12:43 +00004907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004908$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4909if test $ac_compiler_gnu = yes; then
4910 GCC=yes
4911else
4912 GCC=
4913fi
4914ac_test_CFLAGS=${CFLAGS+set}
4915ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004917$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004918if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004919 $as_echo_n "(cached) " >&6
4920else
4921 ac_save_c_werror_flag=$ac_c_werror_flag
4922 ac_c_werror_flag=yes
4923 ac_cv_prog_cc_g=no
4924 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004926/* end confdefs.h. */
4927
4928int
4929main ()
4930{
4931
4932 ;
4933 return 0;
4934}
4935_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004936if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004937 ac_cv_prog_cc_g=yes
4938else
cristy8b350f62009-11-15 23:12:43 +00004939 CFLAGS=""
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004941/* end confdefs.h. */
4942
4943int
4944main ()
4945{
4946
4947 ;
4948 return 0;
4949}
4950_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004951if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004952
cristy8b350f62009-11-15 23:12:43 +00004953else
4954 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004955 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004957/* end confdefs.h. */
4958
4959int
4960main ()
4961{
4962
4963 ;
4964 return 0;
4965}
4966_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004967if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004968 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004969fi
cristy3ed852e2009-09-05 21:47:34 +00004970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971fi
cristy3ed852e2009-09-05 21:47:34 +00004972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973fi
cristy3ed852e2009-09-05 21:47:34 +00004974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 ac_c_werror_flag=$ac_save_c_werror_flag
4976fi
cristy8b350f62009-11-15 23:12:43 +00004977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004978$as_echo "$ac_cv_prog_cc_g" >&6; }
4979if test "$ac_test_CFLAGS" = set; then
4980 CFLAGS=$ac_save_CFLAGS
4981elif test $ac_cv_prog_cc_g = yes; then
4982 if test "$GCC" = yes; then
4983 CFLAGS="-g -O2"
4984 else
4985 CFLAGS="-g"
4986 fi
4987else
4988 if test "$GCC" = yes; then
4989 CFLAGS="-O2"
4990 else
4991 CFLAGS=
4992 fi
4993fi
cristy8b350f62009-11-15 23:12:43 +00004994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004995$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004996if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004997 $as_echo_n "(cached) " >&6
4998else
4999 ac_cv_prog_cc_c89=no
5000ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005002/* end confdefs.h. */
5003#include <stdarg.h>
5004#include <stdio.h>
5005#include <sys/types.h>
5006#include <sys/stat.h>
5007/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5008struct buf { int x; };
5009FILE * (*rcsopen) (struct buf *, struct stat *, int);
5010static char *e (p, i)
5011 char **p;
5012 int i;
5013{
5014 return p[i];
5015}
5016static char *f (char * (*g) (char **, int), char **p, ...)
5017{
5018 char *s;
5019 va_list v;
5020 va_start (v,p);
5021 s = g (p, va_arg (v,int));
5022 va_end (v);
5023 return s;
5024}
5025
5026/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5027 function prototypes and stuff, but not '\xHH' hex character constants.
5028 These don't provoke an error unfortunately, instead are silently treated
5029 as 'x'. The following induces an error, until -std is added to get
5030 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5031 array size at least. It's necessary to write '\x00'==0 to get something
5032 that's true only with -std. */
5033int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5034
5035/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5036 inside strings and character constants. */
5037#define FOO(x) 'x'
5038int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5039
5040int test (int i, double x);
5041struct s1 {int (*f) (int a);};
5042struct s2 {int (*f) (double a);};
5043int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5044int argc;
5045char **argv;
5046int
5047main ()
5048{
5049return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5050 ;
5051 return 0;
5052}
5053_ACEOF
5054for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5055 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5056do
5057 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005058 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005059 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005060fi
cristy3ed852e2009-09-05 21:47:34 +00005061rm -f core conftest.err conftest.$ac_objext
5062 test "x$ac_cv_prog_cc_c89" != "xno" && break
5063done
5064rm -f conftest.$ac_ext
5065CC=$ac_save_CC
5066
5067fi
5068# AC_CACHE_VAL
5069case "x$ac_cv_prog_cc_c89" in
5070 x)
cristy8b350f62009-11-15 23:12:43 +00005071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005072$as_echo "none needed" >&6; } ;;
5073 xno)
cristy8b350f62009-11-15 23:12:43 +00005074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005075$as_echo "unsupported" >&6; } ;;
5076 *)
5077 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005079$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5080esac
cristy8b350f62009-11-15 23:12:43 +00005081if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005082
cristy8b350f62009-11-15 23:12:43 +00005083fi
cristy3ed852e2009-09-05 21:47:34 +00005084
5085ac_ext=c
5086ac_cpp='$CPP $CPPFLAGS'
5087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005090
cristy73bd4a52010-10-05 11:24:23 +00005091depcc="$CC" am_compiler_list=
5092
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5094$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005095if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005096 $as_echo_n "(cached) " >&6
5097else
5098 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5099 # We make a subdir and do the tests there. Otherwise we can end up
5100 # making bogus files that we don't know about and never remove. For
5101 # instance it was reported that on HP-UX the gcc test will end up
5102 # making a dummy file named `D' -- because `-MD' means `put the output
5103 # in D'.
5104 mkdir conftest.dir
5105 # Copy depcomp to subdir because otherwise we won't find it if we're
5106 # using a relative directory.
5107 cp "$am_depcomp" conftest.dir
5108 cd conftest.dir
5109 # We will build objects and dependencies in a subdirectory because
5110 # it helps to detect inapplicable dependency modes. For instance
5111 # both Tru64's cc and ICC support -MD to output dependencies as a
5112 # side effect of compilation, but ICC will put the dependencies in
5113 # the current directory while Tru64 will put them in the object
5114 # directory.
5115 mkdir sub
5116
5117 am_cv_CC_dependencies_compiler_type=none
5118 if test "$am_compiler_list" = ""; then
5119 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5120 fi
5121 am__universal=false
5122 case " $depcc " in #(
5123 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5124 esac
5125
5126 for depmode in $am_compiler_list; do
5127 # Setup a source with many dependencies, because some compilers
5128 # like to wrap large dependency lists on column 80 (with \), and
5129 # we should not choose a depcomp mode which is confused by this.
5130 #
5131 # We need to recreate these files for each test, as the compiler may
5132 # overwrite some of them when testing with obscure command lines.
5133 # This happens at least with the AIX C compiler.
5134 : > sub/conftest.c
5135 for i in 1 2 3 4 5 6; do
5136 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5137 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5138 # Solaris 8's {/usr,}/bin/sh.
5139 touch sub/conftst$i.h
5140 done
5141 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5142
5143 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5144 # mode. It turns out that the SunPro C++ compiler does not properly
5145 # handle `-M -o', and we need to detect this. Also, some Intel
5146 # versions had trouble with output in subdirs
5147 am__obj=sub/conftest.${OBJEXT-o}
5148 am__minus_obj="-o $am__obj"
5149 case $depmode in
5150 gcc)
5151 # This depmode causes a compiler race in universal mode.
5152 test "$am__universal" = false || continue
5153 ;;
5154 nosideeffect)
5155 # after this tag, mechanisms are not by side-effect, so they'll
5156 # only be used when explicitly requested
5157 if test "x$enable_dependency_tracking" = xyes; then
5158 continue
5159 else
5160 break
5161 fi
5162 ;;
5163 msvisualcpp | msvcmsys)
5164 # This compiler won't grok `-c -o', but also, the minuso test has
5165 # not run yet. These depmodes are late enough in the game, and
5166 # so weak that their functioning should not be impacted.
5167 am__obj=conftest.${OBJEXT-o}
5168 am__minus_obj=
5169 ;;
5170 none) break ;;
5171 esac
5172 if depmode=$depmode \
5173 source=sub/conftest.c object=$am__obj \
5174 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5175 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5176 >/dev/null 2>conftest.err &&
5177 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5178 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5179 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5180 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5181 # icc doesn't choke on unknown options, it will just issue warnings
5182 # or remarks (even with -Werror). So we grep stderr for any message
5183 # that says an option was ignored or not supported.
5184 # When given -MP, icc 7.0 and 7.1 complain thusly:
5185 # icc: Command line warning: ignoring option '-M'; no argument required
5186 # The diagnosis changed in icc 8.0:
5187 # icc: Command line remark: option '-MP' not supported
5188 if (grep 'ignoring option' conftest.err ||
5189 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5190 am_cv_CC_dependencies_compiler_type=$depmode
5191 break
5192 fi
5193 fi
5194 done
5195
5196 cd ..
5197 rm -rf conftest.dir
5198else
5199 am_cv_CC_dependencies_compiler_type=none
5200fi
5201
5202fi
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5204$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5205CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5206
5207 if
5208 test "x$enable_dependency_tracking" != xno \
5209 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5210 am__fastdepCC_TRUE=
5211 am__fastdepCC_FALSE='#'
5212else
5213 am__fastdepCC_TRUE='#'
5214 am__fastdepCC_FALSE=
5215fi
5216
5217
cristy3ed852e2009-09-05 21:47:34 +00005218
cristya0b81c32010-01-22 02:54:33 +00005219ac_ext=c
5220ac_cpp='$CPP $CPPFLAGS'
5221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223ac_compiler_gnu=$ac_cv_c_compiler_gnu
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5225$as_echo_n "checking how to run the C preprocessor... " >&6; }
5226# On Suns, sometimes $CPP names a directory.
5227if test -n "$CPP" && test -d "$CPP"; then
5228 CPP=
5229fi
5230if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005231 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005232 $as_echo_n "(cached) " >&6
5233else
5234 # Double quotes because CPP needs to be expanded
5235 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5236 do
5237 ac_preproc_ok=false
5238for ac_c_preproc_warn_flag in '' yes
5239do
5240 # Use a header file that comes with gcc, so configuring glibc
5241 # with a fresh cross-compiler works.
5242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5243 # <limits.h> exists even on freestanding compilers.
5244 # On the NeXT, cc -E runs the code through the compiler's parser,
5245 # not just through cpp. "Syntax error" is here to catch this case.
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247/* end confdefs.h. */
5248#ifdef __STDC__
5249# include <limits.h>
5250#else
5251# include <assert.h>
5252#endif
5253 Syntax error
5254_ACEOF
5255if ac_fn_c_try_cpp "$LINENO"; then :
5256
5257else
5258 # Broken: fails on valid input.
5259continue
5260fi
cristyda16f162011-02-19 23:52:17 +00005261rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005262
5263 # OK, works on sane cases. Now check whether nonexistent headers
5264 # can be detected and how.
5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266/* end confdefs.h. */
5267#include <ac_nonexistent.h>
5268_ACEOF
5269if ac_fn_c_try_cpp "$LINENO"; then :
5270 # Broken: success on invalid input.
5271continue
5272else
5273 # Passes both tests.
5274ac_preproc_ok=:
5275break
5276fi
cristyda16f162011-02-19 23:52:17 +00005277rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005278
5279done
5280# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005281rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005282if $ac_preproc_ok; then :
5283 break
5284fi
5285
5286 done
5287 ac_cv_prog_CPP=$CPP
5288
5289fi
5290 CPP=$ac_cv_prog_CPP
5291else
5292 ac_cv_prog_CPP=$CPP
5293fi
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5295$as_echo "$CPP" >&6; }
5296ac_preproc_ok=false
5297for ac_c_preproc_warn_flag in '' yes
5298do
5299 # Use a header file that comes with gcc, so configuring glibc
5300 # with a fresh cross-compiler works.
5301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5302 # <limits.h> exists even on freestanding compilers.
5303 # On the NeXT, cc -E runs the code through the compiler's parser,
5304 # not just through cpp. "Syntax error" is here to catch this case.
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306/* end confdefs.h. */
5307#ifdef __STDC__
5308# include <limits.h>
5309#else
5310# include <assert.h>
5311#endif
5312 Syntax error
5313_ACEOF
5314if ac_fn_c_try_cpp "$LINENO"; then :
5315
5316else
5317 # Broken: fails on valid input.
5318continue
5319fi
cristyda16f162011-02-19 23:52:17 +00005320rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005321
5322 # OK, works on sane cases. Now check whether nonexistent headers
5323 # can be detected and how.
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325/* end confdefs.h. */
5326#include <ac_nonexistent.h>
5327_ACEOF
5328if ac_fn_c_try_cpp "$LINENO"; then :
5329 # Broken: success on invalid input.
5330continue
5331else
5332 # Passes both tests.
5333ac_preproc_ok=:
5334break
5335fi
cristyda16f162011-02-19 23:52:17 +00005336rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005337
5338done
5339# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005340rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005341if $ac_preproc_ok; then :
5342
5343else
5344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005346as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5347See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005348fi
5349
5350ac_ext=c
5351ac_cpp='$CPP $CPPFLAGS'
5352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5354ac_compiler_gnu=$ac_cv_c_compiler_gnu
5355
5356
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5358$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005359if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005360 $as_echo_n "(cached) " >&6
5361else
5362 if test -z "$GREP"; then
5363 ac_path_GREP_found=false
5364 # Loop through the user's path and test for each of PROGNAME-LIST
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5367do
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_prog in grep ggrep; do
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5373 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5374# Check for GNU ac_path_GREP and select it if it is found.
5375 # Check for GNU $ac_path_GREP
5376case `"$ac_path_GREP" --version 2>&1` in
5377*GNU*)
5378 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5379*)
5380 ac_count=0
5381 $as_echo_n 0123456789 >"conftest.in"
5382 while :
5383 do
5384 cat "conftest.in" "conftest.in" >"conftest.tmp"
5385 mv "conftest.tmp" "conftest.in"
5386 cp "conftest.in" "conftest.nl"
5387 $as_echo 'GREP' >> "conftest.nl"
5388 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5389 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5390 as_fn_arith $ac_count + 1 && ac_count=$as_val
5391 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5392 # Best one so far, save it but keep looking for a better one
5393 ac_cv_path_GREP="$ac_path_GREP"
5394 ac_path_GREP_max=$ac_count
5395 fi
5396 # 10*(2^10) chars as input seems more than enough
5397 test $ac_count -gt 10 && break
5398 done
5399 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5400esac
5401
5402 $ac_path_GREP_found && break 3
5403 done
5404 done
5405 done
5406IFS=$as_save_IFS
5407 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005408 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005409 fi
5410else
5411 ac_cv_path_GREP=$GREP
5412fi
5413
5414fi
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5416$as_echo "$ac_cv_path_GREP" >&6; }
5417 GREP="$ac_cv_path_GREP"
5418
5419
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5421$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005422if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005423 $as_echo_n "(cached) " >&6
5424else
5425 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5426 then ac_cv_path_EGREP="$GREP -E"
5427 else
5428 if test -z "$EGREP"; then
5429 ac_path_EGREP_found=false
5430 # Loop through the user's path and test for each of PROGNAME-LIST
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5433do
5434 IFS=$as_save_IFS
5435 test -z "$as_dir" && as_dir=.
5436 for ac_prog in egrep; do
5437 for ac_exec_ext in '' $ac_executable_extensions; do
5438 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5439 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5440# Check for GNU ac_path_EGREP and select it if it is found.
5441 # Check for GNU $ac_path_EGREP
5442case `"$ac_path_EGREP" --version 2>&1` in
5443*GNU*)
5444 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5445*)
5446 ac_count=0
5447 $as_echo_n 0123456789 >"conftest.in"
5448 while :
5449 do
5450 cat "conftest.in" "conftest.in" >"conftest.tmp"
5451 mv "conftest.tmp" "conftest.in"
5452 cp "conftest.in" "conftest.nl"
5453 $as_echo 'EGREP' >> "conftest.nl"
5454 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5456 as_fn_arith $ac_count + 1 && ac_count=$as_val
5457 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5458 # Best one so far, save it but keep looking for a better one
5459 ac_cv_path_EGREP="$ac_path_EGREP"
5460 ac_path_EGREP_max=$ac_count
5461 fi
5462 # 10*(2^10) chars as input seems more than enough
5463 test $ac_count -gt 10 && break
5464 done
5465 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5466esac
5467
5468 $ac_path_EGREP_found && break 3
5469 done
5470 done
5471 done
5472IFS=$as_save_IFS
5473 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005474 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005475 fi
5476else
5477 ac_cv_path_EGREP=$EGREP
5478fi
5479
5480 fi
5481fi
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5483$as_echo "$ac_cv_path_EGREP" >&6; }
5484 EGREP="$ac_cv_path_EGREP"
5485
5486
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5488$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005489if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005490 $as_echo_n "(cached) " >&6
5491else
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493/* end confdefs.h. */
5494#include <stdlib.h>
5495#include <stdarg.h>
5496#include <string.h>
5497#include <float.h>
5498
5499int
5500main ()
5501{
5502
5503 ;
5504 return 0;
5505}
5506_ACEOF
5507if ac_fn_c_try_compile "$LINENO"; then :
5508 ac_cv_header_stdc=yes
5509else
5510 ac_cv_header_stdc=no
5511fi
5512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5513
5514if test $ac_cv_header_stdc = yes; then
5515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517/* end confdefs.h. */
5518#include <string.h>
5519
5520_ACEOF
5521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5522 $EGREP "memchr" >/dev/null 2>&1; then :
5523
5524else
5525 ac_cv_header_stdc=no
5526fi
5527rm -f conftest*
5528
5529fi
5530
5531if test $ac_cv_header_stdc = yes; then
5532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534/* end confdefs.h. */
5535#include <stdlib.h>
5536
5537_ACEOF
5538if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5539 $EGREP "free" >/dev/null 2>&1; then :
5540
5541else
5542 ac_cv_header_stdc=no
5543fi
5544rm -f conftest*
5545
5546fi
5547
5548if test $ac_cv_header_stdc = yes; then
5549 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5550 if test "$cross_compiling" = yes; then :
5551 :
5552else
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554/* end confdefs.h. */
5555#include <ctype.h>
5556#include <stdlib.h>
5557#if ((' ' & 0x0FF) == 0x020)
5558# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5559# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5560#else
5561# define ISLOWER(c) \
5562 (('a' <= (c) && (c) <= 'i') \
5563 || ('j' <= (c) && (c) <= 'r') \
5564 || ('s' <= (c) && (c) <= 'z'))
5565# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5566#endif
5567
5568#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5569int
5570main ()
5571{
5572 int i;
5573 for (i = 0; i < 256; i++)
5574 if (XOR (islower (i), ISLOWER (i))
5575 || toupper (i) != TOUPPER (i))
5576 return 2;
5577 return 0;
5578}
5579_ACEOF
5580if ac_fn_c_try_run "$LINENO"; then :
5581
5582else
5583 ac_cv_header_stdc=no
5584fi
5585rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5586 conftest.$ac_objext conftest.beam conftest.$ac_ext
5587fi
5588
5589fi
5590fi
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5592$as_echo "$ac_cv_header_stdc" >&6; }
5593if test $ac_cv_header_stdc = yes; then
5594
5595$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5596
5597fi
5598
5599# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5600for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5601 inttypes.h stdint.h unistd.h
5602do :
5603 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5604ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5605"
cristy98dddb52010-11-04 00:30:15 +00005606if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005607 cat >>confdefs.h <<_ACEOF
5608#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5609_ACEOF
5610
5611fi
5612
5613done
5614
5615
5616
5617 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 +00005618if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005619 MINIX=yes
5620else
5621 MINIX=
5622fi
5623
5624
5625 if test "$MINIX" = yes; then
5626
5627$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5628
5629
5630$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5631
5632
5633$as_echo "#define _MINIX 1" >>confdefs.h
5634
5635 fi
5636
5637
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5639$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005640if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005641 $as_echo_n "(cached) " >&6
5642else
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644/* end confdefs.h. */
5645
5646# define __EXTENSIONS__ 1
5647 $ac_includes_default
5648int
5649main ()
5650{
5651
5652 ;
5653 return 0;
5654}
5655_ACEOF
5656if ac_fn_c_try_compile "$LINENO"; then :
5657 ac_cv_safe_to_define___extensions__=yes
5658else
5659 ac_cv_safe_to_define___extensions__=no
5660fi
5661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5662fi
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5664$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5665 test $ac_cv_safe_to_define___extensions__ = yes &&
5666 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5667
5668 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5669
5670 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5671
5672 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5673
5674 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5675
5676
5677
5678# Check for programs
5679ac_ext=c
5680ac_cpp='$CPP $CPPFLAGS'
5681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5683ac_compiler_gnu=$ac_cv_c_compiler_gnu
5684if test -n "$ac_tool_prefix"; then
5685 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5686set dummy ${ac_tool_prefix}gcc; ac_word=$2
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005689if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005690 $as_echo_n "(cached) " >&6
5691else
5692 if test -n "$CC"; then
5693 ac_cv_prog_CC="$CC" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5702 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5705 fi
5706done
5707 done
5708IFS=$as_save_IFS
5709
5710fi
5711fi
5712CC=$ac_cv_prog_CC
5713if test -n "$CC"; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5715$as_echo "$CC" >&6; }
5716else
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718$as_echo "no" >&6; }
5719fi
5720
5721
5722fi
5723if test -z "$ac_cv_prog_CC"; then
5724 ac_ct_CC=$CC
5725 # Extract the first word of "gcc", so it can be a program name with args.
5726set dummy gcc; ac_word=$2
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5728$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005729if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005730 $as_echo_n "(cached) " >&6
5731else
5732 if test -n "$ac_ct_CC"; then
5733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5734else
5735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736for as_dir in $PATH
5737do
5738 IFS=$as_save_IFS
5739 test -z "$as_dir" && as_dir=.
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5742 ac_cv_prog_ac_ct_CC="gcc"
5743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744 break 2
5745 fi
5746done
5747 done
5748IFS=$as_save_IFS
5749
5750fi
5751fi
5752ac_ct_CC=$ac_cv_prog_ac_ct_CC
5753if test -n "$ac_ct_CC"; then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5755$as_echo "$ac_ct_CC" >&6; }
5756else
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758$as_echo "no" >&6; }
5759fi
5760
5761 if test "x$ac_ct_CC" = x; then
5762 CC=""
5763 else
5764 case $cross_compiling:$ac_tool_warned in
5765yes:)
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5768ac_tool_warned=yes ;;
5769esac
5770 CC=$ac_ct_CC
5771 fi
5772else
5773 CC="$ac_cv_prog_CC"
5774fi
5775
5776if test -z "$CC"; then
5777 if test -n "$ac_tool_prefix"; then
5778 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5779set dummy ${ac_tool_prefix}cc; ac_word=$2
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005782if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005783 $as_echo_n "(cached) " >&6
5784else
5785 if test -n "$CC"; then
5786 ac_cv_prog_CC="$CC" # Let the user override the test.
5787else
5788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789for as_dir in $PATH
5790do
5791 IFS=$as_save_IFS
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5795 ac_cv_prog_CC="${ac_tool_prefix}cc"
5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 break 2
5798 fi
5799done
5800 done
5801IFS=$as_save_IFS
5802
5803fi
5804fi
5805CC=$ac_cv_prog_CC
5806if test -n "$CC"; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5808$as_echo "$CC" >&6; }
5809else
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811$as_echo "no" >&6; }
5812fi
5813
5814
5815 fi
5816fi
5817if test -z "$CC"; then
5818 # Extract the first word of "cc", so it can be a program name with args.
5819set dummy cc; ac_word=$2
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005822if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005823 $as_echo_n "(cached) " >&6
5824else
5825 if test -n "$CC"; then
5826 ac_cv_prog_CC="$CC" # Let the user override the test.
5827else
5828 ac_prog_rejected=no
5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5836 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5837 ac_prog_rejected=yes
5838 continue
5839 fi
5840 ac_cv_prog_CC="cc"
5841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842 break 2
5843 fi
5844done
5845 done
5846IFS=$as_save_IFS
5847
5848if test $ac_prog_rejected = yes; then
5849 # We found a bogon in the path, so make sure we never use it.
5850 set dummy $ac_cv_prog_CC
5851 shift
5852 if test $# != 0; then
5853 # We chose a different compiler from the bogus one.
5854 # However, it has the same basename, so the bogon will be chosen
5855 # first if we set CC to just the basename; use the full file name.
5856 shift
5857 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5858 fi
5859fi
5860fi
5861fi
5862CC=$ac_cv_prog_CC
5863if test -n "$CC"; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5865$as_echo "$CC" >&6; }
5866else
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868$as_echo "no" >&6; }
5869fi
5870
5871
5872fi
5873if test -z "$CC"; then
5874 if test -n "$ac_tool_prefix"; then
5875 for ac_prog in cl.exe
5876 do
5877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5878set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005881if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005882 $as_echo_n "(cached) " >&6
5883else
5884 if test -n "$CC"; then
5885 ac_cv_prog_CC="$CC" # Let the user override the test.
5886else
5887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888for as_dir in $PATH
5889do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5894 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898done
5899 done
5900IFS=$as_save_IFS
5901
5902fi
5903fi
5904CC=$ac_cv_prog_CC
5905if test -n "$CC"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5907$as_echo "$CC" >&6; }
5908else
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910$as_echo "no" >&6; }
5911fi
5912
5913
5914 test -n "$CC" && break
5915 done
5916fi
5917if test -z "$CC"; then
5918 ac_ct_CC=$CC
5919 for ac_prog in cl.exe
5920do
5921 # Extract the first word of "$ac_prog", so it can be a program name with args.
5922set dummy $ac_prog; ac_word=$2
5923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005925if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005926 $as_echo_n "(cached) " >&6
5927else
5928 if test -n "$ac_ct_CC"; then
5929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5930else
5931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932for as_dir in $PATH
5933do
5934 IFS=$as_save_IFS
5935 test -z "$as_dir" && as_dir=.
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938 ac_cv_prog_ac_ct_CC="$ac_prog"
5939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 break 2
5941 fi
5942done
5943 done
5944IFS=$as_save_IFS
5945
5946fi
5947fi
5948ac_ct_CC=$ac_cv_prog_ac_ct_CC
5949if test -n "$ac_ct_CC"; then
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5951$as_echo "$ac_ct_CC" >&6; }
5952else
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954$as_echo "no" >&6; }
5955fi
5956
5957
5958 test -n "$ac_ct_CC" && break
5959done
5960
5961 if test "x$ac_ct_CC" = x; then
5962 CC=""
5963 else
5964 case $cross_compiling:$ac_tool_warned in
5965yes:)
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5968ac_tool_warned=yes ;;
5969esac
5970 CC=$ac_ct_CC
5971 fi
5972fi
5973
5974fi
5975
5976
5977test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005979as_fn_error $? "no acceptable C compiler found in \$PATH
5980See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005981
5982# Provide some information about the compiler.
5983$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5984set X $ac_compile
5985ac_compiler=$2
5986for ac_option in --version -v -V -qversion; do
5987 { { ac_try="$ac_compiler $ac_option >&5"
5988case "(($ac_try" in
5989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990 *) ac_try_echo=$ac_try;;
5991esac
5992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5993$as_echo "$ac_try_echo"; } >&5
5994 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5995 ac_status=$?
5996 if test -s conftest.err; then
5997 sed '10a\
5998... rest of stderr output deleted ...
5999 10q' conftest.err >conftest.er1
6000 cat conftest.er1 >&5
6001 fi
6002 rm -f conftest.er1 conftest.err
6003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6004 test $ac_status = 0; }
6005done
6006
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6008$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006009if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006010 $as_echo_n "(cached) " >&6
6011else
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013/* end confdefs.h. */
6014
6015int
6016main ()
6017{
6018#ifndef __GNUC__
6019 choke me
6020#endif
6021
6022 ;
6023 return 0;
6024}
6025_ACEOF
6026if ac_fn_c_try_compile "$LINENO"; then :
6027 ac_compiler_gnu=yes
6028else
6029 ac_compiler_gnu=no
6030fi
6031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6032ac_cv_c_compiler_gnu=$ac_compiler_gnu
6033
6034fi
6035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6036$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6037if test $ac_compiler_gnu = yes; then
6038 GCC=yes
6039else
6040 GCC=
6041fi
6042ac_test_CFLAGS=${CFLAGS+set}
6043ac_save_CFLAGS=$CFLAGS
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6045$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006046if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006047 $as_echo_n "(cached) " >&6
6048else
6049 ac_save_c_werror_flag=$ac_c_werror_flag
6050 ac_c_werror_flag=yes
6051 ac_cv_prog_cc_g=no
6052 CFLAGS="-g"
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054/* end confdefs.h. */
6055
6056int
6057main ()
6058{
6059
6060 ;
6061 return 0;
6062}
6063_ACEOF
6064if ac_fn_c_try_compile "$LINENO"; then :
6065 ac_cv_prog_cc_g=yes
6066else
6067 CFLAGS=""
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069/* end confdefs.h. */
6070
6071int
6072main ()
6073{
6074
6075 ;
6076 return 0;
6077}
6078_ACEOF
6079if ac_fn_c_try_compile "$LINENO"; then :
6080
6081else
6082 ac_c_werror_flag=$ac_save_c_werror_flag
6083 CFLAGS="-g"
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085/* end confdefs.h. */
6086
6087int
6088main ()
6089{
6090
6091 ;
6092 return 0;
6093}
6094_ACEOF
6095if ac_fn_c_try_compile "$LINENO"; then :
6096 ac_cv_prog_cc_g=yes
6097fi
6098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099fi
6100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101fi
6102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103 ac_c_werror_flag=$ac_save_c_werror_flag
6104fi
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6106$as_echo "$ac_cv_prog_cc_g" >&6; }
6107if test "$ac_test_CFLAGS" = set; then
6108 CFLAGS=$ac_save_CFLAGS
6109elif test $ac_cv_prog_cc_g = yes; then
6110 if test "$GCC" = yes; then
6111 CFLAGS="-g -O2"
6112 else
6113 CFLAGS="-g"
6114 fi
6115else
6116 if test "$GCC" = yes; then
6117 CFLAGS="-O2"
6118 else
6119 CFLAGS=
6120 fi
6121fi
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6123$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006124if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006125 $as_echo_n "(cached) " >&6
6126else
6127 ac_cv_prog_cc_c89=no
6128ac_save_CC=$CC
6129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130/* end confdefs.h. */
6131#include <stdarg.h>
6132#include <stdio.h>
6133#include <sys/types.h>
6134#include <sys/stat.h>
6135/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6136struct buf { int x; };
6137FILE * (*rcsopen) (struct buf *, struct stat *, int);
6138static char *e (p, i)
6139 char **p;
6140 int i;
6141{
6142 return p[i];
6143}
6144static char *f (char * (*g) (char **, int), char **p, ...)
6145{
6146 char *s;
6147 va_list v;
6148 va_start (v,p);
6149 s = g (p, va_arg (v,int));
6150 va_end (v);
6151 return s;
6152}
6153
6154/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6155 function prototypes and stuff, but not '\xHH' hex character constants.
6156 These don't provoke an error unfortunately, instead are silently treated
6157 as 'x'. The following induces an error, until -std is added to get
6158 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6159 array size at least. It's necessary to write '\x00'==0 to get something
6160 that's true only with -std. */
6161int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6162
6163/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6164 inside strings and character constants. */
6165#define FOO(x) 'x'
6166int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6167
6168int test (int i, double x);
6169struct s1 {int (*f) (int a);};
6170struct s2 {int (*f) (double a);};
6171int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6172int argc;
6173char **argv;
6174int
6175main ()
6176{
6177return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6178 ;
6179 return 0;
6180}
6181_ACEOF
6182for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6183 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6184do
6185 CC="$ac_save_CC $ac_arg"
6186 if ac_fn_c_try_compile "$LINENO"; then :
6187 ac_cv_prog_cc_c89=$ac_arg
6188fi
6189rm -f core conftest.err conftest.$ac_objext
6190 test "x$ac_cv_prog_cc_c89" != "xno" && break
6191done
6192rm -f conftest.$ac_ext
6193CC=$ac_save_CC
6194
6195fi
6196# AC_CACHE_VAL
6197case "x$ac_cv_prog_cc_c89" in
6198 x)
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6200$as_echo "none needed" >&6; } ;;
6201 xno)
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6203$as_echo "unsupported" >&6; } ;;
6204 *)
6205 CC="$CC $ac_cv_prog_cc_c89"
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6207$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6208esac
6209if test "x$ac_cv_prog_cc_c89" != xno; then :
6210
6211fi
6212
6213ac_ext=c
6214ac_cpp='$CPP $CPPFLAGS'
6215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6217ac_compiler_gnu=$ac_cv_c_compiler_gnu
6218
cristy73bd4a52010-10-05 11:24:23 +00006219depcc="$CC" am_compiler_list=
6220
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6222$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006223if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006224 $as_echo_n "(cached) " >&6
6225else
6226 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6227 # We make a subdir and do the tests there. Otherwise we can end up
6228 # making bogus files that we don't know about and never remove. For
6229 # instance it was reported that on HP-UX the gcc test will end up
6230 # making a dummy file named `D' -- because `-MD' means `put the output
6231 # in D'.
6232 mkdir conftest.dir
6233 # Copy depcomp to subdir because otherwise we won't find it if we're
6234 # using a relative directory.
6235 cp "$am_depcomp" conftest.dir
6236 cd conftest.dir
6237 # We will build objects and dependencies in a subdirectory because
6238 # it helps to detect inapplicable dependency modes. For instance
6239 # both Tru64's cc and ICC support -MD to output dependencies as a
6240 # side effect of compilation, but ICC will put the dependencies in
6241 # the current directory while Tru64 will put them in the object
6242 # directory.
6243 mkdir sub
6244
6245 am_cv_CC_dependencies_compiler_type=none
6246 if test "$am_compiler_list" = ""; then
6247 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6248 fi
6249 am__universal=false
6250 case " $depcc " in #(
6251 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6252 esac
6253
6254 for depmode in $am_compiler_list; do
6255 # Setup a source with many dependencies, because some compilers
6256 # like to wrap large dependency lists on column 80 (with \), and
6257 # we should not choose a depcomp mode which is confused by this.
6258 #
6259 # We need to recreate these files for each test, as the compiler may
6260 # overwrite some of them when testing with obscure command lines.
6261 # This happens at least with the AIX C compiler.
6262 : > sub/conftest.c
6263 for i in 1 2 3 4 5 6; do
6264 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6265 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6266 # Solaris 8's {/usr,}/bin/sh.
6267 touch sub/conftst$i.h
6268 done
6269 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6270
6271 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6272 # mode. It turns out that the SunPro C++ compiler does not properly
6273 # handle `-M -o', and we need to detect this. Also, some Intel
6274 # versions had trouble with output in subdirs
6275 am__obj=sub/conftest.${OBJEXT-o}
6276 am__minus_obj="-o $am__obj"
6277 case $depmode in
6278 gcc)
6279 # This depmode causes a compiler race in universal mode.
6280 test "$am__universal" = false || continue
6281 ;;
6282 nosideeffect)
6283 # after this tag, mechanisms are not by side-effect, so they'll
6284 # only be used when explicitly requested
6285 if test "x$enable_dependency_tracking" = xyes; then
6286 continue
6287 else
6288 break
6289 fi
6290 ;;
6291 msvisualcpp | msvcmsys)
6292 # This compiler won't grok `-c -o', but also, the minuso test has
6293 # not run yet. These depmodes are late enough in the game, and
6294 # so weak that their functioning should not be impacted.
6295 am__obj=conftest.${OBJEXT-o}
6296 am__minus_obj=
6297 ;;
6298 none) break ;;
6299 esac
6300 if depmode=$depmode \
6301 source=sub/conftest.c object=$am__obj \
6302 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6303 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6304 >/dev/null 2>conftest.err &&
6305 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6306 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6307 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6308 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6309 # icc doesn't choke on unknown options, it will just issue warnings
6310 # or remarks (even with -Werror). So we grep stderr for any message
6311 # that says an option was ignored or not supported.
6312 # When given -MP, icc 7.0 and 7.1 complain thusly:
6313 # icc: Command line warning: ignoring option '-M'; no argument required
6314 # The diagnosis changed in icc 8.0:
6315 # icc: Command line remark: option '-MP' not supported
6316 if (grep 'ignoring option' conftest.err ||
6317 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6318 am_cv_CC_dependencies_compiler_type=$depmode
6319 break
6320 fi
6321 fi
6322 done
6323
6324 cd ..
6325 rm -rf conftest.dir
6326else
6327 am_cv_CC_dependencies_compiler_type=none
6328fi
6329
6330fi
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6332$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6333CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6334
6335 if
6336 test "x$enable_dependency_tracking" != xno \
6337 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6338 am__fastdepCC_TRUE=
6339 am__fastdepCC_FALSE='#'
6340else
6341 am__fastdepCC_TRUE='#'
6342 am__fastdepCC_FALSE=
6343fi
6344
6345
cristy95646052009-11-28 23:05:30 +00006346ac_ext=cpp
6347ac_cpp='$CXXCPP $CPPFLAGS'
6348ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6349ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6350ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6351if test -z "$CXX"; then
6352 if test -n "$CCC"; then
6353 CXX=$CCC
6354 else
6355 if test -n "$ac_tool_prefix"; then
6356 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6357 do
6358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6359set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6361$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006362if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006363 $as_echo_n "(cached) " >&6
6364else
6365 if test -n "$CXX"; then
6366 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6367else
6368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369for as_dir in $PATH
6370do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6375 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 break 2
6378 fi
6379done
6380 done
6381IFS=$as_save_IFS
6382
6383fi
6384fi
6385CXX=$ac_cv_prog_CXX
6386if test -n "$CXX"; then
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6388$as_echo "$CXX" >&6; }
6389else
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391$as_echo "no" >&6; }
6392fi
6393
6394
6395 test -n "$CXX" && break
6396 done
6397fi
6398if test -z "$CXX"; then
6399 ac_ct_CXX=$CXX
6400 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6401do
6402 # Extract the first word of "$ac_prog", so it can be a program name with args.
6403set dummy $ac_prog; ac_word=$2
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6405$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006406if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006407 $as_echo_n "(cached) " >&6
6408else
6409 if test -n "$ac_ct_CXX"; then
6410 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6411else
6412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413for as_dir in $PATH
6414do
6415 IFS=$as_save_IFS
6416 test -z "$as_dir" && as_dir=.
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6419 ac_cv_prog_ac_ct_CXX="$ac_prog"
6420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 break 2
6422 fi
6423done
6424 done
6425IFS=$as_save_IFS
6426
6427fi
6428fi
6429ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6430if test -n "$ac_ct_CXX"; then
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6432$as_echo "$ac_ct_CXX" >&6; }
6433else
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6435$as_echo "no" >&6; }
6436fi
6437
6438
6439 test -n "$ac_ct_CXX" && break
6440done
6441
6442 if test "x$ac_ct_CXX" = x; then
6443 CXX="g++"
6444 else
6445 case $cross_compiling:$ac_tool_warned in
6446yes:)
6447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6449ac_tool_warned=yes ;;
6450esac
6451 CXX=$ac_ct_CXX
6452 fi
6453fi
6454
6455 fi
6456fi
6457# Provide some information about the compiler.
6458$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6459set X $ac_compile
6460ac_compiler=$2
6461for ac_option in --version -v -V -qversion; do
6462 { { ac_try="$ac_compiler $ac_option >&5"
6463case "(($ac_try" in
6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465 *) ac_try_echo=$ac_try;;
6466esac
6467eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6468$as_echo "$ac_try_echo"; } >&5
6469 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6470 ac_status=$?
6471 if test -s conftest.err; then
6472 sed '10a\
6473... rest of stderr output deleted ...
6474 10q' conftest.err >conftest.er1
6475 cat conftest.er1 >&5
6476 fi
6477 rm -f conftest.er1 conftest.err
6478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6479 test $ac_status = 0; }
6480done
6481
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6483$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006484if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006485 $as_echo_n "(cached) " >&6
6486else
6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488/* end confdefs.h. */
6489
6490int
6491main ()
6492{
6493#ifndef __GNUC__
6494 choke me
6495#endif
6496
6497 ;
6498 return 0;
6499}
6500_ACEOF
6501if ac_fn_cxx_try_compile "$LINENO"; then :
6502 ac_compiler_gnu=yes
6503else
6504 ac_compiler_gnu=no
6505fi
6506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6508
6509fi
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6511$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6512if test $ac_compiler_gnu = yes; then
6513 GXX=yes
6514else
6515 GXX=
6516fi
6517ac_test_CXXFLAGS=${CXXFLAGS+set}
6518ac_save_CXXFLAGS=$CXXFLAGS
6519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6520$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006521if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006522 $as_echo_n "(cached) " >&6
6523else
6524 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6525 ac_cxx_werror_flag=yes
6526 ac_cv_prog_cxx_g=no
6527 CXXFLAGS="-g"
6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529/* end confdefs.h. */
6530
6531int
6532main ()
6533{
6534
6535 ;
6536 return 0;
6537}
6538_ACEOF
6539if ac_fn_cxx_try_compile "$LINENO"; then :
6540 ac_cv_prog_cxx_g=yes
6541else
6542 CXXFLAGS=""
6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544/* end confdefs.h. */
6545
6546int
6547main ()
6548{
6549
6550 ;
6551 return 0;
6552}
6553_ACEOF
6554if ac_fn_cxx_try_compile "$LINENO"; then :
6555
6556else
6557 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6558 CXXFLAGS="-g"
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560/* end confdefs.h. */
6561
6562int
6563main ()
6564{
6565
6566 ;
6567 return 0;
6568}
6569_ACEOF
6570if ac_fn_cxx_try_compile "$LINENO"; then :
6571 ac_cv_prog_cxx_g=yes
6572fi
6573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574fi
6575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576fi
6577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6579fi
6580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6581$as_echo "$ac_cv_prog_cxx_g" >&6; }
6582if test "$ac_test_CXXFLAGS" = set; then
6583 CXXFLAGS=$ac_save_CXXFLAGS
6584elif test $ac_cv_prog_cxx_g = yes; then
6585 if test "$GXX" = yes; then
6586 CXXFLAGS="-g -O2"
6587 else
6588 CXXFLAGS="-g"
6589 fi
6590else
6591 if test "$GXX" = yes; then
6592 CXXFLAGS="-O2"
6593 else
6594 CXXFLAGS=
6595 fi
6596fi
6597ac_ext=c
6598ac_cpp='$CPP $CPPFLAGS'
6599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6601ac_compiler_gnu=$ac_cv_c_compiler_gnu
6602
cristy73bd4a52010-10-05 11:24:23 +00006603depcc="$CXX" am_compiler_list=
6604
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6606$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006607if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006608 $as_echo_n "(cached) " >&6
6609else
6610 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6611 # We make a subdir and do the tests there. Otherwise we can end up
6612 # making bogus files that we don't know about and never remove. For
6613 # instance it was reported that on HP-UX the gcc test will end up
6614 # making a dummy file named `D' -- because `-MD' means `put the output
6615 # in D'.
6616 mkdir conftest.dir
6617 # Copy depcomp to subdir because otherwise we won't find it if we're
6618 # using a relative directory.
6619 cp "$am_depcomp" conftest.dir
6620 cd conftest.dir
6621 # We will build objects and dependencies in a subdirectory because
6622 # it helps to detect inapplicable dependency modes. For instance
6623 # both Tru64's cc and ICC support -MD to output dependencies as a
6624 # side effect of compilation, but ICC will put the dependencies in
6625 # the current directory while Tru64 will put them in the object
6626 # directory.
6627 mkdir sub
6628
6629 am_cv_CXX_dependencies_compiler_type=none
6630 if test "$am_compiler_list" = ""; then
6631 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6632 fi
6633 am__universal=false
6634 case " $depcc " in #(
6635 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6636 esac
6637
6638 for depmode in $am_compiler_list; do
6639 # Setup a source with many dependencies, because some compilers
6640 # like to wrap large dependency lists on column 80 (with \), and
6641 # we should not choose a depcomp mode which is confused by this.
6642 #
6643 # We need to recreate these files for each test, as the compiler may
6644 # overwrite some of them when testing with obscure command lines.
6645 # This happens at least with the AIX C compiler.
6646 : > sub/conftest.c
6647 for i in 1 2 3 4 5 6; do
6648 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6649 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6650 # Solaris 8's {/usr,}/bin/sh.
6651 touch sub/conftst$i.h
6652 done
6653 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6654
6655 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6656 # mode. It turns out that the SunPro C++ compiler does not properly
6657 # handle `-M -o', and we need to detect this. Also, some Intel
6658 # versions had trouble with output in subdirs
6659 am__obj=sub/conftest.${OBJEXT-o}
6660 am__minus_obj="-o $am__obj"
6661 case $depmode in
6662 gcc)
6663 # This depmode causes a compiler race in universal mode.
6664 test "$am__universal" = false || continue
6665 ;;
6666 nosideeffect)
6667 # after this tag, mechanisms are not by side-effect, so they'll
6668 # only be used when explicitly requested
6669 if test "x$enable_dependency_tracking" = xyes; then
6670 continue
6671 else
6672 break
6673 fi
6674 ;;
6675 msvisualcpp | msvcmsys)
6676 # This compiler won't grok `-c -o', but also, the minuso test has
6677 # not run yet. These depmodes are late enough in the game, and
6678 # so weak that their functioning should not be impacted.
6679 am__obj=conftest.${OBJEXT-o}
6680 am__minus_obj=
6681 ;;
6682 none) break ;;
6683 esac
6684 if depmode=$depmode \
6685 source=sub/conftest.c object=$am__obj \
6686 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6687 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6688 >/dev/null 2>conftest.err &&
6689 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6690 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6691 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6692 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6693 # icc doesn't choke on unknown options, it will just issue warnings
6694 # or remarks (even with -Werror). So we grep stderr for any message
6695 # that says an option was ignored or not supported.
6696 # When given -MP, icc 7.0 and 7.1 complain thusly:
6697 # icc: Command line warning: ignoring option '-M'; no argument required
6698 # The diagnosis changed in icc 8.0:
6699 # icc: Command line remark: option '-MP' not supported
6700 if (grep 'ignoring option' conftest.err ||
6701 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6702 am_cv_CXX_dependencies_compiler_type=$depmode
6703 break
6704 fi
6705 fi
6706 done
6707
6708 cd ..
6709 rm -rf conftest.dir
6710else
6711 am_cv_CXX_dependencies_compiler_type=none
6712fi
6713
6714fi
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6716$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6717CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6718
6719 if
6720 test "x$enable_dependency_tracking" != xno \
6721 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6722 am__fastdepCXX_TRUE=
6723 am__fastdepCXX_FALSE='#'
6724else
6725 am__fastdepCXX_TRUE='#'
6726 am__fastdepCXX_FALSE=
6727fi
6728
6729
cristy8b350f62009-11-15 23:12:43 +00006730 case $ac_cv_prog_cc_stdc in #(
6731 no) :
6732 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6733 *) :
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006735$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006736if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006737 $as_echo_n "(cached) " >&6
6738else
6739 ac_cv_prog_cc_c99=no
6740ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006742/* end confdefs.h. */
6743#include <stdarg.h>
6744#include <stdbool.h>
6745#include <stdlib.h>
6746#include <wchar.h>
6747#include <stdio.h>
6748
6749// Check varargs macros. These examples are taken from C99 6.10.3.5.
6750#define debug(...) fprintf (stderr, __VA_ARGS__)
6751#define showlist(...) puts (#__VA_ARGS__)
6752#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6753static void
6754test_varargs_macros (void)
6755{
6756 int x = 1234;
6757 int y = 5678;
6758 debug ("Flag");
6759 debug ("X = %d\n", x);
6760 showlist (The first, second, and third items.);
6761 report (x>y, "x is %d but y is %d", x, y);
6762}
6763
6764// Check long long types.
6765#define BIG64 18446744073709551615ull
6766#define BIG32 4294967295ul
6767#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6768#if !BIG_OK
6769 your preprocessor is broken;
6770#endif
6771#if BIG_OK
6772#else
6773 your preprocessor is broken;
6774#endif
6775static long long int bignum = -9223372036854775807LL;
6776static unsigned long long int ubignum = BIG64;
6777
6778struct incomplete_array
6779{
6780 int datasize;
6781 double data[];
6782};
6783
6784struct named_init {
6785 int number;
6786 const wchar_t *name;
6787 double average;
6788};
6789
6790typedef const char *ccp;
6791
6792static inline int
6793test_restrict (ccp restrict text)
6794{
6795 // See if C++-style comments work.
6796 // Iterate through items via the restricted pointer.
6797 // Also check for declarations in for loops.
6798 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6799 continue;
6800 return 0;
6801}
6802
6803// Check varargs and va_copy.
6804static void
6805test_varargs (const char *format, ...)
6806{
6807 va_list args;
6808 va_start (args, format);
6809 va_list args_copy;
6810 va_copy (args_copy, args);
6811
6812 const char *str;
6813 int number;
6814 float fnumber;
6815
6816 while (*format)
6817 {
6818 switch (*format++)
6819 {
6820 case 's': // string
6821 str = va_arg (args_copy, const char *);
6822 break;
6823 case 'd': // int
6824 number = va_arg (args_copy, int);
6825 break;
6826 case 'f': // float
6827 fnumber = va_arg (args_copy, double);
6828 break;
6829 default:
6830 break;
6831 }
6832 }
6833 va_end (args_copy);
6834 va_end (args);
6835}
6836
6837int
6838main ()
6839{
6840
6841 // Check bool.
6842 _Bool success = false;
6843
6844 // Check restrict.
6845 if (test_restrict ("String literal") == 0)
6846 success = true;
6847 char *restrict newvar = "Another string";
6848
6849 // Check varargs.
6850 test_varargs ("s, d' f .", "string", 65, 34.234);
6851 test_varargs_macros ();
6852
6853 // Check flexible array members.
6854 struct incomplete_array *ia =
6855 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6856 ia->datasize = 10;
6857 for (int i = 0; i < ia->datasize; ++i)
6858 ia->data[i] = i * 1.234;
6859
6860 // Check named initializers.
6861 struct named_init ni = {
6862 .number = 34,
6863 .name = L"Test wide string",
6864 .average = 543.34343,
6865 };
6866
6867 ni.number = 58;
6868
6869 int dynamic_array[ni.number];
6870 dynamic_array[ni.number - 1] = 543;
6871
6872 // work around unused variable warnings
6873 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6874 || dynamic_array[ni.number - 1] != 543);
6875
6876 ;
6877 return 0;
6878}
6879_ACEOF
6880for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6881do
6882 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006883 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006884 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006885fi
cristy3ed852e2009-09-05 21:47:34 +00006886rm -f core conftest.err conftest.$ac_objext
6887 test "x$ac_cv_prog_cc_c99" != "xno" && break
6888done
6889rm -f conftest.$ac_ext
6890CC=$ac_save_CC
6891
6892fi
6893# AC_CACHE_VAL
6894case "x$ac_cv_prog_cc_c99" in
6895 x)
cristy8b350f62009-11-15 23:12:43 +00006896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006897$as_echo "none needed" >&6; } ;;
6898 xno)
cristy8b350f62009-11-15 23:12:43 +00006899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006900$as_echo "unsupported" >&6; } ;;
6901 *)
6902 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006904$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6905esac
cristy8b350f62009-11-15 23:12:43 +00006906if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006907 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6908else
cristy8b350f62009-11-15 23:12:43 +00006909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006910$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006911if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006912 $as_echo_n "(cached) " >&6
6913else
6914 ac_cv_prog_cc_c89=no
6915ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006917/* end confdefs.h. */
6918#include <stdarg.h>
6919#include <stdio.h>
6920#include <sys/types.h>
6921#include <sys/stat.h>
6922/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6923struct buf { int x; };
6924FILE * (*rcsopen) (struct buf *, struct stat *, int);
6925static char *e (p, i)
6926 char **p;
6927 int i;
6928{
6929 return p[i];
6930}
6931static char *f (char * (*g) (char **, int), char **p, ...)
6932{
6933 char *s;
6934 va_list v;
6935 va_start (v,p);
6936 s = g (p, va_arg (v,int));
6937 va_end (v);
6938 return s;
6939}
6940
6941/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6942 function prototypes and stuff, but not '\xHH' hex character constants.
6943 These don't provoke an error unfortunately, instead are silently treated
6944 as 'x'. The following induces an error, until -std is added to get
6945 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6946 array size at least. It's necessary to write '\x00'==0 to get something
6947 that's true only with -std. */
6948int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6949
6950/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6951 inside strings and character constants. */
6952#define FOO(x) 'x'
6953int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6954
6955int test (int i, double x);
6956struct s1 {int (*f) (int a);};
6957struct s2 {int (*f) (double a);};
6958int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6959int argc;
6960char **argv;
6961int
6962main ()
6963{
6964return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6965 ;
6966 return 0;
6967}
6968_ACEOF
6969for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6970 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6971do
6972 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006973 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006974 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006975fi
cristy3ed852e2009-09-05 21:47:34 +00006976rm -f core conftest.err conftest.$ac_objext
6977 test "x$ac_cv_prog_cc_c89" != "xno" && break
6978done
6979rm -f conftest.$ac_ext
6980CC=$ac_save_CC
6981
6982fi
6983# AC_CACHE_VAL
6984case "x$ac_cv_prog_cc_c89" in
6985 x)
cristy8b350f62009-11-15 23:12:43 +00006986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006987$as_echo "none needed" >&6; } ;;
6988 xno)
cristy8b350f62009-11-15 23:12:43 +00006989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006990$as_echo "unsupported" >&6; } ;;
6991 *)
6992 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006994$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6995esac
cristy8b350f62009-11-15 23:12:43 +00006996if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006997 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6998else
6999 ac_cv_prog_cc_stdc=no
7000fi
7001
cristy3ed852e2009-09-05 21:47:34 +00007002fi
cristy3ed852e2009-09-05 21:47:34 +00007003 ;;
7004esac
cristy8b350f62009-11-15 23:12:43 +00007005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007006$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007007 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007008 $as_echo_n "(cached) " >&6
7009fi
7010
cristy8b350f62009-11-15 23:12:43 +00007011 case $ac_cv_prog_cc_stdc in #(
7012 no) :
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7014$as_echo "unsupported" >&6; } ;; #(
7015 '') :
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7017$as_echo "none needed" >&6; } ;; #(
7018 *) :
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007020$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7021esac
7022
cristy3ed852e2009-09-05 21:47:34 +00007023ac_ext=c
7024ac_cpp='$CPP $CPPFLAGS'
7025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7027ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007029$as_echo_n "checking how to run the C preprocessor... " >&6; }
7030# On Suns, sometimes $CPP names a directory.
7031if test -n "$CPP" && test -d "$CPP"; then
7032 CPP=
7033fi
7034if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007035 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007036 $as_echo_n "(cached) " >&6
7037else
7038 # Double quotes because CPP needs to be expanded
7039 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7040 do
7041 ac_preproc_ok=false
7042for ac_c_preproc_warn_flag in '' yes
7043do
7044 # Use a header file that comes with gcc, so configuring glibc
7045 # with a fresh cross-compiler works.
7046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7047 # <limits.h> exists even on freestanding compilers.
7048 # On the NeXT, cc -E runs the code through the compiler's parser,
7049 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007051/* end confdefs.h. */
7052#ifdef __STDC__
7053# include <limits.h>
7054#else
7055# include <assert.h>
7056#endif
7057 Syntax error
7058_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007059if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007060
cristy8b350f62009-11-15 23:12:43 +00007061else
cristy3ed852e2009-09-05 21:47:34 +00007062 # Broken: fails on valid input.
7063continue
7064fi
cristyda16f162011-02-19 23:52:17 +00007065rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007066
7067 # OK, works on sane cases. Now check whether nonexistent headers
7068 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007070/* end confdefs.h. */
7071#include <ac_nonexistent.h>
7072_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007073if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007074 # Broken: success on invalid input.
7075continue
7076else
cristy3ed852e2009-09-05 21:47:34 +00007077 # Passes both tests.
7078ac_preproc_ok=:
7079break
7080fi
cristyda16f162011-02-19 23:52:17 +00007081rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007082
7083done
7084# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007085rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007086if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007087 break
7088fi
7089
7090 done
7091 ac_cv_prog_CPP=$CPP
7092
7093fi
7094 CPP=$ac_cv_prog_CPP
7095else
7096 ac_cv_prog_CPP=$CPP
7097fi
cristy8b350f62009-11-15 23:12:43 +00007098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007099$as_echo "$CPP" >&6; }
7100ac_preproc_ok=false
7101for ac_c_preproc_warn_flag in '' yes
7102do
7103 # Use a header file that comes with gcc, so configuring glibc
7104 # with a fresh cross-compiler works.
7105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7106 # <limits.h> exists even on freestanding compilers.
7107 # On the NeXT, cc -E runs the code through the compiler's parser,
7108 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007110/* end confdefs.h. */
7111#ifdef __STDC__
7112# include <limits.h>
7113#else
7114# include <assert.h>
7115#endif
7116 Syntax error
7117_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007118if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007119
cristy8b350f62009-11-15 23:12:43 +00007120else
cristy3ed852e2009-09-05 21:47:34 +00007121 # Broken: fails on valid input.
7122continue
7123fi
cristyda16f162011-02-19 23:52:17 +00007124rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007125
7126 # OK, works on sane cases. Now check whether nonexistent headers
7127 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007129/* end confdefs.h. */
7130#include <ac_nonexistent.h>
7131_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007132if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007133 # Broken: success on invalid input.
7134continue
7135else
cristy3ed852e2009-09-05 21:47:34 +00007136 # Passes both tests.
7137ac_preproc_ok=:
7138break
7139fi
cristyda16f162011-02-19 23:52:17 +00007140rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007141
7142done
7143# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007144rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007145if $ac_preproc_ok; then :
7146
cristy3ed852e2009-09-05 21:47:34 +00007147else
cristy8b350f62009-11-15 23:12:43 +00007148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007149$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007150as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7151See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007152fi
7153
7154ac_ext=c
7155ac_cpp='$CPP $CPPFLAGS'
7156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7158ac_compiler_gnu=$ac_cv_c_compiler_gnu
7159
cristy73bd4a52010-10-05 11:24:23 +00007160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7161$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007162if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007163 $as_echo_n "(cached) " >&6
7164else
7165 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7166 for ac_i in 1 2 3 4 5 6 7; do
7167 ac_script="$ac_script$as_nl$ac_script"
7168 done
7169 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7170 { ac_script=; unset ac_script;}
7171 if test -z "$SED"; then
7172 ac_path_SED_found=false
7173 # Loop through the user's path and test for each of PROGNAME-LIST
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
7176do
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
7179 for ac_prog in sed gsed; do
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7182 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7183# Check for GNU ac_path_SED and select it if it is found.
7184 # Check for GNU $ac_path_SED
7185case `"$ac_path_SED" --version 2>&1` in
7186*GNU*)
7187 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7188*)
7189 ac_count=0
7190 $as_echo_n 0123456789 >"conftest.in"
7191 while :
7192 do
7193 cat "conftest.in" "conftest.in" >"conftest.tmp"
7194 mv "conftest.tmp" "conftest.in"
7195 cp "conftest.in" "conftest.nl"
7196 $as_echo '' >> "conftest.nl"
7197 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7199 as_fn_arith $ac_count + 1 && ac_count=$as_val
7200 if test $ac_count -gt ${ac_path_SED_max-0}; then
7201 # Best one so far, save it but keep looking for a better one
7202 ac_cv_path_SED="$ac_path_SED"
7203 ac_path_SED_max=$ac_count
7204 fi
7205 # 10*(2^10) chars as input seems more than enough
7206 test $ac_count -gt 10 && break
7207 done
7208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7209esac
7210
7211 $ac_path_SED_found && break 3
7212 done
7213 done
7214 done
7215IFS=$as_save_IFS
7216 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007217 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007218 fi
7219else
7220 ac_cv_path_SED=$SED
7221fi
7222
7223fi
7224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7225$as_echo "$ac_cv_path_SED" >&6; }
7226 SED="$ac_cv_path_SED"
7227 rm -f conftest.sed
7228
7229test -z "$SED" && SED=sed
7230Xsed="$SED -e 1s/^X//"
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7243$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007244if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007245 $as_echo_n "(cached) " >&6
7246else
7247 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7248 then ac_cv_path_FGREP="$GREP -F"
7249 else
7250 if test -z "$FGREP"; then
7251 ac_path_FGREP_found=false
7252 # Loop through the user's path and test for each of PROGNAME-LIST
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7255do
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_prog in fgrep; do
7259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7261 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7262# Check for GNU ac_path_FGREP and select it if it is found.
7263 # Check for GNU $ac_path_FGREP
7264case `"$ac_path_FGREP" --version 2>&1` in
7265*GNU*)
7266 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7267*)
7268 ac_count=0
7269 $as_echo_n 0123456789 >"conftest.in"
7270 while :
7271 do
7272 cat "conftest.in" "conftest.in" >"conftest.tmp"
7273 mv "conftest.tmp" "conftest.in"
7274 cp "conftest.in" "conftest.nl"
7275 $as_echo 'FGREP' >> "conftest.nl"
7276 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7277 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7278 as_fn_arith $ac_count + 1 && ac_count=$as_val
7279 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7280 # Best one so far, save it but keep looking for a better one
7281 ac_cv_path_FGREP="$ac_path_FGREP"
7282 ac_path_FGREP_max=$ac_count
7283 fi
7284 # 10*(2^10) chars as input seems more than enough
7285 test $ac_count -gt 10 && break
7286 done
7287 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7288esac
7289
7290 $ac_path_FGREP_found && break 3
7291 done
7292 done
7293 done
7294IFS=$as_save_IFS
7295 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007296 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007297 fi
7298else
7299 ac_cv_path_FGREP=$FGREP
7300fi
7301
7302 fi
7303fi
7304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7305$as_echo "$ac_cv_path_FGREP" >&6; }
7306 FGREP="$ac_cv_path_FGREP"
7307
7308
7309test -z "$GREP" && GREP=grep
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
cristy0c60a692010-11-04 01:09:47 +00007327ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7328ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7329ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7330
7331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7332$as_echo_n "checking how to print strings... " >&6; }
7333# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007334if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007335 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7336 ECHO='print -r --'
7337elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7338 ECHO='printf %s\n'
7339else
7340 # Use this function as a fallback that always works.
7341 func_fallback_echo ()
7342 {
7343 eval 'cat <<_LTECHO_EOF
7344$1
7345_LTECHO_EOF'
7346 }
7347 ECHO='func_fallback_echo'
7348fi
7349
7350# func_echo_all arg...
7351# Invoke $ECHO with all args, space-separated.
7352func_echo_all ()
7353{
7354 $ECHO ""
7355}
7356
7357case "$ECHO" in
7358 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7359$as_echo "printf" >&6; } ;;
7360 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7361$as_echo "print -r" >&6; } ;;
7362 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7363$as_echo "cat" >&6; } ;;
7364esac
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
cristy73bd4a52010-10-05 11:24:23 +00007379
7380
7381# Check whether --with-gnu-ld was given.
7382if test "${with_gnu_ld+set}" = set; then :
7383 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7384else
7385 with_gnu_ld=no
7386fi
7387
7388ac_prog=ld
7389if test "$GCC" = yes; then
7390 # Check if gcc -print-prog-name=ld gives a path.
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7392$as_echo_n "checking for ld used by $CC... " >&6; }
7393 case $host in
7394 *-*-mingw*)
7395 # gcc leaves a trailing carriage return which upsets mingw
7396 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7397 *)
7398 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7399 esac
7400 case $ac_prog in
7401 # Accept absolute paths.
7402 [\\/]* | ?:[\\/]*)
7403 re_direlt='/[^/][^/]*/\.\./'
7404 # Canonicalize the pathname of ld
7405 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7406 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7407 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7408 done
7409 test -z "$LD" && LD="$ac_prog"
7410 ;;
7411 "")
7412 # If it fails, then pretend we aren't using GCC.
7413 ac_prog=ld
7414 ;;
7415 *)
7416 # If it is relative, then search for the first ld in PATH.
7417 with_gnu_ld=unknown
7418 ;;
7419 esac
7420elif test "$with_gnu_ld" = yes; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7422$as_echo_n "checking for GNU ld... " >&6; }
7423else
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7425$as_echo_n "checking for non-GNU ld... " >&6; }
7426fi
cristyda16f162011-02-19 23:52:17 +00007427if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007428 $as_echo_n "(cached) " >&6
7429else
7430 if test -z "$LD"; then
7431 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7432 for ac_dir in $PATH; do
7433 IFS="$lt_save_ifs"
7434 test -z "$ac_dir" && ac_dir=.
7435 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7436 lt_cv_path_LD="$ac_dir/$ac_prog"
7437 # Check to see if the program is GNU ld. I'd rather use --version,
7438 # but apparently some variants of GNU ld only accept -v.
7439 # Break only if it was the GNU/non-GNU ld that we prefer.
7440 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7441 *GNU* | *'with BFD'*)
7442 test "$with_gnu_ld" != no && break
7443 ;;
7444 *)
7445 test "$with_gnu_ld" != yes && break
7446 ;;
7447 esac
7448 fi
7449 done
7450 IFS="$lt_save_ifs"
7451else
7452 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7453fi
7454fi
7455
7456LD="$lt_cv_path_LD"
7457if test -n "$LD"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7459$as_echo "$LD" >&6; }
7460else
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462$as_echo "no" >&6; }
7463fi
cristy98dddb52010-11-04 00:30:15 +00007464test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7466$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007467if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007468 $as_echo_n "(cached) " >&6
7469else
7470 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7471case `$LD -v 2>&1 </dev/null` in
7472*GNU* | *'with BFD'*)
7473 lt_cv_prog_gnu_ld=yes
7474 ;;
7475*)
7476 lt_cv_prog_gnu_ld=no
7477 ;;
7478esac
7479fi
7480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7481$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7482with_gnu_ld=$lt_cv_prog_gnu_ld
7483
7484
7485
7486
7487
7488
7489
7490
7491
cristy3ed852e2009-09-05 21:47:34 +00007492
cristy837d6dc2010-02-27 01:16:57 +00007493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7494$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007495if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007496 $as_echo_n "(cached) " >&6
7497else
7498 ac_cv_prog_cc_c99=no
7499ac_save_CC=$CC
7500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501/* end confdefs.h. */
7502#include <stdarg.h>
7503#include <stdbool.h>
7504#include <stdlib.h>
7505#include <wchar.h>
7506#include <stdio.h>
7507
7508// Check varargs macros. These examples are taken from C99 6.10.3.5.
7509#define debug(...) fprintf (stderr, __VA_ARGS__)
7510#define showlist(...) puts (#__VA_ARGS__)
7511#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7512static void
7513test_varargs_macros (void)
7514{
7515 int x = 1234;
7516 int y = 5678;
7517 debug ("Flag");
7518 debug ("X = %d\n", x);
7519 showlist (The first, second, and third items.);
7520 report (x>y, "x is %d but y is %d", x, y);
7521}
7522
7523// Check long long types.
7524#define BIG64 18446744073709551615ull
7525#define BIG32 4294967295ul
7526#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7527#if !BIG_OK
7528 your preprocessor is broken;
7529#endif
7530#if BIG_OK
7531#else
7532 your preprocessor is broken;
7533#endif
7534static long long int bignum = -9223372036854775807LL;
7535static unsigned long long int ubignum = BIG64;
7536
7537struct incomplete_array
7538{
7539 int datasize;
7540 double data[];
7541};
7542
7543struct named_init {
7544 int number;
7545 const wchar_t *name;
7546 double average;
7547};
7548
7549typedef const char *ccp;
7550
7551static inline int
7552test_restrict (ccp restrict text)
7553{
7554 // See if C++-style comments work.
7555 // Iterate through items via the restricted pointer.
7556 // Also check for declarations in for loops.
7557 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7558 continue;
7559 return 0;
7560}
7561
7562// Check varargs and va_copy.
7563static void
7564test_varargs (const char *format, ...)
7565{
7566 va_list args;
7567 va_start (args, format);
7568 va_list args_copy;
7569 va_copy (args_copy, args);
7570
7571 const char *str;
7572 int number;
7573 float fnumber;
7574
7575 while (*format)
7576 {
7577 switch (*format++)
7578 {
7579 case 's': // string
7580 str = va_arg (args_copy, const char *);
7581 break;
7582 case 'd': // int
7583 number = va_arg (args_copy, int);
7584 break;
7585 case 'f': // float
7586 fnumber = va_arg (args_copy, double);
7587 break;
7588 default:
7589 break;
7590 }
7591 }
7592 va_end (args_copy);
7593 va_end (args);
7594}
7595
7596int
7597main ()
7598{
7599
7600 // Check bool.
7601 _Bool success = false;
7602
7603 // Check restrict.
7604 if (test_restrict ("String literal") == 0)
7605 success = true;
7606 char *restrict newvar = "Another string";
7607
7608 // Check varargs.
7609 test_varargs ("s, d' f .", "string", 65, 34.234);
7610 test_varargs_macros ();
7611
7612 // Check flexible array members.
7613 struct incomplete_array *ia =
7614 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7615 ia->datasize = 10;
7616 for (int i = 0; i < ia->datasize; ++i)
7617 ia->data[i] = i * 1.234;
7618
7619 // Check named initializers.
7620 struct named_init ni = {
7621 .number = 34,
7622 .name = L"Test wide string",
7623 .average = 543.34343,
7624 };
7625
7626 ni.number = 58;
7627
7628 int dynamic_array[ni.number];
7629 dynamic_array[ni.number - 1] = 543;
7630
7631 // work around unused variable warnings
7632 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7633 || dynamic_array[ni.number - 1] != 543);
7634
7635 ;
7636 return 0;
7637}
7638_ACEOF
7639for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7640do
7641 CC="$ac_save_CC $ac_arg"
7642 if ac_fn_c_try_compile "$LINENO"; then :
7643 ac_cv_prog_cc_c99=$ac_arg
7644fi
7645rm -f core conftest.err conftest.$ac_objext
7646 test "x$ac_cv_prog_cc_c99" != "xno" && break
7647done
7648rm -f conftest.$ac_ext
7649CC=$ac_save_CC
7650
7651fi
7652# AC_CACHE_VAL
7653case "x$ac_cv_prog_cc_c99" in
7654 x)
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7656$as_echo "none needed" >&6; } ;;
7657 xno)
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7659$as_echo "unsupported" >&6; } ;;
7660 *)
7661 CC="$CC $ac_cv_prog_cc_c99"
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7663$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7664esac
7665if test "x$ac_cv_prog_cc_c99" != xno; then :
7666
7667fi
7668
7669
cristy73bd4a52010-10-05 11:24:23 +00007670if test "x$CC" != xcc; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7672$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7673else
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7675$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7676fi
7677set dummy $CC; ac_cc=`$as_echo "$2" |
7678 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007679if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007680 $as_echo_n "(cached) " >&6
7681else
cristy73bd4a52010-10-05 11:24:23 +00007682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683/* end confdefs.h. */
7684
7685int
7686main ()
7687{
7688
7689 ;
7690 return 0;
7691}
7692_ACEOF
7693# Make sure it works both with $CC and with simple cc.
7694# We do the test twice because some compilers refuse to overwrite an
7695# existing .o file with -o, though they will create one.
7696ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7697rm -f conftest2.*
7698if { { case "(($ac_try" in
7699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700 *) ac_try_echo=$ac_try;;
7701esac
7702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7703$as_echo "$ac_try_echo"; } >&5
7704 (eval "$ac_try") 2>&5
7705 ac_status=$?
7706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7707 test $ac_status = 0; } &&
7708 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7710 *) ac_try_echo=$ac_try;;
7711esac
7712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7713$as_echo "$ac_try_echo"; } >&5
7714 (eval "$ac_try") 2>&5
7715 ac_status=$?
7716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7717 test $ac_status = 0; };
7718then
7719 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7720 if test "x$CC" != xcc; then
7721 # Test first that cc exists at all.
7722 if { ac_try='cc -c conftest.$ac_ext >&5'
7723 { { case "(($ac_try" in
7724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725 *) ac_try_echo=$ac_try;;
7726esac
7727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7728$as_echo "$ac_try_echo"; } >&5
7729 (eval "$ac_try") 2>&5
7730 ac_status=$?
7731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7732 test $ac_status = 0; }; }; then
7733 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7734 rm -f conftest2.*
7735 if { { case "(($ac_try" in
7736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7737 *) ac_try_echo=$ac_try;;
7738esac
7739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7740$as_echo "$ac_try_echo"; } >&5
7741 (eval "$ac_try") 2>&5
7742 ac_status=$?
7743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7744 test $ac_status = 0; } &&
7745 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7747 *) ac_try_echo=$ac_try;;
7748esac
7749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7750$as_echo "$ac_try_echo"; } >&5
7751 (eval "$ac_try") 2>&5
7752 ac_status=$?
7753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7754 test $ac_status = 0; };
7755 then
7756 # cc works too.
7757 :
7758 else
7759 # cc exists but doesn't like -o.
7760 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7761 fi
7762 fi
7763 fi
7764else
7765 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7766fi
7767rm -f core conftest*
7768
7769fi
7770if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7772$as_echo "yes" >&6; }
7773else
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775$as_echo "no" >&6; }
7776
7777$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7778
7779fi
7780
7781# FIXME: we rely on the cache variable name because
7782# there is no other way.
7783set dummy $CC
7784am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7785eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7786if test "$am_t" != yes; then
7787 # Losing compiler, so override with the script.
7788 # FIXME: It is wrong to rewrite CC.
7789 # But if we don't then we get into trouble of one sort or another.
7790 # A longer-term fix would be to have automake use am__CC in this case,
7791 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7792 CC="$am_aux_dir/compile $CC"
7793fi
7794
7795
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7797$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007798if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007799 $as_echo_n "(cached) " >&6
7800else
7801 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007802 ac_ext=c
7803ac_cpp='$CPP $CPPFLAGS'
7804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806ac_compiler_gnu=$ac_cv_c_compiler_gnu
7807
7808 ac_save_CFLAGS="$CFLAGS"
7809for 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" #
7810do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812/* end confdefs.h. */
7813
7814int
7815main ()
7816{
cristy24fc1fe2010-10-23 21:13:01 +00007817
cristy73bd4a52010-10-05 11:24:23 +00007818 ;
7819 return 0;
7820}
7821_ACEOF
7822if ac_fn_c_try_compile "$LINENO"; then :
7823 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7824fi
7825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7826done
7827 CFLAGS="$ac_save_CFLAGS"
7828 ac_ext=c
7829ac_cpp='$CPP $CPPFLAGS'
7830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7832ac_compiler_gnu=$ac_cv_c_compiler_gnu
7833
7834
7835fi
7836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7837$as_echo "$ac_cv_cflags_warn_all" >&6; }
7838case ".$ac_cv_cflags_warn_all" in
7839 .ok|.ok,*) ;;
7840 .|.no|.no,*)
7841 ;;
7842 *)
7843 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7844 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7845 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7846 ac_status=$?
7847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7848 test $ac_status = 0; }
7849 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7850 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7851 ac_status=$?
7852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7853 test $ac_status = 0; }
7854 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7855 fi
7856 ;;
nicolas6237c462010-10-05 06:11:49 +00007857esac
cristy3ed852e2009-09-05 21:47:34 +00007858
cristya0b81c32010-01-22 02:54:33 +00007859
7860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7861$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7862set x ${MAKE-make}
7863ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007864if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007865 $as_echo_n "(cached) " >&6
7866else
7867 cat >conftest.make <<\_ACEOF
7868SHELL = /bin/sh
7869all:
7870 @echo '@@@%%%=$(MAKE)=@@@%%%'
7871_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007872# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007873case `${MAKE-make} -f conftest.make 2>/dev/null` in
7874 *@@@%%%=?*=@@@%%%*)
7875 eval ac_cv_prog_make_${ac_make}_set=yes;;
7876 *)
7877 eval ac_cv_prog_make_${ac_make}_set=no;;
7878esac
7879rm -f conftest.make
7880fi
7881if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7883$as_echo "yes" >&6; }
7884 SET_MAKE=
7885else
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887$as_echo "no" >&6; }
7888 SET_MAKE="MAKE=${MAKE-make}"
7889fi
7890
cristy8b350f62009-11-15 23:12:43 +00007891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007892$as_echo_n "checking whether ln -s works... " >&6; }
7893LN_S=$as_ln_s
7894if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007896$as_echo "yes" >&6; }
7897else
cristy8b350f62009-11-15 23:12:43 +00007898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007899$as_echo "no, using $LN_S" >&6; }
7900fi
7901
cristy73bd4a52010-10-05 11:24:23 +00007902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7903$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7904
7905# Check whether --with-dmalloc was given.
7906if test "${with_dmalloc+set}" = set; then :
7907 withval=$with_dmalloc; if test "$withval" = yes; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7909$as_echo "yes" >&6; }
7910
7911$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7912
7913 LIBS="$LIBS -ldmalloc"
7914 LDFLAGS="$LDFLAGS -g"
7915else
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917$as_echo "no" >&6; }
7918fi
7919else
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921$as_echo "no" >&6; }
7922fi
7923
7924
7925
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7927$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007928if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007929 $as_echo_n "(cached) " >&6
7930else
7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932/* end confdefs.h. */
7933#include <stdlib.h>
7934 static void foo(void) __attribute__ ((unused));
7935 static void
7936 foo(void) {
7937 exit(1);
7938 }
7939
7940int
7941main ()
7942{
7943
7944 ;
7945 return 0;
7946}
7947_ACEOF
7948if ac_fn_c_try_compile "$LINENO"; then :
7949 ax_cv___attribute__=yes
7950else
7951 ax_cv___attribute__=no
7952
7953fi
7954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7955
7956fi
7957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7958$as_echo "$ax_cv___attribute__" >&6; }
7959 if test "$ax_cv___attribute__" = "yes"; then
7960
7961$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7962
7963 fi
7964
7965
7966
7967if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7968 if test -n "$ac_tool_prefix"; then
7969 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7970set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007973if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007974 $as_echo_n "(cached) " >&6
7975else
7976 case $PKG_CONFIG in
7977 [\\/]* | ?:[\\/]*)
7978 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7979 ;;
7980 *)
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982for as_dir in $PATH
7983do
7984 IFS=$as_save_IFS
7985 test -z "$as_dir" && as_dir=.
7986 for ac_exec_ext in '' $ac_executable_extensions; do
7987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7988 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7990 break 2
7991 fi
7992done
7993 done
7994IFS=$as_save_IFS
7995
7996 ;;
7997esac
7998fi
7999PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8000if test -n "$PKG_CONFIG"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8002$as_echo "$PKG_CONFIG" >&6; }
8003else
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005$as_echo "no" >&6; }
8006fi
8007
8008
8009fi
8010if test -z "$ac_cv_path_PKG_CONFIG"; then
8011 ac_pt_PKG_CONFIG=$PKG_CONFIG
8012 # Extract the first word of "pkg-config", so it can be a program name with args.
8013set dummy pkg-config; ac_word=$2
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008016if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008017 $as_echo_n "(cached) " >&6
8018else
8019 case $ac_pt_PKG_CONFIG in
8020 [\\/]* | ?:[\\/]*)
8021 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8022 ;;
8023 *)
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025for as_dir in $PATH
8026do
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8031 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 break 2
8034 fi
8035done
8036 done
8037IFS=$as_save_IFS
8038
8039 ;;
8040esac
8041fi
8042ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8043if test -n "$ac_pt_PKG_CONFIG"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8045$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8046else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048$as_echo "no" >&6; }
8049fi
8050
8051 if test "x$ac_pt_PKG_CONFIG" = x; then
8052 PKG_CONFIG=""
8053 else
8054 case $cross_compiling:$ac_tool_warned in
8055yes:)
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8058ac_tool_warned=yes ;;
8059esac
8060 PKG_CONFIG=$ac_pt_PKG_CONFIG
8061 fi
8062else
8063 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8064fi
8065
8066fi
8067if test -n "$PKG_CONFIG"; then
8068 _pkg_min_version=0.9.0
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8070$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8071 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8073$as_echo "yes" >&6; }
8074 else
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8076$as_echo "no" >&6; }
8077 PKG_CONFIG=""
8078 fi
8079
8080fi
cristy3ed852e2009-09-05 21:47:34 +00008081
8082#
cristy3ed852e2009-09-05 21:47:34 +00008083# Enable run-time checking.
8084#
8085# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008086if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008087 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8088else
8089 enable_bounds_checking='no'
8090fi
8091
8092
8093if test "$enable_bounds_checking" = yes; then
8094
cristy8b350f62009-11-15 23:12:43 +00008095$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008096
8097fi
8098
8099#
8100# Tests for Windows
8101#
8102
8103
cristy73bd4a52010-10-05 11:24:23 +00008104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8105$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008106if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008107 $as_echo_n "(cached) " >&6
8108else
8109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110/* end confdefs.h. */
8111
8112int
8113main ()
8114{
8115#ifndef _MSC_VER
8116 choke me
8117#endif
8118
8119 ;
8120 return 0;
8121}
8122_ACEOF
8123if ac_fn_c_try_compile "$LINENO"; then :
8124 ax_compiler_ms=yes
8125else
8126 ax_compiler_ms=no
8127fi
8128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8129ax_cv_c_compiler_ms=$ax_compiler_ms
8130
8131fi
8132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8133$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008134
8135GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008136native_win32_build='no'
8137cygwin_build='no'
8138case "${host_os}" in
8139 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008140 cygwin_build='yes'
8141 GDI32_LIBS='-lgdi32'
8142 ;;
8143 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008144 native_win32_build='yes'
8145 GDI32_LIBS='-lgdi32'
8146 ;;
8147esac
8148if test "${GDI32_LIBS}x" != 'x'; then
8149
cristy8b350f62009-11-15 23:12:43 +00008150$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008151
8152fi
8153
cristy73bd4a52010-10-05 11:24:23 +00008154 if test "${GDI32_LIBS}x" != 'x' ; then
8155 WINGDI32_DELEGATE_TRUE=
8156 WINGDI32_DELEGATE_FALSE='#'
8157else
8158 WINGDI32_DELEGATE_TRUE='#'
8159 WINGDI32_DELEGATE_FALSE=
8160fi
8161
8162 if test "${native_win32_build}" = 'yes' ; then
8163 WIN32_NATIVE_BUILD_TRUE=
8164 WIN32_NATIVE_BUILD_FALSE='#'
8165else
8166 WIN32_NATIVE_BUILD_TRUE='#'
8167 WIN32_NATIVE_BUILD_FALSE=
8168fi
8169
8170 if test "${cygwin_build}" = 'yes' ; then
8171 CYGWIN_BUILD_TRUE=
8172 CYGWIN_BUILD_FALSE='#'
8173else
8174 CYGWIN_BUILD_TRUE='#'
8175 CYGWIN_BUILD_FALSE=
8176fi
8177
8178 if test "x${CC}" = 'xcl.exe' ; then
8179 USING_CL_TRUE=
8180 USING_CL_FALSE='#'
8181else
8182 USING_CL_TRUE='#'
8183 USING_CL_FALSE=
8184fi
8185
cristy3ed852e2009-09-05 21:47:34 +00008186
8187WinPathScript="${srcdirfull}/winpath.sh"
8188
8189
8190#
8191# Compiler flags tweaks
8192#
8193if test "${GCC}" != "yes"; then
8194 case "${host}" in
8195 *-*-hpux* )
8196 # aCC: HP ANSI C++ B3910B A.03.34
8197 CFLAGS="${CFLAGS} -Wp,-H30000"
8198 if test -n "${CXXFLAGS}"; then
8199 CXXFLAGS='-AA'
8200 else
8201 CXXFLAGS="${CXXFLAGS} -AA"
8202 fi
8203 ;;
8204 *-dec-osf5.* )
8205 # Compaq alphaev68-dec-osf5.1 compiler
8206 if test -n "${CXXFLAGS}"; then
8207 CXXFLAGS='-std strict_ansi -noimplicit_include'
8208 else
8209 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8210 fi
8211 esac
8212fi
8213
8214# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008216$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008217if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008218 $as_echo_n "(cached) " >&6
8219else
8220
8221im_cv_ld_lazyload='none'
8222case "${host}" in
8223 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8224 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8225 im_cv_ld_lazyload='-Wl,-zlazyload'
8226 fi
8227 ;;
8228esac
8229
8230fi
cristy8b350f62009-11-15 23:12:43 +00008231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008232$as_echo "$im_cv_ld_lazyload" >&6; }
8233if test "${im_cv_ld_lazyload}" != 'none' ; then
8234 if test -z "${LDFLAGS}" ; then
8235 LDFLAGS="${im_cv_ld_lazyload}"
8236 else
8237 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8238 fi
8239fi
8240
8241case "$host" in
8242*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008243 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008244if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008245 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8246else
8247 build_osxuniversal=no
8248fi
8249
8250
8251 if test "${build_osxuniversal}" != no ; then
8252 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008253 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008254Please re-run configure with these options:
8255 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008256 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008257 fi
8258 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8259 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8260 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8261 fi
8262 ;;
8263esac
8264
cristy0151ae12011-10-28 16:32:29 +00008265#
8266# ARCH specific include directory
8267#
8268
cristy670aa3c2011-11-03 00:54:00 +00008269# Check whether --with-includearch-dir was given.
8270if test "${with_includearch_dir+set}" = set; then :
8271 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008272else
cristy670aa3c2011-11-03 00:54:00 +00008273 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008274fi
8275
8276
cristy670aa3c2011-11-03 00:54:00 +00008277eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008278
cristy0151ae12011-10-28 16:32:29 +00008279
8280#
8281# ARCH specific configuration directory
8282#
8283
cristy670aa3c2011-11-03 00:54:00 +00008284# Check whether --with-sharearch-dir was given.
8285if test "${with_sharearch_dir+set}" = set; then :
8286 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008287else
cristy408ebcd2011-11-14 01:36:57 +00008288 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008289fi
8290
8291
cristy670aa3c2011-11-03 00:54:00 +00008292eval "eval SHAREARCH_DIR=$sharearch_dir"
8293SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008294
cristy0151ae12011-10-28 16:32:29 +00008295
8296#
cristy3ed852e2009-09-05 21:47:34 +00008297# Enable support for threads
8298
8299# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008300if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008301 withval=$with_threads; with_threads=$withval
8302else
8303 with_threads='yes'
8304fi
8305
8306
8307have_threads=no
8308if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008309
8310
cristy73bd4a52010-10-05 11:24:23 +00008311ac_ext=c
8312ac_cpp='$CPP $CPPFLAGS'
8313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8315ac_compiler_gnu=$ac_cv_c_compiler_gnu
8316
8317ax_pthread_ok=no
8318
8319# We used to check for pthread.h first, but this fails if pthread.h
8320# requires special compiler flags (e.g. on True64 or Sequent).
8321# It gets checked for in the link test anyway.
8322
8323# First of all, check if the user has set any of the PTHREAD_LIBS,
8324# etcetera environment variables, and if threads linking works using
8325# them:
8326if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8327 save_CFLAGS="$CFLAGS"
8328 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8329 save_LIBS="$LIBS"
8330 LIBS="$PTHREAD_LIBS $LIBS"
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8332$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334/* end confdefs.h. */
8335
8336/* Override any GCC internal prototype to avoid an error.
8337 Use char because int might match the return type of a GCC
8338 builtin and then its argument prototype would still apply. */
8339#ifdef __cplusplus
8340extern "C"
8341#endif
8342char pthread_join ();
8343int
8344main ()
8345{
8346return pthread_join ();
8347 ;
8348 return 0;
8349}
8350_ACEOF
8351if ac_fn_c_try_link "$LINENO"; then :
8352 ax_pthread_ok=yes
8353fi
8354rm -f core conftest.err conftest.$ac_objext \
8355 conftest$ac_exeext conftest.$ac_ext
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8357$as_echo "$ax_pthread_ok" >&6; }
8358 if test x"$ax_pthread_ok" = xno; then
8359 PTHREAD_LIBS=""
8360 PTHREAD_CFLAGS=""
8361 fi
8362 LIBS="$save_LIBS"
8363 CFLAGS="$save_CFLAGS"
8364fi
8365
8366# We must check for the threads library under a number of different
8367# names; the ordering is very important because some systems
8368# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8369# libraries is broken (non-POSIX).
8370
8371# Create a list of thread flags to try. Items starting with a "-" are
8372# C compiler flags, and other items are library names, except for "none"
8373# which indicates that we try without any flags at all, and "pthread-config"
8374# which is a program returning the flags for the Pth emulation library.
8375
8376ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8377
8378# The ordering *is* (sometimes) important. Some notes on the
8379# individual items follow:
8380
8381# pthreads: AIX (must check this before -lpthread)
8382# none: in case threads are in libc; should be tried before -Kthread and
8383# other compiler flags to prevent continual compiler warnings
8384# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8385# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8386# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8387# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8388# -pthreads: Solaris/gcc
8389# -mthreads: Mingw32/gcc, Lynx/gcc
8390# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8391# doesn't hurt to check since this sometimes defines pthreads too;
8392# also defines -D_REENTRANT)
8393# ... -mt is also the pthreads flag for HP/aCC
8394# pthread: Linux, etcetera
8395# --thread-safe: KAI C++
8396# pthread-config: use pthread-config program (for GNU Pth library)
8397
8398case "${host_cpu}-${host_os}" in
8399 *solaris*)
8400
8401 # On Solaris (at least, for some versions), libc contains stubbed
8402 # (non-functional) versions of the pthreads routines, so link-based
8403 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8404 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8405 # a function called by this macro, so we could check for that, but
8406 # who knows whether they'll stub that too in a future libc.) So,
8407 # we'll just look for -pthreads and -lpthread first:
8408
8409 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8410 ;;
8411
cristya316db12011-10-24 00:49:45 +00008412 *-darwin*)
8413 ax_pthread_flags="-pthread $ax_pthread_flags"
8414 ;;
cristy73bd4a52010-10-05 11:24:23 +00008415esac
8416
8417if test x"$ax_pthread_ok" = xno; then
8418for flag in $ax_pthread_flags; do
8419
8420 case $flag in
8421 none)
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8423$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8424 ;;
8425
8426 -*)
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8428$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8429 PTHREAD_CFLAGS="$flag"
8430 ;;
8431
cristya316db12011-10-24 00:49:45 +00008432 pthread-config)
8433 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008434set dummy pthread-config; ac_word=$2
8435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8436$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008437if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008438 $as_echo_n "(cached) " >&6
8439else
8440 if test -n "$ax_pthread_config"; then
8441 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8442else
8443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444for as_dir in $PATH
8445do
8446 IFS=$as_save_IFS
8447 test -z "$as_dir" && as_dir=.
8448 for ac_exec_ext in '' $ac_executable_extensions; do
8449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8450 ac_cv_prog_ax_pthread_config="yes"
8451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8452 break 2
8453 fi
8454done
8455 done
8456IFS=$as_save_IFS
8457
8458 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8459fi
8460fi
8461ax_pthread_config=$ac_cv_prog_ax_pthread_config
8462if test -n "$ax_pthread_config"; then
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8464$as_echo "$ax_pthread_config" >&6; }
8465else
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467$as_echo "no" >&6; }
8468fi
8469
8470
cristya316db12011-10-24 00:49:45 +00008471 if test x"$ax_pthread_config" = xno; then continue; fi
8472 PTHREAD_CFLAGS="`pthread-config --cflags`"
8473 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8474 ;;
cristy73bd4a52010-10-05 11:24:23 +00008475
8476 *)
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8478$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8479 PTHREAD_LIBS="-l$flag"
8480 ;;
8481 esac
8482
8483 save_LIBS="$LIBS"
8484 save_CFLAGS="$CFLAGS"
8485 LIBS="$PTHREAD_LIBS $LIBS"
8486 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8487
8488 # Check for various functions. We must include pthread.h,
8489 # since some functions may be macros. (On the Sequent, we
8490 # need a special flag -Kthread to make this header compile.)
8491 # We check for pthread_join because it is in -lpthread on IRIX
8492 # while pthread_create is in libc. We check for pthread_attr_init
8493 # due to DEC craziness with -lpthreads. We check for
8494 # pthread_cleanup_push because it is one of the few pthread
8495 # functions on Solaris that doesn't have a non-functional libc stub.
8496 # We try pthread_create on general principles.
8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498/* end confdefs.h. */
8499#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008500 static void routine(void *a) { a = 0; }
8501 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008502int
8503main ()
8504{
8505pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008506 pthread_create(&th, 0, start_routine, 0);
8507 pthread_join(th, 0);
8508 pthread_attr_init(&attr);
8509 pthread_cleanup_push(routine, 0);
8510 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008511 ;
8512 return 0;
8513}
8514_ACEOF
8515if ac_fn_c_try_link "$LINENO"; then :
8516 ax_pthread_ok=yes
8517fi
8518rm -f core conftest.err conftest.$ac_objext \
8519 conftest$ac_exeext conftest.$ac_ext
8520
8521 LIBS="$save_LIBS"
8522 CFLAGS="$save_CFLAGS"
8523
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8525$as_echo "$ax_pthread_ok" >&6; }
8526 if test "x$ax_pthread_ok" = xyes; then
8527 break;
8528 fi
8529
8530 PTHREAD_LIBS=""
8531 PTHREAD_CFLAGS=""
8532done
8533fi
8534
8535# Various other checks:
8536if test "x$ax_pthread_ok" = xyes; then
8537 save_LIBS="$LIBS"
8538 LIBS="$PTHREAD_LIBS $LIBS"
8539 save_CFLAGS="$CFLAGS"
8540 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8541
8542 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00008543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00008544$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00008545 attr_name=unknown
8546 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00008548/* end confdefs.h. */
8549#include <pthread.h>
8550int
8551main ()
8552{
cristya316db12011-10-24 00:49:45 +00008553int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008554 ;
8555 return 0;
8556}
8557_ACEOF
8558if ac_fn_c_try_link "$LINENO"; then :
8559 attr_name=$attr; break
8560fi
8561rm -f core conftest.err conftest.$ac_objext \
8562 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00008563 done
cristy73bd4a52010-10-05 11:24:23 +00008564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8565$as_echo "$attr_name" >&6; }
8566 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8567
8568cat >>confdefs.h <<_ACEOF
8569#define PTHREAD_CREATE_JOINABLE $attr_name
8570_ACEOF
8571
8572 fi
8573
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8575$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8576 flag=no
8577 case "${host_cpu}-${host_os}" in
8578 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8579 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8580 esac
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8582$as_echo "${flag}" >&6; }
8583 if test "x$flag" != xno; then
8584 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8585 fi
8586
cristya316db12011-10-24 00:49:45 +00008587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8588$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8589if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8590 $as_echo_n "(cached) " >&6
8591else
8592
8593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594/* end confdefs.h. */
8595
8596 #include <pthread.h>
8597int
8598main ()
8599{
8600int i = PTHREAD_PRIO_INHERIT;
8601 ;
8602 return 0;
8603}
8604_ACEOF
8605if ac_fn_c_try_link "$LINENO"; then :
8606 ax_cv_PTHREAD_PRIO_INHERIT=yes
8607else
8608 ax_cv_PTHREAD_PRIO_INHERIT=no
8609fi
8610rm -f core conftest.err conftest.$ac_objext \
8611 conftest$ac_exeext conftest.$ac_ext
8612
8613fi
8614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8615$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8616 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
8617
8618$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8619
8620fi
8621
cristy73bd4a52010-10-05 11:24:23 +00008622 LIBS="$save_LIBS"
8623 CFLAGS="$save_CFLAGS"
8624
8625 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00008626 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00008627 for ac_prog in xlc_r cc_r
8628do
8629 # Extract the first word of "$ac_prog", so it can be a program name with args.
8630set dummy $ac_prog; ac_word=$2
8631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8632$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008633if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008634 $as_echo_n "(cached) " >&6
8635else
8636 if test -n "$PTHREAD_CC"; then
8637 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8638else
8639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640for as_dir in $PATH
8641do
8642 IFS=$as_save_IFS
8643 test -z "$as_dir" && as_dir=.
8644 for ac_exec_ext in '' $ac_executable_extensions; do
8645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8646 ac_cv_prog_PTHREAD_CC="$ac_prog"
8647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8648 break 2
8649 fi
8650done
8651 done
8652IFS=$as_save_IFS
8653
8654fi
8655fi
8656PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8657if test -n "$PTHREAD_CC"; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8659$as_echo "$PTHREAD_CC" >&6; }
8660else
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8662$as_echo "no" >&6; }
8663fi
8664
8665
8666 test -n "$PTHREAD_CC" && break
8667done
8668test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8669
8670 else
8671 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00008672 fi
cristy73bd4a52010-10-05 11:24:23 +00008673else
8674 PTHREAD_CC="$CC"
8675fi
8676
8677
8678
8679
8680
8681# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8682if test x"$ax_pthread_ok" = xyes; then
8683
8684$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8685
8686 :
8687else
8688 ax_pthread_ok=no
8689
8690fi
8691ac_ext=c
8692ac_cpp='$CPP $CPPFLAGS'
8693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8695ac_compiler_gnu=$ac_cv_c_compiler_gnu
8696
8697
cristy7acf8fb2010-09-23 19:58:53 +00008698 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008699 have_threads=yes
8700 DEF_THREAD="$PTHREAD_CFLAGS"
8701 CFLAGS="$CFLAGS $DEF_THREAD"
8702 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8703 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008704 { $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 +00008705$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8706 CC="$PTHREAD_CC"
8707 fi
cristy55bf91c2010-09-24 00:29:41 +00008708
8709$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8710
cristy3ed852e2009-09-05 21:47:34 +00008711 fi
8712fi
8713
8714# Enable support for OpenMP
8715if test "$have_threads" != 'yes'; then
8716 ac_cv_prog_c_openmp=unsupported
8717fi
8718
8719 OPENMP_CFLAGS=
8720 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008721if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008722 enableval=$enable_openmp;
8723fi
8724
8725 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008727$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008728if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008729 $as_echo_n "(cached) " >&6
8730else
cristy8b350f62009-11-15 23:12:43 +00008731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008733
8734#ifndef _OPENMP
8735 choke me
8736#endif
8737#include <omp.h>
8738int main () { return omp_get_num_threads (); }
8739
8740_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008741if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008742 ac_cv_prog_c_openmp='none needed'
8743else
cristy8b350f62009-11-15 23:12:43 +00008744 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008745 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8746 ac_save_CFLAGS=$CFLAGS
8747 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008750
8751#ifndef _OPENMP
8752 choke me
8753#endif
8754#include <omp.h>
8755int main () { return omp_get_num_threads (); }
8756
8757_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008758if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008759 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008760fi
cristy8b350f62009-11-15 23:12:43 +00008761rm -f core conftest.err conftest.$ac_objext \
8762 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008763 CFLAGS=$ac_save_CFLAGS
8764 if test "$ac_cv_prog_c_openmp" != unsupported; then
8765 break
8766 fi
8767 done
8768fi
cristy8b350f62009-11-15 23:12:43 +00008769rm -f core conftest.err conftest.$ac_objext \
8770 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008771fi
cristy8b350f62009-11-15 23:12:43 +00008772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008773$as_echo "$ac_cv_prog_c_openmp" >&6; }
8774 case $ac_cv_prog_c_openmp in #(
8775 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008776 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008777 *)
cristy8b350f62009-11-15 23:12:43 +00008778 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008779 esac
8780 fi
8781
8782
8783CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8784MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8785
cristy391f1ce2010-09-09 17:23:28 +00008786if test "$enable_openmp" != no; then
8787 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8788 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8789 fi
8790fi
cristy3ed852e2009-09-05 21:47:34 +00008791
cristy736173a2009-09-20 21:18:22 +00008792# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008793
8794
cristy73bd4a52010-10-05 11:24:23 +00008795ac_ext=c
8796ac_cpp='$CPP $CPPFLAGS'
8797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8799ac_compiler_gnu=$ac_cv_c_compiler_gnu
8800
8801ax_pthread_ok=no
8802
8803# We used to check for pthread.h first, but this fails if pthread.h
8804# requires special compiler flags (e.g. on True64 or Sequent).
8805# It gets checked for in the link test anyway.
8806
8807# First of all, check if the user has set any of the PTHREAD_LIBS,
8808# etcetera environment variables, and if threads linking works using
8809# them:
8810if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8811 save_CFLAGS="$CFLAGS"
8812 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8813 save_LIBS="$LIBS"
8814 LIBS="$PTHREAD_LIBS $LIBS"
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8816$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8818/* end confdefs.h. */
8819
8820/* Override any GCC internal prototype to avoid an error.
8821 Use char because int might match the return type of a GCC
8822 builtin and then its argument prototype would still apply. */
8823#ifdef __cplusplus
8824extern "C"
8825#endif
8826char pthread_join ();
8827int
8828main ()
8829{
8830return pthread_join ();
8831 ;
8832 return 0;
8833}
8834_ACEOF
8835if ac_fn_c_try_link "$LINENO"; then :
8836 ax_pthread_ok=yes
8837fi
8838rm -f core conftest.err conftest.$ac_objext \
8839 conftest$ac_exeext conftest.$ac_ext
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8841$as_echo "$ax_pthread_ok" >&6; }
8842 if test x"$ax_pthread_ok" = xno; then
8843 PTHREAD_LIBS=""
8844 PTHREAD_CFLAGS=""
8845 fi
8846 LIBS="$save_LIBS"
8847 CFLAGS="$save_CFLAGS"
8848fi
8849
8850# We must check for the threads library under a number of different
8851# names; the ordering is very important because some systems
8852# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8853# libraries is broken (non-POSIX).
8854
8855# Create a list of thread flags to try. Items starting with a "-" are
8856# C compiler flags, and other items are library names, except for "none"
8857# which indicates that we try without any flags at all, and "pthread-config"
8858# which is a program returning the flags for the Pth emulation library.
8859
8860ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8861
8862# The ordering *is* (sometimes) important. Some notes on the
8863# individual items follow:
8864
8865# pthreads: AIX (must check this before -lpthread)
8866# none: in case threads are in libc; should be tried before -Kthread and
8867# other compiler flags to prevent continual compiler warnings
8868# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8869# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8870# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8871# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8872# -pthreads: Solaris/gcc
8873# -mthreads: Mingw32/gcc, Lynx/gcc
8874# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8875# doesn't hurt to check since this sometimes defines pthreads too;
8876# also defines -D_REENTRANT)
8877# ... -mt is also the pthreads flag for HP/aCC
8878# pthread: Linux, etcetera
8879# --thread-safe: KAI C++
8880# pthread-config: use pthread-config program (for GNU Pth library)
8881
8882case "${host_cpu}-${host_os}" in
8883 *solaris*)
8884
8885 # On Solaris (at least, for some versions), libc contains stubbed
8886 # (non-functional) versions of the pthreads routines, so link-based
8887 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8888 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8889 # a function called by this macro, so we could check for that, but
8890 # who knows whether they'll stub that too in a future libc.) So,
8891 # we'll just look for -pthreads and -lpthread first:
8892
8893 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8894 ;;
8895
cristya316db12011-10-24 00:49:45 +00008896 *-darwin*)
8897 ax_pthread_flags="-pthread $ax_pthread_flags"
8898 ;;
cristy73bd4a52010-10-05 11:24:23 +00008899esac
8900
8901if test x"$ax_pthread_ok" = xno; then
8902for flag in $ax_pthread_flags; do
8903
8904 case $flag in
8905 none)
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8907$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8908 ;;
8909
8910 -*)
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8912$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8913 PTHREAD_CFLAGS="$flag"
8914 ;;
8915
cristya316db12011-10-24 00:49:45 +00008916 pthread-config)
8917 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008918set dummy pthread-config; ac_word=$2
8919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8920$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008921if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008922 $as_echo_n "(cached) " >&6
8923else
8924 if test -n "$ax_pthread_config"; then
8925 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8926else
8927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928for as_dir in $PATH
8929do
8930 IFS=$as_save_IFS
8931 test -z "$as_dir" && as_dir=.
8932 for ac_exec_ext in '' $ac_executable_extensions; do
8933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8934 ac_cv_prog_ax_pthread_config="yes"
8935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8936 break 2
8937 fi
8938done
8939 done
8940IFS=$as_save_IFS
8941
8942 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8943fi
8944fi
8945ax_pthread_config=$ac_cv_prog_ax_pthread_config
8946if test -n "$ax_pthread_config"; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8948$as_echo "$ax_pthread_config" >&6; }
8949else
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951$as_echo "no" >&6; }
8952fi
8953
8954
cristya316db12011-10-24 00:49:45 +00008955 if test x"$ax_pthread_config" = xno; then continue; fi
8956 PTHREAD_CFLAGS="`pthread-config --cflags`"
8957 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8958 ;;
cristy73bd4a52010-10-05 11:24:23 +00008959
8960 *)
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8962$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8963 PTHREAD_LIBS="-l$flag"
8964 ;;
8965 esac
8966
8967 save_LIBS="$LIBS"
8968 save_CFLAGS="$CFLAGS"
8969 LIBS="$PTHREAD_LIBS $LIBS"
8970 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8971
8972 # Check for various functions. We must include pthread.h,
8973 # since some functions may be macros. (On the Sequent, we
8974 # need a special flag -Kthread to make this header compile.)
8975 # We check for pthread_join because it is in -lpthread on IRIX
8976 # while pthread_create is in libc. We check for pthread_attr_init
8977 # due to DEC craziness with -lpthreads. We check for
8978 # pthread_cleanup_push because it is one of the few pthread
8979 # functions on Solaris that doesn't have a non-functional libc stub.
8980 # We try pthread_create on general principles.
8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982/* end confdefs.h. */
8983#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008984 static void routine(void *a) { a = 0; }
8985 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008986int
8987main ()
8988{
8989pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008990 pthread_create(&th, 0, start_routine, 0);
8991 pthread_join(th, 0);
8992 pthread_attr_init(&attr);
8993 pthread_cleanup_push(routine, 0);
8994 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008995 ;
8996 return 0;
8997}
8998_ACEOF
8999if ac_fn_c_try_link "$LINENO"; then :
9000 ax_pthread_ok=yes
9001fi
9002rm -f core conftest.err conftest.$ac_objext \
9003 conftest$ac_exeext conftest.$ac_ext
9004
9005 LIBS="$save_LIBS"
9006 CFLAGS="$save_CFLAGS"
9007
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9009$as_echo "$ax_pthread_ok" >&6; }
9010 if test "x$ax_pthread_ok" = xyes; then
9011 break;
9012 fi
9013
9014 PTHREAD_LIBS=""
9015 PTHREAD_CFLAGS=""
9016done
9017fi
9018
9019# Various other checks:
9020if test "x$ax_pthread_ok" = xyes; then
9021 save_LIBS="$LIBS"
9022 LIBS="$PTHREAD_LIBS $LIBS"
9023 save_CFLAGS="$CFLAGS"
9024 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9025
9026 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009028$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009029 attr_name=unknown
9030 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009032/* end confdefs.h. */
9033#include <pthread.h>
9034int
9035main ()
9036{
cristya316db12011-10-24 00:49:45 +00009037int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009038 ;
9039 return 0;
9040}
9041_ACEOF
9042if ac_fn_c_try_link "$LINENO"; then :
9043 attr_name=$attr; break
9044fi
9045rm -f core conftest.err conftest.$ac_objext \
9046 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009047 done
cristy73bd4a52010-10-05 11:24:23 +00009048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9049$as_echo "$attr_name" >&6; }
9050 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9051
9052cat >>confdefs.h <<_ACEOF
9053#define PTHREAD_CREATE_JOINABLE $attr_name
9054_ACEOF
9055
9056 fi
9057
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9059$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9060 flag=no
9061 case "${host_cpu}-${host_os}" in
9062 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9063 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9064 esac
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9066$as_echo "${flag}" >&6; }
9067 if test "x$flag" != xno; then
9068 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9069 fi
9070
cristya316db12011-10-24 00:49:45 +00009071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9072$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9073if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9074 $as_echo_n "(cached) " >&6
9075else
9076
9077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078/* end confdefs.h. */
9079
9080 #include <pthread.h>
9081int
9082main ()
9083{
9084int i = PTHREAD_PRIO_INHERIT;
9085 ;
9086 return 0;
9087}
9088_ACEOF
9089if ac_fn_c_try_link "$LINENO"; then :
9090 ax_cv_PTHREAD_PRIO_INHERIT=yes
9091else
9092 ax_cv_PTHREAD_PRIO_INHERIT=no
9093fi
9094rm -f core conftest.err conftest.$ac_objext \
9095 conftest$ac_exeext conftest.$ac_ext
9096
9097fi
9098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9099$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9100 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9101
9102$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9103
9104fi
9105
cristy73bd4a52010-10-05 11:24:23 +00009106 LIBS="$save_LIBS"
9107 CFLAGS="$save_CFLAGS"
9108
9109 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009110 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009111 for ac_prog in xlc_r cc_r
9112do
9113 # Extract the first word of "$ac_prog", so it can be a program name with args.
9114set dummy $ac_prog; ac_word=$2
9115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9116$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009117if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009118 $as_echo_n "(cached) " >&6
9119else
9120 if test -n "$PTHREAD_CC"; then
9121 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9122else
9123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9124for as_dir in $PATH
9125do
9126 IFS=$as_save_IFS
9127 test -z "$as_dir" && as_dir=.
9128 for ac_exec_ext in '' $ac_executable_extensions; do
9129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9130 ac_cv_prog_PTHREAD_CC="$ac_prog"
9131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9132 break 2
9133 fi
9134done
9135 done
9136IFS=$as_save_IFS
9137
9138fi
9139fi
9140PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9141if test -n "$PTHREAD_CC"; then
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9143$as_echo "$PTHREAD_CC" >&6; }
9144else
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9146$as_echo "no" >&6; }
9147fi
9148
9149
9150 test -n "$PTHREAD_CC" && break
9151done
9152test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9153
9154 else
9155 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009156 fi
cristy73bd4a52010-10-05 11:24:23 +00009157else
9158 PTHREAD_CC="$CC"
9159fi
9160
9161
9162
9163
9164
9165# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9166if test x"$ax_pthread_ok" = xyes; then
9167
9168$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9169
9170 :
9171else
9172 ax_pthread_ok=no
9173
9174fi
9175ac_ext=c
9176ac_cpp='$CPP $CPPFLAGS'
9177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9179ac_compiler_gnu=$ac_cv_c_compiler_gnu
9180
9181
9182
9183# Check whether --enable-opencl was given.
9184if test "${enable_opencl+set}" = set; then :
9185 enableval=$enable_opencl; disable_opencl=$enableval
9186else
9187 disable_opencl='yes'
9188fi
9189
9190
9191if test "$disable_opencl" = 'yes'; then
9192 ac_ext=c
9193ac_cpp='$CPP $CPPFLAGS'
9194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9196ac_compiler_gnu=$ac_cv_c_compiler_gnu
9197
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9199$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009200if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009201 $as_echo_n "(cached) " >&6
9202else
9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204/* end confdefs.h. */
9205
9206int
9207main ()
9208{
9209#ifndef _MSC_VER
9210 choke me
9211#endif
9212
9213 ;
9214 return 0;
9215}
9216_ACEOF
9217if ac_fn_c_try_compile "$LINENO"; then :
9218 ax_compiler_ms=yes
9219else
9220 ax_compiler_ms=no
9221fi
9222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9223ax_cv_c_compiler_ms=$ax_compiler_ms
9224
9225fi
9226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9227$as_echo "$ax_cv_c_compiler_ms" >&6; }
9228 if test X$ax_compiler_ms = Xno; then :
9229 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9230fi
9231
9232 ax_save_CPPFLAGS=$CPPFLAGS
9233 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9234 for ac_header in CL/cl.h OpenCL/cl.h
9235do :
9236 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9237ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009238if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009239 cat >>confdefs.h <<_ACEOF
9240#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9241_ACEOF
9242
9243fi
9244
9245done
9246
9247 CPPFLAGS=$ax_save_CPPFLAGS
9248
9249 for ac_header in windows.h
9250do :
9251 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009252if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009253 cat >>confdefs.h <<_ACEOF
9254#define HAVE_WINDOWS_H 1
9255_ACEOF
9256
9257fi
9258
9259done
9260
9261
9262
9263
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9265$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009266if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009267 $as_echo_n "(cached) " >&6
9268else
9269 ax_cv_check_cl_libcl=no
9270 case $host_cpu in
9271 x86_64) ax_check_cl_libdir=lib64 ;;
9272 *) ax_check_cl_libdir=lib ;;
9273 esac
9274 ax_save_CPPFLAGS=$CPPFLAGS
9275 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9276 ax_save_LIBS=$LIBS
9277 LIBS=""
9278 ax_check_libs="-lOpenCL -lCL -lclparser"
9279 for ax_lib in $ax_check_libs; do
9280 if test X$ax_compiler_ms = Xyes; then :
9281 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9282else
9283 ax_try_lib=$ax_lib
9284fi
9285 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287/* end confdefs.h. */
9288
9289 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9290 # include <windows.h>
9291 # endif
9292 # ifdef HAVE_CL_CL_H
9293 # include <CL/cl.h>
9294 # elif defined(HAVE_OPENCL_CL_H)
9295 # include <OpenCL/cl.h>
9296 # else
9297 # error no CL.h
9298 # endif
9299int
9300main ()
9301{
9302clCreateContextFromType(0,0,0,0,0)
9303 ;
9304 return 0;
9305}
9306_ACEOF
9307if ac_fn_c_try_link "$LINENO"; then :
9308 ax_cv_check_cl_libcl=$ax_try_lib; break
9309else
9310 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"
9311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312/* end confdefs.h. */
9313
9314 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9315 # include <windows.h>
9316 # endif
9317 # ifdef HAVE_CL_CL_H
9318 # include <CL/cl.h>
9319 # elif defined(HAVE_OPENCL_CL_H)
9320 # include <OpenCL/cl.h>
9321 # else
9322 # error no CL.h
9323 # endif
9324int
9325main ()
9326{
9327clCreateContextFromType(0,0,0,0,0)
9328 ;
9329 return 0;
9330}
9331_ACEOF
9332if ac_fn_c_try_link "$LINENO"; then :
9333 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9334else
cristy78c5a0c2010-12-04 20:00:59 +00009335 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 +00009336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337/* end confdefs.h. */
9338
9339 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9340 # include <windows.h>
9341 # endif
9342 # ifdef HAVE_CL_CL_H
9343 # include <CL/cl.h>
9344 # elif defined(HAVE_OPENCL_CL_H)
9345 # include <OpenCL/cl.h>
9346 # else
9347 # error no CL.h
9348 # endif
9349int
9350main ()
9351{
9352clCreateContextFromType(0,0,0,0,0)
9353 ;
9354 return 0;
9355}
9356_ACEOF
9357if ac_fn_c_try_link "$LINENO"; then :
9358 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9359fi
9360rm -f core conftest.err conftest.$ac_objext \
9361 conftest$ac_exeext conftest.$ac_ext
9362fi
9363rm -f core conftest.err conftest.$ac_objext \
9364 conftest$ac_exeext conftest.$ac_ext
9365fi
9366rm -f core conftest.err conftest.$ac_objext \
9367 conftest$ac_exeext conftest.$ac_ext
9368 done
9369
9370 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009371 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373/* end confdefs.h. */
9374
9375 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9376 # include <windows.h>
9377 # endif
9378 # ifdef HAVE_CL_CL_H
9379 # include <CL/cl.h>
9380 # elif defined(HAVE_OPENCL_CL_H)
9381 # include <OpenCL/cl.h>
9382 # else
9383 # error no CL.h
9384 # endif
9385int
9386main ()
9387{
9388clCreateContextFromType(0,0,0,0,0)
9389 ;
9390 return 0;
9391}
9392_ACEOF
9393if ac_fn_c_try_link "$LINENO"; then :
9394 ax_cv_check_cl_libcl=$LIBS
9395fi
9396rm -f core conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
9398fi
9399
9400 LIBS=$ax_save_LIBS
9401 CPPFLAGS=$ax_save_CPPFLAGS
9402fi
9403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9404$as_echo "$ax_cv_check_cl_libcl" >&6; }
9405
9406 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9407 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9408else
9409 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9410$as_echo "#define _OPENCL 1" >>confdefs.h
9411
9412fi
9413 ac_ext=c
9414ac_cpp='$CPP $CPPFLAGS'
9415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9417ac_compiler_gnu=$ac_cv_c_compiler_gnu
9418
9419fi
9420
9421
9422
9423
cristyc7083c12009-10-14 03:16:55 +00009424CFLAGS="$CL_CFLAGS $CFLAGS"
9425LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009426
cristy391f1ce2010-09-09 17:23:28 +00009427if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009428 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009429 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9430 fi
cristyfd9dcd42010-08-08 18:07:02 +00009431fi
cristy2e8b51d2009-10-17 18:26:15 +00009432
cristy3ed852e2009-09-05 21:47:34 +00009433########
9434#
9435# Check for large file support
9436#
9437########
9438# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009439if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009440 enableval=$enable_largefile;
9441fi
9442
9443if test "$enable_largefile" != no; then
9444
cristy8b350f62009-11-15 23:12:43 +00009445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009446$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009447if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009448 $as_echo_n "(cached) " >&6
9449else
9450 ac_cv_sys_largefile_CC=no
9451 if test "$GCC" != yes; then
9452 ac_save_CC=$CC
9453 while :; do
9454 # IRIX 6.2 and later do not support large files by default,
9455 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009457/* end confdefs.h. */
9458#include <sys/types.h>
9459 /* Check that off_t can represent 2**63 - 1 correctly.
9460 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9461 since some C++ compilers masquerading as C compilers
9462 incorrectly reject 9223372036854775807. */
9463#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9464 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9465 && LARGE_OFF_T % 2147483647 == 1)
9466 ? 1 : -1];
9467int
9468main ()
9469{
9470
9471 ;
9472 return 0;
9473}
9474_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009475 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009476 break
cristy3ed852e2009-09-05 21:47:34 +00009477fi
cristy3ed852e2009-09-05 21:47:34 +00009478rm -f core conftest.err conftest.$ac_objext
9479 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009480 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009481 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009482fi
cristy3ed852e2009-09-05 21:47:34 +00009483rm -f core conftest.err conftest.$ac_objext
9484 break
9485 done
9486 CC=$ac_save_CC
9487 rm -f conftest.$ac_ext
9488 fi
9489fi
cristy8b350f62009-11-15 23:12:43 +00009490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009491$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9492 if test "$ac_cv_sys_largefile_CC" != no; then
9493 CC=$CC$ac_cv_sys_largefile_CC
9494 fi
9495
cristy8b350f62009-11-15 23:12:43 +00009496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009497$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009498if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009499 $as_echo_n "(cached) " >&6
9500else
9501 while :; do
cristy8b350f62009-11-15 23:12:43 +00009502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009503/* end confdefs.h. */
9504#include <sys/types.h>
9505 /* Check that off_t can represent 2**63 - 1 correctly.
9506 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9507 since some C++ compilers masquerading as C compilers
9508 incorrectly reject 9223372036854775807. */
9509#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9510 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9511 && LARGE_OFF_T % 2147483647 == 1)
9512 ? 1 : -1];
9513int
9514main ()
9515{
9516
9517 ;
9518 return 0;
9519}
9520_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009521if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009522 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009523fi
cristy3ed852e2009-09-05 21:47:34 +00009524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009526/* end confdefs.h. */
9527#define _FILE_OFFSET_BITS 64
9528#include <sys/types.h>
9529 /* Check that off_t can represent 2**63 - 1 correctly.
9530 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9531 since some C++ compilers masquerading as C compilers
9532 incorrectly reject 9223372036854775807. */
9533#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9534 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9535 && LARGE_OFF_T % 2147483647 == 1)
9536 ? 1 : -1];
9537int
9538main ()
9539{
9540
9541 ;
9542 return 0;
9543}
9544_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009545if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009546 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009547fi
cristy3ed852e2009-09-05 21:47:34 +00009548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9549 ac_cv_sys_file_offset_bits=unknown
9550 break
9551done
9552fi
cristy8b350f62009-11-15 23:12:43 +00009553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009554$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9555case $ac_cv_sys_file_offset_bits in #(
9556 no | unknown) ;;
9557 *)
9558cat >>confdefs.h <<_ACEOF
9559#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9560_ACEOF
9561;;
9562esac
9563rm -rf conftest*
9564 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009566$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009567if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009568 $as_echo_n "(cached) " >&6
9569else
9570 while :; do
cristy8b350f62009-11-15 23:12:43 +00009571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009572/* end confdefs.h. */
9573#include <sys/types.h>
9574 /* Check that off_t can represent 2**63 - 1 correctly.
9575 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9576 since some C++ compilers masquerading as C compilers
9577 incorrectly reject 9223372036854775807. */
9578#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9579 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9580 && LARGE_OFF_T % 2147483647 == 1)
9581 ? 1 : -1];
9582int
9583main ()
9584{
9585
9586 ;
9587 return 0;
9588}
9589_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009590if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009591 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009592fi
cristy3ed852e2009-09-05 21:47:34 +00009593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009595/* end confdefs.h. */
9596#define _LARGE_FILES 1
9597#include <sys/types.h>
9598 /* Check that off_t can represent 2**63 - 1 correctly.
9599 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9600 since some C++ compilers masquerading as C compilers
9601 incorrectly reject 9223372036854775807. */
9602#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9603 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9604 && LARGE_OFF_T % 2147483647 == 1)
9605 ? 1 : -1];
9606int
9607main ()
9608{
9609
9610 ;
9611 return 0;
9612}
9613_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009614if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009615 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009616fi
cristy3ed852e2009-09-05 21:47:34 +00009617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9618 ac_cv_sys_large_files=unknown
9619 break
9620done
9621fi
cristy8b350f62009-11-15 23:12:43 +00009622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009623$as_echo "$ac_cv_sys_large_files" >&6; }
9624case $ac_cv_sys_large_files in #(
9625 no | unknown) ;;
9626 *)
9627cat >>confdefs.h <<_ACEOF
9628#define _LARGE_FILES $ac_cv_sys_large_files
9629_ACEOF
9630;;
9631esac
9632rm -rf conftest*
9633 fi
9634fi
9635
cristy8b350f62009-11-15 23:12:43 +00009636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009637$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009638if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009639 $as_echo_n "(cached) " >&6
9640else
9641 while :; do
cristy8b350f62009-11-15 23:12:43 +00009642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009643/* end confdefs.h. */
9644#include <sys/types.h> /* for off_t */
9645 #include <stdio.h>
9646int
9647main ()
9648{
9649int (*fp) (FILE *, off_t, int) = fseeko;
9650 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9651 ;
9652 return 0;
9653}
9654_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009655if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009656 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009657fi
cristy8b350f62009-11-15 23:12:43 +00009658rm -f core conftest.err conftest.$ac_objext \
9659 conftest$ac_exeext conftest.$ac_ext
9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009661/* end confdefs.h. */
9662#define _LARGEFILE_SOURCE 1
9663#include <sys/types.h> /* for off_t */
9664 #include <stdio.h>
9665int
9666main ()
9667{
9668int (*fp) (FILE *, off_t, int) = fseeko;
9669 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9670 ;
9671 return 0;
9672}
9673_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009674if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009675 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009676fi
cristy8b350f62009-11-15 23:12:43 +00009677rm -f core conftest.err conftest.$ac_objext \
9678 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009679 ac_cv_sys_largefile_source=unknown
9680 break
9681done
9682fi
cristy8b350f62009-11-15 23:12:43 +00009683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009684$as_echo "$ac_cv_sys_largefile_source" >&6; }
9685case $ac_cv_sys_largefile_source in #(
9686 no | unknown) ;;
9687 *)
9688cat >>confdefs.h <<_ACEOF
9689#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9690_ACEOF
9691;;
9692esac
9693rm -rf conftest*
9694
9695# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9696# in glibc 2.1.3, but that breaks too many other things.
9697# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9698if test $ac_cv_sys_largefile_source != unknown; then
9699
cristy8b350f62009-11-15 23:12:43 +00009700$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009701
9702fi
9703
9704LFS_CPPFLAGS=''
9705if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +00009706 case $ac_cv_sys_file_offset_bits in
9707 no)
9708 # nothing to do here as the host supports LFS fine
9709 ;;
9710 unknown)
cristy8b350f62009-11-15 23:12:43 +00009711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009712$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009713 if test "$cross_compiling" = yes; then :
9714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009716as_fn_error $? "cannot run test program while cross compiling
9717See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009718else
cristy8b350f62009-11-15 23:12:43 +00009719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009721#include <unistd.h>
9722 main () {
9723 exit(!(sizeof(off_t) == 8));
9724 }
cristyda16f162011-02-19 23:52:17 +00009725int
9726main ()
9727{
9728
9729 ;
9730 return 0;
9731}
cristy3ed852e2009-09-05 21:47:34 +00009732_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009733if ac_fn_c_try_run "$LINENO"; then :
9734 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009735
cristy09b53e12011-10-14 12:47:22 +00009736 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
9737$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009738else
cristy09b53e12011-10-14 12:47:22 +00009739 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
9740$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009741fi
cristy8b350f62009-11-15 23:12:43 +00009742rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9743 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009744fi
9745
cristyc1e0cc12011-09-21 16:41:16 +00009746 ;;
9747 *)
9748 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9749 ;;
9750 esac
cristy3ed852e2009-09-05 21:47:34 +00009751 if test "$ac_cv_sys_large_files" != 'no'; then
9752 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9753 fi
9754 if test "$ac_cv_sys_largefile_source" != 'no'; then
9755 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9756 fi
9757fi
9758
9759
cristy3ed852e2009-09-05 21:47:34 +00009760# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009761enable_dlopen=yes
9762
9763
9764
9765case `pwd` in
9766 *\ * | *\ *)
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9768$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9769esac
9770
9771
9772
cristy99bd5232011-12-07 14:38:20 +00009773macro_version='2.4.2'
9774macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +00009775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788ltmain="$ac_aux_dir/ltmain.sh"
9789
cristy0c60a692010-11-04 01:09:47 +00009790# Backslashify metacharacters that are still active within
9791# double-quoted strings.
9792sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9793
9794# Same as above, but do not quote variable references.
9795double_quote_subst='s/\(["`\\]\)/\\\1/g'
9796
9797# Sed substitution to delay expansion of an escaped shell variable in a
9798# double_quote_subst'ed string.
9799delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9800
9801# Sed substitution to delay expansion of an escaped single quote.
9802delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9803
9804# Sed substitution to avoid accidental globbing in evaled expressions
9805no_glob_subst='s/\*/\\\*/g'
9806
cristy73bd4a52010-10-05 11:24:23 +00009807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9808$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009809if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009810 $as_echo_n "(cached) " >&6
9811else
9812 if test -n "$NM"; then
9813 # Let the user override the test.
9814 lt_cv_path_NM="$NM"
9815else
9816 lt_nm_to_check="${ac_tool_prefix}nm"
9817 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9818 lt_nm_to_check="$lt_nm_to_check nm"
9819 fi
9820 for lt_tmp_nm in $lt_nm_to_check; do
9821 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9822 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9823 IFS="$lt_save_ifs"
9824 test -z "$ac_dir" && ac_dir=.
9825 tmp_nm="$ac_dir/$lt_tmp_nm"
9826 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9827 # Check to see if the nm accepts a BSD-compat flag.
9828 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9829 # nm: unknown option "B" ignored
9830 # Tru64's nm complains that /dev/null is an invalid object file
9831 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9832 */dev/null* | *'Invalid file or object type'*)
9833 lt_cv_path_NM="$tmp_nm -B"
9834 break
9835 ;;
9836 *)
9837 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9838 */dev/null*)
9839 lt_cv_path_NM="$tmp_nm -p"
9840 break
9841 ;;
9842 *)
9843 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9844 continue # so that we can try to find one that supports BSD flags
9845 ;;
9846 esac
9847 ;;
9848 esac
9849 fi
9850 done
9851 IFS="$lt_save_ifs"
9852 done
9853 : ${lt_cv_path_NM=no}
9854fi
9855fi
9856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9857$as_echo "$lt_cv_path_NM" >&6; }
9858if test "$lt_cv_path_NM" != "no"; then
9859 NM="$lt_cv_path_NM"
9860else
9861 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009862 if test -n "$DUMPBIN"; then :
9863 # Let the user override the test.
9864 else
9865 if test -n "$ac_tool_prefix"; then
9866 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009867 do
9868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9869set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9871$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009872if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009873 $as_echo_n "(cached) " >&6
9874else
9875 if test -n "$DUMPBIN"; then
9876 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9877else
9878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9879for as_dir in $PATH
9880do
9881 IFS=$as_save_IFS
9882 test -z "$as_dir" && as_dir=.
9883 for ac_exec_ext in '' $ac_executable_extensions; do
9884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9885 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9887 break 2
9888 fi
9889done
9890 done
9891IFS=$as_save_IFS
9892
9893fi
9894fi
9895DUMPBIN=$ac_cv_prog_DUMPBIN
9896if test -n "$DUMPBIN"; then
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9898$as_echo "$DUMPBIN" >&6; }
9899else
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9901$as_echo "no" >&6; }
9902fi
9903
9904
9905 test -n "$DUMPBIN" && break
9906 done
9907fi
9908if test -z "$DUMPBIN"; then
9909 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009910 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009911do
9912 # Extract the first word of "$ac_prog", so it can be a program name with args.
9913set dummy $ac_prog; ac_word=$2
9914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9915$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009916if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009917 $as_echo_n "(cached) " >&6
9918else
9919 if test -n "$ac_ct_DUMPBIN"; then
9920 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9921else
9922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9923for as_dir in $PATH
9924do
9925 IFS=$as_save_IFS
9926 test -z "$as_dir" && as_dir=.
9927 for ac_exec_ext in '' $ac_executable_extensions; do
9928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9929 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9931 break 2
9932 fi
9933done
9934 done
9935IFS=$as_save_IFS
9936
9937fi
9938fi
9939ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9940if test -n "$ac_ct_DUMPBIN"; then
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9942$as_echo "$ac_ct_DUMPBIN" >&6; }
9943else
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9945$as_echo "no" >&6; }
9946fi
9947
9948
9949 test -n "$ac_ct_DUMPBIN" && break
9950done
9951
9952 if test "x$ac_ct_DUMPBIN" = x; then
9953 DUMPBIN=":"
9954 else
9955 case $cross_compiling:$ac_tool_warned in
9956yes:)
9957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9959ac_tool_warned=yes ;;
9960esac
9961 DUMPBIN=$ac_ct_DUMPBIN
9962 fi
9963fi
9964
cristy0c60a692010-11-04 01:09:47 +00009965 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9966 *COFF*)
9967 DUMPBIN="$DUMPBIN -symbols"
9968 ;;
9969 *)
9970 DUMPBIN=:
9971 ;;
9972 esac
9973 fi
cristy73bd4a52010-10-05 11:24:23 +00009974
9975 if test "$DUMPBIN" != ":"; then
9976 NM="$DUMPBIN"
9977 fi
9978fi
9979test -z "$NM" && NM=nm
9980
9981
9982
9983
9984
9985
9986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9987$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009988if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009989 $as_echo_n "(cached) " >&6
9990else
9991 lt_cv_nm_interface="BSD nm"
9992 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009993 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009994 (eval "$ac_compile" 2>conftest.err)
9995 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009996 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009997 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9998 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009999 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010000 cat conftest.out >&5
10001 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10002 lt_cv_nm_interface="MS dumpbin"
10003 fi
10004 rm -f conftest*
10005fi
10006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10007$as_echo "$lt_cv_nm_interface" >&6; }
10008
10009# find the maximum length of command line arguments
10010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10011$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010012if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010013 $as_echo_n "(cached) " >&6
10014else
10015 i=0
10016 teststring="ABCD"
10017
10018 case $build_os in
10019 msdosdjgpp*)
10020 # On DJGPP, this test can blow up pretty badly due to problems in libc
10021 # (any single argument exceeding 2000 bytes causes a buffer overrun
10022 # during glob expansion). Even if it were fixed, the result of this
10023 # check would be larger than it should be.
10024 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10025 ;;
10026
10027 gnu*)
10028 # Under GNU Hurd, this test is not required because there is
10029 # no limit to the length of command line arguments.
10030 # Libtool will interpret -1 as no limit whatsoever
10031 lt_cv_sys_max_cmd_len=-1;
10032 ;;
10033
10034 cygwin* | mingw* | cegcc*)
10035 # On Win9x/ME, this test blows up -- it succeeds, but takes
10036 # about 5 minutes as the teststring grows exponentially.
10037 # Worse, since 9x/ME are not pre-emptively multitasking,
10038 # you end up with a "frozen" computer, even though with patience
10039 # the test eventually succeeds (with a max line length of 256k).
10040 # Instead, let's just punt: use the minimum linelength reported by
10041 # all of the supported platforms: 8192 (on NT/2K/XP).
10042 lt_cv_sys_max_cmd_len=8192;
10043 ;;
10044
cristy0c60a692010-11-04 01:09:47 +000010045 mint*)
10046 # On MiNT this can take a long time and run out of memory.
10047 lt_cv_sys_max_cmd_len=8192;
10048 ;;
10049
cristy73bd4a52010-10-05 11:24:23 +000010050 amigaos*)
10051 # On AmigaOS with pdksh, this test takes hours, literally.
10052 # So we just punt and use a minimum line length of 8192.
10053 lt_cv_sys_max_cmd_len=8192;
10054 ;;
10055
10056 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10057 # This has been around since 386BSD, at least. Likely further.
10058 if test -x /sbin/sysctl; then
10059 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10060 elif test -x /usr/sbin/sysctl; then
10061 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10062 else
10063 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10064 fi
10065 # And add a safety zone
10066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10067 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10068 ;;
10069
10070 interix*)
10071 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10072 lt_cv_sys_max_cmd_len=196608
10073 ;;
10074
cristy99bd5232011-12-07 14:38:20 +000010075 os2*)
10076 # The test takes a long time on OS/2.
10077 lt_cv_sys_max_cmd_len=8192
10078 ;;
10079
cristy73bd4a52010-10-05 11:24:23 +000010080 osf*)
10081 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10082 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10083 # nice to cause kernel panics so lets avoid the loop below.
10084 # First set a reasonable default.
10085 lt_cv_sys_max_cmd_len=16384
10086 #
10087 if test -x /sbin/sysconfig; then
10088 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10089 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10090 esac
10091 fi
10092 ;;
10093 sco3.2v5*)
10094 lt_cv_sys_max_cmd_len=102400
10095 ;;
10096 sysv5* | sco5v6* | sysv4.2uw2*)
10097 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10098 if test -n "$kargmax"; then
10099 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10100 else
10101 lt_cv_sys_max_cmd_len=32768
10102 fi
10103 ;;
10104 *)
10105 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10106 if test -n "$lt_cv_sys_max_cmd_len"; then
10107 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10108 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10109 else
10110 # Make teststring a little bigger before we do anything with it.
10111 # a 1K string should be a reasonable start.
10112 for i in 1 2 3 4 5 6 7 8 ; do
10113 teststring=$teststring$teststring
10114 done
10115 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10116 # If test is not a shell built-in, we'll probably end up computing a
10117 # maximum length that is only half of the actual maximum length, but
10118 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010119 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010120 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010121 test $i != 17 # 1/2 MB should be enough
10122 do
10123 i=`expr $i + 1`
10124 teststring=$teststring$teststring
10125 done
10126 # Only check the string length outside the loop.
10127 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10128 teststring=
10129 # Add a significant safety factor because C++ compilers can tack on
10130 # massive amounts of additional arguments before passing them to the
10131 # linker. It appears as though 1/2 is a usable value.
10132 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10133 fi
10134 ;;
10135 esac
10136
10137fi
10138
10139if test -n $lt_cv_sys_max_cmd_len ; then
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10141$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10142else
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10144$as_echo "none" >&6; }
10145fi
10146max_cmd_len=$lt_cv_sys_max_cmd_len
10147
10148
10149
10150
10151
10152
10153: ${CP="cp -f"}
10154: ${MV="mv -f"}
10155: ${RM="rm -f"}
10156
10157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10158$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10159# Try some XSI features
10160xsi_shell=no
10161( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010162 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10163 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010164 && eval 'test $(( 1 + 1 )) -eq 2 \
10165 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10166 && xsi_shell=yes
10167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10168$as_echo "$xsi_shell" >&6; }
10169
10170
10171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10172$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10173lt_shell_append=no
10174( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10175 >/dev/null 2>&1 \
10176 && lt_shell_append=yes
10177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10178$as_echo "$lt_shell_append" >&6; }
10179
10180
10181if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10182 lt_unset=unset
10183else
10184 lt_unset=false
10185fi
10186
10187
10188
10189
10190
10191# test EBCDIC or ASCII
10192case `echo X|tr X '\101'` in
10193 A) # ASCII based system
10194 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10195 lt_SP2NL='tr \040 \012'
10196 lt_NL2SP='tr \015\012 \040\040'
10197 ;;
10198 *) # EBCDIC based system
10199 lt_SP2NL='tr \100 \n'
10200 lt_NL2SP='tr \r\n \100\100'
10201 ;;
10202esac
10203
10204
10205
10206
10207
10208
10209
10210
10211
cristyda16f162011-02-19 23:52:17 +000010212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10213$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10214if ${lt_cv_to_host_file_cmd+:} false; then :
10215 $as_echo_n "(cached) " >&6
10216else
10217 case $host in
10218 *-*-mingw* )
10219 case $build in
10220 *-*-mingw* ) # actually msys
10221 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10222 ;;
10223 *-*-cygwin* )
10224 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10225 ;;
10226 * ) # otherwise, assume *nix
10227 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10228 ;;
10229 esac
10230 ;;
10231 *-*-cygwin* )
10232 case $build in
10233 *-*-mingw* ) # actually msys
10234 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10235 ;;
10236 *-*-cygwin* )
10237 lt_cv_to_host_file_cmd=func_convert_file_noop
10238 ;;
10239 * ) # otherwise, assume *nix
10240 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10241 ;;
10242 esac
10243 ;;
10244 * ) # unhandled hosts (and "normal" native builds)
10245 lt_cv_to_host_file_cmd=func_convert_file_noop
10246 ;;
10247esac
10248
10249fi
10250
10251to_host_file_cmd=$lt_cv_to_host_file_cmd
10252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10253$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10254
10255
10256
10257
10258
10259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10260$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10261if ${lt_cv_to_tool_file_cmd+:} false; then :
10262 $as_echo_n "(cached) " >&6
10263else
10264 #assume ordinary cross tools, or native build.
10265lt_cv_to_tool_file_cmd=func_convert_file_noop
10266case $host in
10267 *-*-mingw* )
10268 case $build in
10269 *-*-mingw* ) # actually msys
10270 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10271 ;;
10272 esac
10273 ;;
10274esac
10275
10276fi
10277
10278to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10280$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10281
10282
10283
10284
10285
cristy73bd4a52010-10-05 11:24:23 +000010286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10287$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010288if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010289 $as_echo_n "(cached) " >&6
10290else
10291 lt_cv_ld_reload_flag='-r'
10292fi
10293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10294$as_echo "$lt_cv_ld_reload_flag" >&6; }
10295reload_flag=$lt_cv_ld_reload_flag
10296case $reload_flag in
10297"" | " "*) ;;
10298*) reload_flag=" $reload_flag" ;;
10299esac
10300reload_cmds='$LD$reload_flag -o $output$reload_objs'
10301case $host_os in
cristyda16f162011-02-19 23:52:17 +000010302 cygwin* | mingw* | pw32* | cegcc*)
10303 if test "$GCC" != yes; then
10304 reload_cmds=false
10305 fi
10306 ;;
cristy73bd4a52010-10-05 11:24:23 +000010307 darwin*)
10308 if test "$GCC" = yes; then
10309 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10310 else
10311 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10312 fi
10313 ;;
10314esac
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324if test -n "$ac_tool_prefix"; then
10325 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10326set dummy ${ac_tool_prefix}objdump; ac_word=$2
10327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10328$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010329if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010330 $as_echo_n "(cached) " >&6
10331else
10332 if test -n "$OBJDUMP"; then
10333 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10334else
10335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336for as_dir in $PATH
10337do
10338 IFS=$as_save_IFS
10339 test -z "$as_dir" && as_dir=.
10340 for ac_exec_ext in '' $ac_executable_extensions; do
10341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10342 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10344 break 2
10345 fi
10346done
10347 done
10348IFS=$as_save_IFS
10349
10350fi
10351fi
10352OBJDUMP=$ac_cv_prog_OBJDUMP
10353if test -n "$OBJDUMP"; then
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10355$as_echo "$OBJDUMP" >&6; }
10356else
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10358$as_echo "no" >&6; }
10359fi
10360
10361
10362fi
10363if test -z "$ac_cv_prog_OBJDUMP"; then
10364 ac_ct_OBJDUMP=$OBJDUMP
10365 # Extract the first word of "objdump", so it can be a program name with args.
10366set dummy objdump; ac_word=$2
10367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10368$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010369if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010370 $as_echo_n "(cached) " >&6
10371else
10372 if test -n "$ac_ct_OBJDUMP"; then
10373 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10374else
10375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10376for as_dir in $PATH
10377do
10378 IFS=$as_save_IFS
10379 test -z "$as_dir" && as_dir=.
10380 for ac_exec_ext in '' $ac_executable_extensions; do
10381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10382 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10384 break 2
10385 fi
10386done
10387 done
10388IFS=$as_save_IFS
10389
10390fi
10391fi
10392ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10393if test -n "$ac_ct_OBJDUMP"; then
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10395$as_echo "$ac_ct_OBJDUMP" >&6; }
10396else
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10398$as_echo "no" >&6; }
10399fi
10400
10401 if test "x$ac_ct_OBJDUMP" = x; then
10402 OBJDUMP="false"
10403 else
10404 case $cross_compiling:$ac_tool_warned in
10405yes:)
10406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10408ac_tool_warned=yes ;;
10409esac
10410 OBJDUMP=$ac_ct_OBJDUMP
10411 fi
10412else
10413 OBJDUMP="$ac_cv_prog_OBJDUMP"
10414fi
10415
10416test -z "$OBJDUMP" && OBJDUMP=objdump
10417
10418
10419
10420
10421
10422
10423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10424$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010425if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010426 $as_echo_n "(cached) " >&6
10427else
10428 lt_cv_file_magic_cmd='$MAGIC_CMD'
10429lt_cv_file_magic_test_file=
10430lt_cv_deplibs_check_method='unknown'
10431# Need to set the preceding variable on all platforms that support
10432# interlibrary dependencies.
10433# 'none' -- dependencies not supported.
10434# `unknown' -- same as none, but documents that we really don't know.
10435# 'pass_all' -- all dependencies passed with no checks.
10436# 'test_compile' -- check by making test program.
10437# 'file_magic [[regex]]' -- check by looking for files in library path
10438# which responds to the $file_magic_cmd with a given extended regex.
10439# If you have `file' or equivalent on your system and you're not sure
10440# whether `pass_all' will *always* work, you probably want this one.
10441
10442case $host_os in
10443aix[4-9]*)
10444 lt_cv_deplibs_check_method=pass_all
10445 ;;
10446
10447beos*)
10448 lt_cv_deplibs_check_method=pass_all
10449 ;;
10450
10451bsdi[45]*)
10452 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10453 lt_cv_file_magic_cmd='/usr/bin/file -L'
10454 lt_cv_file_magic_test_file=/shlib/libc.so
10455 ;;
10456
10457cygwin*)
10458 # func_win32_libid is a shell function defined in ltmain.sh
10459 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10460 lt_cv_file_magic_cmd='func_win32_libid'
10461 ;;
10462
10463mingw* | pw32*)
10464 # Base MSYS/MinGW do not provide the 'file' command needed by
10465 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10466 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010467 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10468 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010469 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10470 lt_cv_file_magic_cmd='func_win32_libid'
10471 else
cristy0c60a692010-11-04 01:09:47 +000010472 # Keep this pattern in sync with the one in func_win32_libid.
10473 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 +000010474 lt_cv_file_magic_cmd='$OBJDUMP -f'
10475 fi
10476 ;;
10477
cristy0c60a692010-11-04 01:09:47 +000010478cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010479 # use the weaker test based on 'objdump'. See mingw*.
10480 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10481 lt_cv_file_magic_cmd='$OBJDUMP -f'
10482 ;;
10483
10484darwin* | rhapsody*)
10485 lt_cv_deplibs_check_method=pass_all
10486 ;;
10487
10488freebsd* | dragonfly*)
10489 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10490 case $host_cpu in
10491 i*86 )
10492 # Not sure whether the presence of OpenBSD here was a mistake.
10493 # Let's accept both of them until this is cleared up.
10494 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10495 lt_cv_file_magic_cmd=/usr/bin/file
10496 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10497 ;;
10498 esac
10499 else
10500 lt_cv_deplibs_check_method=pass_all
10501 fi
10502 ;;
10503
10504gnu*)
10505 lt_cv_deplibs_check_method=pass_all
10506 ;;
10507
cristy0c60a692010-11-04 01:09:47 +000010508haiku*)
10509 lt_cv_deplibs_check_method=pass_all
10510 ;;
10511
cristy73bd4a52010-10-05 11:24:23 +000010512hpux10.20* | hpux11*)
10513 lt_cv_file_magic_cmd=/usr/bin/file
10514 case $host_cpu in
10515 ia64*)
10516 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10517 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10518 ;;
10519 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010520 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 +000010521 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10522 ;;
10523 *)
cristy0c60a692010-11-04 01:09:47 +000010524 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 +000010525 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10526 ;;
10527 esac
10528 ;;
10529
10530interix[3-9]*)
10531 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10532 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10533 ;;
10534
10535irix5* | irix6* | nonstopux*)
10536 case $LD in
10537 *-32|*"-32 ") libmagic=32-bit;;
10538 *-n32|*"-n32 ") libmagic=N32;;
10539 *-64|*"-64 ") libmagic=64-bit;;
10540 *) libmagic=never-match;;
10541 esac
10542 lt_cv_deplibs_check_method=pass_all
10543 ;;
10544
cristy99bd5232011-12-07 14:38:20 +000010545# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000010546linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010547 lt_cv_deplibs_check_method=pass_all
10548 ;;
10549
10550netbsd*)
10551 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10553 else
10554 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10555 fi
10556 ;;
10557
10558newos6*)
10559 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10560 lt_cv_file_magic_cmd=/usr/bin/file
10561 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10562 ;;
10563
10564*nto* | *qnx*)
10565 lt_cv_deplibs_check_method=pass_all
10566 ;;
10567
10568openbsd*)
10569 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10571 else
10572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10573 fi
10574 ;;
10575
10576osf3* | osf4* | osf5*)
10577 lt_cv_deplibs_check_method=pass_all
10578 ;;
10579
10580rdos*)
10581 lt_cv_deplibs_check_method=pass_all
10582 ;;
10583
10584solaris*)
10585 lt_cv_deplibs_check_method=pass_all
10586 ;;
10587
10588sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10589 lt_cv_deplibs_check_method=pass_all
10590 ;;
10591
10592sysv4 | sysv4.3*)
10593 case $host_vendor in
10594 motorola)
10595 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]'
10596 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10597 ;;
10598 ncr)
10599 lt_cv_deplibs_check_method=pass_all
10600 ;;
10601 sequent)
10602 lt_cv_file_magic_cmd='/bin/file'
10603 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10604 ;;
10605 sni)
10606 lt_cv_file_magic_cmd='/bin/file'
10607 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10608 lt_cv_file_magic_test_file=/lib/libc.so
10609 ;;
10610 siemens)
10611 lt_cv_deplibs_check_method=pass_all
10612 ;;
10613 pc)
10614 lt_cv_deplibs_check_method=pass_all
10615 ;;
10616 esac
10617 ;;
10618
10619tpf*)
10620 lt_cv_deplibs_check_method=pass_all
10621 ;;
10622esac
10623
10624fi
10625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10626$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010627
10628file_magic_glob=
10629want_nocaseglob=no
10630if test "$build" = "$host"; then
10631 case $host_os in
10632 mingw* | pw32*)
10633 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10634 want_nocaseglob=yes
10635 else
10636 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10637 fi
10638 ;;
10639 esac
10640fi
10641
cristy73bd4a52010-10-05 11:24:23 +000010642file_magic_cmd=$lt_cv_file_magic_cmd
10643deplibs_check_method=$lt_cv_deplibs_check_method
10644test -z "$deplibs_check_method" && deplibs_check_method=unknown
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
cristyda16f162011-02-19 23:52:17 +000010657
10658
10659
10660
10661
10662
10663
10664
10665
10666
cristy73bd4a52010-10-05 11:24:23 +000010667if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010668 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10669set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10671$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010672if ${ac_cv_prog_DLLTOOL+:} false; then :
10673 $as_echo_n "(cached) " >&6
10674else
10675 if test -n "$DLLTOOL"; then
10676 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10677else
10678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10679for as_dir in $PATH
10680do
10681 IFS=$as_save_IFS
10682 test -z "$as_dir" && as_dir=.
10683 for ac_exec_ext in '' $ac_executable_extensions; do
10684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10685 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10687 break 2
10688 fi
10689done
10690 done
10691IFS=$as_save_IFS
10692
10693fi
10694fi
10695DLLTOOL=$ac_cv_prog_DLLTOOL
10696if test -n "$DLLTOOL"; then
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10698$as_echo "$DLLTOOL" >&6; }
10699else
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701$as_echo "no" >&6; }
10702fi
10703
10704
10705fi
10706if test -z "$ac_cv_prog_DLLTOOL"; then
10707 ac_ct_DLLTOOL=$DLLTOOL
10708 # Extract the first word of "dlltool", so it can be a program name with args.
10709set dummy dlltool; ac_word=$2
10710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10711$as_echo_n "checking for $ac_word... " >&6; }
10712if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10713 $as_echo_n "(cached) " >&6
10714else
10715 if test -n "$ac_ct_DLLTOOL"; then
10716 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10717else
10718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10719for as_dir in $PATH
10720do
10721 IFS=$as_save_IFS
10722 test -z "$as_dir" && as_dir=.
10723 for ac_exec_ext in '' $ac_executable_extensions; do
10724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10725 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10727 break 2
10728 fi
10729done
10730 done
10731IFS=$as_save_IFS
10732
10733fi
10734fi
10735ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10736if test -n "$ac_ct_DLLTOOL"; then
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10738$as_echo "$ac_ct_DLLTOOL" >&6; }
10739else
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741$as_echo "no" >&6; }
10742fi
10743
10744 if test "x$ac_ct_DLLTOOL" = x; then
10745 DLLTOOL="false"
10746 else
10747 case $cross_compiling:$ac_tool_warned in
10748yes:)
10749{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10751ac_tool_warned=yes ;;
10752esac
10753 DLLTOOL=$ac_ct_DLLTOOL
10754 fi
10755else
10756 DLLTOOL="$ac_cv_prog_DLLTOOL"
10757fi
10758
10759test -z "$DLLTOOL" && DLLTOOL=dlltool
10760
10761
10762
10763
10764
10765
10766
10767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10768$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10769if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10770 $as_echo_n "(cached) " >&6
10771else
10772 lt_cv_sharedlib_from_linklib_cmd='unknown'
10773
10774case $host_os in
10775cygwin* | mingw* | pw32* | cegcc*)
10776 # two different shell functions defined in ltmain.sh
10777 # decide which to use based on capabilities of $DLLTOOL
10778 case `$DLLTOOL --help 2>&1` in
10779 *--identify-strict*)
10780 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10781 ;;
10782 *)
10783 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10784 ;;
10785 esac
10786 ;;
10787*)
10788 # fallback: assume linklib IS sharedlib
10789 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10790 ;;
10791esac
10792
10793fi
10794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10795$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10796sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10797test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10798
10799
10800
10801
10802
10803
10804
10805if test -n "$ac_tool_prefix"; then
10806 for ac_prog in ar
10807 do
10808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10809set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10811$as_echo_n "checking for $ac_word... " >&6; }
10812if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010813 $as_echo_n "(cached) " >&6
10814else
10815 if test -n "$AR"; then
10816 ac_cv_prog_AR="$AR" # Let the user override the test.
10817else
10818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10819for as_dir in $PATH
10820do
10821 IFS=$as_save_IFS
10822 test -z "$as_dir" && as_dir=.
10823 for ac_exec_ext in '' $ac_executable_extensions; do
10824 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 +000010825 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10827 break 2
10828 fi
10829done
10830 done
10831IFS=$as_save_IFS
10832
10833fi
10834fi
10835AR=$ac_cv_prog_AR
10836if test -n "$AR"; then
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10838$as_echo "$AR" >&6; }
10839else
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841$as_echo "no" >&6; }
10842fi
10843
10844
cristyda16f162011-02-19 23:52:17 +000010845 test -n "$AR" && break
10846 done
cristy73bd4a52010-10-05 11:24:23 +000010847fi
cristyda16f162011-02-19 23:52:17 +000010848if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010849 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010850 for ac_prog in ar
10851do
10852 # Extract the first word of "$ac_prog", so it can be a program name with args.
10853set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10855$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010856if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010857 $as_echo_n "(cached) " >&6
10858else
10859 if test -n "$ac_ct_AR"; then
10860 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10861else
10862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10863for as_dir in $PATH
10864do
10865 IFS=$as_save_IFS
10866 test -z "$as_dir" && as_dir=.
10867 for ac_exec_ext in '' $ac_executable_extensions; do
10868 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 +000010869 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10871 break 2
10872 fi
10873done
10874 done
10875IFS=$as_save_IFS
10876
10877fi
10878fi
10879ac_ct_AR=$ac_cv_prog_ac_ct_AR
10880if test -n "$ac_ct_AR"; then
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10882$as_echo "$ac_ct_AR" >&6; }
10883else
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10885$as_echo "no" >&6; }
10886fi
10887
cristyda16f162011-02-19 23:52:17 +000010888
10889 test -n "$ac_ct_AR" && break
10890done
10891
cristy73bd4a52010-10-05 11:24:23 +000010892 if test "x$ac_ct_AR" = x; then
10893 AR="false"
10894 else
10895 case $cross_compiling:$ac_tool_warned in
10896yes:)
10897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10899ac_tool_warned=yes ;;
10900esac
10901 AR=$ac_ct_AR
10902 fi
cristy73bd4a52010-10-05 11:24:23 +000010903fi
10904
cristyda16f162011-02-19 23:52:17 +000010905: ${AR=ar}
10906: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
cristyda16f162011-02-19 23:52:17 +000010918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10919$as_echo_n "checking for archiver @FILE support... " >&6; }
10920if ${lt_cv_ar_at_file+:} false; then :
10921 $as_echo_n "(cached) " >&6
10922else
10923 lt_cv_ar_at_file=no
10924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925/* end confdefs.h. */
10926
10927int
10928main ()
10929{
10930
10931 ;
10932 return 0;
10933}
10934_ACEOF
10935if ac_fn_c_try_compile "$LINENO"; then :
10936 echo conftest.$ac_objext > conftest.lst
10937 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10939 (eval $lt_ar_try) 2>&5
10940 ac_status=$?
10941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10942 test $ac_status = 0; }
10943 if test "$ac_status" -eq 0; then
10944 # Ensure the archiver fails upon bogus file names.
10945 rm -f conftest.$ac_objext libconftest.a
10946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10947 (eval $lt_ar_try) 2>&5
10948 ac_status=$?
10949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10950 test $ac_status = 0; }
10951 if test "$ac_status" -ne 0; then
10952 lt_cv_ar_at_file=@
10953 fi
10954 fi
10955 rm -f conftest.* libconftest.a
10956
10957fi
10958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10959
10960fi
10961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10962$as_echo "$lt_cv_ar_at_file" >&6; }
10963
10964if test "x$lt_cv_ar_at_file" = xno; then
10965 archiver_list_spec=
10966else
10967 archiver_list_spec=$lt_cv_ar_at_file
10968fi
10969
10970
10971
10972
10973
10974
10975
cristy73bd4a52010-10-05 11:24:23 +000010976if test -n "$ac_tool_prefix"; then
10977 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10978set dummy ${ac_tool_prefix}strip; ac_word=$2
10979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10980$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010981if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010982 $as_echo_n "(cached) " >&6
10983else
10984 if test -n "$STRIP"; then
10985 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10986else
10987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10988for as_dir in $PATH
10989do
10990 IFS=$as_save_IFS
10991 test -z "$as_dir" && as_dir=.
10992 for ac_exec_ext in '' $ac_executable_extensions; do
10993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10994 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10996 break 2
10997 fi
10998done
10999 done
11000IFS=$as_save_IFS
11001
11002fi
11003fi
11004STRIP=$ac_cv_prog_STRIP
11005if test -n "$STRIP"; then
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11007$as_echo "$STRIP" >&6; }
11008else
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11010$as_echo "no" >&6; }
11011fi
11012
11013
11014fi
11015if test -z "$ac_cv_prog_STRIP"; then
11016 ac_ct_STRIP=$STRIP
11017 # Extract the first word of "strip", so it can be a program name with args.
11018set dummy strip; ac_word=$2
11019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11020$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011021if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011022 $as_echo_n "(cached) " >&6
11023else
11024 if test -n "$ac_ct_STRIP"; then
11025 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11026else
11027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11028for as_dir in $PATH
11029do
11030 IFS=$as_save_IFS
11031 test -z "$as_dir" && as_dir=.
11032 for ac_exec_ext in '' $ac_executable_extensions; do
11033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11034 ac_cv_prog_ac_ct_STRIP="strip"
11035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11036 break 2
11037 fi
11038done
11039 done
11040IFS=$as_save_IFS
11041
11042fi
11043fi
11044ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11045if test -n "$ac_ct_STRIP"; then
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11047$as_echo "$ac_ct_STRIP" >&6; }
11048else
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11050$as_echo "no" >&6; }
11051fi
11052
11053 if test "x$ac_ct_STRIP" = x; then
11054 STRIP=":"
11055 else
11056 case $cross_compiling:$ac_tool_warned in
11057yes:)
11058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11060ac_tool_warned=yes ;;
11061esac
11062 STRIP=$ac_ct_STRIP
11063 fi
11064else
11065 STRIP="$ac_cv_prog_STRIP"
11066fi
11067
11068test -z "$STRIP" && STRIP=:
11069
11070
11071
11072
11073
11074
11075if test -n "$ac_tool_prefix"; then
11076 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11077set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11079$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011080if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011081 $as_echo_n "(cached) " >&6
11082else
11083 if test -n "$RANLIB"; then
11084 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11085else
11086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11087for as_dir in $PATH
11088do
11089 IFS=$as_save_IFS
11090 test -z "$as_dir" && as_dir=.
11091 for ac_exec_ext in '' $ac_executable_extensions; do
11092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11093 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11095 break 2
11096 fi
11097done
11098 done
11099IFS=$as_save_IFS
11100
11101fi
11102fi
11103RANLIB=$ac_cv_prog_RANLIB
11104if test -n "$RANLIB"; then
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11106$as_echo "$RANLIB" >&6; }
11107else
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11109$as_echo "no" >&6; }
11110fi
11111
11112
11113fi
11114if test -z "$ac_cv_prog_RANLIB"; then
11115 ac_ct_RANLIB=$RANLIB
11116 # Extract the first word of "ranlib", so it can be a program name with args.
11117set dummy ranlib; ac_word=$2
11118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11119$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011120if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011121 $as_echo_n "(cached) " >&6
11122else
11123 if test -n "$ac_ct_RANLIB"; then
11124 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11125else
11126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11127for as_dir in $PATH
11128do
11129 IFS=$as_save_IFS
11130 test -z "$as_dir" && as_dir=.
11131 for ac_exec_ext in '' $ac_executable_extensions; do
11132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11133 ac_cv_prog_ac_ct_RANLIB="ranlib"
11134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11135 break 2
11136 fi
11137done
11138 done
11139IFS=$as_save_IFS
11140
11141fi
11142fi
11143ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11144if test -n "$ac_ct_RANLIB"; then
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11146$as_echo "$ac_ct_RANLIB" >&6; }
11147else
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149$as_echo "no" >&6; }
11150fi
11151
11152 if test "x$ac_ct_RANLIB" = x; then
11153 RANLIB=":"
11154 else
11155 case $cross_compiling:$ac_tool_warned in
11156yes:)
11157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11159ac_tool_warned=yes ;;
11160esac
11161 RANLIB=$ac_ct_RANLIB
11162 fi
11163else
11164 RANLIB="$ac_cv_prog_RANLIB"
11165fi
11166
11167test -z "$RANLIB" && RANLIB=:
11168
11169
11170
11171
11172
11173
11174# Determine commands to create old-style static archives.
11175old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11176old_postinstall_cmds='chmod 644 $oldlib'
11177old_postuninstall_cmds=
11178
11179if test -n "$RANLIB"; then
11180 case $host_os in
11181 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011182 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011183 ;;
11184 *)
cristy99bd5232011-12-07 14:38:20 +000011185 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011186 ;;
11187 esac
cristy99bd5232011-12-07 14:38:20 +000011188 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011189fi
11190
cristy0c60a692010-11-04 01:09:47 +000011191case $host_os in
11192 darwin*)
11193 lock_old_archive_extraction=yes ;;
11194 *)
11195 lock_old_archive_extraction=no ;;
11196esac
11197
11198
11199
11200
11201
11202
cristy73bd4a52010-10-05 11:24:23 +000011203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236# If no C compiler was specified, use CC.
11237LTCC=${LTCC-"$CC"}
11238
11239# If no C compiler flags were specified, use CFLAGS.
11240LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11241
11242# Allow CC to be a program name with arguments.
11243compiler=$CC
11244
11245
11246# Check for command to grab the raw symbol name followed by C symbol from nm.
11247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11248$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011249if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011250 $as_echo_n "(cached) " >&6
11251else
11252
11253# These are sane defaults that work on at least a few old systems.
11254# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11255
11256# Character class describing NM global symbol codes.
11257symcode='[BCDEGRST]'
11258
11259# Regexp to match symbols that can be accessed directly from C.
11260sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11261
11262# Define system-specific variables.
11263case $host_os in
11264aix*)
11265 symcode='[BCDT]'
11266 ;;
11267cygwin* | mingw* | pw32* | cegcc*)
11268 symcode='[ABCDGISTW]'
11269 ;;
11270hpux*)
11271 if test "$host_cpu" = ia64; then
11272 symcode='[ABCDEGRST]'
11273 fi
11274 ;;
11275irix* | nonstopux*)
11276 symcode='[BCDEGRST]'
11277 ;;
11278osf*)
11279 symcode='[BCDEGQRST]'
11280 ;;
11281solaris*)
11282 symcode='[BDRT]'
11283 ;;
11284sco3.2v5*)
11285 symcode='[DT]'
11286 ;;
11287sysv4.2uw2*)
11288 symcode='[DT]'
11289 ;;
11290sysv5* | sco5v6* | unixware* | OpenUNIX*)
11291 symcode='[ABDT]'
11292 ;;
11293sysv4)
11294 symcode='[DFNSTU]'
11295 ;;
11296esac
11297
11298# If we're using GNU nm, then use its standard symbol codes.
11299case `$NM -V 2>&1` in
11300*GNU* | *'with BFD'*)
11301 symcode='[ABCDGIRSTW]' ;;
11302esac
11303
11304# Transform an extracted symbol line into a proper C declaration.
11305# Some systems (esp. on ia64) link data and code symbols differently,
11306# so use this general approach.
11307lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11308
11309# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011310lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11311lt_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 +000011312
11313# Handle CRLF in mingw tool chain
11314opt_cr=
11315case $build_os in
11316mingw*)
11317 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11318 ;;
11319esac
11320
11321# Try without a prefix underscore, then with it.
11322for ac_symprfx in "" "_"; do
11323
11324 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11325 symxfrm="\\1 $ac_symprfx\\2 \\2"
11326
11327 # Write the raw and C identifiers.
11328 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11329 # Fake it for dumpbin and say T for any non-static function
11330 # and D for any global variable.
11331 # Also find C++ and __fastcall symbols from MSVC++,
11332 # which start with @ or ?.
11333 lt_cv_sys_global_symbol_pipe="$AWK '"\
11334" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011335" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011336" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11337" \$ 0!~/External *\|/{next};"\
11338" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11339" {if(hide[section]) next};"\
11340" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11341" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11342" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11343" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11344" ' prfx=^$ac_symprfx"
11345 else
11346 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11347 fi
cristyda16f162011-02-19 23:52:17 +000011348 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011349
11350 # Check to see that the pipe works correctly.
11351 pipe_works=no
11352
11353 rm -f conftest*
11354 cat > conftest.$ac_ext <<_LT_EOF
11355#ifdef __cplusplus
11356extern "C" {
11357#endif
11358char nm_test_var;
11359void nm_test_func(void);
11360void nm_test_func(void){}
11361#ifdef __cplusplus
11362}
11363#endif
11364int main(){nm_test_var='a';nm_test_func();return(0);}
11365_LT_EOF
11366
11367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11368 (eval $ac_compile) 2>&5
11369 ac_status=$?
11370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11371 test $ac_status = 0; }; then
11372 # Now try to grab the symbols.
11373 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11375 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011376 ac_status=$?
11377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11378 test $ac_status = 0; } && test -s "$nlist"; then
11379 # Try sorting and uniquifying the output.
11380 if sort "$nlist" | uniq > "$nlist"T; then
11381 mv -f "$nlist"T "$nlist"
11382 else
11383 rm -f "$nlist"T
11384 fi
11385
11386 # Make sure that we snagged all the symbols we need.
11387 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11388 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11389 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011390/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11391#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11392/* DATA imports from DLLs on WIN32 con't be const, because runtime
11393 relocations are performed -- see ld's documentation on pseudo-relocs. */
11394# define LT_DLSYM_CONST
11395#elif defined(__osf__)
11396/* This system does not cope well with relocations in const data. */
11397# define LT_DLSYM_CONST
11398#else
11399# define LT_DLSYM_CONST const
11400#endif
11401
cristy73bd4a52010-10-05 11:24:23 +000011402#ifdef __cplusplus
11403extern "C" {
11404#endif
11405
11406_LT_EOF
11407 # Now generate the symbol file.
11408 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11409
11410 cat <<_LT_EOF >> conftest.$ac_ext
11411
11412/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011413LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011414 const char *name;
11415 void *address;
11416}
11417lt__PROGRAM__LTX_preloaded_symbols[] =
11418{
11419 { "@PROGRAM@", (void *) 0 },
11420_LT_EOF
11421 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11422 cat <<\_LT_EOF >> conftest.$ac_ext
11423 {0, (void *) 0}
11424};
11425
11426/* This works around a problem in FreeBSD linker */
11427#ifdef FREEBSD_WORKAROUND
11428static const void *lt_preloaded_setup() {
11429 return lt__PROGRAM__LTX_preloaded_symbols;
11430}
11431#endif
11432
11433#ifdef __cplusplus
11434}
11435#endif
11436_LT_EOF
11437 # Now try linking the two files.
11438 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011439 lt_globsym_save_LIBS=$LIBS
11440 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011441 LIBS="conftstm.$ac_objext"
11442 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11444 (eval $ac_link) 2>&5
11445 ac_status=$?
11446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11447 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11448 pipe_works=yes
11449 fi
cristyda16f162011-02-19 23:52:17 +000011450 LIBS=$lt_globsym_save_LIBS
11451 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011452 else
11453 echo "cannot find nm_test_func in $nlist" >&5
11454 fi
11455 else
11456 echo "cannot find nm_test_var in $nlist" >&5
11457 fi
11458 else
11459 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11460 fi
11461 else
11462 echo "$progname: failed program was:" >&5
11463 cat conftest.$ac_ext >&5
11464 fi
11465 rm -rf conftest* conftst*
11466
11467 # Do not use the global_symbol_pipe unless it works.
11468 if test "$pipe_works" = yes; then
11469 break
11470 else
11471 lt_cv_sys_global_symbol_pipe=
11472 fi
11473done
11474
11475fi
11476
11477if test -z "$lt_cv_sys_global_symbol_pipe"; then
11478 lt_cv_sys_global_symbol_to_cdecl=
11479fi
11480if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11482$as_echo "failed" >&6; }
11483else
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11485$as_echo "ok" >&6; }
11486fi
11487
cristyda16f162011-02-19 23:52:17 +000011488# Response file support.
11489if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11490 nm_file_list_spec='@'
11491elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11492 nm_file_list_spec='@'
11493fi
cristy73bd4a52010-10-05 11:24:23 +000011494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
cristyda16f162011-02-19 23:52:17 +000011515
11516
11517
11518
11519
11520
11521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11522$as_echo_n "checking for sysroot... " >&6; }
11523
11524# Check whether --with-sysroot was given.
11525if test "${with_sysroot+set}" = set; then :
11526 withval=$with_sysroot;
11527else
11528 with_sysroot=no
11529fi
11530
11531
11532lt_sysroot=
11533case ${with_sysroot} in #(
11534 yes)
11535 if test "$GCC" = yes; then
11536 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11537 fi
11538 ;; #(
11539 /*)
11540 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11541 ;; #(
11542 no|'')
11543 ;; #(
11544 *)
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11546$as_echo "${with_sysroot}" >&6; }
11547 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11548 ;;
11549esac
11550
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11552$as_echo "${lt_sysroot:-no}" >&6; }
11553
11554
11555
11556
11557
cristy73bd4a52010-10-05 11:24:23 +000011558# Check whether --enable-libtool-lock was given.
11559if test "${enable_libtool_lock+set}" = set; then :
11560 enableval=$enable_libtool_lock;
11561fi
11562
11563test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11564
11565# Some flags need to be propagated to the compiler or linker for good
11566# libtool support.
11567case $host in
11568ia64-*-hpux*)
11569 # Find out which ABI we are using.
11570 echo 'int i;' > conftest.$ac_ext
11571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11572 (eval $ac_compile) 2>&5
11573 ac_status=$?
11574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11575 test $ac_status = 0; }; then
11576 case `/usr/bin/file conftest.$ac_objext` in
11577 *ELF-32*)
11578 HPUX_IA64_MODE="32"
11579 ;;
11580 *ELF-64*)
11581 HPUX_IA64_MODE="64"
11582 ;;
11583 esac
11584 fi
11585 rm -rf conftest*
11586 ;;
11587*-*-irix6*)
11588 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011589 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11591 (eval $ac_compile) 2>&5
11592 ac_status=$?
11593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11594 test $ac_status = 0; }; then
11595 if test "$lt_cv_prog_gnu_ld" = yes; then
11596 case `/usr/bin/file conftest.$ac_objext` in
11597 *32-bit*)
11598 LD="${LD-ld} -melf32bsmip"
11599 ;;
11600 *N32*)
11601 LD="${LD-ld} -melf32bmipn32"
11602 ;;
11603 *64-bit*)
11604 LD="${LD-ld} -melf64bmip"
11605 ;;
11606 esac
11607 else
11608 case `/usr/bin/file conftest.$ac_objext` in
11609 *32-bit*)
11610 LD="${LD-ld} -32"
11611 ;;
11612 *N32*)
11613 LD="${LD-ld} -n32"
11614 ;;
11615 *64-bit*)
11616 LD="${LD-ld} -64"
11617 ;;
11618 esac
11619 fi
11620 fi
11621 rm -rf conftest*
11622 ;;
11623
11624x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11625s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11626 # Find out which ABI we are using.
11627 echo 'int i;' > conftest.$ac_ext
11628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11629 (eval $ac_compile) 2>&5
11630 ac_status=$?
11631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11632 test $ac_status = 0; }; then
11633 case `/usr/bin/file conftest.o` in
11634 *32-bit*)
11635 case $host in
11636 x86_64-*kfreebsd*-gnu)
11637 LD="${LD-ld} -m elf_i386_fbsd"
11638 ;;
11639 x86_64-*linux*)
11640 LD="${LD-ld} -m elf_i386"
11641 ;;
11642 ppc64-*linux*|powerpc64-*linux*)
11643 LD="${LD-ld} -m elf32ppclinux"
11644 ;;
11645 s390x-*linux*)
11646 LD="${LD-ld} -m elf_s390"
11647 ;;
11648 sparc64-*linux*)
11649 LD="${LD-ld} -m elf32_sparc"
11650 ;;
11651 esac
11652 ;;
11653 *64-bit*)
11654 case $host in
11655 x86_64-*kfreebsd*-gnu)
11656 LD="${LD-ld} -m elf_x86_64_fbsd"
11657 ;;
11658 x86_64-*linux*)
11659 LD="${LD-ld} -m elf_x86_64"
11660 ;;
11661 ppc*-*linux*|powerpc*-*linux*)
11662 LD="${LD-ld} -m elf64ppc"
11663 ;;
11664 s390*-*linux*|s390*-*tpf*)
11665 LD="${LD-ld} -m elf64_s390"
11666 ;;
11667 sparc*-*linux*)
11668 LD="${LD-ld} -m elf64_sparc"
11669 ;;
11670 esac
11671 ;;
11672 esac
11673 fi
11674 rm -rf conftest*
11675 ;;
11676
11677*-*-sco3.2v5*)
11678 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11679 SAVE_CFLAGS="$CFLAGS"
11680 CFLAGS="$CFLAGS -belf"
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11682$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011683if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011684 $as_echo_n "(cached) " >&6
11685else
11686 ac_ext=c
11687ac_cpp='$CPP $CPPFLAGS'
11688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11690ac_compiler_gnu=$ac_cv_c_compiler_gnu
11691
11692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11693/* end confdefs.h. */
11694
11695int
11696main ()
11697{
11698
11699 ;
11700 return 0;
11701}
11702_ACEOF
11703if ac_fn_c_try_link "$LINENO"; then :
11704 lt_cv_cc_needs_belf=yes
11705else
11706 lt_cv_cc_needs_belf=no
11707fi
11708rm -f core conftest.err conftest.$ac_objext \
11709 conftest$ac_exeext conftest.$ac_ext
11710 ac_ext=c
11711ac_cpp='$CPP $CPPFLAGS'
11712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11714ac_compiler_gnu=$ac_cv_c_compiler_gnu
11715
11716fi
11717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11718$as_echo "$lt_cv_cc_needs_belf" >&6; }
11719 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11720 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11721 CFLAGS="$SAVE_CFLAGS"
11722 fi
11723 ;;
cristy99bd5232011-12-07 14:38:20 +000011724*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000011725 # Find out which ABI we are using.
11726 echo 'int i;' > conftest.$ac_ext
11727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11728 (eval $ac_compile) 2>&5
11729 ac_status=$?
11730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11731 test $ac_status = 0; }; then
11732 case `/usr/bin/file conftest.o` in
11733 *64-bit*)
11734 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000011735 yes*)
11736 case $host in
11737 i?86-*-solaris*)
11738 LD="${LD-ld} -m elf_x86_64"
11739 ;;
11740 sparc*-*-solaris*)
11741 LD="${LD-ld} -m elf64_sparc"
11742 ;;
11743 esac
11744 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
11745 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11746 LD="${LD-ld}_sol2"
11747 fi
11748 ;;
cristy73bd4a52010-10-05 11:24:23 +000011749 *)
11750 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11751 LD="${LD-ld} -64"
11752 fi
11753 ;;
11754 esac
11755 ;;
11756 esac
11757 fi
11758 rm -rf conftest*
11759 ;;
11760esac
11761
11762need_locks="$enable_libtool_lock"
11763
cristyda16f162011-02-19 23:52:17 +000011764if test -n "$ac_tool_prefix"; then
11765 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11766set dummy ${ac_tool_prefix}mt; ac_word=$2
11767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11768$as_echo_n "checking for $ac_word... " >&6; }
11769if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11770 $as_echo_n "(cached) " >&6
11771else
11772 if test -n "$MANIFEST_TOOL"; then
11773 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11774else
11775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11776for as_dir in $PATH
11777do
11778 IFS=$as_save_IFS
11779 test -z "$as_dir" && as_dir=.
11780 for ac_exec_ext in '' $ac_executable_extensions; do
11781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11782 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11784 break 2
11785 fi
11786done
11787 done
11788IFS=$as_save_IFS
11789
11790fi
11791fi
11792MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11793if test -n "$MANIFEST_TOOL"; then
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11795$as_echo "$MANIFEST_TOOL" >&6; }
11796else
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11798$as_echo "no" >&6; }
11799fi
11800
11801
11802fi
11803if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11804 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11805 # Extract the first word of "mt", so it can be a program name with args.
11806set dummy mt; ac_word=$2
11807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11808$as_echo_n "checking for $ac_word... " >&6; }
11809if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11810 $as_echo_n "(cached) " >&6
11811else
11812 if test -n "$ac_ct_MANIFEST_TOOL"; then
11813 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11814else
11815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816for as_dir in $PATH
11817do
11818 IFS=$as_save_IFS
11819 test -z "$as_dir" && as_dir=.
11820 for ac_exec_ext in '' $ac_executable_extensions; do
11821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11822 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11824 break 2
11825 fi
11826done
11827 done
11828IFS=$as_save_IFS
11829
11830fi
11831fi
11832ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11833if test -n "$ac_ct_MANIFEST_TOOL"; then
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11835$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11836else
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838$as_echo "no" >&6; }
11839fi
11840
11841 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11842 MANIFEST_TOOL=":"
11843 else
11844 case $cross_compiling:$ac_tool_warned in
11845yes:)
11846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11848ac_tool_warned=yes ;;
11849esac
11850 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11851 fi
11852else
11853 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11854fi
11855
11856test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11858$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11859if ${lt_cv_path_mainfest_tool+:} false; then :
11860 $as_echo_n "(cached) " >&6
11861else
11862 lt_cv_path_mainfest_tool=no
11863 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11864 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11865 cat conftest.err >&5
11866 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11867 lt_cv_path_mainfest_tool=yes
11868 fi
11869 rm -f conftest*
11870fi
11871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11872$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11873if test "x$lt_cv_path_mainfest_tool" != xyes; then
11874 MANIFEST_TOOL=:
11875fi
11876
11877
11878
11879
11880
cristy73bd4a52010-10-05 11:24:23 +000011881
11882 case $host_os in
11883 rhapsody* | darwin*)
11884 if test -n "$ac_tool_prefix"; then
11885 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11886set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11888$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011889if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011890 $as_echo_n "(cached) " >&6
11891else
11892 if test -n "$DSYMUTIL"; then
11893 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11894else
11895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11896for as_dir in $PATH
11897do
11898 IFS=$as_save_IFS
11899 test -z "$as_dir" && as_dir=.
11900 for ac_exec_ext in '' $ac_executable_extensions; do
11901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11902 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11904 break 2
11905 fi
11906done
11907 done
11908IFS=$as_save_IFS
11909
11910fi
11911fi
11912DSYMUTIL=$ac_cv_prog_DSYMUTIL
11913if test -n "$DSYMUTIL"; then
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11915$as_echo "$DSYMUTIL" >&6; }
11916else
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918$as_echo "no" >&6; }
11919fi
11920
11921
11922fi
11923if test -z "$ac_cv_prog_DSYMUTIL"; then
11924 ac_ct_DSYMUTIL=$DSYMUTIL
11925 # Extract the first word of "dsymutil", so it can be a program name with args.
11926set dummy dsymutil; ac_word=$2
11927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11928$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011929if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011930 $as_echo_n "(cached) " >&6
11931else
11932 if test -n "$ac_ct_DSYMUTIL"; then
11933 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11934else
11935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11936for as_dir in $PATH
11937do
11938 IFS=$as_save_IFS
11939 test -z "$as_dir" && as_dir=.
11940 for ac_exec_ext in '' $ac_executable_extensions; do
11941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11942 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11944 break 2
11945 fi
11946done
11947 done
11948IFS=$as_save_IFS
11949
11950fi
11951fi
11952ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11953if test -n "$ac_ct_DSYMUTIL"; then
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11955$as_echo "$ac_ct_DSYMUTIL" >&6; }
11956else
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958$as_echo "no" >&6; }
11959fi
11960
11961 if test "x$ac_ct_DSYMUTIL" = x; then
11962 DSYMUTIL=":"
11963 else
11964 case $cross_compiling:$ac_tool_warned in
11965yes:)
11966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11968ac_tool_warned=yes ;;
11969esac
11970 DSYMUTIL=$ac_ct_DSYMUTIL
11971 fi
11972else
11973 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11974fi
11975
11976 if test -n "$ac_tool_prefix"; then
11977 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11978set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11980$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011981if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011982 $as_echo_n "(cached) " >&6
11983else
11984 if test -n "$NMEDIT"; then
11985 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11986else
11987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11988for as_dir in $PATH
11989do
11990 IFS=$as_save_IFS
11991 test -z "$as_dir" && as_dir=.
11992 for ac_exec_ext in '' $ac_executable_extensions; do
11993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11994 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11996 break 2
11997 fi
11998done
11999 done
12000IFS=$as_save_IFS
12001
12002fi
12003fi
12004NMEDIT=$ac_cv_prog_NMEDIT
12005if test -n "$NMEDIT"; then
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12007$as_echo "$NMEDIT" >&6; }
12008else
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12010$as_echo "no" >&6; }
12011fi
12012
12013
12014fi
12015if test -z "$ac_cv_prog_NMEDIT"; then
12016 ac_ct_NMEDIT=$NMEDIT
12017 # Extract the first word of "nmedit", so it can be a program name with args.
12018set dummy nmedit; ac_word=$2
12019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12020$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012021if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012022 $as_echo_n "(cached) " >&6
12023else
12024 if test -n "$ac_ct_NMEDIT"; then
12025 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12026else
12027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12028for as_dir in $PATH
12029do
12030 IFS=$as_save_IFS
12031 test -z "$as_dir" && as_dir=.
12032 for ac_exec_ext in '' $ac_executable_extensions; do
12033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12034 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12036 break 2
12037 fi
12038done
12039 done
12040IFS=$as_save_IFS
12041
12042fi
12043fi
12044ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12045if test -n "$ac_ct_NMEDIT"; then
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12047$as_echo "$ac_ct_NMEDIT" >&6; }
12048else
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050$as_echo "no" >&6; }
12051fi
12052
12053 if test "x$ac_ct_NMEDIT" = x; then
12054 NMEDIT=":"
12055 else
12056 case $cross_compiling:$ac_tool_warned in
12057yes:)
12058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12060ac_tool_warned=yes ;;
12061esac
12062 NMEDIT=$ac_ct_NMEDIT
12063 fi
12064else
12065 NMEDIT="$ac_cv_prog_NMEDIT"
12066fi
12067
12068 if test -n "$ac_tool_prefix"; then
12069 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12070set dummy ${ac_tool_prefix}lipo; ac_word=$2
12071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12072$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012073if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012074 $as_echo_n "(cached) " >&6
12075else
12076 if test -n "$LIPO"; then
12077 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12078else
12079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12080for as_dir in $PATH
12081do
12082 IFS=$as_save_IFS
12083 test -z "$as_dir" && as_dir=.
12084 for ac_exec_ext in '' $ac_executable_extensions; do
12085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12086 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12088 break 2
12089 fi
12090done
12091 done
12092IFS=$as_save_IFS
12093
12094fi
12095fi
12096LIPO=$ac_cv_prog_LIPO
12097if test -n "$LIPO"; then
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12099$as_echo "$LIPO" >&6; }
12100else
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12102$as_echo "no" >&6; }
12103fi
12104
12105
12106fi
12107if test -z "$ac_cv_prog_LIPO"; then
12108 ac_ct_LIPO=$LIPO
12109 # Extract the first word of "lipo", so it can be a program name with args.
12110set dummy lipo; ac_word=$2
12111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12112$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012113if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012114 $as_echo_n "(cached) " >&6
12115else
12116 if test -n "$ac_ct_LIPO"; then
12117 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12118else
12119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12120for as_dir in $PATH
12121do
12122 IFS=$as_save_IFS
12123 test -z "$as_dir" && as_dir=.
12124 for ac_exec_ext in '' $ac_executable_extensions; do
12125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12126 ac_cv_prog_ac_ct_LIPO="lipo"
12127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12128 break 2
12129 fi
12130done
12131 done
12132IFS=$as_save_IFS
12133
12134fi
12135fi
12136ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12137if test -n "$ac_ct_LIPO"; then
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12139$as_echo "$ac_ct_LIPO" >&6; }
12140else
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12142$as_echo "no" >&6; }
12143fi
12144
12145 if test "x$ac_ct_LIPO" = x; then
12146 LIPO=":"
12147 else
12148 case $cross_compiling:$ac_tool_warned in
12149yes:)
12150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12152ac_tool_warned=yes ;;
12153esac
12154 LIPO=$ac_ct_LIPO
12155 fi
12156else
12157 LIPO="$ac_cv_prog_LIPO"
12158fi
12159
12160 if test -n "$ac_tool_prefix"; then
12161 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12162set dummy ${ac_tool_prefix}otool; ac_word=$2
12163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12164$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012165if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012166 $as_echo_n "(cached) " >&6
12167else
12168 if test -n "$OTOOL"; then
12169 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12170else
12171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12172for as_dir in $PATH
12173do
12174 IFS=$as_save_IFS
12175 test -z "$as_dir" && as_dir=.
12176 for ac_exec_ext in '' $ac_executable_extensions; do
12177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12178 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12180 break 2
12181 fi
12182done
12183 done
12184IFS=$as_save_IFS
12185
12186fi
12187fi
12188OTOOL=$ac_cv_prog_OTOOL
12189if test -n "$OTOOL"; then
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12191$as_echo "$OTOOL" >&6; }
12192else
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12194$as_echo "no" >&6; }
12195fi
12196
12197
12198fi
12199if test -z "$ac_cv_prog_OTOOL"; then
12200 ac_ct_OTOOL=$OTOOL
12201 # Extract the first word of "otool", so it can be a program name with args.
12202set dummy otool; ac_word=$2
12203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012205if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012206 $as_echo_n "(cached) " >&6
12207else
12208 if test -n "$ac_ct_OTOOL"; then
12209 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12210else
12211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212for as_dir in $PATH
12213do
12214 IFS=$as_save_IFS
12215 test -z "$as_dir" && as_dir=.
12216 for ac_exec_ext in '' $ac_executable_extensions; do
12217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12218 ac_cv_prog_ac_ct_OTOOL="otool"
12219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12220 break 2
12221 fi
12222done
12223 done
12224IFS=$as_save_IFS
12225
12226fi
12227fi
12228ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12229if test -n "$ac_ct_OTOOL"; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12231$as_echo "$ac_ct_OTOOL" >&6; }
12232else
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234$as_echo "no" >&6; }
12235fi
12236
12237 if test "x$ac_ct_OTOOL" = x; then
12238 OTOOL=":"
12239 else
12240 case $cross_compiling:$ac_tool_warned in
12241yes:)
12242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12244ac_tool_warned=yes ;;
12245esac
12246 OTOOL=$ac_ct_OTOOL
12247 fi
12248else
12249 OTOOL="$ac_cv_prog_OTOOL"
12250fi
12251
12252 if test -n "$ac_tool_prefix"; then
12253 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12254set dummy ${ac_tool_prefix}otool64; ac_word=$2
12255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12256$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012257if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012258 $as_echo_n "(cached) " >&6
12259else
12260 if test -n "$OTOOL64"; then
12261 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12262else
12263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12264for as_dir in $PATH
12265do
12266 IFS=$as_save_IFS
12267 test -z "$as_dir" && as_dir=.
12268 for ac_exec_ext in '' $ac_executable_extensions; do
12269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12270 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12272 break 2
12273 fi
12274done
12275 done
12276IFS=$as_save_IFS
12277
12278fi
12279fi
12280OTOOL64=$ac_cv_prog_OTOOL64
12281if test -n "$OTOOL64"; then
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12283$as_echo "$OTOOL64" >&6; }
12284else
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286$as_echo "no" >&6; }
12287fi
12288
12289
12290fi
12291if test -z "$ac_cv_prog_OTOOL64"; then
12292 ac_ct_OTOOL64=$OTOOL64
12293 # Extract the first word of "otool64", so it can be a program name with args.
12294set dummy otool64; ac_word=$2
12295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12296$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012297if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012298 $as_echo_n "(cached) " >&6
12299else
12300 if test -n "$ac_ct_OTOOL64"; then
12301 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12302else
12303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304for as_dir in $PATH
12305do
12306 IFS=$as_save_IFS
12307 test -z "$as_dir" && as_dir=.
12308 for ac_exec_ext in '' $ac_executable_extensions; do
12309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12310 ac_cv_prog_ac_ct_OTOOL64="otool64"
12311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12312 break 2
12313 fi
12314done
12315 done
12316IFS=$as_save_IFS
12317
12318fi
12319fi
12320ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12321if test -n "$ac_ct_OTOOL64"; then
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12323$as_echo "$ac_ct_OTOOL64" >&6; }
12324else
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326$as_echo "no" >&6; }
12327fi
12328
12329 if test "x$ac_ct_OTOOL64" = x; then
12330 OTOOL64=":"
12331 else
12332 case $cross_compiling:$ac_tool_warned in
12333yes:)
12334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12336ac_tool_warned=yes ;;
12337esac
12338 OTOOL64=$ac_ct_OTOOL64
12339 fi
12340else
12341 OTOOL64="$ac_cv_prog_OTOOL64"
12342fi
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12371$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012372if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012373 $as_echo_n "(cached) " >&6
12374else
12375 lt_cv_apple_cc_single_mod=no
12376 if test -z "${LT_MULTI_MODULE}"; then
12377 # By default we will add the -single_module flag. You can override
12378 # by either setting the environment variable LT_MULTI_MODULE
12379 # non-empty at configure time, or by adding -multi_module to the
12380 # link flags.
12381 rm -rf libconftest.dylib*
12382 echo "int foo(void){return 1;}" > conftest.c
12383 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12384-dynamiclib -Wl,-single_module conftest.c" >&5
12385 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12386 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12387 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012388 # If there is a non-empty error log, and "single_module"
12389 # appears in it, assume the flag caused a linker warning
12390 if test -s conftest.err && $GREP single_module conftest.err; then
12391 cat conftest.err >&5
12392 # Otherwise, if the output was created with a 0 exit code from
12393 # the compiler, it worked.
12394 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000012395 lt_cv_apple_cc_single_mod=yes
12396 else
12397 cat conftest.err >&5
12398 fi
12399 rm -rf libconftest.dylib*
12400 rm -f conftest.*
12401 fi
12402fi
12403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12404$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012405
cristy73bd4a52010-10-05 11:24:23 +000012406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12407$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012408if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012409 $as_echo_n "(cached) " >&6
12410else
12411 lt_cv_ld_exported_symbols_list=no
12412 save_LDFLAGS=$LDFLAGS
12413 echo "_main" > conftest.sym
12414 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12416/* end confdefs.h. */
12417
12418int
12419main ()
12420{
12421
12422 ;
12423 return 0;
12424}
12425_ACEOF
12426if ac_fn_c_try_link "$LINENO"; then :
12427 lt_cv_ld_exported_symbols_list=yes
12428else
12429 lt_cv_ld_exported_symbols_list=no
12430fi
12431rm -f core conftest.err conftest.$ac_objext \
12432 conftest$ac_exeext conftest.$ac_ext
12433 LDFLAGS="$save_LDFLAGS"
12434
12435fi
12436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12437$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012438
cristy0c60a692010-11-04 01:09:47 +000012439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12440$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012441if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012442 $as_echo_n "(cached) " >&6
12443else
12444 lt_cv_ld_force_load=no
12445 cat > conftest.c << _LT_EOF
12446int forced_loaded() { return 2;}
12447_LT_EOF
12448 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12449 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12450 echo "$AR cru libconftest.a conftest.o" >&5
12451 $AR cru libconftest.a conftest.o 2>&5
12452 echo "$RANLIB libconftest.a" >&5
12453 $RANLIB libconftest.a 2>&5
12454 cat > conftest.c << _LT_EOF
12455int main() { return 0;}
12456_LT_EOF
12457 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12458 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12459 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012460 if test -s conftest.err && $GREP force_load conftest.err; then
12461 cat conftest.err >&5
12462 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000012463 lt_cv_ld_force_load=yes
12464 else
12465 cat conftest.err >&5
12466 fi
12467 rm -f conftest.err libconftest.a conftest conftest.c
12468 rm -rf conftest.dSYM
12469
12470fi
12471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12472$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012473 case $host_os in
12474 rhapsody* | darwin1.[012])
12475 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12476 darwin1.*)
12477 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12478 darwin*) # darwin 5.x on
12479 # if running on 10.5 or later, the deployment target defaults
12480 # to the OS version, if on x86, and 10.4, the deployment
12481 # target defaults to 10.4. Don't you love it?
12482 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12483 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12484 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12485 10.[012]*)
12486 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12487 10.*)
12488 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12489 esac
12490 ;;
12491 esac
12492 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12493 _lt_dar_single_mod='$single_module'
12494 fi
12495 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12496 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12497 else
12498 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12499 fi
cristy0c60a692010-11-04 01:09:47 +000012500 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012501 _lt_dsymutil='~$DSYMUTIL $lib || :'
12502 else
12503 _lt_dsymutil=
12504 fi
12505 ;;
12506 esac
12507
12508for ac_header in dlfcn.h
12509do :
12510 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12511"
cristyda16f162011-02-19 23:52:17 +000012512if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012513 cat >>confdefs.h <<_ACEOF
12514#define HAVE_DLFCN_H 1
12515_ACEOF
12516
12517fi
12518
12519done
12520
12521
12522
cristy73bd4a52010-10-05 11:24:23 +000012523
cristyda16f162011-02-19 23:52:17 +000012524func_stripname_cnf ()
12525{
12526 case ${2} in
12527 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12528 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12529 esac
12530} # func_stripname_cnf
12531
12532
12533
cristy73bd4a52010-10-05 11:24:23 +000012534
12535
12536# Set options
12537enable_win32_dll=yes
12538
12539case $host in
cristy0c60a692010-11-04 01:09:47 +000012540*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012541 if test -n "$ac_tool_prefix"; then
12542 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12543set dummy ${ac_tool_prefix}as; ac_word=$2
12544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12545$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012546if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012547 $as_echo_n "(cached) " >&6
12548else
12549 if test -n "$AS"; then
12550 ac_cv_prog_AS="$AS" # Let the user override the test.
12551else
12552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12553for as_dir in $PATH
12554do
12555 IFS=$as_save_IFS
12556 test -z "$as_dir" && as_dir=.
12557 for ac_exec_ext in '' $ac_executable_extensions; do
12558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12559 ac_cv_prog_AS="${ac_tool_prefix}as"
12560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12561 break 2
12562 fi
12563done
12564 done
12565IFS=$as_save_IFS
12566
12567fi
12568fi
12569AS=$ac_cv_prog_AS
12570if test -n "$AS"; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12572$as_echo "$AS" >&6; }
12573else
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575$as_echo "no" >&6; }
12576fi
12577
12578
12579fi
12580if test -z "$ac_cv_prog_AS"; then
12581 ac_ct_AS=$AS
12582 # Extract the first word of "as", so it can be a program name with args.
12583set dummy as; ac_word=$2
12584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12585$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012586if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012587 $as_echo_n "(cached) " >&6
12588else
12589 if test -n "$ac_ct_AS"; then
12590 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12591else
12592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12593for as_dir in $PATH
12594do
12595 IFS=$as_save_IFS
12596 test -z "$as_dir" && as_dir=.
12597 for ac_exec_ext in '' $ac_executable_extensions; do
12598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12599 ac_cv_prog_ac_ct_AS="as"
12600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12601 break 2
12602 fi
12603done
12604 done
12605IFS=$as_save_IFS
12606
12607fi
12608fi
12609ac_ct_AS=$ac_cv_prog_ac_ct_AS
12610if test -n "$ac_ct_AS"; then
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12612$as_echo "$ac_ct_AS" >&6; }
12613else
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12615$as_echo "no" >&6; }
12616fi
12617
12618 if test "x$ac_ct_AS" = x; then
12619 AS="false"
12620 else
12621 case $cross_compiling:$ac_tool_warned in
12622yes:)
12623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12625ac_tool_warned=yes ;;
12626esac
12627 AS=$ac_ct_AS
12628 fi
12629else
12630 AS="$ac_cv_prog_AS"
12631fi
12632
12633 if test -n "$ac_tool_prefix"; then
12634 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12635set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12637$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012638if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012639 $as_echo_n "(cached) " >&6
12640else
12641 if test -n "$DLLTOOL"; then
12642 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12643else
12644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12645for as_dir in $PATH
12646do
12647 IFS=$as_save_IFS
12648 test -z "$as_dir" && as_dir=.
12649 for ac_exec_ext in '' $ac_executable_extensions; do
12650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12651 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12653 break 2
12654 fi
12655done
12656 done
12657IFS=$as_save_IFS
12658
12659fi
12660fi
12661DLLTOOL=$ac_cv_prog_DLLTOOL
12662if test -n "$DLLTOOL"; then
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12664$as_echo "$DLLTOOL" >&6; }
12665else
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12667$as_echo "no" >&6; }
12668fi
12669
12670
12671fi
12672if test -z "$ac_cv_prog_DLLTOOL"; then
12673 ac_ct_DLLTOOL=$DLLTOOL
12674 # Extract the first word of "dlltool", so it can be a program name with args.
12675set dummy dlltool; ac_word=$2
12676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12677$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012678if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012679 $as_echo_n "(cached) " >&6
12680else
12681 if test -n "$ac_ct_DLLTOOL"; then
12682 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12683else
12684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12685for as_dir in $PATH
12686do
12687 IFS=$as_save_IFS
12688 test -z "$as_dir" && as_dir=.
12689 for ac_exec_ext in '' $ac_executable_extensions; do
12690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12691 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12693 break 2
12694 fi
12695done
12696 done
12697IFS=$as_save_IFS
12698
12699fi
12700fi
12701ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12702if test -n "$ac_ct_DLLTOOL"; then
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12704$as_echo "$ac_ct_DLLTOOL" >&6; }
12705else
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707$as_echo "no" >&6; }
12708fi
12709
12710 if test "x$ac_ct_DLLTOOL" = x; then
12711 DLLTOOL="false"
12712 else
12713 case $cross_compiling:$ac_tool_warned in
12714yes:)
12715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12717ac_tool_warned=yes ;;
12718esac
12719 DLLTOOL=$ac_ct_DLLTOOL
12720 fi
12721else
12722 DLLTOOL="$ac_cv_prog_DLLTOOL"
12723fi
12724
12725 if test -n "$ac_tool_prefix"; then
12726 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12727set dummy ${ac_tool_prefix}objdump; ac_word=$2
12728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12729$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012730if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012731 $as_echo_n "(cached) " >&6
12732else
12733 if test -n "$OBJDUMP"; then
12734 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12735else
12736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12737for as_dir in $PATH
12738do
12739 IFS=$as_save_IFS
12740 test -z "$as_dir" && as_dir=.
12741 for ac_exec_ext in '' $ac_executable_extensions; do
12742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12743 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12745 break 2
12746 fi
12747done
12748 done
12749IFS=$as_save_IFS
12750
12751fi
12752fi
12753OBJDUMP=$ac_cv_prog_OBJDUMP
12754if test -n "$OBJDUMP"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12756$as_echo "$OBJDUMP" >&6; }
12757else
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12759$as_echo "no" >&6; }
12760fi
12761
12762
12763fi
12764if test -z "$ac_cv_prog_OBJDUMP"; then
12765 ac_ct_OBJDUMP=$OBJDUMP
12766 # Extract the first word of "objdump", so it can be a program name with args.
12767set dummy objdump; ac_word=$2
12768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12769$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012770if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012771 $as_echo_n "(cached) " >&6
12772else
12773 if test -n "$ac_ct_OBJDUMP"; then
12774 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12775else
12776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12777for as_dir in $PATH
12778do
12779 IFS=$as_save_IFS
12780 test -z "$as_dir" && as_dir=.
12781 for ac_exec_ext in '' $ac_executable_extensions; do
12782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12783 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12785 break 2
12786 fi
12787done
12788 done
12789IFS=$as_save_IFS
12790
12791fi
12792fi
12793ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12794if test -n "$ac_ct_OBJDUMP"; then
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12796$as_echo "$ac_ct_OBJDUMP" >&6; }
12797else
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12799$as_echo "no" >&6; }
12800fi
12801
12802 if test "x$ac_ct_OBJDUMP" = x; then
12803 OBJDUMP="false"
12804 else
12805 case $cross_compiling:$ac_tool_warned in
12806yes:)
12807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12809ac_tool_warned=yes ;;
12810esac
12811 OBJDUMP=$ac_ct_OBJDUMP
12812 fi
12813else
12814 OBJDUMP="$ac_cv_prog_OBJDUMP"
12815fi
12816
12817 ;;
12818esac
12819
12820test -z "$AS" && AS=as
12821
12822
12823
12824
12825
12826test -z "$DLLTOOL" && DLLTOOL=dlltool
12827
12828
12829
12830
12831
12832test -z "$OBJDUMP" && OBJDUMP=objdump
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842 # Check whether --enable-shared was given.
12843if test "${enable_shared+set}" = set; then :
12844 enableval=$enable_shared; p=${PACKAGE-default}
12845 case $enableval in
12846 yes) enable_shared=yes ;;
12847 no) enable_shared=no ;;
12848 *)
12849 enable_shared=no
12850 # Look at the argument we got. We use all the common list separators.
12851 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12852 for pkg in $enableval; do
12853 IFS="$lt_save_ifs"
12854 if test "X$pkg" = "X$p"; then
12855 enable_shared=yes
12856 fi
12857 done
12858 IFS="$lt_save_ifs"
12859 ;;
12860 esac
12861else
12862 enable_shared=yes
12863fi
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873 # Check whether --enable-static was given.
12874if test "${enable_static+set}" = set; then :
12875 enableval=$enable_static; p=${PACKAGE-default}
12876 case $enableval in
12877 yes) enable_static=yes ;;
12878 no) enable_static=no ;;
12879 *)
12880 enable_static=no
12881 # Look at the argument we got. We use all the common list separators.
12882 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12883 for pkg in $enableval; do
12884 IFS="$lt_save_ifs"
12885 if test "X$pkg" = "X$p"; then
12886 enable_static=yes
12887 fi
12888 done
12889 IFS="$lt_save_ifs"
12890 ;;
12891 esac
12892else
12893 enable_static=yes
12894fi
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905# Check whether --with-pic was given.
12906if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000012907 withval=$with_pic; lt_p=${PACKAGE-default}
12908 case $withval in
12909 yes|no) pic_mode=$withval ;;
12910 *)
12911 pic_mode=default
12912 # Look at the argument we got. We use all the common list separators.
12913 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12914 for lt_pkg in $withval; do
12915 IFS="$lt_save_ifs"
12916 if test "X$lt_pkg" = "X$lt_p"; then
12917 pic_mode=yes
12918 fi
12919 done
12920 IFS="$lt_save_ifs"
12921 ;;
12922 esac
cristy73bd4a52010-10-05 11:24:23 +000012923else
12924 pic_mode=default
12925fi
12926
12927
12928test -z "$pic_mode" && pic_mode=default
12929
12930
12931
12932
12933
12934
12935
12936 # Check whether --enable-fast-install was given.
12937if test "${enable_fast_install+set}" = set; then :
12938 enableval=$enable_fast_install; p=${PACKAGE-default}
12939 case $enableval in
12940 yes) enable_fast_install=yes ;;
12941 no) enable_fast_install=no ;;
12942 *)
12943 enable_fast_install=no
12944 # Look at the argument we got. We use all the common list separators.
12945 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12946 for pkg in $enableval; do
12947 IFS="$lt_save_ifs"
12948 if test "X$pkg" = "X$p"; then
12949 enable_fast_install=yes
12950 fi
12951 done
12952 IFS="$lt_save_ifs"
12953 ;;
12954 esac
12955else
12956 enable_fast_install=yes
12957fi
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969# This can be used to rebuild libtool when needed
12970LIBTOOL_DEPS="$ltmain"
12971
12972# Always use our own libtool.
12973LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
cristy0c60a692010-11-04 01:09:47 +000012999
cristy99bd5232011-12-07 14:38:20 +000013000
13001
13002
13003
cristy73bd4a52010-10-05 11:24:23 +000013004test -z "$LN_S" && LN_S="ln -s"
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019if test -n "${ZSH_VERSION+set}" ; then
13020 setopt NO_GLOB_SUBST
13021fi
13022
13023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13024$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013025if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013026 $as_echo_n "(cached) " >&6
13027else
13028 rm -f .libs 2>/dev/null
13029mkdir .libs 2>/dev/null
13030if test -d .libs; then
13031 lt_cv_objdir=.libs
13032else
13033 # MS-DOS does not allow filenames that begin with a dot.
13034 lt_cv_objdir=_libs
13035fi
13036rmdir .libs 2>/dev/null
13037fi
13038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13039$as_echo "$lt_cv_objdir" >&6; }
13040objdir=$lt_cv_objdir
13041
13042
13043
13044
13045
13046cat >>confdefs.h <<_ACEOF
13047#define LT_OBJDIR "$lt_cv_objdir/"
13048_ACEOF
13049
13050
13051
13052
cristy73bd4a52010-10-05 11:24:23 +000013053case $host_os in
13054aix3*)
13055 # AIX sometimes has problems with the GCC collect2 program. For some
13056 # reason, if we set the COLLECT_NAMES environment variable, the problems
13057 # vanish in a puff of smoke.
13058 if test "X${COLLECT_NAMES+set}" != Xset; then
13059 COLLECT_NAMES=
13060 export COLLECT_NAMES
13061 fi
13062 ;;
13063esac
13064
cristy73bd4a52010-10-05 11:24:23 +000013065# Global variables:
13066ofile=libtool
13067can_build_shared=yes
13068
13069# All known linkers require a `.a' archive for static linking (except MSVC,
13070# which needs '.lib').
13071libext=a
13072
13073with_gnu_ld="$lt_cv_prog_gnu_ld"
13074
13075old_CC="$CC"
13076old_CFLAGS="$CFLAGS"
13077
13078# Set sane defaults for various variables
13079test -z "$CC" && CC=cc
13080test -z "$LTCC" && LTCC=$CC
13081test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13082test -z "$LD" && LD=ld
13083test -z "$ac_objext" && ac_objext=o
13084
13085for cc_temp in $compiler""; do
13086 case $cc_temp in
13087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13089 \-*) ;;
13090 *) break;;
13091 esac
13092done
cristy0c60a692010-11-04 01:09:47 +000013093cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013094
13095
13096# Only perform the check for file, if the check method requires it
13097test -z "$MAGIC_CMD" && MAGIC_CMD=file
13098case $deplibs_check_method in
13099file_magic*)
13100 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13102$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013103if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013104 $as_echo_n "(cached) " >&6
13105else
13106 case $MAGIC_CMD in
13107[\\/*] | ?:[\\/]*)
13108 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13109 ;;
13110*)
13111 lt_save_MAGIC_CMD="$MAGIC_CMD"
13112 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13113 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13114 for ac_dir in $ac_dummy; do
13115 IFS="$lt_save_ifs"
13116 test -z "$ac_dir" && ac_dir=.
13117 if test -f $ac_dir/${ac_tool_prefix}file; then
13118 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13119 if test -n "$file_magic_test_file"; then
13120 case $deplibs_check_method in
13121 "file_magic "*)
13122 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13123 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13124 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13125 $EGREP "$file_magic_regex" > /dev/null; then
13126 :
13127 else
13128 cat <<_LT_EOF 1>&2
13129
13130*** Warning: the command libtool uses to detect shared libraries,
13131*** $file_magic_cmd, produces output that libtool cannot recognize.
13132*** The result is that libtool may fail to recognize shared libraries
13133*** as such. This will affect the creation of libtool libraries that
13134*** depend on shared libraries, but programs linked with such libtool
13135*** libraries will work regardless of this problem. Nevertheless, you
13136*** may want to report the problem to your system manager and/or to
13137*** bug-libtool@gnu.org
13138
13139_LT_EOF
13140 fi ;;
13141 esac
13142 fi
13143 break
13144 fi
13145 done
13146 IFS="$lt_save_ifs"
13147 MAGIC_CMD="$lt_save_MAGIC_CMD"
13148 ;;
13149esac
13150fi
13151
13152MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13153if test -n "$MAGIC_CMD"; then
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13155$as_echo "$MAGIC_CMD" >&6; }
13156else
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13158$as_echo "no" >&6; }
13159fi
13160
13161
13162
13163
13164
13165if test -z "$lt_cv_path_MAGIC_CMD"; then
13166 if test -n "$ac_tool_prefix"; then
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13168$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013169if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013170 $as_echo_n "(cached) " >&6
13171else
13172 case $MAGIC_CMD in
13173[\\/*] | ?:[\\/]*)
13174 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13175 ;;
13176*)
13177 lt_save_MAGIC_CMD="$MAGIC_CMD"
13178 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13179 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13180 for ac_dir in $ac_dummy; do
13181 IFS="$lt_save_ifs"
13182 test -z "$ac_dir" && ac_dir=.
13183 if test -f $ac_dir/file; then
13184 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13185 if test -n "$file_magic_test_file"; then
13186 case $deplibs_check_method in
13187 "file_magic "*)
13188 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13189 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13190 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13191 $EGREP "$file_magic_regex" > /dev/null; then
13192 :
13193 else
13194 cat <<_LT_EOF 1>&2
13195
13196*** Warning: the command libtool uses to detect shared libraries,
13197*** $file_magic_cmd, produces output that libtool cannot recognize.
13198*** The result is that libtool may fail to recognize shared libraries
13199*** as such. This will affect the creation of libtool libraries that
13200*** depend on shared libraries, but programs linked with such libtool
13201*** libraries will work regardless of this problem. Nevertheless, you
13202*** may want to report the problem to your system manager and/or to
13203*** bug-libtool@gnu.org
13204
13205_LT_EOF
13206 fi ;;
13207 esac
13208 fi
13209 break
13210 fi
13211 done
13212 IFS="$lt_save_ifs"
13213 MAGIC_CMD="$lt_save_MAGIC_CMD"
13214 ;;
13215esac
13216fi
13217
13218MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13219if test -n "$MAGIC_CMD"; then
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13221$as_echo "$MAGIC_CMD" >&6; }
13222else
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224$as_echo "no" >&6; }
13225fi
13226
13227
13228 else
13229 MAGIC_CMD=:
13230 fi
13231fi
13232
13233 fi
13234 ;;
13235esac
13236
13237# Use C for the default configuration in the libtool script
13238
13239lt_save_CC="$CC"
13240ac_ext=c
13241ac_cpp='$CPP $CPPFLAGS'
13242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13244ac_compiler_gnu=$ac_cv_c_compiler_gnu
13245
13246
13247# Source file extension for C test sources.
13248ac_ext=c
13249
13250# Object file extension for compiled C test sources.
13251objext=o
13252objext=$objext
13253
13254# Code to be used in simple compile tests
13255lt_simple_compile_test_code="int some_variable = 0;"
13256
13257# Code to be used in simple link tests
13258lt_simple_link_test_code='int main(){return(0);}'
13259
13260
13261
13262
13263
13264
13265
13266# If no C compiler was specified, use CC.
13267LTCC=${LTCC-"$CC"}
13268
13269# If no C compiler flags were specified, use CFLAGS.
13270LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13271
13272# Allow CC to be a program name with arguments.
13273compiler=$CC
13274
13275# Save the default compiler, since it gets overwritten when the other
13276# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13277compiler_DEFAULT=$CC
13278
13279# save warnings/boilerplate of simple test code
13280ac_outfile=conftest.$ac_objext
13281echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13282eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13283_lt_compiler_boilerplate=`cat conftest.err`
13284$RM conftest*
13285
13286ac_outfile=conftest.$ac_objext
13287echo "$lt_simple_link_test_code" >conftest.$ac_ext
13288eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13289_lt_linker_boilerplate=`cat conftest.err`
13290$RM -r conftest*
13291
13292
13293## CAVEAT EMPTOR:
13294## There is no encapsulation within the following macros, do not change
13295## the running order or otherwise move them around unless you know exactly
13296## what you are doing...
13297if test -n "$compiler"; then
13298
13299lt_prog_compiler_no_builtin_flag=
13300
13301if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013302 case $cc_basename in
13303 nvcc*)
13304 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13305 *)
13306 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13307 esac
cristy73bd4a52010-10-05 11:24:23 +000013308
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13310$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013311if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013312 $as_echo_n "(cached) " >&6
13313else
13314 lt_cv_prog_compiler_rtti_exceptions=no
13315 ac_outfile=conftest.$ac_objext
13316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13317 lt_compiler_flag="-fno-rtti -fno-exceptions"
13318 # Insert the option either (1) after the last *FLAGS variable, or
13319 # (2) before a word containing "conftest.", or (3) at the end.
13320 # Note that $ac_compile itself does not contain backslashes and begins
13321 # with a dollar sign (not a hyphen), so the echo should work correctly.
13322 # The option is referenced via a variable to avoid confusing sed.
13323 lt_compile=`echo "$ac_compile" | $SED \
13324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13326 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013327 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013328 (eval "$lt_compile" 2>conftest.err)
13329 ac_status=$?
13330 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013332 if (exit $ac_status) && test -s "$ac_outfile"; then
13333 # The compiler can only warn and ignore the option if not recognized
13334 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13337 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13338 lt_cv_prog_compiler_rtti_exceptions=yes
13339 fi
13340 fi
13341 $RM conftest*
13342
13343fi
13344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13345$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13346
13347if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13348 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13349else
13350 :
13351fi
13352
13353fi
13354
13355
13356
13357
13358
13359
13360 lt_prog_compiler_wl=
13361lt_prog_compiler_pic=
13362lt_prog_compiler_static=
13363
cristy73bd4a52010-10-05 11:24:23 +000013364
13365 if test "$GCC" = yes; then
13366 lt_prog_compiler_wl='-Wl,'
13367 lt_prog_compiler_static='-static'
13368
13369 case $host_os in
13370 aix*)
13371 # All AIX code is PIC.
13372 if test "$host_cpu" = ia64; then
13373 # AIX 5 now supports IA64 processor
13374 lt_prog_compiler_static='-Bstatic'
13375 fi
13376 ;;
13377
13378 amigaos*)
13379 case $host_cpu in
13380 powerpc)
13381 # see comment about AmigaOS4 .so support
13382 lt_prog_compiler_pic='-fPIC'
13383 ;;
13384 m68k)
13385 # FIXME: we need at least 68020 code to build shared libraries, but
13386 # adding the `-m68020' flag to GCC prevents building anything better,
13387 # like `-m68040'.
13388 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13389 ;;
13390 esac
13391 ;;
13392
13393 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13394 # PIC is the default for these OSes.
13395 ;;
13396
13397 mingw* | cygwin* | pw32* | os2* | cegcc*)
13398 # This hack is so that the source file can tell whether it is being
13399 # built for inclusion in a dll (and should export symbols for example).
13400 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13401 # (--disable-auto-import) libraries
13402 lt_prog_compiler_pic='-DDLL_EXPORT'
13403 ;;
13404
13405 darwin* | rhapsody*)
13406 # PIC is the default on this platform
13407 # Common symbols not allowed in MH_DYLIB files
13408 lt_prog_compiler_pic='-fno-common'
13409 ;;
13410
cristy0c60a692010-11-04 01:09:47 +000013411 haiku*)
13412 # PIC is the default for Haiku.
13413 # The "-static" flag exists, but is broken.
13414 lt_prog_compiler_static=
13415 ;;
13416
cristy73bd4a52010-10-05 11:24:23 +000013417 hpux*)
13418 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13419 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13420 # sets the default TLS model and affects inlining.
13421 case $host_cpu in
13422 hppa*64*)
13423 # +Z the default
13424 ;;
13425 *)
13426 lt_prog_compiler_pic='-fPIC'
13427 ;;
13428 esac
13429 ;;
13430
13431 interix[3-9]*)
13432 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13433 # Instead, we relocate shared libraries at runtime.
13434 ;;
13435
13436 msdosdjgpp*)
13437 # Just because we use GCC doesn't mean we suddenly get shared libraries
13438 # on systems that don't support them.
13439 lt_prog_compiler_can_build_shared=no
13440 enable_shared=no
13441 ;;
13442
13443 *nto* | *qnx*)
13444 # QNX uses GNU C++, but need to define -shared option too, otherwise
13445 # it will coredump.
13446 lt_prog_compiler_pic='-fPIC -shared'
13447 ;;
13448
13449 sysv4*MP*)
13450 if test -d /usr/nec; then
13451 lt_prog_compiler_pic=-Kconform_pic
13452 fi
13453 ;;
13454
13455 *)
13456 lt_prog_compiler_pic='-fPIC'
13457 ;;
13458 esac
cristy0c60a692010-11-04 01:09:47 +000013459
13460 case $cc_basename in
13461 nvcc*) # Cuda Compiler Driver 2.2
13462 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000013463 if test -n "$lt_prog_compiler_pic"; then
13464 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13465 fi
cristy0c60a692010-11-04 01:09:47 +000013466 ;;
13467 esac
cristy73bd4a52010-10-05 11:24:23 +000013468 else
13469 # PORTME Check for flag to pass linker flags through the system compiler.
13470 case $host_os in
13471 aix*)
13472 lt_prog_compiler_wl='-Wl,'
13473 if test "$host_cpu" = ia64; then
13474 # AIX 5 now supports IA64 processor
13475 lt_prog_compiler_static='-Bstatic'
13476 else
13477 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13478 fi
13479 ;;
13480
13481 mingw* | cygwin* | pw32* | os2* | cegcc*)
13482 # This hack is so that the source file can tell whether it is being
13483 # built for inclusion in a dll (and should export symbols for example).
13484 lt_prog_compiler_pic='-DDLL_EXPORT'
13485 ;;
13486
13487 hpux9* | hpux10* | hpux11*)
13488 lt_prog_compiler_wl='-Wl,'
13489 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13490 # not for PA HP-UX.
13491 case $host_cpu in
13492 hppa*64*|ia64*)
13493 # +Z the default
13494 ;;
13495 *)
13496 lt_prog_compiler_pic='+Z'
13497 ;;
13498 esac
13499 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13500 lt_prog_compiler_static='${wl}-a ${wl}archive'
13501 ;;
13502
13503 irix5* | irix6* | nonstopux*)
13504 lt_prog_compiler_wl='-Wl,'
13505 # PIC (with -KPIC) is the default.
13506 lt_prog_compiler_static='-non_shared'
13507 ;;
13508
cristy0c60a692010-11-04 01:09:47 +000013509 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013510 case $cc_basename in
13511 # old Intel for x86_64 which still supported -KPIC.
13512 ecc*)
13513 lt_prog_compiler_wl='-Wl,'
13514 lt_prog_compiler_pic='-KPIC'
13515 lt_prog_compiler_static='-static'
13516 ;;
13517 # icc used to be incompatible with GCC.
13518 # ICC 10 doesn't accept -KPIC any more.
13519 icc* | ifort*)
13520 lt_prog_compiler_wl='-Wl,'
13521 lt_prog_compiler_pic='-fPIC'
13522 lt_prog_compiler_static='-static'
13523 ;;
13524 # Lahey Fortran 8.1.
13525 lf95*)
13526 lt_prog_compiler_wl='-Wl,'
13527 lt_prog_compiler_pic='--shared'
13528 lt_prog_compiler_static='--static'
13529 ;;
cristyda16f162011-02-19 23:52:17 +000013530 nagfor*)
13531 # NAG Fortran compiler
13532 lt_prog_compiler_wl='-Wl,-Wl,,'
13533 lt_prog_compiler_pic='-PIC'
13534 lt_prog_compiler_static='-Bstatic'
13535 ;;
cristy0c60a692010-11-04 01:09:47 +000013536 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013537 # Portland Group compilers (*not* the Pentium gcc compiler,
13538 # which looks to be a dead project)
13539 lt_prog_compiler_wl='-Wl,'
13540 lt_prog_compiler_pic='-fpic'
13541 lt_prog_compiler_static='-Bstatic'
13542 ;;
13543 ccc*)
13544 lt_prog_compiler_wl='-Wl,'
13545 # All Alpha code is PIC.
13546 lt_prog_compiler_static='-non_shared'
13547 ;;
cristy0c60a692010-11-04 01:09:47 +000013548 xl* | bgxl* | bgf* | mpixl*)
13549 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013550 lt_prog_compiler_wl='-Wl,'
13551 lt_prog_compiler_pic='-qpic'
13552 lt_prog_compiler_static='-qstaticlink'
13553 ;;
13554 *)
13555 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000013556 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000013557 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13558 lt_prog_compiler_pic='-KPIC'
13559 lt_prog_compiler_static='-Bstatic'
13560 lt_prog_compiler_wl=''
13561 ;;
cristy99bd5232011-12-07 14:38:20 +000013562 *Sun\ F* | *Sun*Fortran*)
13563 lt_prog_compiler_pic='-KPIC'
13564 lt_prog_compiler_static='-Bstatic'
13565 lt_prog_compiler_wl='-Qoption ld '
13566 ;;
cristy73bd4a52010-10-05 11:24:23 +000013567 *Sun\ C*)
13568 # Sun C 5.9
13569 lt_prog_compiler_pic='-KPIC'
13570 lt_prog_compiler_static='-Bstatic'
13571 lt_prog_compiler_wl='-Wl,'
13572 ;;
cristy99bd5232011-12-07 14:38:20 +000013573 *Intel*\ [CF]*Compiler*)
13574 lt_prog_compiler_wl='-Wl,'
13575 lt_prog_compiler_pic='-fPIC'
13576 lt_prog_compiler_static='-static'
13577 ;;
13578 *Portland\ Group*)
13579 lt_prog_compiler_wl='-Wl,'
13580 lt_prog_compiler_pic='-fpic'
13581 lt_prog_compiler_static='-Bstatic'
13582 ;;
cristy73bd4a52010-10-05 11:24:23 +000013583 esac
13584 ;;
13585 esac
13586 ;;
13587
13588 newsos6)
13589 lt_prog_compiler_pic='-KPIC'
13590 lt_prog_compiler_static='-Bstatic'
13591 ;;
13592
13593 *nto* | *qnx*)
13594 # QNX uses GNU C++, but need to define -shared option too, otherwise
13595 # it will coredump.
13596 lt_prog_compiler_pic='-fPIC -shared'
13597 ;;
13598
13599 osf3* | osf4* | osf5*)
13600 lt_prog_compiler_wl='-Wl,'
13601 # All OSF/1 code is PIC.
13602 lt_prog_compiler_static='-non_shared'
13603 ;;
13604
13605 rdos*)
13606 lt_prog_compiler_static='-non_shared'
13607 ;;
13608
13609 solaris*)
13610 lt_prog_compiler_pic='-KPIC'
13611 lt_prog_compiler_static='-Bstatic'
13612 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013613 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013614 lt_prog_compiler_wl='-Qoption ld ';;
13615 *)
13616 lt_prog_compiler_wl='-Wl,';;
13617 esac
13618 ;;
13619
13620 sunos4*)
13621 lt_prog_compiler_wl='-Qoption ld '
13622 lt_prog_compiler_pic='-PIC'
13623 lt_prog_compiler_static='-Bstatic'
13624 ;;
13625
13626 sysv4 | sysv4.2uw2* | sysv4.3*)
13627 lt_prog_compiler_wl='-Wl,'
13628 lt_prog_compiler_pic='-KPIC'
13629 lt_prog_compiler_static='-Bstatic'
13630 ;;
13631
13632 sysv4*MP*)
13633 if test -d /usr/nec ;then
13634 lt_prog_compiler_pic='-Kconform_pic'
13635 lt_prog_compiler_static='-Bstatic'
13636 fi
13637 ;;
13638
13639 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13640 lt_prog_compiler_wl='-Wl,'
13641 lt_prog_compiler_pic='-KPIC'
13642 lt_prog_compiler_static='-Bstatic'
13643 ;;
13644
13645 unicos*)
13646 lt_prog_compiler_wl='-Wl,'
13647 lt_prog_compiler_can_build_shared=no
13648 ;;
13649
13650 uts4*)
13651 lt_prog_compiler_pic='-pic'
13652 lt_prog_compiler_static='-Bstatic'
13653 ;;
13654
13655 *)
13656 lt_prog_compiler_can_build_shared=no
13657 ;;
13658 esac
13659 fi
13660
13661case $host_os in
13662 # For platforms which do not support PIC, -DPIC is meaningless:
13663 *djgpp*)
13664 lt_prog_compiler_pic=
13665 ;;
13666 *)
13667 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13668 ;;
13669esac
cristy73bd4a52010-10-05 11:24:23 +000013670
cristyda16f162011-02-19 23:52:17 +000013671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13672$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13673if ${lt_cv_prog_compiler_pic+:} false; then :
13674 $as_echo_n "(cached) " >&6
13675else
13676 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13677fi
13678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13679$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13680lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013681
13682#
13683# Check to make sure the PIC flag actually works.
13684#
13685if test -n "$lt_prog_compiler_pic"; then
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13687$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013688if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013689 $as_echo_n "(cached) " >&6
13690else
13691 lt_cv_prog_compiler_pic_works=no
13692 ac_outfile=conftest.$ac_objext
13693 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13694 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13695 # Insert the option either (1) after the last *FLAGS variable, or
13696 # (2) before a word containing "conftest.", or (3) at the end.
13697 # Note that $ac_compile itself does not contain backslashes and begins
13698 # with a dollar sign (not a hyphen), so the echo should work correctly.
13699 # The option is referenced via a variable to avoid confusing sed.
13700 lt_compile=`echo "$ac_compile" | $SED \
13701 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13702 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13703 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013704 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013705 (eval "$lt_compile" 2>conftest.err)
13706 ac_status=$?
13707 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013709 if (exit $ac_status) && test -s "$ac_outfile"; then
13710 # The compiler can only warn and ignore the option if not recognized
13711 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013712 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013713 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13714 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13715 lt_cv_prog_compiler_pic_works=yes
13716 fi
13717 fi
13718 $RM conftest*
13719
13720fi
13721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13722$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13723
13724if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13725 case $lt_prog_compiler_pic in
13726 "" | " "*) ;;
13727 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13728 esac
13729else
13730 lt_prog_compiler_pic=
13731 lt_prog_compiler_can_build_shared=no
13732fi
13733
13734fi
13735
13736
13737
13738
13739
13740
cristyda16f162011-02-19 23:52:17 +000013741
13742
13743
13744
13745
cristy73bd4a52010-10-05 11:24:23 +000013746#
13747# Check to make sure the static flag actually works.
13748#
13749wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13751$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013752if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013753 $as_echo_n "(cached) " >&6
13754else
13755 lt_cv_prog_compiler_static_works=no
13756 save_LDFLAGS="$LDFLAGS"
13757 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13758 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13759 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13760 # The linker can only warn and ignore the option if not recognized
13761 # So say no if there are warnings
13762 if test -s conftest.err; then
13763 # Append any errors to the config.log.
13764 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013765 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013766 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13767 if diff conftest.exp conftest.er2 >/dev/null; then
13768 lt_cv_prog_compiler_static_works=yes
13769 fi
13770 else
13771 lt_cv_prog_compiler_static_works=yes
13772 fi
13773 fi
13774 $RM -r conftest*
13775 LDFLAGS="$save_LDFLAGS"
13776
13777fi
13778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13779$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13780
13781if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13782 :
13783else
13784 lt_prog_compiler_static=
13785fi
13786
13787
13788
13789
13790
13791
13792
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13794$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013795if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013796 $as_echo_n "(cached) " >&6
13797else
13798 lt_cv_prog_compiler_c_o=no
13799 $RM -r conftest 2>/dev/null
13800 mkdir conftest
13801 cd conftest
13802 mkdir out
13803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13804
13805 lt_compiler_flag="-o out/conftest2.$ac_objext"
13806 # Insert the option either (1) after the last *FLAGS variable, or
13807 # (2) before a word containing "conftest.", or (3) at the end.
13808 # Note that $ac_compile itself does not contain backslashes and begins
13809 # with a dollar sign (not a hyphen), so the echo should work correctly.
13810 lt_compile=`echo "$ac_compile" | $SED \
13811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13813 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013814 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013815 (eval "$lt_compile" 2>out/conftest.err)
13816 ac_status=$?
13817 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013819 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13820 then
13821 # The compiler can only warn and ignore the option if not recognized
13822 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013823 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013824 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13825 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13826 lt_cv_prog_compiler_c_o=yes
13827 fi
13828 fi
13829 chmod u+w . 2>&5
13830 $RM conftest*
13831 # SGI C++ compiler will create directory out/ii_files/ for
13832 # template instantiation
13833 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13834 $RM out/* && rmdir out
13835 cd ..
13836 $RM -r conftest
13837 $RM conftest*
13838
13839fi
13840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13841$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13842
13843
13844
13845
13846
13847
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13849$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013850if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013851 $as_echo_n "(cached) " >&6
13852else
13853 lt_cv_prog_compiler_c_o=no
13854 $RM -r conftest 2>/dev/null
13855 mkdir conftest
13856 cd conftest
13857 mkdir out
13858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13859
13860 lt_compiler_flag="-o out/conftest2.$ac_objext"
13861 # Insert the option either (1) after the last *FLAGS variable, or
13862 # (2) before a word containing "conftest.", or (3) at the end.
13863 # Note that $ac_compile itself does not contain backslashes and begins
13864 # with a dollar sign (not a hyphen), so the echo should work correctly.
13865 lt_compile=`echo "$ac_compile" | $SED \
13866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13868 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013869 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013870 (eval "$lt_compile" 2>out/conftest.err)
13871 ac_status=$?
13872 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013874 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13875 then
13876 # The compiler can only warn and ignore the option if not recognized
13877 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013878 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013879 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13880 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13881 lt_cv_prog_compiler_c_o=yes
13882 fi
13883 fi
13884 chmod u+w . 2>&5
13885 $RM conftest*
13886 # SGI C++ compiler will create directory out/ii_files/ for
13887 # template instantiation
13888 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13889 $RM out/* && rmdir out
13890 cd ..
13891 $RM -r conftest
13892 $RM conftest*
13893
13894fi
13895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13896$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13897
13898
13899
13900
13901hard_links="nottested"
13902if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13903 # do not overwrite the value of need_locks provided by the user
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13905$as_echo_n "checking if we can lock with hard links... " >&6; }
13906 hard_links=yes
13907 $RM conftest*
13908 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13909 touch conftest.a
13910 ln conftest.a conftest.b 2>&5 || hard_links=no
13911 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13913$as_echo "$hard_links" >&6; }
13914 if test "$hard_links" = no; then
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13916$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13917 need_locks=warn
13918 fi
13919else
13920 need_locks=no
13921fi
13922
13923
13924
13925
13926
13927
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13929$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13930
13931 runpath_var=
13932 allow_undefined_flag=
13933 always_export_symbols=no
13934 archive_cmds=
13935 archive_expsym_cmds=
13936 compiler_needs_object=no
13937 enable_shared_with_static_runtimes=no
13938 export_dynamic_flag_spec=
13939 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13940 hardcode_automatic=no
13941 hardcode_direct=no
13942 hardcode_direct_absolute=no
13943 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000013944 hardcode_libdir_separator=
13945 hardcode_minus_L=no
13946 hardcode_shlibpath_var=unsupported
13947 inherit_rpath=no
13948 link_all_deplibs=unknown
13949 module_cmds=
13950 module_expsym_cmds=
13951 old_archive_from_new_cmds=
13952 old_archive_from_expsyms_cmds=
13953 thread_safe_flag_spec=
13954 whole_archive_flag_spec=
13955 # include_expsyms should be a list of space-separated symbols to be *always*
13956 # included in the symbol list
13957 include_expsyms=
13958 # exclude_expsyms can be an extended regexp of symbols to exclude
13959 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13960 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13961 # as well as any symbol that contains `d'.
13962 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13963 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13964 # platforms (ab)use it in PIC code, but their linkers get confused if
13965 # the symbol is explicitly referenced. Since portable code cannot
13966 # rely on this symbol name, it's probably fine to never include it in
13967 # preloaded symbol tables.
13968 # Exclude shared library initialization/finalization symbols.
13969 extract_expsyms_cmds=
13970
13971 case $host_os in
13972 cygwin* | mingw* | pw32* | cegcc*)
13973 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13974 # When not using gcc, we currently assume that we are using
13975 # Microsoft Visual C++.
13976 if test "$GCC" != yes; then
13977 with_gnu_ld=no
13978 fi
13979 ;;
13980 interix*)
13981 # we just hope/assume this is gcc and not c89 (= MSVC++)
13982 with_gnu_ld=yes
13983 ;;
13984 openbsd*)
13985 with_gnu_ld=no
13986 ;;
13987 esac
13988
13989 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013990
13991 # On some targets, GNU ld is compatible enough with the native linker
13992 # that we're better off using the native interface for both.
13993 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013994 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013995 case $host_os in
13996 aix*)
13997 # The AIX port of GNU ld has always aspired to compatibility
13998 # with the native linker. However, as the warning in the GNU ld
13999 # block says, versions before 2.19.5* couldn't really create working
14000 # shared libraries, regardless of the interface used.
14001 case `$LD -v 2>&1` in
14002 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14003 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14004 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14005 *)
14006 lt_use_gnu_ld_interface=yes
14007 ;;
14008 esac
14009 ;;
14010 *)
14011 lt_use_gnu_ld_interface=yes
14012 ;;
14013 esac
14014 fi
14015
14016 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014017 # If archive_cmds runs LD, not CC, wlarc should be empty
14018 wlarc='${wl}'
14019
14020 # Set some defaults for GNU ld with shared library support. These
14021 # are reset later if shared libraries are not supported. Putting them
14022 # here allows them to be overridden if necessary.
14023 runpath_var=LD_RUN_PATH
14024 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14025 export_dynamic_flag_spec='${wl}--export-dynamic'
14026 # ancient GNU ld didn't support --whole-archive et. al.
14027 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14028 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14029 else
14030 whole_archive_flag_spec=
14031 fi
14032 supports_anon_versioning=no
14033 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014034 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014035 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14036 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14037 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14038 *\ 2.11.*) ;; # other 2.11 versions
14039 *) supports_anon_versioning=yes ;;
14040 esac
14041
14042 # See if GNU ld supports shared libraries.
14043 case $host_os in
14044 aix[3-9]*)
14045 # On AIX/PPC, the GNU linker is very broken
14046 if test "$host_cpu" != ia64; then
14047 ld_shlibs=no
14048 cat <<_LT_EOF 1>&2
14049
cristy0c60a692010-11-04 01:09:47 +000014050*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014051*** to be unable to reliably create shared libraries on AIX.
14052*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014053*** really care for shared libraries, you may want to install binutils
14054*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14055*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014056
14057_LT_EOF
14058 fi
14059 ;;
14060
14061 amigaos*)
14062 case $host_cpu in
14063 powerpc)
14064 # see comment about AmigaOS4 .so support
14065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14066 archive_expsym_cmds=''
14067 ;;
14068 m68k)
14069 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)'
14070 hardcode_libdir_flag_spec='-L$libdir'
14071 hardcode_minus_L=yes
14072 ;;
14073 esac
14074 ;;
14075
14076 beos*)
14077 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14078 allow_undefined_flag=unsupported
14079 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14080 # support --undefined. This deserves some investigation. FIXME
14081 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14082 else
14083 ld_shlibs=no
14084 fi
14085 ;;
14086
14087 cygwin* | mingw* | pw32* | cegcc*)
14088 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14089 # as there is no search path for DLLs.
14090 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014091 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014092 allow_undefined_flag=unsupported
14093 always_export_symbols=no
14094 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014095 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'
14096 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 +000014097
14098 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14099 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14100 # If the export-symbols file already is a .def file (1st line
14101 # is EXPORTS), use it as is; otherwise, prepend...
14102 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14103 cp $export_symbols $output_objdir/$soname.def;
14104 else
14105 echo EXPORTS > $output_objdir/$soname.def;
14106 cat $export_symbols >> $output_objdir/$soname.def;
14107 fi~
14108 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14109 else
14110 ld_shlibs=no
14111 fi
14112 ;;
14113
cristy0c60a692010-11-04 01:09:47 +000014114 haiku*)
14115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14116 link_all_deplibs=yes
14117 ;;
14118
cristy73bd4a52010-10-05 11:24:23 +000014119 interix[3-9]*)
14120 hardcode_direct=no
14121 hardcode_shlibpath_var=no
14122 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14123 export_dynamic_flag_spec='${wl}-E'
14124 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14125 # Instead, shared libraries are loaded at an image base (0x10000000 by
14126 # default) and relocated if they conflict, which is a slow very memory
14127 # consuming and fragmenting process. To avoid this, we pick a random,
14128 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14129 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14130 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14131 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'
14132 ;;
14133
cristy0c60a692010-11-04 01:09:47 +000014134 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014135 tmp_diet=no
14136 if test "$host_os" = linux-dietlibc; then
14137 case $cc_basename in
14138 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14139 esac
14140 fi
14141 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14142 && test "$tmp_diet" = no
14143 then
cristyda16f162011-02-19 23:52:17 +000014144 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014145 tmp_sharedflag='-shared'
14146 case $cc_basename,$host_cpu in
14147 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014148 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 +000014149 tmp_addflag=' $pic_flag'
14150 ;;
cristy0c60a692010-11-04 01:09:47 +000014151 pgf77* | pgf90* | pgf95* | pgfortran*)
14152 # Portland Group f77 and f90 compilers
14153 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 +000014154 tmp_addflag=' $pic_flag -Mnomain' ;;
14155 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14156 tmp_addflag=' -i_dynamic' ;;
14157 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14158 tmp_addflag=' -i_dynamic -nofor_main' ;;
14159 ifc* | ifort*) # Intel Fortran compiler
14160 tmp_addflag=' -nofor_main' ;;
14161 lf95*) # Lahey Fortran 8.1
14162 whole_archive_flag_spec=
14163 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014164 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014165 tmp_sharedflag='-qmkshrobj'
14166 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014167 nvcc*) # Cuda Compiler Driver 2.2
14168 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'
14169 compiler_needs_object=yes
14170 ;;
cristy73bd4a52010-10-05 11:24:23 +000014171 esac
14172 case `$CC -V 2>&1 | sed 5q` in
14173 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014174 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 +000014175 compiler_needs_object=yes
14176 tmp_sharedflag='-G' ;;
14177 *Sun\ F*) # Sun Fortran 8.3
14178 tmp_sharedflag='-G' ;;
14179 esac
14180 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14181
14182 if test "x$supports_anon_versioning" = xyes; then
14183 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14184 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14185 echo "local: *; };" >> $output_objdir/$libname.ver~
14186 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14187 fi
14188
14189 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014190 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014191 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14192 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014193 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014194 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014195 if test "x$supports_anon_versioning" = xyes; then
14196 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14197 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14198 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014199 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014200 fi
14201 ;;
14202 esac
14203 else
14204 ld_shlibs=no
14205 fi
14206 ;;
14207
14208 netbsd*)
14209 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14210 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14211 wlarc=
14212 else
cristyda16f162011-02-19 23:52:17 +000014213 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14214 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 +000014215 fi
14216 ;;
14217
14218 solaris*)
14219 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14220 ld_shlibs=no
14221 cat <<_LT_EOF 1>&2
14222
14223*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14224*** create shared libraries on Solaris systems. Therefore, libtool
14225*** is disabling shared libraries support. We urge you to upgrade GNU
14226*** binutils to release 2.9.1 or newer. Another option is to modify
14227*** your PATH or compiler configuration so that the native linker is
14228*** used, and then restart.
14229
14230_LT_EOF
14231 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014232 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14233 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 +000014234 else
14235 ld_shlibs=no
14236 fi
14237 ;;
14238
14239 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14240 case `$LD -v 2>&1` in
14241 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14242 ld_shlibs=no
14243 cat <<_LT_EOF 1>&2
14244
14245*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14246*** reliably create shared libraries on SCO systems. Therefore, libtool
14247*** is disabling shared libraries support. We urge you to upgrade GNU
14248*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14249*** your PATH or compiler configuration so that the native linker is
14250*** used, and then restart.
14251
14252_LT_EOF
14253 ;;
14254 *)
14255 # For security reasons, it is highly recommended that you always
14256 # use absolute paths for naming shared libraries, and exclude the
14257 # DT_RUNPATH tag from executables and libraries. But doing so
14258 # requires that you compile everything twice, which is a pain.
14259 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14260 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14262 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14263 else
14264 ld_shlibs=no
14265 fi
14266 ;;
14267 esac
14268 ;;
14269
14270 sunos4*)
14271 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14272 wlarc=
14273 hardcode_direct=yes
14274 hardcode_shlibpath_var=no
14275 ;;
14276
14277 *)
14278 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014279 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14280 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 +000014281 else
14282 ld_shlibs=no
14283 fi
14284 ;;
14285 esac
14286
14287 if test "$ld_shlibs" = no; then
14288 runpath_var=
14289 hardcode_libdir_flag_spec=
14290 export_dynamic_flag_spec=
14291 whole_archive_flag_spec=
14292 fi
14293 else
14294 # PORTME fill in a description of your system's linker (not GNU ld)
14295 case $host_os in
14296 aix3*)
14297 allow_undefined_flag=unsupported
14298 always_export_symbols=yes
14299 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'
14300 # Note: this linker hardcodes the directories in LIBPATH if there
14301 # are no directories specified by -L.
14302 hardcode_minus_L=yes
14303 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14304 # Neither direct hardcoding nor static linking is supported with a
14305 # broken collect2.
14306 hardcode_direct=unsupported
14307 fi
14308 ;;
14309
14310 aix[4-9]*)
14311 if test "$host_cpu" = ia64; then
14312 # On IA64, the linker does run time linking by default, so we don't
14313 # have to do anything special.
14314 aix_use_runtimelinking=no
14315 exp_sym_flag='-Bexport'
14316 no_entry_flag=""
14317 else
14318 # If we're using GNU nm, then we don't want the "-C" option.
14319 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014320 # Also, AIX nm treats weak defined symbols like other global
14321 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014322 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014323 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 +000014324 else
14325 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'
14326 fi
14327 aix_use_runtimelinking=no
14328
14329 # Test if we are trying to use run time linking or normal
14330 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14331 # need to do runtime linking.
14332 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14333 for ld_flag in $LDFLAGS; do
14334 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14335 aix_use_runtimelinking=yes
14336 break
14337 fi
14338 done
14339 ;;
14340 esac
14341
14342 exp_sym_flag='-bexport'
14343 no_entry_flag='-bnoentry'
14344 fi
14345
14346 # When large executables or shared objects are built, AIX ld can
14347 # have problems creating the table of contents. If linking a library
14348 # or program results in "error TOC overflow" add -mminimal-toc to
14349 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14350 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14351
14352 archive_cmds=''
14353 hardcode_direct=yes
14354 hardcode_direct_absolute=yes
14355 hardcode_libdir_separator=':'
14356 link_all_deplibs=yes
14357 file_list_spec='${wl}-f,'
14358
14359 if test "$GCC" = yes; then
14360 case $host_os in aix4.[012]|aix4.[012].*)
14361 # We only want to do this on AIX 4.2 and lower, the check
14362 # below for broken collect2 doesn't work under 4.3+
14363 collect2name=`${CC} -print-prog-name=collect2`
14364 if test -f "$collect2name" &&
14365 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14366 then
14367 # We have reworked collect2
14368 :
14369 else
14370 # We have old collect2
14371 hardcode_direct=unsupported
14372 # It fails to find uninstalled libraries when the uninstalled
14373 # path is not listed in the libpath. Setting hardcode_minus_L
14374 # to unsupported forces relinking
14375 hardcode_minus_L=yes
14376 hardcode_libdir_flag_spec='-L$libdir'
14377 hardcode_libdir_separator=
14378 fi
14379 ;;
14380 esac
14381 shared_flag='-shared'
14382 if test "$aix_use_runtimelinking" = yes; then
14383 shared_flag="$shared_flag "'${wl}-G'
14384 fi
14385 else
14386 # not using gcc
14387 if test "$host_cpu" = ia64; then
14388 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14389 # chokes on -Wl,-G. The following line is correct:
14390 shared_flag='-G'
14391 else
14392 if test "$aix_use_runtimelinking" = yes; then
14393 shared_flag='${wl}-G'
14394 else
14395 shared_flag='${wl}-bM:SRE'
14396 fi
14397 fi
14398 fi
14399
14400 export_dynamic_flag_spec='${wl}-bexpall'
14401 # It seems that -bexpall does not export symbols beginning with
14402 # underscore (_), so it is better to generate a list of symbols to export.
14403 always_export_symbols=yes
14404 if test "$aix_use_runtimelinking" = yes; then
14405 # Warning - without using the other runtime loading flags (-brtl),
14406 # -berok will link without error, but may produce a broken library.
14407 allow_undefined_flag='-berok'
14408 # Determine the default libpath from the value encoded in an
14409 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014410 if test "${lt_cv_aix_libpath+set}" = set; then
14411 aix_libpath=$lt_cv_aix_libpath
14412else
14413 if ${lt_cv_aix_libpath_+:} false; then :
14414 $as_echo_n "(cached) " >&6
14415else
14416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014417/* end confdefs.h. */
14418
14419int
14420main ()
14421{
14422
14423 ;
14424 return 0;
14425}
14426_ACEOF
14427if ac_fn_c_try_link "$LINENO"; then :
14428
cristyda16f162011-02-19 23:52:17 +000014429 lt_aix_libpath_sed='
14430 /Import File Strings/,/^$/ {
14431 /^0/ {
14432 s/^0 *\([^ ]*\) *$/\1/
14433 p
14434 }
14435 }'
14436 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14437 # Check for a 64-bit object if we didn't find anything.
14438 if test -z "$lt_cv_aix_libpath_"; then
14439 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14440 fi
cristy73bd4a52010-10-05 11:24:23 +000014441fi
14442rm -f core conftest.err conftest.$ac_objext \
14443 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014444 if test -z "$lt_cv_aix_libpath_"; then
14445 lt_cv_aix_libpath_="/usr/lib:/lib"
14446 fi
14447
14448fi
14449
14450 aix_libpath=$lt_cv_aix_libpath_
14451fi
cristy73bd4a52010-10-05 11:24:23 +000014452
14453 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014454 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 +000014455 else
14456 if test "$host_cpu" = ia64; then
14457 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14458 allow_undefined_flag="-z nodefs"
14459 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"
14460 else
14461 # Determine the default libpath from the value encoded in an
14462 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014463 if test "${lt_cv_aix_libpath+set}" = set; then
14464 aix_libpath=$lt_cv_aix_libpath
14465else
14466 if ${lt_cv_aix_libpath_+:} false; then :
14467 $as_echo_n "(cached) " >&6
14468else
14469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014470/* end confdefs.h. */
14471
14472int
14473main ()
14474{
14475
14476 ;
14477 return 0;
14478}
14479_ACEOF
14480if ac_fn_c_try_link "$LINENO"; then :
14481
cristyda16f162011-02-19 23:52:17 +000014482 lt_aix_libpath_sed='
14483 /Import File Strings/,/^$/ {
14484 /^0/ {
14485 s/^0 *\([^ ]*\) *$/\1/
14486 p
14487 }
14488 }'
14489 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14490 # Check for a 64-bit object if we didn't find anything.
14491 if test -z "$lt_cv_aix_libpath_"; then
14492 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14493 fi
cristy73bd4a52010-10-05 11:24:23 +000014494fi
14495rm -f core conftest.err conftest.$ac_objext \
14496 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014497 if test -z "$lt_cv_aix_libpath_"; then
14498 lt_cv_aix_libpath_="/usr/lib:/lib"
14499 fi
14500
14501fi
14502
14503 aix_libpath=$lt_cv_aix_libpath_
14504fi
cristy73bd4a52010-10-05 11:24:23 +000014505
14506 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14507 # Warning - without using the other run time loading flags,
14508 # -berok will link without error, but may produce a broken library.
14509 no_undefined_flag=' ${wl}-bernotok'
14510 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014511 if test "$with_gnu_ld" = yes; then
14512 # We only use this code for GNU lds that support --whole-archive.
14513 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14514 else
14515 # Exported symbols can be pulled into shared objects from archives
14516 whole_archive_flag_spec='$convenience'
14517 fi
cristy73bd4a52010-10-05 11:24:23 +000014518 archive_cmds_need_lc=yes
14519 # This is similar to how AIX traditionally builds its shared libraries.
14520 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'
14521 fi
14522 fi
14523 ;;
14524
14525 amigaos*)
14526 case $host_cpu in
14527 powerpc)
14528 # see comment about AmigaOS4 .so support
14529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14530 archive_expsym_cmds=''
14531 ;;
14532 m68k)
14533 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)'
14534 hardcode_libdir_flag_spec='-L$libdir'
14535 hardcode_minus_L=yes
14536 ;;
14537 esac
14538 ;;
14539
14540 bsdi[45]*)
14541 export_dynamic_flag_spec=-rdynamic
14542 ;;
14543
14544 cygwin* | mingw* | pw32* | cegcc*)
14545 # When not using gcc, we currently assume that we are using
14546 # Microsoft Visual C++.
14547 # hardcode_libdir_flag_spec is actually meaningless, as there is
14548 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014549 case $cc_basename in
14550 cl*)
14551 # Native MSVC
14552 hardcode_libdir_flag_spec=' '
14553 allow_undefined_flag=unsupported
14554 always_export_symbols=yes
14555 file_list_spec='@'
14556 # Tell ltmain to make .lib files, not .a files.
14557 libext=lib
14558 # Tell ltmain to make .dll files, not .so files.
14559 shrext_cmds=".dll"
14560 # FIXME: Setting linknames here is a bad hack.
14561 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14562 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14563 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14564 else
14565 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14566 fi~
14567 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14568 linknames='
14569 # The linker will not automatically build a static lib if we build a DLL.
14570 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14571 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000014572 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000014573 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14574 # Don't use ranlib
14575 old_postinstall_cmds='chmod 644 $oldlib'
14576 postlink_cmds='lt_outputfile="@OUTPUT@"~
14577 lt_tool_outputfile="@TOOL_OUTPUT@"~
14578 case $lt_outputfile in
14579 *.exe|*.EXE) ;;
14580 *)
14581 lt_outputfile="$lt_outputfile.exe"
14582 lt_tool_outputfile="$lt_tool_outputfile.exe"
14583 ;;
14584 esac~
14585 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14586 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14587 $RM "$lt_outputfile.manifest";
14588 fi'
14589 ;;
14590 *)
14591 # Assume MSVC wrapper
14592 hardcode_libdir_flag_spec=' '
14593 allow_undefined_flag=unsupported
14594 # Tell ltmain to make .lib files, not .a files.
14595 libext=lib
14596 # Tell ltmain to make .dll files, not .so files.
14597 shrext_cmds=".dll"
14598 # FIXME: Setting linknames here is a bad hack.
14599 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14600 # The linker will automatically build a .lib file if we build a DLL.
14601 old_archive_from_new_cmds='true'
14602 # FIXME: Should let the user specify the lib program.
14603 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14604 enable_shared_with_static_runtimes=yes
14605 ;;
14606 esac
cristy73bd4a52010-10-05 11:24:23 +000014607 ;;
14608
14609 darwin* | rhapsody*)
14610
14611
14612 archive_cmds_need_lc=no
14613 hardcode_direct=no
14614 hardcode_automatic=yes
14615 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014616 if test "$lt_cv_ld_force_load" = "yes"; then
14617 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\"`'
cristy99bd5232011-12-07 14:38:20 +000014618
cristy0c60a692010-11-04 01:09:47 +000014619 else
14620 whole_archive_flag_spec=''
14621 fi
cristy73bd4a52010-10-05 11:24:23 +000014622 link_all_deplibs=yes
14623 allow_undefined_flag="$_lt_dar_allow_undefined"
14624 case $cc_basename in
14625 ifort*) _lt_dar_can_shared=yes ;;
14626 *) _lt_dar_can_shared=$GCC ;;
14627 esac
14628 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014629 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014630 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14631 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14632 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}"
14633 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}"
14634
14635 else
14636 ld_shlibs=no
14637 fi
14638
14639 ;;
14640
14641 dgux*)
14642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14643 hardcode_libdir_flag_spec='-L$libdir'
14644 hardcode_shlibpath_var=no
14645 ;;
14646
cristy73bd4a52010-10-05 11:24:23 +000014647 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14648 # support. Future versions do this automatically, but an explicit c++rt0.o
14649 # does not break anything, and helps significantly (at the cost of a little
14650 # extra space).
14651 freebsd2.2*)
14652 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14653 hardcode_libdir_flag_spec='-R$libdir'
14654 hardcode_direct=yes
14655 hardcode_shlibpath_var=no
14656 ;;
14657
14658 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000014659 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000014660 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14661 hardcode_direct=yes
14662 hardcode_minus_L=yes
14663 hardcode_shlibpath_var=no
14664 ;;
14665
14666 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14667 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014668 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014669 hardcode_libdir_flag_spec='-R$libdir'
14670 hardcode_direct=yes
14671 hardcode_shlibpath_var=no
14672 ;;
14673
14674 hpux9*)
14675 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014676 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 +000014677 else
14678 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'
14679 fi
14680 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14681 hardcode_libdir_separator=:
14682 hardcode_direct=yes
14683
14684 # hardcode_minus_L: Not really in the search PATH,
14685 # but as the default location of the library.
14686 hardcode_minus_L=yes
14687 export_dynamic_flag_spec='${wl}-E'
14688 ;;
14689
14690 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014691 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014692 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 +000014693 else
14694 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14695 fi
14696 if test "$with_gnu_ld" = no; then
14697 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000014698 hardcode_libdir_separator=:
14699 hardcode_direct=yes
14700 hardcode_direct_absolute=yes
14701 export_dynamic_flag_spec='${wl}-E'
14702 # hardcode_minus_L: Not really in the search PATH,
14703 # but as the default location of the library.
14704 hardcode_minus_L=yes
14705 fi
14706 ;;
14707
14708 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014709 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014710 case $host_cpu in
14711 hppa*64*)
14712 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14713 ;;
14714 ia64*)
cristyda16f162011-02-19 23:52:17 +000014715 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014716 ;;
14717 *)
cristyda16f162011-02-19 23:52:17 +000014718 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 +000014719 ;;
14720 esac
14721 else
14722 case $host_cpu in
14723 hppa*64*)
14724 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14725 ;;
14726 ia64*)
14727 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14728 ;;
14729 *)
cristy0c60a692010-11-04 01:09:47 +000014730
14731 # Older versions of the 11.00 compiler do not understand -b yet
14732 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14734$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014735if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014736 $as_echo_n "(cached) " >&6
14737else
14738 lt_cv_prog_compiler__b=no
14739 save_LDFLAGS="$LDFLAGS"
14740 LDFLAGS="$LDFLAGS -b"
14741 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14742 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14743 # The linker can only warn and ignore the option if not recognized
14744 # So say no if there are warnings
14745 if test -s conftest.err; then
14746 # Append any errors to the config.log.
14747 cat conftest.err 1>&5
14748 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14749 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14750 if diff conftest.exp conftest.er2 >/dev/null; then
14751 lt_cv_prog_compiler__b=yes
14752 fi
14753 else
14754 lt_cv_prog_compiler__b=yes
14755 fi
14756 fi
14757 $RM -r conftest*
14758 LDFLAGS="$save_LDFLAGS"
14759
14760fi
14761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14762$as_echo "$lt_cv_prog_compiler__b" >&6; }
14763
14764if test x"$lt_cv_prog_compiler__b" = xyes; then
14765 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14766else
14767 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14768fi
14769
cristy73bd4a52010-10-05 11:24:23 +000014770 ;;
14771 esac
14772 fi
14773 if test "$with_gnu_ld" = no; then
14774 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14775 hardcode_libdir_separator=:
14776
14777 case $host_cpu in
14778 hppa*64*|ia64*)
14779 hardcode_direct=no
14780 hardcode_shlibpath_var=no
14781 ;;
14782 *)
14783 hardcode_direct=yes
14784 hardcode_direct_absolute=yes
14785 export_dynamic_flag_spec='${wl}-E'
14786
14787 # hardcode_minus_L: Not really in the search PATH,
14788 # but as the default location of the library.
14789 hardcode_minus_L=yes
14790 ;;
14791 esac
14792 fi
14793 ;;
14794
14795 irix5* | irix6* | nonstopux*)
14796 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014797 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 +000014798 # Try to use the -exported_symbol ld option, if it does not
14799 # work, assume that -exports_file does not work either and
14800 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014801 # This should be the same for all languages, so no per-tag cache variable.
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14803$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14804if ${lt_cv_irix_exported_symbol+:} false; then :
14805 $as_echo_n "(cached) " >&6
14806else
14807 save_LDFLAGS="$LDFLAGS"
14808 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014810/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014811int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014812_ACEOF
14813if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014814 lt_cv_irix_exported_symbol=yes
14815else
14816 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014817fi
14818rm -f core conftest.err conftest.$ac_objext \
14819 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014820 LDFLAGS="$save_LDFLAGS"
14821fi
14822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14823$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14824 if test "$lt_cv_irix_exported_symbol" = yes; then
14825 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'
14826 fi
cristy73bd4a52010-10-05 11:24:23 +000014827 else
cristy0c60a692010-11-04 01:09:47 +000014828 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'
14829 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 +000014830 fi
14831 archive_cmds_need_lc='no'
14832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14833 hardcode_libdir_separator=:
14834 inherit_rpath=yes
14835 link_all_deplibs=yes
14836 ;;
14837
14838 netbsd*)
14839 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14840 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14841 else
14842 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14843 fi
14844 hardcode_libdir_flag_spec='-R$libdir'
14845 hardcode_direct=yes
14846 hardcode_shlibpath_var=no
14847 ;;
14848
14849 newsos6)
14850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14851 hardcode_direct=yes
14852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14853 hardcode_libdir_separator=:
14854 hardcode_shlibpath_var=no
14855 ;;
14856
14857 *nto* | *qnx*)
14858 ;;
14859
14860 openbsd*)
14861 if test -f /usr/libexec/ld.so; then
14862 hardcode_direct=yes
14863 hardcode_shlibpath_var=no
14864 hardcode_direct_absolute=yes
14865 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14866 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14867 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14868 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14869 export_dynamic_flag_spec='${wl}-E'
14870 else
14871 case $host_os in
14872 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14873 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14874 hardcode_libdir_flag_spec='-R$libdir'
14875 ;;
14876 *)
14877 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14878 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14879 ;;
14880 esac
14881 fi
14882 else
14883 ld_shlibs=no
14884 fi
14885 ;;
14886
14887 os2*)
14888 hardcode_libdir_flag_spec='-L$libdir'
14889 hardcode_minus_L=yes
14890 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014891 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 +000014892 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14893 ;;
14894
14895 osf3*)
14896 if test "$GCC" = yes; then
14897 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014898 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 +000014899 else
14900 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014901 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 +000014902 fi
14903 archive_cmds_need_lc='no'
14904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14905 hardcode_libdir_separator=:
14906 ;;
14907
14908 osf4* | osf5*) # as osf3* with the addition of -msym flag
14909 if test "$GCC" = yes; then
14910 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014911 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 +000014912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14913 else
14914 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014915 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 +000014916 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 +000014917 $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 +000014918
14919 # Both c and cxx compiler support -rpath directly
14920 hardcode_libdir_flag_spec='-rpath $libdir'
14921 fi
14922 archive_cmds_need_lc='no'
14923 hardcode_libdir_separator=:
14924 ;;
14925
14926 solaris*)
14927 no_undefined_flag=' -z defs'
14928 if test "$GCC" = yes; then
14929 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014930 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 +000014931 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 +000014932 $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 +000014933 else
14934 case `$CC -V 2>&1` in
14935 *"Compilers 5.0"*)
14936 wlarc=''
14937 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14938 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14939 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14940 ;;
14941 *)
14942 wlarc='${wl}'
14943 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14944 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14945 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14946 ;;
14947 esac
14948 fi
14949 hardcode_libdir_flag_spec='-R$libdir'
14950 hardcode_shlibpath_var=no
14951 case $host_os in
14952 solaris2.[0-5] | solaris2.[0-5].*) ;;
14953 *)
14954 # The compiler driver will combine and reorder linker options,
14955 # but understands `-z linker_flag'. GCC discards it without `$wl',
14956 # but is careful enough not to reorder.
14957 # Supported since Solaris 2.6 (maybe 2.5.1?)
14958 if test "$GCC" = yes; then
14959 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14960 else
14961 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14962 fi
14963 ;;
14964 esac
14965 link_all_deplibs=yes
14966 ;;
14967
14968 sunos4*)
14969 if test "x$host_vendor" = xsequent; then
14970 # Use $CC to link under sequent, because it throws in some extra .o
14971 # files that make .init and .fini sections work.
14972 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14973 else
14974 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14975 fi
14976 hardcode_libdir_flag_spec='-L$libdir'
14977 hardcode_direct=yes
14978 hardcode_minus_L=yes
14979 hardcode_shlibpath_var=no
14980 ;;
14981
14982 sysv4)
14983 case $host_vendor in
14984 sni)
14985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14986 hardcode_direct=yes # is this really true???
14987 ;;
14988 siemens)
14989 ## LD is ld it makes a PLAMLIB
14990 ## CC just makes a GrossModule.
14991 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14992 reload_cmds='$CC -r -o $output$reload_objs'
14993 hardcode_direct=no
14994 ;;
14995 motorola)
14996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14997 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14998 ;;
14999 esac
15000 runpath_var='LD_RUN_PATH'
15001 hardcode_shlibpath_var=no
15002 ;;
15003
15004 sysv4.3*)
15005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15006 hardcode_shlibpath_var=no
15007 export_dynamic_flag_spec='-Bexport'
15008 ;;
15009
15010 sysv4*MP*)
15011 if test -d /usr/nec; then
15012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15013 hardcode_shlibpath_var=no
15014 runpath_var=LD_RUN_PATH
15015 hardcode_runpath_var=yes
15016 ld_shlibs=yes
15017 fi
15018 ;;
15019
15020 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15021 no_undefined_flag='${wl}-z,text'
15022 archive_cmds_need_lc=no
15023 hardcode_shlibpath_var=no
15024 runpath_var='LD_RUN_PATH'
15025
15026 if test "$GCC" = yes; then
15027 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15028 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15029 else
15030 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15031 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15032 fi
15033 ;;
15034
15035 sysv5* | sco3.2v5* | sco5v6*)
15036 # Note: We can NOT use -z defs as we might desire, because we do not
15037 # link with -lc, and that would cause any symbols used from libc to
15038 # always be unresolved, which means just about no library would
15039 # ever link correctly. If we're not using GNU ld we use -z text
15040 # though, which does catch some bad symbols but isn't as heavy-handed
15041 # as -z defs.
15042 no_undefined_flag='${wl}-z,text'
15043 allow_undefined_flag='${wl}-z,nodefs'
15044 archive_cmds_need_lc=no
15045 hardcode_shlibpath_var=no
15046 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15047 hardcode_libdir_separator=':'
15048 link_all_deplibs=yes
15049 export_dynamic_flag_spec='${wl}-Bexport'
15050 runpath_var='LD_RUN_PATH'
15051
15052 if test "$GCC" = yes; then
15053 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15054 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15055 else
15056 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15057 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15058 fi
15059 ;;
15060
15061 uts4*)
15062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15063 hardcode_libdir_flag_spec='-L$libdir'
15064 hardcode_shlibpath_var=no
15065 ;;
15066
15067 *)
15068 ld_shlibs=no
15069 ;;
15070 esac
15071
15072 if test x$host_vendor = xsni; then
15073 case $host in
15074 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15075 export_dynamic_flag_spec='${wl}-Blargedynsym'
15076 ;;
15077 esac
15078 fi
15079 fi
15080
15081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15082$as_echo "$ld_shlibs" >&6; }
15083test "$ld_shlibs" = no && can_build_shared=no
15084
15085with_gnu_ld=$with_gnu_ld
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101#
15102# Do we need to explicitly link libc?
15103#
15104case "x$archive_cmds_need_lc" in
15105x|xyes)
15106 # Assume -lc should be added
15107 archive_cmds_need_lc=yes
15108
15109 if test "$enable_shared" = yes && test "$GCC" = yes; then
15110 case $archive_cmds in
15111 *'~'*)
15112 # FIXME: we may have to deal with multi-command sequences.
15113 ;;
15114 '$CC '*)
15115 # Test whether the compiler implicitly links with -lc since on some
15116 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15117 # to ld, don't add -lc before -lgcc.
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15119$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015120if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015121 $as_echo_n "(cached) " >&6
15122else
15123 $RM conftest*
15124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015125
cristy0c60a692010-11-04 01:09:47 +000015126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015127 (eval $ac_compile) 2>&5
15128 ac_status=$?
15129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15130 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015131 soname=conftest
15132 lib=conftest
15133 libobjs=conftest.$ac_objext
15134 deplibs=
15135 wl=$lt_prog_compiler_wl
15136 pic_flag=$lt_prog_compiler_pic
15137 compiler_flags=-v
15138 linker_flags=-v
15139 verstring=
15140 output_objdir=.
15141 libname=conftest
15142 lt_save_allow_undefined_flag=$allow_undefined_flag
15143 allow_undefined_flag=
15144 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 +000015145 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15146 ac_status=$?
15147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15148 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015149 then
15150 lt_cv_archive_cmds_need_lc=no
15151 else
15152 lt_cv_archive_cmds_need_lc=yes
15153 fi
15154 allow_undefined_flag=$lt_save_allow_undefined_flag
15155 else
15156 cat conftest.err 1>&5
15157 fi
15158 $RM conftest*
15159
15160fi
15161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15162$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15163 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015164 ;;
15165 esac
15166 fi
15167 ;;
15168esac
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
cristy73bd4a52010-10-05 11:24:23 +000015321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15322$as_echo_n "checking dynamic linker characteristics... " >&6; }
15323
15324if test "$GCC" = yes; then
15325 case $host_os in
15326 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15327 *) lt_awk_arg="/^libraries:/" ;;
15328 esac
cristy0c60a692010-11-04 01:09:47 +000015329 case $host_os in
15330 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15331 *) lt_sed_strip_eq="s,=/,/,g" ;;
15332 esac
15333 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15334 case $lt_search_path_spec in
15335 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015336 # if the path contains ";" then we assume it to be the separator
15337 # otherwise default to the standard path separator (i.e. ":") - it is
15338 # assumed that no part of a normal pathname contains ";" but that should
15339 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015340 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15341 ;;
15342 *)
15343 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15344 ;;
15345 esac
cristy73bd4a52010-10-05 11:24:23 +000015346 # Ok, now we have the path, separated by spaces, we can step through it
15347 # and add multilib dir if necessary.
15348 lt_tmp_lt_search_path_spec=
15349 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15350 for lt_sys_path in $lt_search_path_spec; do
15351 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15352 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15353 else
15354 test -d "$lt_sys_path" && \
15355 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15356 fi
15357 done
cristy0c60a692010-11-04 01:09:47 +000015358 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015359BEGIN {RS=" "; FS="/|\n";} {
15360 lt_foo="";
15361 lt_count=0;
15362 for (lt_i = NF; lt_i > 0; lt_i--) {
15363 if ($lt_i != "" && $lt_i != ".") {
15364 if ($lt_i == "..") {
15365 lt_count++;
15366 } else {
15367 if (lt_count == 0) {
15368 lt_foo="/" $lt_i lt_foo;
15369 } else {
15370 lt_count--;
15371 }
15372 }
15373 }
15374 }
15375 if (lt_foo != "") { lt_freq[lt_foo]++; }
15376 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15377}'`
cristy0c60a692010-11-04 01:09:47 +000015378 # AWK program above erroneously prepends '/' to C:/dos/paths
15379 # for these hosts.
15380 case $host_os in
15381 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15382 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15383 esac
15384 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015385else
15386 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15387fi
15388library_names_spec=
15389libname_spec='lib$name'
15390soname_spec=
15391shrext_cmds=".so"
15392postinstall_cmds=
15393postuninstall_cmds=
15394finish_cmds=
15395finish_eval=
15396shlibpath_var=
15397shlibpath_overrides_runpath=unknown
15398version_type=none
15399dynamic_linker="$host_os ld.so"
15400sys_lib_dlsearch_path_spec="/lib /usr/lib"
15401need_lib_prefix=unknown
15402hardcode_into_libs=no
15403
15404# when you set need_version to no, make sure it does not cause -set_version
15405# flags to be left without arguments
15406need_version=unknown
15407
15408case $host_os in
15409aix3*)
cristy99bd5232011-12-07 14:38:20 +000015410 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015411 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15412 shlibpath_var=LIBPATH
15413
15414 # AIX 3 has no versioning support, so we append a major version to the name.
15415 soname_spec='${libname}${release}${shared_ext}$major'
15416 ;;
15417
15418aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000015419 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015420 need_lib_prefix=no
15421 need_version=no
15422 hardcode_into_libs=yes
15423 if test "$host_cpu" = ia64; then
15424 # AIX 5 supports IA64
15425 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15426 shlibpath_var=LD_LIBRARY_PATH
15427 else
15428 # With GCC up to 2.95.x, collect2 would create an import file
15429 # for dependence libraries. The import file would start with
15430 # the line `#! .'. This would cause the generated library to
15431 # depend on `.', always an invalid library. This was fixed in
15432 # development snapshots of GCC prior to 3.0.
15433 case $host_os in
15434 aix4 | aix4.[01] | aix4.[01].*)
15435 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15436 echo ' yes '
15437 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15438 :
15439 else
15440 can_build_shared=no
15441 fi
15442 ;;
15443 esac
15444 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15445 # soname into executable. Probably we can add versioning support to
15446 # collect2, so additional links can be useful in future.
15447 if test "$aix_use_runtimelinking" = yes; then
15448 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15449 # instead of lib<name>.a to let people know that these are not
15450 # typical AIX shared libraries.
15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15452 else
15453 # We preserve .a as extension for shared libraries through AIX4.2
15454 # and later when we are not doing run time linking.
15455 library_names_spec='${libname}${release}.a $libname.a'
15456 soname_spec='${libname}${release}${shared_ext}$major'
15457 fi
15458 shlibpath_var=LIBPATH
15459 fi
15460 ;;
15461
15462amigaos*)
15463 case $host_cpu in
15464 powerpc)
15465 # Since July 2007 AmigaOS4 officially supports .so libraries.
15466 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15468 ;;
15469 m68k)
15470 library_names_spec='$libname.ixlibrary $libname.a'
15471 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015472 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 +000015473 ;;
15474 esac
15475 ;;
15476
15477beos*)
15478 library_names_spec='${libname}${shared_ext}'
15479 dynamic_linker="$host_os ld.so"
15480 shlibpath_var=LIBRARY_PATH
15481 ;;
15482
15483bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000015484 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015485 need_version=no
15486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15487 soname_spec='${libname}${release}${shared_ext}$major'
15488 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15489 shlibpath_var=LD_LIBRARY_PATH
15490 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15491 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15492 # the default ld.so.conf also contains /usr/contrib/lib and
15493 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15494 # libtool to hard-code these into programs
15495 ;;
15496
15497cygwin* | mingw* | pw32* | cegcc*)
15498 version_type=windows
15499 shrext_cmds=".dll"
15500 need_version=no
15501 need_lib_prefix=no
15502
cristyda16f162011-02-19 23:52:17 +000015503 case $GCC,$cc_basename in
15504 yes,*)
15505 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015506 library_names_spec='$libname.dll.a'
15507 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15508 postinstall_cmds='base_file=`basename \${file}`~
15509 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15510 dldir=$destdir/`dirname \$dlpath`~
15511 test -d \$dldir || mkdir -p \$dldir~
15512 $install_prog $dir/$dlname \$dldir/$dlname~
15513 chmod a+x \$dldir/$dlname~
15514 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15515 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15516 fi'
15517 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15518 dlpath=$dir/\$dldll~
15519 $RM \$dlpath'
15520 shlibpath_overrides_runpath=yes
15521
15522 case $host_os in
15523 cygwin*)
15524 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15525 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015526
15527 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015528 ;;
15529 mingw* | cegcc*)
15530 # MinGW DLLs use traditional 'lib' prefix
15531 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015532 ;;
15533 pw32*)
15534 # pw32 DLLs use 'pw' prefix rather than 'lib'
15535 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15536 ;;
15537 esac
cristyda16f162011-02-19 23:52:17 +000015538 dynamic_linker='Win32 ld.exe'
15539 ;;
15540
15541 *,cl*)
15542 # Native MSVC
15543 libname_spec='$name'
15544 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15545 library_names_spec='${libname}.dll.lib'
15546
15547 case $build_os in
15548 mingw*)
15549 sys_lib_search_path_spec=
15550 lt_save_ifs=$IFS
15551 IFS=';'
15552 for lt_path in $LIB
15553 do
15554 IFS=$lt_save_ifs
15555 # Let DOS variable expansion print the short 8.3 style file name.
15556 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15557 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15558 done
15559 IFS=$lt_save_ifs
15560 # Convert to MSYS style.
15561 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15562 ;;
15563 cygwin*)
15564 # Convert to unix form, then to dos form, then back to unix form
15565 # but this time dos style (no spaces!) so that the unix form looks
15566 # like /cygdrive/c/PROGRA~1:/cygdr...
15567 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15568 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15569 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15570 ;;
15571 *)
15572 sys_lib_search_path_spec="$LIB"
15573 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15574 # It is most probably a Windows format PATH.
15575 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15576 else
15577 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15578 fi
15579 # FIXME: find the short name or the path components, as spaces are
15580 # common. (e.g. "Program Files" -> "PROGRA~1")
15581 ;;
15582 esac
15583
15584 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15585 postinstall_cmds='base_file=`basename \${file}`~
15586 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15587 dldir=$destdir/`dirname \$dlpath`~
15588 test -d \$dldir || mkdir -p \$dldir~
15589 $install_prog $dir/$dlname \$dldir/$dlname'
15590 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15591 dlpath=$dir/\$dldll~
15592 $RM \$dlpath'
15593 shlibpath_overrides_runpath=yes
15594 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015595 ;;
15596
15597 *)
cristyda16f162011-02-19 23:52:17 +000015598 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015599 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015600 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015601 ;;
15602 esac
cristy73bd4a52010-10-05 11:24:23 +000015603 # FIXME: first we should search . and the directory the executable is in
15604 shlibpath_var=PATH
15605 ;;
15606
15607darwin* | rhapsody*)
15608 dynamic_linker="$host_os dyld"
15609 version_type=darwin
15610 need_lib_prefix=no
15611 need_version=no
15612 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15613 soname_spec='${libname}${release}${major}$shared_ext'
15614 shlibpath_overrides_runpath=yes
15615 shlibpath_var=DYLD_LIBRARY_PATH
15616 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15617
15618 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15619 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15620 ;;
15621
15622dgux*)
cristy99bd5232011-12-07 14:38:20 +000015623 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015624 need_lib_prefix=no
15625 need_version=no
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15627 soname_spec='${libname}${release}${shared_ext}$major'
15628 shlibpath_var=LD_LIBRARY_PATH
15629 ;;
15630
cristy73bd4a52010-10-05 11:24:23 +000015631freebsd* | dragonfly*)
15632 # DragonFly does not have aout. When/if they implement a new
15633 # versioning mechanism, adjust this.
15634 if test -x /usr/bin/objformat; then
15635 objformat=`/usr/bin/objformat`
15636 else
15637 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000015638 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000015639 *) objformat=elf ;;
15640 esac
15641 fi
15642 version_type=freebsd-$objformat
15643 case $version_type in
15644 freebsd-elf*)
15645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15646 need_version=no
15647 need_lib_prefix=no
15648 ;;
15649 freebsd-*)
15650 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15651 need_version=yes
15652 ;;
15653 esac
15654 shlibpath_var=LD_LIBRARY_PATH
15655 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000015656 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015657 shlibpath_overrides_runpath=yes
15658 ;;
15659 freebsd3.[01]* | freebsdelf3.[01]*)
15660 shlibpath_overrides_runpath=yes
15661 hardcode_into_libs=yes
15662 ;;
15663 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15664 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15665 shlibpath_overrides_runpath=no
15666 hardcode_into_libs=yes
15667 ;;
15668 *) # from 4.6 on, and DragonFly
15669 shlibpath_overrides_runpath=yes
15670 hardcode_into_libs=yes
15671 ;;
15672 esac
15673 ;;
15674
15675gnu*)
cristy99bd5232011-12-07 14:38:20 +000015676 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015677 need_lib_prefix=no
15678 need_version=no
15679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15680 soname_spec='${libname}${release}${shared_ext}$major'
15681 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000015682 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000015683 hardcode_into_libs=yes
15684 ;;
15685
cristy0c60a692010-11-04 01:09:47 +000015686haiku*)
cristy99bd5232011-12-07 14:38:20 +000015687 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000015688 need_lib_prefix=no
15689 need_version=no
15690 dynamic_linker="$host_os runtime_loader"
15691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15692 soname_spec='${libname}${release}${shared_ext}$major'
15693 shlibpath_var=LIBRARY_PATH
15694 shlibpath_overrides_runpath=yes
15695 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15696 hardcode_into_libs=yes
15697 ;;
15698
cristy73bd4a52010-10-05 11:24:23 +000015699hpux9* | hpux10* | hpux11*)
15700 # Give a soname corresponding to the major version so that dld.sl refuses to
15701 # link against other versions.
15702 version_type=sunos
15703 need_lib_prefix=no
15704 need_version=no
15705 case $host_cpu in
15706 ia64*)
15707 shrext_cmds='.so'
15708 hardcode_into_libs=yes
15709 dynamic_linker="$host_os dld.so"
15710 shlibpath_var=LD_LIBRARY_PATH
15711 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15713 soname_spec='${libname}${release}${shared_ext}$major'
15714 if test "X$HPUX_IA64_MODE" = X32; then
15715 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15716 else
15717 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15718 fi
15719 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15720 ;;
15721 hppa*64*)
15722 shrext_cmds='.sl'
15723 hardcode_into_libs=yes
15724 dynamic_linker="$host_os dld.sl"
15725 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15726 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15728 soname_spec='${libname}${release}${shared_ext}$major'
15729 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15730 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15731 ;;
15732 *)
15733 shrext_cmds='.sl'
15734 dynamic_linker="$host_os dld.sl"
15735 shlibpath_var=SHLIB_PATH
15736 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15738 soname_spec='${libname}${release}${shared_ext}$major'
15739 ;;
15740 esac
cristy0c60a692010-11-04 01:09:47 +000015741 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015742 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015743 # or fails outright, so override atomically:
15744 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015745 ;;
15746
15747interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000015748 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015749 need_lib_prefix=no
15750 need_version=no
15751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15752 soname_spec='${libname}${release}${shared_ext}$major'
15753 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15754 shlibpath_var=LD_LIBRARY_PATH
15755 shlibpath_overrides_runpath=no
15756 hardcode_into_libs=yes
15757 ;;
15758
15759irix5* | irix6* | nonstopux*)
15760 case $host_os in
15761 nonstopux*) version_type=nonstopux ;;
15762 *)
15763 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000015764 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015765 else
15766 version_type=irix
15767 fi ;;
15768 esac
15769 need_lib_prefix=no
15770 need_version=no
15771 soname_spec='${libname}${release}${shared_ext}$major'
15772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15773 case $host_os in
15774 irix5* | nonstopux*)
15775 libsuff= shlibsuff=
15776 ;;
15777 *)
15778 case $LD in # libtool.m4 will add one of these switches to LD
15779 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15780 libsuff= shlibsuff= libmagic=32-bit;;
15781 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15782 libsuff=32 shlibsuff=N32 libmagic=N32;;
15783 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15784 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15785 *) libsuff= shlibsuff= libmagic=never-match;;
15786 esac
15787 ;;
15788 esac
15789 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15790 shlibpath_overrides_runpath=no
15791 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15792 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15793 hardcode_into_libs=yes
15794 ;;
15795
15796# No shared lib support for Linux oldld, aout, or coff.
15797linux*oldld* | linux*aout* | linux*coff*)
15798 dynamic_linker=no
15799 ;;
15800
cristy99bd5232011-12-07 14:38:20 +000015801# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000015802linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000015803 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015804 need_lib_prefix=no
15805 need_version=no
15806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15807 soname_spec='${libname}${release}${shared_ext}$major'
15808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15809 shlibpath_var=LD_LIBRARY_PATH
15810 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015811
cristy73bd4a52010-10-05 11:24:23 +000015812 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015813 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015814 $as_echo_n "(cached) " >&6
15815else
15816 lt_cv_shlibpath_overrides_runpath=no
15817 save_LDFLAGS=$LDFLAGS
15818 save_libdir=$libdir
15819 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15820 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015822/* end confdefs.h. */
15823
15824int
15825main ()
15826{
15827
15828 ;
15829 return 0;
15830}
15831_ACEOF
15832if ac_fn_c_try_link "$LINENO"; then :
15833 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015834 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015835fi
15836fi
15837rm -f core conftest.err conftest.$ac_objext \
15838 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015839 LDFLAGS=$save_LDFLAGS
15840 libdir=$save_libdir
15841
15842fi
15843
15844 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015845
15846 # This implies no fast_install, which is unacceptable.
15847 # Some rework will be needed to allow for fast_install
15848 # before this can be enabled.
15849 hardcode_into_libs=yes
15850
15851 # Add ABI-specific directories to the system library path.
15852 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15853
15854 # Append ld.so.conf contents to the search path
15855 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015856 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 +000015857 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015858
cristy73bd4a52010-10-05 11:24:23 +000015859 fi
15860
15861 # We used to test for /lib/ld.so.1 and disable shared libraries on
15862 # powerpc, because MkLinux only supported shared libraries with the
15863 # GNU dynamic linker. Since this was broken with cross compilers,
15864 # most powerpc-linux boxes support dynamic linking these days and
15865 # people can always --disable-shared, the test was removed, and we
15866 # assume the GNU/Linux dynamic linker is in use.
15867 dynamic_linker='GNU/Linux ld.so'
15868 ;;
15869
15870netbsd*)
15871 version_type=sunos
15872 need_lib_prefix=no
15873 need_version=no
15874 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15877 dynamic_linker='NetBSD (a.out) ld.so'
15878 else
15879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15880 soname_spec='${libname}${release}${shared_ext}$major'
15881 dynamic_linker='NetBSD ld.elf_so'
15882 fi
15883 shlibpath_var=LD_LIBRARY_PATH
15884 shlibpath_overrides_runpath=yes
15885 hardcode_into_libs=yes
15886 ;;
15887
15888newsos6)
cristy99bd5232011-12-07 14:38:20 +000015889 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15891 shlibpath_var=LD_LIBRARY_PATH
15892 shlibpath_overrides_runpath=yes
15893 ;;
15894
15895*nto* | *qnx*)
15896 version_type=qnx
15897 need_lib_prefix=no
15898 need_version=no
15899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15900 soname_spec='${libname}${release}${shared_ext}$major'
15901 shlibpath_var=LD_LIBRARY_PATH
15902 shlibpath_overrides_runpath=no
15903 hardcode_into_libs=yes
15904 dynamic_linker='ldqnx.so'
15905 ;;
15906
15907openbsd*)
15908 version_type=sunos
15909 sys_lib_dlsearch_path_spec="/usr/lib"
15910 need_lib_prefix=no
15911 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15912 case $host_os in
15913 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15914 *) need_version=no ;;
15915 esac
15916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15917 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15918 shlibpath_var=LD_LIBRARY_PATH
15919 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15920 case $host_os in
15921 openbsd2.[89] | openbsd2.[89].*)
15922 shlibpath_overrides_runpath=no
15923 ;;
15924 *)
15925 shlibpath_overrides_runpath=yes
15926 ;;
15927 esac
15928 else
15929 shlibpath_overrides_runpath=yes
15930 fi
15931 ;;
15932
15933os2*)
15934 libname_spec='$name'
15935 shrext_cmds=".dll"
15936 need_lib_prefix=no
15937 library_names_spec='$libname${shared_ext} $libname.a'
15938 dynamic_linker='OS/2 ld.exe'
15939 shlibpath_var=LIBPATH
15940 ;;
15941
15942osf3* | osf4* | osf5*)
15943 version_type=osf
15944 need_lib_prefix=no
15945 need_version=no
15946 soname_spec='${libname}${release}${shared_ext}$major'
15947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948 shlibpath_var=LD_LIBRARY_PATH
15949 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15950 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15951 ;;
15952
15953rdos*)
15954 dynamic_linker=no
15955 ;;
15956
15957solaris*)
cristy99bd5232011-12-07 14:38:20 +000015958 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015959 need_lib_prefix=no
15960 need_version=no
15961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15962 soname_spec='${libname}${release}${shared_ext}$major'
15963 shlibpath_var=LD_LIBRARY_PATH
15964 shlibpath_overrides_runpath=yes
15965 hardcode_into_libs=yes
15966 # ldd complains unless libraries are executable
15967 postinstall_cmds='chmod +x $lib'
15968 ;;
15969
15970sunos4*)
15971 version_type=sunos
15972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15973 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15974 shlibpath_var=LD_LIBRARY_PATH
15975 shlibpath_overrides_runpath=yes
15976 if test "$with_gnu_ld" = yes; then
15977 need_lib_prefix=no
15978 fi
15979 need_version=yes
15980 ;;
15981
15982sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000015983 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15985 soname_spec='${libname}${release}${shared_ext}$major'
15986 shlibpath_var=LD_LIBRARY_PATH
15987 case $host_vendor in
15988 sni)
15989 shlibpath_overrides_runpath=no
15990 need_lib_prefix=no
15991 runpath_var=LD_RUN_PATH
15992 ;;
15993 siemens)
15994 need_lib_prefix=no
15995 ;;
15996 motorola)
15997 need_lib_prefix=no
15998 need_version=no
15999 shlibpath_overrides_runpath=no
16000 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16001 ;;
16002 esac
16003 ;;
16004
16005sysv4*MP*)
16006 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016007 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016008 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16009 soname_spec='$libname${shared_ext}.$major'
16010 shlibpath_var=LD_LIBRARY_PATH
16011 fi
16012 ;;
16013
16014sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16015 version_type=freebsd-elf
16016 need_lib_prefix=no
16017 need_version=no
16018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16019 soname_spec='${libname}${release}${shared_ext}$major'
16020 shlibpath_var=LD_LIBRARY_PATH
16021 shlibpath_overrides_runpath=yes
16022 hardcode_into_libs=yes
16023 if test "$with_gnu_ld" = yes; then
16024 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16025 else
16026 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16027 case $host_os in
16028 sco3.2v5*)
16029 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16030 ;;
16031 esac
16032 fi
16033 sys_lib_dlsearch_path_spec='/usr/lib'
16034 ;;
16035
16036tpf*)
16037 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016038 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016039 need_lib_prefix=no
16040 need_version=no
16041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16042 shlibpath_var=LD_LIBRARY_PATH
16043 shlibpath_overrides_runpath=no
16044 hardcode_into_libs=yes
16045 ;;
16046
16047uts4*)
cristy99bd5232011-12-07 14:38:20 +000016048 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050 soname_spec='${libname}${release}${shared_ext}$major'
16051 shlibpath_var=LD_LIBRARY_PATH
16052 ;;
16053
16054*)
16055 dynamic_linker=no
16056 ;;
16057esac
16058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16059$as_echo "$dynamic_linker" >&6; }
16060test "$dynamic_linker" = no && can_build_shared=no
16061
16062variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16063if test "$GCC" = yes; then
16064 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16065fi
16066
16067if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16068 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16069fi
16070if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16071 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16072fi
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
cristy0c60a692010-11-04 01:09:47 +000016160
16161
16162
16163
16164
cristy73bd4a52010-10-05 11:24:23 +000016165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16166$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16167hardcode_action=
16168if test -n "$hardcode_libdir_flag_spec" ||
16169 test -n "$runpath_var" ||
16170 test "X$hardcode_automatic" = "Xyes" ; then
16171
16172 # We can hardcode non-existent directories.
16173 if test "$hardcode_direct" != no &&
16174 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16175 # have to relink, otherwise we might link with an installed library
16176 # when we should be linking with a yet-to-be-installed one
16177 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16178 test "$hardcode_minus_L" != no; then
16179 # Linking always hardcodes the temporary library directory.
16180 hardcode_action=relink
16181 else
16182 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16183 hardcode_action=immediate
16184 fi
16185else
16186 # We cannot hardcode anything, or else we can only hardcode existing
16187 # directories.
16188 hardcode_action=unsupported
16189fi
16190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16191$as_echo "$hardcode_action" >&6; }
16192
16193if test "$hardcode_action" = relink ||
16194 test "$inherit_rpath" = yes; then
16195 # Fast installation is not supported
16196 enable_fast_install=no
16197elif test "$shlibpath_overrides_runpath" = yes ||
16198 test "$enable_shared" = no; then
16199 # Fast installation is not necessary
16200 enable_fast_install=needless
16201fi
16202
16203
16204
16205
16206
16207
16208 if test "x$enable_dlopen" != xyes; then
16209 enable_dlopen=unknown
16210 enable_dlopen_self=unknown
16211 enable_dlopen_self_static=unknown
16212else
16213 lt_cv_dlopen=no
16214 lt_cv_dlopen_libs=
16215
16216 case $host_os in
16217 beos*)
16218 lt_cv_dlopen="load_add_on"
16219 lt_cv_dlopen_libs=
16220 lt_cv_dlopen_self=yes
16221 ;;
16222
16223 mingw* | pw32* | cegcc*)
16224 lt_cv_dlopen="LoadLibrary"
16225 lt_cv_dlopen_libs=
16226 ;;
16227
16228 cygwin*)
16229 lt_cv_dlopen="dlopen"
16230 lt_cv_dlopen_libs=
16231 ;;
16232
16233 darwin*)
16234 # if libdl is installed we need to link against it
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16236$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016237if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016238 $as_echo_n "(cached) " >&6
16239else
16240 ac_check_lib_save_LIBS=$LIBS
16241LIBS="-ldl $LIBS"
16242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16243/* end confdefs.h. */
16244
16245/* Override any GCC internal prototype to avoid an error.
16246 Use char because int might match the return type of a GCC
16247 builtin and then its argument prototype would still apply. */
16248#ifdef __cplusplus
16249extern "C"
16250#endif
16251char dlopen ();
16252int
16253main ()
16254{
16255return dlopen ();
16256 ;
16257 return 0;
16258}
16259_ACEOF
16260if ac_fn_c_try_link "$LINENO"; then :
16261 ac_cv_lib_dl_dlopen=yes
16262else
16263 ac_cv_lib_dl_dlopen=no
16264fi
16265rm -f core conftest.err conftest.$ac_objext \
16266 conftest$ac_exeext conftest.$ac_ext
16267LIBS=$ac_check_lib_save_LIBS
16268fi
16269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16270$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016271if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016272 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16273else
16274
16275 lt_cv_dlopen="dyld"
16276 lt_cv_dlopen_libs=
16277 lt_cv_dlopen_self=yes
16278
16279fi
16280
16281 ;;
16282
16283 *)
16284 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016285if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016286 lt_cv_dlopen="shl_load"
16287else
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16289$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016290if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016291 $as_echo_n "(cached) " >&6
16292else
16293 ac_check_lib_save_LIBS=$LIBS
16294LIBS="-ldld $LIBS"
16295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16296/* end confdefs.h. */
16297
16298/* Override any GCC internal prototype to avoid an error.
16299 Use char because int might match the return type of a GCC
16300 builtin and then its argument prototype would still apply. */
16301#ifdef __cplusplus
16302extern "C"
16303#endif
16304char shl_load ();
16305int
16306main ()
16307{
16308return shl_load ();
16309 ;
16310 return 0;
16311}
16312_ACEOF
16313if ac_fn_c_try_link "$LINENO"; then :
16314 ac_cv_lib_dld_shl_load=yes
16315else
16316 ac_cv_lib_dld_shl_load=no
16317fi
16318rm -f core conftest.err conftest.$ac_objext \
16319 conftest$ac_exeext conftest.$ac_ext
16320LIBS=$ac_check_lib_save_LIBS
16321fi
16322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16323$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016324if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016325 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16326else
16327 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016328if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016329 lt_cv_dlopen="dlopen"
16330else
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16332$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016333if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016334 $as_echo_n "(cached) " >&6
16335else
16336 ac_check_lib_save_LIBS=$LIBS
16337LIBS="-ldl $LIBS"
16338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16339/* end confdefs.h. */
16340
16341/* Override any GCC internal prototype to avoid an error.
16342 Use char because int might match the return type of a GCC
16343 builtin and then its argument prototype would still apply. */
16344#ifdef __cplusplus
16345extern "C"
16346#endif
16347char dlopen ();
16348int
16349main ()
16350{
16351return dlopen ();
16352 ;
16353 return 0;
16354}
16355_ACEOF
16356if ac_fn_c_try_link "$LINENO"; then :
16357 ac_cv_lib_dl_dlopen=yes
16358else
16359 ac_cv_lib_dl_dlopen=no
16360fi
16361rm -f core conftest.err conftest.$ac_objext \
16362 conftest$ac_exeext conftest.$ac_ext
16363LIBS=$ac_check_lib_save_LIBS
16364fi
16365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16366$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016367if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016368 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16369else
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16371$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016372if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016373 $as_echo_n "(cached) " >&6
16374else
16375 ac_check_lib_save_LIBS=$LIBS
16376LIBS="-lsvld $LIBS"
16377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16378/* end confdefs.h. */
16379
16380/* Override any GCC internal prototype to avoid an error.
16381 Use char because int might match the return type of a GCC
16382 builtin and then its argument prototype would still apply. */
16383#ifdef __cplusplus
16384extern "C"
16385#endif
16386char dlopen ();
16387int
16388main ()
16389{
16390return dlopen ();
16391 ;
16392 return 0;
16393}
16394_ACEOF
16395if ac_fn_c_try_link "$LINENO"; then :
16396 ac_cv_lib_svld_dlopen=yes
16397else
16398 ac_cv_lib_svld_dlopen=no
16399fi
16400rm -f core conftest.err conftest.$ac_objext \
16401 conftest$ac_exeext conftest.$ac_ext
16402LIBS=$ac_check_lib_save_LIBS
16403fi
16404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16405$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016406if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016407 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16408else
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16410$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016411if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016412 $as_echo_n "(cached) " >&6
16413else
16414 ac_check_lib_save_LIBS=$LIBS
16415LIBS="-ldld $LIBS"
16416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16417/* end confdefs.h. */
16418
16419/* Override any GCC internal prototype to avoid an error.
16420 Use char because int might match the return type of a GCC
16421 builtin and then its argument prototype would still apply. */
16422#ifdef __cplusplus
16423extern "C"
16424#endif
16425char dld_link ();
16426int
16427main ()
16428{
16429return dld_link ();
16430 ;
16431 return 0;
16432}
16433_ACEOF
16434if ac_fn_c_try_link "$LINENO"; then :
16435 ac_cv_lib_dld_dld_link=yes
16436else
16437 ac_cv_lib_dld_dld_link=no
16438fi
16439rm -f core conftest.err conftest.$ac_objext \
16440 conftest$ac_exeext conftest.$ac_ext
16441LIBS=$ac_check_lib_save_LIBS
16442fi
16443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16444$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016445if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016446 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16447fi
16448
16449
16450fi
16451
16452
16453fi
16454
16455
16456fi
16457
16458
16459fi
16460
16461
16462fi
16463
16464 ;;
16465 esac
16466
16467 if test "x$lt_cv_dlopen" != xno; then
16468 enable_dlopen=yes
16469 else
16470 enable_dlopen=no
16471 fi
16472
16473 case $lt_cv_dlopen in
16474 dlopen)
16475 save_CPPFLAGS="$CPPFLAGS"
16476 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16477
16478 save_LDFLAGS="$LDFLAGS"
16479 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16480
16481 save_LIBS="$LIBS"
16482 LIBS="$lt_cv_dlopen_libs $LIBS"
16483
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16485$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016486if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016487 $as_echo_n "(cached) " >&6
16488else
16489 if test "$cross_compiling" = yes; then :
16490 lt_cv_dlopen_self=cross
16491else
16492 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16493 lt_status=$lt_dlunknown
16494 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016495#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016496#include "confdefs.h"
16497
16498#if HAVE_DLFCN_H
16499#include <dlfcn.h>
16500#endif
16501
16502#include <stdio.h>
16503
16504#ifdef RTLD_GLOBAL
16505# define LT_DLGLOBAL RTLD_GLOBAL
16506#else
16507# ifdef DL_GLOBAL
16508# define LT_DLGLOBAL DL_GLOBAL
16509# else
16510# define LT_DLGLOBAL 0
16511# endif
16512#endif
16513
16514/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16515 find out it does not work in some platform. */
16516#ifndef LT_DLLAZY_OR_NOW
16517# ifdef RTLD_LAZY
16518# define LT_DLLAZY_OR_NOW RTLD_LAZY
16519# else
16520# ifdef DL_LAZY
16521# define LT_DLLAZY_OR_NOW DL_LAZY
16522# else
16523# ifdef RTLD_NOW
16524# define LT_DLLAZY_OR_NOW RTLD_NOW
16525# else
16526# ifdef DL_NOW
16527# define LT_DLLAZY_OR_NOW DL_NOW
16528# else
16529# define LT_DLLAZY_OR_NOW 0
16530# endif
16531# endif
16532# endif
16533# endif
16534#endif
16535
cristy0c60a692010-11-04 01:09:47 +000016536/* When -fvisbility=hidden is used, assume the code has been annotated
16537 correspondingly for the symbols needed. */
16538#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016539int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016540#endif
16541
cristyda16f162011-02-19 23:52:17 +000016542int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016543int main ()
16544{
16545 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16546 int status = $lt_dlunknown;
16547
16548 if (self)
16549 {
16550 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016551 else
16552 {
16553 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16554 else puts (dlerror ());
16555 }
cristy73bd4a52010-10-05 11:24:23 +000016556 /* dlclose (self); */
16557 }
16558 else
16559 puts (dlerror ());
16560
16561 return status;
16562}
16563_LT_EOF
16564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16565 (eval $ac_link) 2>&5
16566 ac_status=$?
16567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16568 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16569 (./conftest; exit; ) >&5 2>/dev/null
16570 lt_status=$?
16571 case x$lt_status in
16572 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16573 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16574 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16575 esac
16576 else :
16577 # compilation failed
16578 lt_cv_dlopen_self=no
16579 fi
16580fi
16581rm -fr conftest*
16582
16583
16584fi
16585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16586$as_echo "$lt_cv_dlopen_self" >&6; }
16587
16588 if test "x$lt_cv_dlopen_self" = xyes; then
16589 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16591$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016592if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016593 $as_echo_n "(cached) " >&6
16594else
16595 if test "$cross_compiling" = yes; then :
16596 lt_cv_dlopen_self_static=cross
16597else
16598 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16599 lt_status=$lt_dlunknown
16600 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016601#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016602#include "confdefs.h"
16603
16604#if HAVE_DLFCN_H
16605#include <dlfcn.h>
16606#endif
16607
16608#include <stdio.h>
16609
16610#ifdef RTLD_GLOBAL
16611# define LT_DLGLOBAL RTLD_GLOBAL
16612#else
16613# ifdef DL_GLOBAL
16614# define LT_DLGLOBAL DL_GLOBAL
16615# else
16616# define LT_DLGLOBAL 0
16617# endif
16618#endif
16619
16620/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16621 find out it does not work in some platform. */
16622#ifndef LT_DLLAZY_OR_NOW
16623# ifdef RTLD_LAZY
16624# define LT_DLLAZY_OR_NOW RTLD_LAZY
16625# else
16626# ifdef DL_LAZY
16627# define LT_DLLAZY_OR_NOW DL_LAZY
16628# else
16629# ifdef RTLD_NOW
16630# define LT_DLLAZY_OR_NOW RTLD_NOW
16631# else
16632# ifdef DL_NOW
16633# define LT_DLLAZY_OR_NOW DL_NOW
16634# else
16635# define LT_DLLAZY_OR_NOW 0
16636# endif
16637# endif
16638# endif
16639# endif
16640#endif
16641
cristy0c60a692010-11-04 01:09:47 +000016642/* When -fvisbility=hidden is used, assume the code has been annotated
16643 correspondingly for the symbols needed. */
16644#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016645int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016646#endif
16647
cristyda16f162011-02-19 23:52:17 +000016648int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016649int main ()
16650{
16651 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16652 int status = $lt_dlunknown;
16653
16654 if (self)
16655 {
16656 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016657 else
16658 {
16659 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16660 else puts (dlerror ());
16661 }
cristy73bd4a52010-10-05 11:24:23 +000016662 /* dlclose (self); */
16663 }
16664 else
16665 puts (dlerror ());
16666
16667 return status;
16668}
16669_LT_EOF
16670 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16671 (eval $ac_link) 2>&5
16672 ac_status=$?
16673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16674 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16675 (./conftest; exit; ) >&5 2>/dev/null
16676 lt_status=$?
16677 case x$lt_status in
16678 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16679 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16680 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16681 esac
16682 else :
16683 # compilation failed
16684 lt_cv_dlopen_self_static=no
16685 fi
16686fi
16687rm -fr conftest*
16688
16689
16690fi
16691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16692$as_echo "$lt_cv_dlopen_self_static" >&6; }
16693 fi
16694
16695 CPPFLAGS="$save_CPPFLAGS"
16696 LDFLAGS="$save_LDFLAGS"
16697 LIBS="$save_LIBS"
16698 ;;
16699 esac
16700
16701 case $lt_cv_dlopen_self in
16702 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16703 *) enable_dlopen_self=unknown ;;
16704 esac
16705
16706 case $lt_cv_dlopen_self_static in
16707 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16708 *) enable_dlopen_self_static=unknown ;;
16709 esac
16710fi
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728striplib=
16729old_striplib=
16730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16731$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16732if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16733 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16734 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16736$as_echo "yes" >&6; }
16737else
16738# FIXME - insert some real tests, host_os isn't really good enough
16739 case $host_os in
16740 darwin*)
16741 if test -n "$STRIP" ; then
16742 striplib="$STRIP -x"
16743 old_striplib="$STRIP -S"
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16745$as_echo "yes" >&6; }
16746 else
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16748$as_echo "no" >&6; }
16749 fi
16750 ;;
16751 *)
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16753$as_echo "no" >&6; }
16754 ;;
16755 esac
16756fi
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769 # Report which library types will actually be built
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16771$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16773$as_echo "$can_build_shared" >&6; }
16774
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16776$as_echo_n "checking whether to build shared libraries... " >&6; }
16777 test "$can_build_shared" = "no" && enable_shared=no
16778
16779 # On AIX, shared libraries and static libraries use the same namespace, and
16780 # are all built from PIC.
16781 case $host_os in
16782 aix3*)
16783 test "$enable_shared" = yes && enable_static=no
16784 if test -n "$RANLIB"; then
16785 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16786 postinstall_cmds='$RANLIB $lib'
16787 fi
16788 ;;
16789
16790 aix[4-9]*)
16791 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16792 test "$enable_shared" = yes && enable_static=no
16793 fi
16794 ;;
16795 esac
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16797$as_echo "$enable_shared" >&6; }
16798
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16800$as_echo_n "checking whether to build static libraries... " >&6; }
16801 # Make sure either enable_shared or enable_static is yes.
16802 test "$enable_shared" = yes || enable_static=yes
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16804$as_echo "$enable_static" >&6; }
16805
16806
16807
16808
16809fi
16810ac_ext=c
16811ac_cpp='$CPP $CPPFLAGS'
16812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16814ac_compiler_gnu=$ac_cv_c_compiler_gnu
16815
16816CC="$lt_save_CC"
16817
cristy0c60a692010-11-04 01:09:47 +000016818 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16819 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16820 (test "X$CXX" != "Xg++"))) ; then
16821 ac_ext=cpp
16822ac_cpp='$CXXCPP $CPPFLAGS'
16823ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16824ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16825ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16827$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16828if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016829 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016830 $as_echo_n "(cached) " >&6
16831else
16832 # Double quotes because CXXCPP needs to be expanded
16833 for CXXCPP in "$CXX -E" "/lib/cpp"
16834 do
16835 ac_preproc_ok=false
16836for ac_cxx_preproc_warn_flag in '' yes
16837do
16838 # Use a header file that comes with gcc, so configuring glibc
16839 # with a fresh cross-compiler works.
16840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16841 # <limits.h> exists even on freestanding compilers.
16842 # On the NeXT, cc -E runs the code through the compiler's parser,
16843 # not just through cpp. "Syntax error" is here to catch this case.
16844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16845/* end confdefs.h. */
16846#ifdef __STDC__
16847# include <limits.h>
16848#else
16849# include <assert.h>
16850#endif
16851 Syntax error
16852_ACEOF
16853if ac_fn_cxx_try_cpp "$LINENO"; then :
16854
16855else
16856 # Broken: fails on valid input.
16857continue
16858fi
cristyda16f162011-02-19 23:52:17 +000016859rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016860
16861 # OK, works on sane cases. Now check whether nonexistent headers
16862 # can be detected and how.
16863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16864/* end confdefs.h. */
16865#include <ac_nonexistent.h>
16866_ACEOF
16867if ac_fn_cxx_try_cpp "$LINENO"; then :
16868 # Broken: success on invalid input.
16869continue
16870else
16871 # Passes both tests.
16872ac_preproc_ok=:
16873break
16874fi
cristyda16f162011-02-19 23:52:17 +000016875rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016876
16877done
16878# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016879rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016880if $ac_preproc_ok; then :
16881 break
16882fi
16883
16884 done
16885 ac_cv_prog_CXXCPP=$CXXCPP
16886
16887fi
16888 CXXCPP=$ac_cv_prog_CXXCPP
16889else
16890 ac_cv_prog_CXXCPP=$CXXCPP
16891fi
16892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16893$as_echo "$CXXCPP" >&6; }
16894ac_preproc_ok=false
16895for ac_cxx_preproc_warn_flag in '' yes
16896do
16897 # Use a header file that comes with gcc, so configuring glibc
16898 # with a fresh cross-compiler works.
16899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16900 # <limits.h> exists even on freestanding compilers.
16901 # On the NeXT, cc -E runs the code through the compiler's parser,
16902 # not just through cpp. "Syntax error" is here to catch this case.
16903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904/* end confdefs.h. */
16905#ifdef __STDC__
16906# include <limits.h>
16907#else
16908# include <assert.h>
16909#endif
16910 Syntax error
16911_ACEOF
16912if ac_fn_cxx_try_cpp "$LINENO"; then :
16913
16914else
16915 # Broken: fails on valid input.
16916continue
16917fi
cristyda16f162011-02-19 23:52:17 +000016918rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016919
16920 # OK, works on sane cases. Now check whether nonexistent headers
16921 # can be detected and how.
16922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16923/* end confdefs.h. */
16924#include <ac_nonexistent.h>
16925_ACEOF
16926if ac_fn_cxx_try_cpp "$LINENO"; then :
16927 # Broken: success on invalid input.
16928continue
16929else
16930 # Passes both tests.
16931ac_preproc_ok=:
16932break
16933fi
cristyda16f162011-02-19 23:52:17 +000016934rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016935
16936done
16937# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016938rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016939if $ac_preproc_ok; then :
16940
16941else
16942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16944as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16945See \`config.log' for more details" "$LINENO" 5; }
16946fi
16947
16948ac_ext=c
16949ac_cpp='$CPP $CPPFLAGS'
16950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16952ac_compiler_gnu=$ac_cv_c_compiler_gnu
16953
16954else
16955 _lt_caught_CXX_error=yes
16956fi
cristy73bd4a52010-10-05 11:24:23 +000016957
16958ac_ext=cpp
16959ac_cpp='$CXXCPP $CPPFLAGS'
16960ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16961ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16962ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16963
16964archive_cmds_need_lc_CXX=no
16965allow_undefined_flag_CXX=
16966always_export_symbols_CXX=no
16967archive_expsym_cmds_CXX=
16968compiler_needs_object_CXX=no
16969export_dynamic_flag_spec_CXX=
16970hardcode_direct_CXX=no
16971hardcode_direct_absolute_CXX=no
16972hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000016973hardcode_libdir_separator_CXX=
16974hardcode_minus_L_CXX=no
16975hardcode_shlibpath_var_CXX=unsupported
16976hardcode_automatic_CXX=no
16977inherit_rpath_CXX=no
16978module_cmds_CXX=
16979module_expsym_cmds_CXX=
16980link_all_deplibs_CXX=unknown
16981old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016982reload_flag_CXX=$reload_flag
16983reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016984no_undefined_flag_CXX=
16985whole_archive_flag_spec_CXX=
16986enable_shared_with_static_runtimes_CXX=no
16987
16988# Source file extension for C++ test sources.
16989ac_ext=cpp
16990
16991# Object file extension for compiled C++ test sources.
16992objext=o
16993objext_CXX=$objext
16994
16995# No sense in running all these tests if we already determined that
16996# the CXX compiler isn't working. Some variables (like enable_shared)
16997# are currently assumed to apply to all compilers on this platform,
16998# and will be corrupted by setting them based on a non-working compiler.
16999if test "$_lt_caught_CXX_error" != yes; then
17000 # Code to be used in simple compile tests
17001 lt_simple_compile_test_code="int some_variable = 0;"
17002
17003 # Code to be used in simple link tests
17004 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17005
17006 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17007
17008
17009
17010
17011
17012
17013# If no C compiler was specified, use CC.
17014LTCC=${LTCC-"$CC"}
17015
17016# If no C compiler flags were specified, use CFLAGS.
17017LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17018
17019# Allow CC to be a program name with arguments.
17020compiler=$CC
17021
17022
17023 # save warnings/boilerplate of simple test code
17024 ac_outfile=conftest.$ac_objext
17025echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17026eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17027_lt_compiler_boilerplate=`cat conftest.err`
17028$RM conftest*
17029
17030 ac_outfile=conftest.$ac_objext
17031echo "$lt_simple_link_test_code" >conftest.$ac_ext
17032eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17033_lt_linker_boilerplate=`cat conftest.err`
17034$RM -r conftest*
17035
17036
17037 # Allow CC to be a program name with arguments.
17038 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017039 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017040 lt_save_LD=$LD
17041 lt_save_GCC=$GCC
17042 GCC=$GXX
17043 lt_save_with_gnu_ld=$with_gnu_ld
17044 lt_save_path_LD=$lt_cv_path_LD
17045 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17046 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17047 else
17048 $as_unset lt_cv_prog_gnu_ld
17049 fi
17050 if test -n "${lt_cv_path_LDCXX+set}"; then
17051 lt_cv_path_LD=$lt_cv_path_LDCXX
17052 else
17053 $as_unset lt_cv_path_LD
17054 fi
17055 test -z "${LDCXX+set}" || LD=$LDCXX
17056 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017057 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017058 compiler=$CC
17059 compiler_CXX=$CC
17060 for cc_temp in $compiler""; do
17061 case $cc_temp in
17062 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17063 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17064 \-*) ;;
17065 *) break;;
17066 esac
17067done
cristy0c60a692010-11-04 01:09:47 +000017068cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017069
17070
17071 if test -n "$compiler"; then
17072 # We don't want -fno-exception when compiling C++ code, so set the
17073 # no_builtin_flag separately
17074 if test "$GXX" = yes; then
17075 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17076 else
17077 lt_prog_compiler_no_builtin_flag_CXX=
17078 fi
17079
17080 if test "$GXX" = yes; then
17081 # Set up default GNU C++ configuration
17082
17083
17084
17085# Check whether --with-gnu-ld was given.
17086if test "${with_gnu_ld+set}" = set; then :
17087 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17088else
17089 with_gnu_ld=no
17090fi
17091
17092ac_prog=ld
17093if test "$GCC" = yes; then
17094 # Check if gcc -print-prog-name=ld gives a path.
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17096$as_echo_n "checking for ld used by $CC... " >&6; }
17097 case $host in
17098 *-*-mingw*)
17099 # gcc leaves a trailing carriage return which upsets mingw
17100 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17101 *)
17102 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17103 esac
17104 case $ac_prog in
17105 # Accept absolute paths.
17106 [\\/]* | ?:[\\/]*)
17107 re_direlt='/[^/][^/]*/\.\./'
17108 # Canonicalize the pathname of ld
17109 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17110 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17111 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17112 done
17113 test -z "$LD" && LD="$ac_prog"
17114 ;;
17115 "")
17116 # If it fails, then pretend we aren't using GCC.
17117 ac_prog=ld
17118 ;;
17119 *)
17120 # If it is relative, then search for the first ld in PATH.
17121 with_gnu_ld=unknown
17122 ;;
17123 esac
17124elif test "$with_gnu_ld" = yes; then
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17126$as_echo_n "checking for GNU ld... " >&6; }
17127else
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17129$as_echo_n "checking for non-GNU ld... " >&6; }
17130fi
cristyda16f162011-02-19 23:52:17 +000017131if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017132 $as_echo_n "(cached) " >&6
17133else
17134 if test -z "$LD"; then
17135 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17136 for ac_dir in $PATH; do
17137 IFS="$lt_save_ifs"
17138 test -z "$ac_dir" && ac_dir=.
17139 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17140 lt_cv_path_LD="$ac_dir/$ac_prog"
17141 # Check to see if the program is GNU ld. I'd rather use --version,
17142 # but apparently some variants of GNU ld only accept -v.
17143 # Break only if it was the GNU/non-GNU ld that we prefer.
17144 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17145 *GNU* | *'with BFD'*)
17146 test "$with_gnu_ld" != no && break
17147 ;;
17148 *)
17149 test "$with_gnu_ld" != yes && break
17150 ;;
17151 esac
17152 fi
17153 done
17154 IFS="$lt_save_ifs"
17155else
17156 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17157fi
17158fi
17159
17160LD="$lt_cv_path_LD"
17161if test -n "$LD"; then
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17163$as_echo "$LD" >&6; }
17164else
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17166$as_echo "no" >&6; }
17167fi
cristy98dddb52010-11-04 00:30:15 +000017168test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17170$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017171if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017172 $as_echo_n "(cached) " >&6
17173else
17174 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17175case `$LD -v 2>&1 </dev/null` in
17176*GNU* | *'with BFD'*)
17177 lt_cv_prog_gnu_ld=yes
17178 ;;
17179*)
17180 lt_cv_prog_gnu_ld=no
17181 ;;
17182esac
17183fi
17184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17185$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17186with_gnu_ld=$lt_cv_prog_gnu_ld
17187
17188
17189
17190
17191
17192
17193
17194 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17195 # archiving commands below assume that GNU ld is being used.
17196 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017197 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17198 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 +000017199
17200 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17201 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17202
17203 # If archive_cmds runs LD, not CC, wlarc should be empty
17204 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17205 # investigate it a little bit more. (MM)
17206 wlarc='${wl}'
17207
17208 # ancient GNU ld didn't support --whole-archive et. al.
17209 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17210 $GREP 'no-whole-archive' > /dev/null; then
17211 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17212 else
17213 whole_archive_flag_spec_CXX=
17214 fi
17215 else
17216 with_gnu_ld=no
17217 wlarc=
17218
17219 # A generic and very simple default shared library creation
17220 # command for GNU C++ for the case where it uses the native
17221 # linker, instead of GNU ld. If possible, this setting should
17222 # overridden to take advantage of the native linker features on
17223 # the platform it is being used on.
17224 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17225 fi
17226
17227 # Commands to make compiler produce verbose output that lists
17228 # what "hidden" libraries, object files and flags are used when
17229 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017230 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017231
17232 else
17233 GXX=no
17234 with_gnu_ld=no
17235 wlarc=
17236 fi
17237
17238 # PORTME: fill in a description of your system's C++ link characteristics
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17240$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17241 ld_shlibs_CXX=yes
17242 case $host_os in
17243 aix3*)
17244 # FIXME: insert proper C++ library support
17245 ld_shlibs_CXX=no
17246 ;;
17247 aix[4-9]*)
17248 if test "$host_cpu" = ia64; then
17249 # On IA64, the linker does run time linking by default, so we don't
17250 # have to do anything special.
17251 aix_use_runtimelinking=no
17252 exp_sym_flag='-Bexport'
17253 no_entry_flag=""
17254 else
17255 aix_use_runtimelinking=no
17256
17257 # Test if we are trying to use run time linking or normal
17258 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17259 # need to do runtime linking.
17260 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17261 for ld_flag in $LDFLAGS; do
17262 case $ld_flag in
17263 *-brtl*)
17264 aix_use_runtimelinking=yes
17265 break
17266 ;;
17267 esac
17268 done
17269 ;;
17270 esac
17271
17272 exp_sym_flag='-bexport'
17273 no_entry_flag='-bnoentry'
17274 fi
17275
17276 # When large executables or shared objects are built, AIX ld can
17277 # have problems creating the table of contents. If linking a library
17278 # or program results in "error TOC overflow" add -mminimal-toc to
17279 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17280 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17281
17282 archive_cmds_CXX=''
17283 hardcode_direct_CXX=yes
17284 hardcode_direct_absolute_CXX=yes
17285 hardcode_libdir_separator_CXX=':'
17286 link_all_deplibs_CXX=yes
17287 file_list_spec_CXX='${wl}-f,'
17288
17289 if test "$GXX" = yes; then
17290 case $host_os in aix4.[012]|aix4.[012].*)
17291 # We only want to do this on AIX 4.2 and lower, the check
17292 # below for broken collect2 doesn't work under 4.3+
17293 collect2name=`${CC} -print-prog-name=collect2`
17294 if test -f "$collect2name" &&
17295 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17296 then
17297 # We have reworked collect2
17298 :
17299 else
17300 # We have old collect2
17301 hardcode_direct_CXX=unsupported
17302 # It fails to find uninstalled libraries when the uninstalled
17303 # path is not listed in the libpath. Setting hardcode_minus_L
17304 # to unsupported forces relinking
17305 hardcode_minus_L_CXX=yes
17306 hardcode_libdir_flag_spec_CXX='-L$libdir'
17307 hardcode_libdir_separator_CXX=
17308 fi
17309 esac
17310 shared_flag='-shared'
17311 if test "$aix_use_runtimelinking" = yes; then
17312 shared_flag="$shared_flag "'${wl}-G'
17313 fi
17314 else
17315 # not using gcc
17316 if test "$host_cpu" = ia64; then
17317 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17318 # chokes on -Wl,-G. The following line is correct:
17319 shared_flag='-G'
17320 else
17321 if test "$aix_use_runtimelinking" = yes; then
17322 shared_flag='${wl}-G'
17323 else
17324 shared_flag='${wl}-bM:SRE'
17325 fi
17326 fi
17327 fi
17328
17329 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17330 # It seems that -bexpall does not export symbols beginning with
17331 # underscore (_), so it is better to generate a list of symbols to
17332 # export.
17333 always_export_symbols_CXX=yes
17334 if test "$aix_use_runtimelinking" = yes; then
17335 # Warning - without using the other runtime loading flags (-brtl),
17336 # -berok will link without error, but may produce a broken library.
17337 allow_undefined_flag_CXX='-berok'
17338 # Determine the default libpath from the value encoded in an empty
17339 # executable.
cristyda16f162011-02-19 23:52:17 +000017340 if test "${lt_cv_aix_libpath+set}" = set; then
17341 aix_libpath=$lt_cv_aix_libpath
17342else
17343 if ${lt_cv_aix_libpath__CXX+:} false; then :
17344 $as_echo_n "(cached) " >&6
17345else
17346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017347/* end confdefs.h. */
17348
17349int
17350main ()
17351{
17352
17353 ;
17354 return 0;
17355}
17356_ACEOF
17357if ac_fn_cxx_try_link "$LINENO"; then :
17358
cristyda16f162011-02-19 23:52:17 +000017359 lt_aix_libpath_sed='
17360 /Import File Strings/,/^$/ {
17361 /^0/ {
17362 s/^0 *\([^ ]*\) *$/\1/
17363 p
17364 }
17365 }'
17366 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17367 # Check for a 64-bit object if we didn't find anything.
17368 if test -z "$lt_cv_aix_libpath__CXX"; then
17369 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17370 fi
cristy73bd4a52010-10-05 11:24:23 +000017371fi
17372rm -f core conftest.err conftest.$ac_objext \
17373 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017374 if test -z "$lt_cv_aix_libpath__CXX"; then
17375 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17376 fi
17377
17378fi
17379
17380 aix_libpath=$lt_cv_aix_libpath__CXX
17381fi
cristy73bd4a52010-10-05 11:24:23 +000017382
17383 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17384
cristy0c60a692010-11-04 01:09:47 +000017385 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 +000017386 else
17387 if test "$host_cpu" = ia64; then
17388 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17389 allow_undefined_flag_CXX="-z nodefs"
17390 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"
17391 else
17392 # Determine the default libpath from the value encoded in an
17393 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017394 if test "${lt_cv_aix_libpath+set}" = set; then
17395 aix_libpath=$lt_cv_aix_libpath
17396else
17397 if ${lt_cv_aix_libpath__CXX+:} false; then :
17398 $as_echo_n "(cached) " >&6
17399else
17400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017401/* end confdefs.h. */
17402
17403int
17404main ()
17405{
17406
17407 ;
17408 return 0;
17409}
17410_ACEOF
17411if ac_fn_cxx_try_link "$LINENO"; then :
17412
cristyda16f162011-02-19 23:52:17 +000017413 lt_aix_libpath_sed='
17414 /Import File Strings/,/^$/ {
17415 /^0/ {
17416 s/^0 *\([^ ]*\) *$/\1/
17417 p
17418 }
17419 }'
17420 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17421 # Check for a 64-bit object if we didn't find anything.
17422 if test -z "$lt_cv_aix_libpath__CXX"; then
17423 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17424 fi
cristy73bd4a52010-10-05 11:24:23 +000017425fi
17426rm -f core conftest.err conftest.$ac_objext \
17427 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017428 if test -z "$lt_cv_aix_libpath__CXX"; then
17429 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17430 fi
17431
17432fi
17433
17434 aix_libpath=$lt_cv_aix_libpath__CXX
17435fi
cristy73bd4a52010-10-05 11:24:23 +000017436
17437 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17438 # Warning - without using the other run time loading flags,
17439 # -berok will link without error, but may produce a broken library.
17440 no_undefined_flag_CXX=' ${wl}-bernotok'
17441 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017442 if test "$with_gnu_ld" = yes; then
17443 # We only use this code for GNU lds that support --whole-archive.
17444 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17445 else
17446 # Exported symbols can be pulled into shared objects from archives
17447 whole_archive_flag_spec_CXX='$convenience'
17448 fi
cristy73bd4a52010-10-05 11:24:23 +000017449 archive_cmds_need_lc_CXX=yes
17450 # This is similar to how AIX traditionally builds its shared
17451 # libraries.
17452 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'
17453 fi
17454 fi
17455 ;;
17456
17457 beos*)
17458 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17459 allow_undefined_flag_CXX=unsupported
17460 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17461 # support --undefined. This deserves some investigation. FIXME
17462 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17463 else
17464 ld_shlibs_CXX=no
17465 fi
17466 ;;
17467
17468 chorus*)
17469 case $cc_basename in
17470 *)
17471 # FIXME: insert proper C++ library support
17472 ld_shlibs_CXX=no
17473 ;;
17474 esac
17475 ;;
17476
17477 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017478 case $GXX,$cc_basename in
17479 ,cl* | no,cl*)
17480 # Native MSVC
17481 # hardcode_libdir_flag_spec is actually meaningless, as there is
17482 # no search path for DLLs.
17483 hardcode_libdir_flag_spec_CXX=' '
17484 allow_undefined_flag_CXX=unsupported
17485 always_export_symbols_CXX=yes
17486 file_list_spec_CXX='@'
17487 # Tell ltmain to make .lib files, not .a files.
17488 libext=lib
17489 # Tell ltmain to make .dll files, not .so files.
17490 shrext_cmds=".dll"
17491 # FIXME: Setting linknames here is a bad hack.
17492 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17493 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17494 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17495 else
17496 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17497 fi~
17498 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17499 linknames='
17500 # The linker will not automatically build a static lib if we build a DLL.
17501 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17502 enable_shared_with_static_runtimes_CXX=yes
17503 # Don't use ranlib
17504 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17505 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17506 lt_tool_outputfile="@TOOL_OUTPUT@"~
17507 case $lt_outputfile in
17508 *.exe|*.EXE) ;;
17509 *)
17510 lt_outputfile="$lt_outputfile.exe"
17511 lt_tool_outputfile="$lt_tool_outputfile.exe"
17512 ;;
17513 esac~
17514 func_to_tool_file "$lt_outputfile"~
17515 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17516 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17517 $RM "$lt_outputfile.manifest";
17518 fi'
17519 ;;
17520 *)
17521 # g++
17522 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17523 # as there is no search path for DLLs.
17524 hardcode_libdir_flag_spec_CXX='-L$libdir'
17525 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17526 allow_undefined_flag_CXX=unsupported
17527 always_export_symbols_CXX=no
17528 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017529
cristyda16f162011-02-19 23:52:17 +000017530 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17531 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'
17532 # If the export-symbols file already is a .def file (1st line
17533 # is EXPORTS), use it as is; otherwise, prepend...
17534 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17535 cp $export_symbols $output_objdir/$soname.def;
17536 else
17537 echo EXPORTS > $output_objdir/$soname.def;
17538 cat $export_symbols >> $output_objdir/$soname.def;
17539 fi~
17540 $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'
17541 else
17542 ld_shlibs_CXX=no
17543 fi
17544 ;;
17545 esac
17546 ;;
cristy73bd4a52010-10-05 11:24:23 +000017547 darwin* | rhapsody*)
17548
17549
17550 archive_cmds_need_lc_CXX=no
17551 hardcode_direct_CXX=no
17552 hardcode_automatic_CXX=yes
17553 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017554 if test "$lt_cv_ld_force_load" = "yes"; then
17555 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\"`'
cristy99bd5232011-12-07 14:38:20 +000017556
cristy0c60a692010-11-04 01:09:47 +000017557 else
17558 whole_archive_flag_spec_CXX=''
17559 fi
cristy73bd4a52010-10-05 11:24:23 +000017560 link_all_deplibs_CXX=yes
17561 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17562 case $cc_basename in
17563 ifort*) _lt_dar_can_shared=yes ;;
17564 *) _lt_dar_can_shared=$GCC ;;
17565 esac
17566 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017567 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017568 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}"
17569 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17570 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}"
17571 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}"
17572 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17573 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}"
17574 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}"
17575 fi
17576
17577 else
17578 ld_shlibs_CXX=no
17579 fi
17580
17581 ;;
17582
17583 dgux*)
17584 case $cc_basename in
17585 ec++*)
17586 # FIXME: insert proper C++ library support
17587 ld_shlibs_CXX=no
17588 ;;
17589 ghcx*)
17590 # Green Hills C++ Compiler
17591 # FIXME: insert proper C++ library support
17592 ld_shlibs_CXX=no
17593 ;;
17594 *)
17595 # FIXME: insert proper C++ library support
17596 ld_shlibs_CXX=no
17597 ;;
17598 esac
17599 ;;
17600
cristy99bd5232011-12-07 14:38:20 +000017601 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000017602 # C++ shared libraries reported to be fairly broken before
17603 # switch to ELF
17604 ld_shlibs_CXX=no
17605 ;;
17606
17607 freebsd-elf*)
17608 archive_cmds_need_lc_CXX=no
17609 ;;
17610
17611 freebsd* | dragonfly*)
17612 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17613 # conventions
17614 ld_shlibs_CXX=yes
17615 ;;
17616
17617 gnu*)
17618 ;;
17619
cristy0c60a692010-11-04 01:09:47 +000017620 haiku*)
17621 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17622 link_all_deplibs_CXX=yes
17623 ;;
17624
cristy73bd4a52010-10-05 11:24:23 +000017625 hpux9*)
17626 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17627 hardcode_libdir_separator_CXX=:
17628 export_dynamic_flag_spec_CXX='${wl}-E'
17629 hardcode_direct_CXX=yes
17630 hardcode_minus_L_CXX=yes # Not in the search PATH,
17631 # but as the default
17632 # location of the library.
17633
17634 case $cc_basename in
17635 CC*)
17636 # FIXME: insert proper C++ library support
17637 ld_shlibs_CXX=no
17638 ;;
17639 aCC*)
17640 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'
17641 # Commands to make compiler produce verbose output that lists
17642 # what "hidden" libraries, object files and flags are used when
17643 # linking a shared library.
17644 #
17645 # There doesn't appear to be a way to prevent this compiler from
17646 # explicitly linking system object files so we need to strip them
17647 # from the output so that they don't get included in the library
17648 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017649 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 +000017650 ;;
17651 *)
17652 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017653 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 +000017654 else
17655 # FIXME: insert proper C++ library support
17656 ld_shlibs_CXX=no
17657 fi
17658 ;;
17659 esac
17660 ;;
17661
17662 hpux10*|hpux11*)
17663 if test $with_gnu_ld = no; then
17664 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17665 hardcode_libdir_separator_CXX=:
17666
17667 case $host_cpu in
17668 hppa*64*|ia64*)
17669 ;;
17670 *)
17671 export_dynamic_flag_spec_CXX='${wl}-E'
17672 ;;
17673 esac
17674 fi
17675 case $host_cpu in
17676 hppa*64*|ia64*)
17677 hardcode_direct_CXX=no
17678 hardcode_shlibpath_var_CXX=no
17679 ;;
17680 *)
17681 hardcode_direct_CXX=yes
17682 hardcode_direct_absolute_CXX=yes
17683 hardcode_minus_L_CXX=yes # Not in the search PATH,
17684 # but as the default
17685 # location of the library.
17686 ;;
17687 esac
17688
17689 case $cc_basename in
17690 CC*)
17691 # FIXME: insert proper C++ library support
17692 ld_shlibs_CXX=no
17693 ;;
17694 aCC*)
17695 case $host_cpu in
17696 hppa*64*)
17697 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17698 ;;
17699 ia64*)
17700 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17701 ;;
17702 *)
17703 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17704 ;;
17705 esac
17706 # Commands to make compiler produce verbose output that lists
17707 # what "hidden" libraries, object files and flags are used when
17708 # linking a shared library.
17709 #
17710 # There doesn't appear to be a way to prevent this compiler from
17711 # explicitly linking system object files so we need to strip them
17712 # from the output so that they don't get included in the library
17713 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017714 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 +000017715 ;;
17716 *)
17717 if test "$GXX" = yes; then
17718 if test $with_gnu_ld = no; then
17719 case $host_cpu in
17720 hppa*64*)
17721 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17722 ;;
17723 ia64*)
cristyda16f162011-02-19 23:52:17 +000017724 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 +000017725 ;;
17726 *)
cristyda16f162011-02-19 23:52:17 +000017727 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 +000017728 ;;
17729 esac
17730 fi
17731 else
17732 # FIXME: insert proper C++ library support
17733 ld_shlibs_CXX=no
17734 fi
17735 ;;
17736 esac
17737 ;;
17738
17739 interix[3-9]*)
17740 hardcode_direct_CXX=no
17741 hardcode_shlibpath_var_CXX=no
17742 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17743 export_dynamic_flag_spec_CXX='${wl}-E'
17744 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17745 # Instead, shared libraries are loaded at an image base (0x10000000 by
17746 # default) and relocated if they conflict, which is a slow very memory
17747 # consuming and fragmenting process. To avoid this, we pick a random,
17748 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17749 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17750 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'
17751 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'
17752 ;;
17753 irix5* | irix6*)
17754 case $cc_basename in
17755 CC*)
17756 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017757 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 +000017758
17759 # Archives containing C++ object files must be created using
17760 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17761 # necessary to make sure instantiated templates are included
17762 # in the archive.
17763 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17764 ;;
17765 *)
17766 if test "$GXX" = yes; then
17767 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017768 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 +000017769 else
cristyda16f162011-02-19 23:52:17 +000017770 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 +000017771 fi
17772 fi
17773 link_all_deplibs_CXX=yes
17774 ;;
17775 esac
17776 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17777 hardcode_libdir_separator_CXX=:
17778 inherit_rpath_CXX=yes
17779 ;;
17780
cristy0c60a692010-11-04 01:09:47 +000017781 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017782 case $cc_basename in
17783 KCC*)
17784 # Kuck and Associates, Inc. (KAI) C++ Compiler
17785
17786 # KCC will only create a shared library if the output file
17787 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17788 # to its proper name (with version) after linking.
17789 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'
17790 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'
17791 # Commands to make compiler produce verbose output that lists
17792 # what "hidden" libraries, object files and flags are used when
17793 # linking a shared library.
17794 #
17795 # There doesn't appear to be a way to prevent this compiler from
17796 # explicitly linking system object files so we need to strip them
17797 # from the output so that they don't get included in the library
17798 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017799 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 +000017800
17801 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17802 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17803
17804 # Archives containing C++ object files must be created using
17805 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17806 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17807 ;;
17808 icpc* | ecpc* )
17809 # Intel C++
17810 with_gnu_ld=yes
17811 # version 8.0 and above of icpc choke on multiply defined symbols
17812 # if we add $predep_objects and $postdep_objects, however 7.1 and
17813 # earlier do not add the objects themselves.
17814 case `$CC -V 2>&1` in
17815 *"Version 7."*)
17816 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17817 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'
17818 ;;
17819 *) # Version 8.0 or newer
17820 tmp_idyn=
17821 case $host_cpu in
17822 ia64*) tmp_idyn=' -i_dynamic';;
17823 esac
17824 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17825 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'
17826 ;;
17827 esac
17828 archive_cmds_need_lc_CXX=no
17829 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17830 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17831 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17832 ;;
17833 pgCC* | pgcpp*)
17834 # Portland Group C++ compiler
17835 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017836 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017837 prelink_cmds_CXX='tpldir=Template.dir~
17838 rm -rf $tpldir~
17839 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017840 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017841 old_archive_cmds_CXX='tpldir=Template.dir~
17842 rm -rf $tpldir~
17843 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017844 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017845 $RANLIB $oldlib'
17846 archive_cmds_CXX='tpldir=Template.dir~
17847 rm -rf $tpldir~
17848 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017849 $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 +000017850 archive_expsym_cmds_CXX='tpldir=Template.dir~
17851 rm -rf $tpldir~
17852 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017853 $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 +000017854 ;;
cristy0c60a692010-11-04 01:09:47 +000017855 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017856 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17857 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'
17858 ;;
17859 esac
17860
17861 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17862 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017863 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 +000017864 ;;
17865 cxx*)
17866 # Compaq C++
17867 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17868 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'
17869
17870 runpath_var=LD_RUN_PATH
17871 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17872 hardcode_libdir_separator_CXX=:
17873
17874 # Commands to make compiler produce verbose output that lists
17875 # what "hidden" libraries, object files and flags are used when
17876 # linking a shared library.
17877 #
17878 # There doesn't appear to be a way to prevent this compiler from
17879 # explicitly linking system object files so we need to strip them
17880 # from the output so that they don't get included in the library
17881 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017882 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 +000017883 ;;
cristy0c60a692010-11-04 01:09:47 +000017884 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017885 # IBM XL 8.0 on PPC, with GNU ld
17886 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17887 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17888 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17889 if test "x$supports_anon_versioning" = xyes; then
17890 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17891 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17892 echo "local: *; };" >> $output_objdir/$libname.ver~
17893 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17894 fi
17895 ;;
17896 *)
17897 case `$CC -V 2>&1 | sed 5q` in
17898 *Sun\ C*)
17899 # Sun C++ 5.9
17900 no_undefined_flag_CXX=' -zdefs'
17901 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17902 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'
17903 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017904 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 +000017905 compiler_needs_object_CXX=yes
17906
17907 # Not sure whether something based on
17908 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17909 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017910 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017911
17912 # Archives containing C++ object files must be created using
17913 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17914 # necessary to make sure instantiated templates are included
17915 # in the archive.
17916 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17917 ;;
17918 esac
17919 ;;
17920 esac
17921 ;;
17922
17923 lynxos*)
17924 # FIXME: insert proper C++ library support
17925 ld_shlibs_CXX=no
17926 ;;
17927
17928 m88k*)
17929 # FIXME: insert proper C++ library support
17930 ld_shlibs_CXX=no
17931 ;;
17932
17933 mvs*)
17934 case $cc_basename in
17935 cxx*)
17936 # FIXME: insert proper C++ library support
17937 ld_shlibs_CXX=no
17938 ;;
17939 *)
17940 # FIXME: insert proper C++ library support
17941 ld_shlibs_CXX=no
17942 ;;
17943 esac
17944 ;;
17945
17946 netbsd*)
17947 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17948 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17949 wlarc=
17950 hardcode_libdir_flag_spec_CXX='-R$libdir'
17951 hardcode_direct_CXX=yes
17952 hardcode_shlibpath_var_CXX=no
17953 fi
17954 # Workaround some broken pre-1.5 toolchains
17955 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17956 ;;
17957
17958 *nto* | *qnx*)
17959 ld_shlibs_CXX=yes
17960 ;;
17961
17962 openbsd2*)
17963 # C++ shared libraries are fairly broken
17964 ld_shlibs_CXX=no
17965 ;;
17966
17967 openbsd*)
17968 if test -f /usr/libexec/ld.so; then
17969 hardcode_direct_CXX=yes
17970 hardcode_shlibpath_var_CXX=no
17971 hardcode_direct_absolute_CXX=yes
17972 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17973 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17974 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17975 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17976 export_dynamic_flag_spec_CXX='${wl}-E'
17977 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17978 fi
cristy0c60a692010-11-04 01:09:47 +000017979 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017980 else
17981 ld_shlibs_CXX=no
17982 fi
17983 ;;
17984
17985 osf3* | osf4* | osf5*)
17986 case $cc_basename in
17987 KCC*)
17988 # Kuck and Associates, Inc. (KAI) C++ Compiler
17989
17990 # KCC will only create a shared library if the output file
17991 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17992 # to its proper name (with version) after linking.
17993 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'
17994
17995 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17996 hardcode_libdir_separator_CXX=:
17997
17998 # Archives containing C++ object files must be created using
17999 # the KAI C++ compiler.
18000 case $host in
18001 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18002 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18003 esac
18004 ;;
18005 RCC*)
18006 # Rational C++ 2.4.1
18007 # FIXME: insert proper C++ library support
18008 ld_shlibs_CXX=no
18009 ;;
18010 cxx*)
18011 case $host in
18012 osf3*)
18013 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018014 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 +000018015 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18016 ;;
18017 *)
18018 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018019 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 +000018020 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18021 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018022 $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 +000018023 $RM $lib.exp'
18024 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18025 ;;
18026 esac
18027
18028 hardcode_libdir_separator_CXX=:
18029
18030 # Commands to make compiler produce verbose output that lists
18031 # what "hidden" libraries, object files and flags are used when
18032 # linking a shared library.
18033 #
18034 # There doesn't appear to be a way to prevent this compiler from
18035 # explicitly linking system object files so we need to strip them
18036 # from the output so that they don't get included in the library
18037 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018038 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 +000018039 ;;
18040 *)
18041 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18042 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18043 case $host in
18044 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018045 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 +000018046 ;;
18047 *)
cristyda16f162011-02-19 23:52:17 +000018048 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 +000018049 ;;
18050 esac
18051
18052 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18053 hardcode_libdir_separator_CXX=:
18054
18055 # Commands to make compiler produce verbose output that lists
18056 # what "hidden" libraries, object files and flags are used when
18057 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018058 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018059
18060 else
18061 # FIXME: insert proper C++ library support
18062 ld_shlibs_CXX=no
18063 fi
18064 ;;
18065 esac
18066 ;;
18067
18068 psos*)
18069 # FIXME: insert proper C++ library support
18070 ld_shlibs_CXX=no
18071 ;;
18072
18073 sunos4*)
18074 case $cc_basename in
18075 CC*)
18076 # Sun C++ 4.x
18077 # FIXME: insert proper C++ library support
18078 ld_shlibs_CXX=no
18079 ;;
18080 lcc*)
18081 # Lucid
18082 # FIXME: insert proper C++ library support
18083 ld_shlibs_CXX=no
18084 ;;
18085 *)
18086 # FIXME: insert proper C++ library support
18087 ld_shlibs_CXX=no
18088 ;;
18089 esac
18090 ;;
18091
18092 solaris*)
18093 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018094 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018095 # Sun C++ 4.2, 5.x and Centerline C++
18096 archive_cmds_need_lc_CXX=yes
18097 no_undefined_flag_CXX=' -zdefs'
18098 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18099 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18100 $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'
18101
18102 hardcode_libdir_flag_spec_CXX='-R$libdir'
18103 hardcode_shlibpath_var_CXX=no
18104 case $host_os in
18105 solaris2.[0-5] | solaris2.[0-5].*) ;;
18106 *)
18107 # The compiler driver will combine and reorder linker options,
18108 # but understands `-z linker_flag'.
18109 # Supported since Solaris 2.6 (maybe 2.5.1?)
18110 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18111 ;;
18112 esac
18113 link_all_deplibs_CXX=yes
18114
cristy0c60a692010-11-04 01:09:47 +000018115 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018116
18117 # Archives containing C++ object files must be created using
18118 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18119 # necessary to make sure instantiated templates are included
18120 # in the archive.
18121 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18122 ;;
18123 gcx*)
18124 # Green Hills C++ Compiler
18125 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18126
18127 # The C++ compiler must be used to create the archive.
18128 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18129 ;;
18130 *)
18131 # GNU C++ compiler with Solaris linker
18132 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18133 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18134 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018135 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 +000018136 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 +000018137 $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 +000018138
18139 # Commands to make compiler produce verbose output that lists
18140 # what "hidden" libraries, object files and flags are used when
18141 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018142 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018143 else
18144 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18145 # platform.
18146 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18147 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18148 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18149
18150 # Commands to make compiler produce verbose output that lists
18151 # what "hidden" libraries, object files and flags are used when
18152 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018153 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018154 fi
18155
18156 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18157 case $host_os in
18158 solaris2.[0-5] | solaris2.[0-5].*) ;;
18159 *)
18160 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18161 ;;
18162 esac
18163 fi
18164 ;;
18165 esac
18166 ;;
18167
18168 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18169 no_undefined_flag_CXX='${wl}-z,text'
18170 archive_cmds_need_lc_CXX=no
18171 hardcode_shlibpath_var_CXX=no
18172 runpath_var='LD_RUN_PATH'
18173
18174 case $cc_basename in
18175 CC*)
18176 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18177 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18178 ;;
18179 *)
18180 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18181 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18182 ;;
18183 esac
18184 ;;
18185
18186 sysv5* | sco3.2v5* | sco5v6*)
18187 # Note: We can NOT use -z defs as we might desire, because we do not
18188 # link with -lc, and that would cause any symbols used from libc to
18189 # always be unresolved, which means just about no library would
18190 # ever link correctly. If we're not using GNU ld we use -z text
18191 # though, which does catch some bad symbols but isn't as heavy-handed
18192 # as -z defs.
18193 no_undefined_flag_CXX='${wl}-z,text'
18194 allow_undefined_flag_CXX='${wl}-z,nodefs'
18195 archive_cmds_need_lc_CXX=no
18196 hardcode_shlibpath_var_CXX=no
18197 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18198 hardcode_libdir_separator_CXX=':'
18199 link_all_deplibs_CXX=yes
18200 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18201 runpath_var='LD_RUN_PATH'
18202
18203 case $cc_basename in
18204 CC*)
18205 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18206 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 +000018207 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18208 '"$old_archive_cmds_CXX"
18209 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18210 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018211 ;;
18212 *)
18213 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18214 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18215 ;;
18216 esac
18217 ;;
18218
18219 tandem*)
18220 case $cc_basename in
18221 NCC*)
18222 # NonStop-UX NCC 3.20
18223 # FIXME: insert proper C++ library support
18224 ld_shlibs_CXX=no
18225 ;;
18226 *)
18227 # FIXME: insert proper C++ library support
18228 ld_shlibs_CXX=no
18229 ;;
18230 esac
18231 ;;
18232
18233 vxworks*)
18234 # FIXME: insert proper C++ library support
18235 ld_shlibs_CXX=no
18236 ;;
18237
18238 *)
18239 # FIXME: insert proper C++ library support
18240 ld_shlibs_CXX=no
18241 ;;
18242 esac
18243
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18245$as_echo "$ld_shlibs_CXX" >&6; }
18246 test "$ld_shlibs_CXX" = no && can_build_shared=no
18247
18248 GCC_CXX="$GXX"
18249 LD_CXX="$LD"
18250
18251 ## CAVEAT EMPTOR:
18252 ## There is no encapsulation within the following macros, do not change
18253 ## the running order or otherwise move them around unless you know exactly
18254 ## what you are doing...
18255 # Dependencies to place before and after the object being linked:
18256predep_objects_CXX=
18257postdep_objects_CXX=
18258predeps_CXX=
18259postdeps_CXX=
18260compiler_lib_search_path_CXX=
18261
18262cat > conftest.$ac_ext <<_LT_EOF
18263class Foo
18264{
18265public:
18266 Foo (void) { a = 0; }
18267private:
18268 int a;
18269};
18270_LT_EOF
18271
cristyda16f162011-02-19 23:52:17 +000018272
18273_lt_libdeps_save_CFLAGS=$CFLAGS
18274case "$CC $CFLAGS " in #(
18275*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18276*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018277*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018278esac
18279
cristy73bd4a52010-10-05 11:24:23 +000018280if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18281 (eval $ac_compile) 2>&5
18282 ac_status=$?
18283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18284 test $ac_status = 0; }; then
18285 # Parse the compiler output and extract the necessary
18286 # objects, libraries and library flags.
18287
18288 # Sentinel used to keep track of whether or not we are before
18289 # the conftest object file.
18290 pre_test_object_deps_done=no
18291
18292 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018293 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018294
18295 -L* | -R* | -l*)
18296 # Some compilers place space between "-{L,R}" and the path.
18297 # Remove the space.
18298 if test $p = "-L" ||
18299 test $p = "-R"; then
18300 prev=$p
18301 continue
cristy73bd4a52010-10-05 11:24:23 +000018302 fi
18303
cristyda16f162011-02-19 23:52:17 +000018304 # Expand the sysroot to ease extracting the directories later.
18305 if test -z "$prev"; then
18306 case $p in
18307 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18308 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18309 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18310 esac
18311 fi
18312 case $p in
18313 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18314 esac
cristy73bd4a52010-10-05 11:24:23 +000018315 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018316 case ${prev} in
18317 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018318 # Internal compiler library paths should come after those
18319 # provided the user. The postdeps already come after the
18320 # user supplied libs so there is no need to process them.
18321 if test -z "$compiler_lib_search_path_CXX"; then
18322 compiler_lib_search_path_CXX="${prev}${p}"
18323 else
18324 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18325 fi
18326 ;;
18327 # The "-l" case would never come before the object being
18328 # linked, so don't bother handling this case.
18329 esac
18330 else
18331 if test -z "$postdeps_CXX"; then
18332 postdeps_CXX="${prev}${p}"
18333 else
18334 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18335 fi
18336 fi
cristyda16f162011-02-19 23:52:17 +000018337 prev=
cristy73bd4a52010-10-05 11:24:23 +000018338 ;;
18339
cristyda16f162011-02-19 23:52:17 +000018340 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018341 *.$objext)
18342 # This assumes that the test object file only shows up
18343 # once in the compiler output.
18344 if test "$p" = "conftest.$objext"; then
18345 pre_test_object_deps_done=yes
18346 continue
18347 fi
18348
18349 if test "$pre_test_object_deps_done" = no; then
18350 if test -z "$predep_objects_CXX"; then
18351 predep_objects_CXX="$p"
18352 else
18353 predep_objects_CXX="$predep_objects_CXX $p"
18354 fi
18355 else
18356 if test -z "$postdep_objects_CXX"; then
18357 postdep_objects_CXX="$p"
18358 else
18359 postdep_objects_CXX="$postdep_objects_CXX $p"
18360 fi
18361 fi
18362 ;;
18363
18364 *) ;; # Ignore the rest.
18365
18366 esac
18367 done
18368
18369 # Clean up.
18370 rm -f a.out a.exe
18371else
18372 echo "libtool.m4: error: problem compiling CXX test program"
18373fi
18374
18375$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018376CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018377
18378# PORTME: override above test on systems where it is broken
18379case $host_os in
18380interix[3-9]*)
18381 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18382 # hack all around it, let's just trust "g++" to DTRT.
18383 predep_objects_CXX=
18384 postdep_objects_CXX=
18385 postdeps_CXX=
18386 ;;
18387
18388linux*)
18389 case `$CC -V 2>&1 | sed 5q` in
18390 *Sun\ C*)
18391 # Sun C++ 5.9
18392
18393 # The more standards-conforming stlport4 library is
18394 # incompatible with the Cstd library. Avoid specifying
18395 # it if it's in CXXFLAGS. Ignore libCrun as
18396 # -library=stlport4 depends on it.
18397 case " $CXX $CXXFLAGS " in
18398 *" -library=stlport4 "*)
18399 solaris_use_stlport4=yes
18400 ;;
18401 esac
18402
18403 if test "$solaris_use_stlport4" != yes; then
18404 postdeps_CXX='-library=Cstd -library=Crun'
18405 fi
18406 ;;
18407 esac
18408 ;;
18409
18410solaris*)
18411 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018412 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018413 # The more standards-conforming stlport4 library is
18414 # incompatible with the Cstd library. Avoid specifying
18415 # it if it's in CXXFLAGS. Ignore libCrun as
18416 # -library=stlport4 depends on it.
18417 case " $CXX $CXXFLAGS " in
18418 *" -library=stlport4 "*)
18419 solaris_use_stlport4=yes
18420 ;;
18421 esac
18422
18423 # Adding this requires a known-good setup of shared libraries for
18424 # Sun compiler versions before 5.6, else PIC objects from an old
18425 # archive will be linked into the output, leading to subtle bugs.
18426 if test "$solaris_use_stlport4" != yes; then
18427 postdeps_CXX='-library=Cstd -library=Crun'
18428 fi
18429 ;;
18430 esac
18431 ;;
18432esac
18433
18434
18435case " $postdeps_CXX " in
18436*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18437esac
18438 compiler_lib_search_dirs_CXX=
18439if test -n "${compiler_lib_search_path_CXX}"; then
18440 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18441fi
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473 lt_prog_compiler_wl_CXX=
18474lt_prog_compiler_pic_CXX=
18475lt_prog_compiler_static_CXX=
18476
cristy73bd4a52010-10-05 11:24:23 +000018477
18478 # C++ specific cases for pic, static, wl, etc.
18479 if test "$GXX" = yes; then
18480 lt_prog_compiler_wl_CXX='-Wl,'
18481 lt_prog_compiler_static_CXX='-static'
18482
18483 case $host_os in
18484 aix*)
18485 # All AIX code is PIC.
18486 if test "$host_cpu" = ia64; then
18487 # AIX 5 now supports IA64 processor
18488 lt_prog_compiler_static_CXX='-Bstatic'
18489 fi
18490 ;;
18491
18492 amigaos*)
18493 case $host_cpu in
18494 powerpc)
18495 # see comment about AmigaOS4 .so support
18496 lt_prog_compiler_pic_CXX='-fPIC'
18497 ;;
18498 m68k)
18499 # FIXME: we need at least 68020 code to build shared libraries, but
18500 # adding the `-m68020' flag to GCC prevents building anything better,
18501 # like `-m68040'.
18502 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18503 ;;
18504 esac
18505 ;;
18506
18507 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18508 # PIC is the default for these OSes.
18509 ;;
18510 mingw* | cygwin* | os2* | pw32* | cegcc*)
18511 # This hack is so that the source file can tell whether it is being
18512 # built for inclusion in a dll (and should export symbols for example).
18513 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18514 # (--disable-auto-import) libraries
18515 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18516 ;;
18517 darwin* | rhapsody*)
18518 # PIC is the default on this platform
18519 # Common symbols not allowed in MH_DYLIB files
18520 lt_prog_compiler_pic_CXX='-fno-common'
18521 ;;
18522 *djgpp*)
18523 # DJGPP does not support shared libraries at all
18524 lt_prog_compiler_pic_CXX=
18525 ;;
cristy0c60a692010-11-04 01:09:47 +000018526 haiku*)
18527 # PIC is the default for Haiku.
18528 # The "-static" flag exists, but is broken.
18529 lt_prog_compiler_static_CXX=
18530 ;;
cristy73bd4a52010-10-05 11:24:23 +000018531 interix[3-9]*)
18532 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18533 # Instead, we relocate shared libraries at runtime.
18534 ;;
18535 sysv4*MP*)
18536 if test -d /usr/nec; then
18537 lt_prog_compiler_pic_CXX=-Kconform_pic
18538 fi
18539 ;;
18540 hpux*)
18541 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18542 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18543 # sets the default TLS model and affects inlining.
18544 case $host_cpu in
18545 hppa*64*)
18546 ;;
18547 *)
18548 lt_prog_compiler_pic_CXX='-fPIC'
18549 ;;
18550 esac
18551 ;;
18552 *qnx* | *nto*)
18553 # QNX uses GNU C++, but need to define -shared option too, otherwise
18554 # it will coredump.
18555 lt_prog_compiler_pic_CXX='-fPIC -shared'
18556 ;;
18557 *)
18558 lt_prog_compiler_pic_CXX='-fPIC'
18559 ;;
18560 esac
18561 else
18562 case $host_os in
18563 aix[4-9]*)
18564 # All AIX code is PIC.
18565 if test "$host_cpu" = ia64; then
18566 # AIX 5 now supports IA64 processor
18567 lt_prog_compiler_static_CXX='-Bstatic'
18568 else
18569 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18570 fi
18571 ;;
18572 chorus*)
18573 case $cc_basename in
18574 cxch68*)
18575 # Green Hills C++ Compiler
18576 # _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"
18577 ;;
18578 esac
18579 ;;
cristyda16f162011-02-19 23:52:17 +000018580 mingw* | cygwin* | os2* | pw32* | cegcc*)
18581 # This hack is so that the source file can tell whether it is being
18582 # built for inclusion in a dll (and should export symbols for example).
18583 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18584 ;;
cristy73bd4a52010-10-05 11:24:23 +000018585 dgux*)
18586 case $cc_basename in
18587 ec++*)
18588 lt_prog_compiler_pic_CXX='-KPIC'
18589 ;;
18590 ghcx*)
18591 # Green Hills C++ Compiler
18592 lt_prog_compiler_pic_CXX='-pic'
18593 ;;
18594 *)
18595 ;;
18596 esac
18597 ;;
18598 freebsd* | dragonfly*)
18599 # FreeBSD uses GNU C++
18600 ;;
18601 hpux9* | hpux10* | hpux11*)
18602 case $cc_basename in
18603 CC*)
18604 lt_prog_compiler_wl_CXX='-Wl,'
18605 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18606 if test "$host_cpu" != ia64; then
18607 lt_prog_compiler_pic_CXX='+Z'
18608 fi
18609 ;;
18610 aCC*)
18611 lt_prog_compiler_wl_CXX='-Wl,'
18612 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18613 case $host_cpu in
18614 hppa*64*|ia64*)
18615 # +Z the default
18616 ;;
18617 *)
18618 lt_prog_compiler_pic_CXX='+Z'
18619 ;;
18620 esac
18621 ;;
18622 *)
18623 ;;
18624 esac
18625 ;;
18626 interix*)
18627 # This is c89, which is MS Visual C++ (no shared libs)
18628 # Anyone wants to do a port?
18629 ;;
18630 irix5* | irix6* | nonstopux*)
18631 case $cc_basename in
18632 CC*)
18633 lt_prog_compiler_wl_CXX='-Wl,'
18634 lt_prog_compiler_static_CXX='-non_shared'
18635 # CC pic flag -KPIC is the default.
18636 ;;
18637 *)
18638 ;;
18639 esac
18640 ;;
cristy0c60a692010-11-04 01:09:47 +000018641 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018642 case $cc_basename in
18643 KCC*)
18644 # KAI C++ Compiler
18645 lt_prog_compiler_wl_CXX='--backend -Wl,'
18646 lt_prog_compiler_pic_CXX='-fPIC'
18647 ;;
18648 ecpc* )
18649 # old Intel C++ for x86_64 which still supported -KPIC.
18650 lt_prog_compiler_wl_CXX='-Wl,'
18651 lt_prog_compiler_pic_CXX='-KPIC'
18652 lt_prog_compiler_static_CXX='-static'
18653 ;;
18654 icpc* )
18655 # Intel C++, used to be incompatible with GCC.
18656 # ICC 10 doesn't accept -KPIC any more.
18657 lt_prog_compiler_wl_CXX='-Wl,'
18658 lt_prog_compiler_pic_CXX='-fPIC'
18659 lt_prog_compiler_static_CXX='-static'
18660 ;;
18661 pgCC* | pgcpp*)
18662 # Portland Group C++ compiler
18663 lt_prog_compiler_wl_CXX='-Wl,'
18664 lt_prog_compiler_pic_CXX='-fpic'
18665 lt_prog_compiler_static_CXX='-Bstatic'
18666 ;;
18667 cxx*)
18668 # Compaq C++
18669 # Make sure the PIC flag is empty. It appears that all Alpha
18670 # Linux and Compaq Tru64 Unix objects are PIC.
18671 lt_prog_compiler_pic_CXX=
18672 lt_prog_compiler_static_CXX='-non_shared'
18673 ;;
cristy0c60a692010-11-04 01:09:47 +000018674 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18675 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018676 lt_prog_compiler_wl_CXX='-Wl,'
18677 lt_prog_compiler_pic_CXX='-qpic'
18678 lt_prog_compiler_static_CXX='-qstaticlink'
18679 ;;
18680 *)
18681 case `$CC -V 2>&1 | sed 5q` in
18682 *Sun\ C*)
18683 # Sun C++ 5.9
18684 lt_prog_compiler_pic_CXX='-KPIC'
18685 lt_prog_compiler_static_CXX='-Bstatic'
18686 lt_prog_compiler_wl_CXX='-Qoption ld '
18687 ;;
18688 esac
18689 ;;
18690 esac
18691 ;;
18692 lynxos*)
18693 ;;
18694 m88k*)
18695 ;;
18696 mvs*)
18697 case $cc_basename in
18698 cxx*)
18699 lt_prog_compiler_pic_CXX='-W c,exportall'
18700 ;;
18701 *)
18702 ;;
18703 esac
18704 ;;
18705 netbsd*)
18706 ;;
18707 *qnx* | *nto*)
18708 # QNX uses GNU C++, but need to define -shared option too, otherwise
18709 # it will coredump.
18710 lt_prog_compiler_pic_CXX='-fPIC -shared'
18711 ;;
18712 osf3* | osf4* | osf5*)
18713 case $cc_basename in
18714 KCC*)
18715 lt_prog_compiler_wl_CXX='--backend -Wl,'
18716 ;;
18717 RCC*)
18718 # Rational C++ 2.4.1
18719 lt_prog_compiler_pic_CXX='-pic'
18720 ;;
18721 cxx*)
18722 # Digital/Compaq C++
18723 lt_prog_compiler_wl_CXX='-Wl,'
18724 # Make sure the PIC flag is empty. It appears that all Alpha
18725 # Linux and Compaq Tru64 Unix objects are PIC.
18726 lt_prog_compiler_pic_CXX=
18727 lt_prog_compiler_static_CXX='-non_shared'
18728 ;;
18729 *)
18730 ;;
18731 esac
18732 ;;
18733 psos*)
18734 ;;
18735 solaris*)
18736 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018737 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018738 # Sun C++ 4.2, 5.x and Centerline C++
18739 lt_prog_compiler_pic_CXX='-KPIC'
18740 lt_prog_compiler_static_CXX='-Bstatic'
18741 lt_prog_compiler_wl_CXX='-Qoption ld '
18742 ;;
18743 gcx*)
18744 # Green Hills C++ Compiler
18745 lt_prog_compiler_pic_CXX='-PIC'
18746 ;;
18747 *)
18748 ;;
18749 esac
18750 ;;
18751 sunos4*)
18752 case $cc_basename in
18753 CC*)
18754 # Sun C++ 4.x
18755 lt_prog_compiler_pic_CXX='-pic'
18756 lt_prog_compiler_static_CXX='-Bstatic'
18757 ;;
18758 lcc*)
18759 # Lucid
18760 lt_prog_compiler_pic_CXX='-pic'
18761 ;;
18762 *)
18763 ;;
18764 esac
18765 ;;
18766 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18767 case $cc_basename in
18768 CC*)
18769 lt_prog_compiler_wl_CXX='-Wl,'
18770 lt_prog_compiler_pic_CXX='-KPIC'
18771 lt_prog_compiler_static_CXX='-Bstatic'
18772 ;;
18773 esac
18774 ;;
18775 tandem*)
18776 case $cc_basename in
18777 NCC*)
18778 # NonStop-UX NCC 3.20
18779 lt_prog_compiler_pic_CXX='-KPIC'
18780 ;;
18781 *)
18782 ;;
18783 esac
18784 ;;
18785 vxworks*)
18786 ;;
18787 *)
18788 lt_prog_compiler_can_build_shared_CXX=no
18789 ;;
18790 esac
18791 fi
18792
18793case $host_os in
18794 # For platforms which do not support PIC, -DPIC is meaningless:
18795 *djgpp*)
18796 lt_prog_compiler_pic_CXX=
18797 ;;
18798 *)
18799 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18800 ;;
18801esac
cristy73bd4a52010-10-05 11:24:23 +000018802
cristyda16f162011-02-19 23:52:17 +000018803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18804$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18805if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18806 $as_echo_n "(cached) " >&6
18807else
18808 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18809fi
18810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18811$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18812lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018813
18814#
18815# Check to make sure the PIC flag actually works.
18816#
18817if test -n "$lt_prog_compiler_pic_CXX"; then
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18819$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018820if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018821 $as_echo_n "(cached) " >&6
18822else
18823 lt_cv_prog_compiler_pic_works_CXX=no
18824 ac_outfile=conftest.$ac_objext
18825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18826 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18827 # Insert the option either (1) after the last *FLAGS variable, or
18828 # (2) before a word containing "conftest.", or (3) at the end.
18829 # Note that $ac_compile itself does not contain backslashes and begins
18830 # with a dollar sign (not a hyphen), so the echo should work correctly.
18831 # The option is referenced via a variable to avoid confusing sed.
18832 lt_compile=`echo "$ac_compile" | $SED \
18833 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18834 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18835 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018836 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018837 (eval "$lt_compile" 2>conftest.err)
18838 ac_status=$?
18839 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018841 if (exit $ac_status) && test -s "$ac_outfile"; then
18842 # The compiler can only warn and ignore the option if not recognized
18843 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018844 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018845 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18846 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18847 lt_cv_prog_compiler_pic_works_CXX=yes
18848 fi
18849 fi
18850 $RM conftest*
18851
18852fi
18853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18854$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18855
18856if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18857 case $lt_prog_compiler_pic_CXX in
18858 "" | " "*) ;;
18859 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18860 esac
18861else
18862 lt_prog_compiler_pic_CXX=
18863 lt_prog_compiler_can_build_shared_CXX=no
18864fi
18865
18866fi
18867
18868
18869
cristyda16f162011-02-19 23:52:17 +000018870
18871
cristy73bd4a52010-10-05 11:24:23 +000018872#
18873# Check to make sure the static flag actually works.
18874#
18875wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18877$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018878if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018879 $as_echo_n "(cached) " >&6
18880else
18881 lt_cv_prog_compiler_static_works_CXX=no
18882 save_LDFLAGS="$LDFLAGS"
18883 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18884 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18885 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18886 # The linker can only warn and ignore the option if not recognized
18887 # So say no if there are warnings
18888 if test -s conftest.err; then
18889 # Append any errors to the config.log.
18890 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018891 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018892 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18893 if diff conftest.exp conftest.er2 >/dev/null; then
18894 lt_cv_prog_compiler_static_works_CXX=yes
18895 fi
18896 else
18897 lt_cv_prog_compiler_static_works_CXX=yes
18898 fi
18899 fi
18900 $RM -r conftest*
18901 LDFLAGS="$save_LDFLAGS"
18902
18903fi
18904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18905$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18906
18907if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18908 :
18909else
18910 lt_prog_compiler_static_CXX=
18911fi
18912
18913
18914
18915
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18917$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018918if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018919 $as_echo_n "(cached) " >&6
18920else
18921 lt_cv_prog_compiler_c_o_CXX=no
18922 $RM -r conftest 2>/dev/null
18923 mkdir conftest
18924 cd conftest
18925 mkdir out
18926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18927
18928 lt_compiler_flag="-o out/conftest2.$ac_objext"
18929 # Insert the option either (1) after the last *FLAGS variable, or
18930 # (2) before a word containing "conftest.", or (3) at the end.
18931 # Note that $ac_compile itself does not contain backslashes and begins
18932 # with a dollar sign (not a hyphen), so the echo should work correctly.
18933 lt_compile=`echo "$ac_compile" | $SED \
18934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18936 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018937 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018938 (eval "$lt_compile" 2>out/conftest.err)
18939 ac_status=$?
18940 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018942 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18943 then
18944 # The compiler can only warn and ignore the option if not recognized
18945 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018946 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018947 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18948 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18949 lt_cv_prog_compiler_c_o_CXX=yes
18950 fi
18951 fi
18952 chmod u+w . 2>&5
18953 $RM conftest*
18954 # SGI C++ compiler will create directory out/ii_files/ for
18955 # template instantiation
18956 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18957 $RM out/* && rmdir out
18958 cd ..
18959 $RM -r conftest
18960 $RM conftest*
18961
18962fi
18963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18964$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18965
18966
18967
18968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18969$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018970if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018971 $as_echo_n "(cached) " >&6
18972else
18973 lt_cv_prog_compiler_c_o_CXX=no
18974 $RM -r conftest 2>/dev/null
18975 mkdir conftest
18976 cd conftest
18977 mkdir out
18978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18979
18980 lt_compiler_flag="-o out/conftest2.$ac_objext"
18981 # Insert the option either (1) after the last *FLAGS variable, or
18982 # (2) before a word containing "conftest.", or (3) at the end.
18983 # Note that $ac_compile itself does not contain backslashes and begins
18984 # with a dollar sign (not a hyphen), so the echo should work correctly.
18985 lt_compile=`echo "$ac_compile" | $SED \
18986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18988 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018989 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018990 (eval "$lt_compile" 2>out/conftest.err)
18991 ac_status=$?
18992 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018994 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18995 then
18996 # The compiler can only warn and ignore the option if not recognized
18997 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018998 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018999 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19000 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19001 lt_cv_prog_compiler_c_o_CXX=yes
19002 fi
19003 fi
19004 chmod u+w . 2>&5
19005 $RM conftest*
19006 # SGI C++ compiler will create directory out/ii_files/ for
19007 # template instantiation
19008 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19009 $RM out/* && rmdir out
19010 cd ..
19011 $RM -r conftest
19012 $RM conftest*
19013
19014fi
19015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19016$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19017
19018
19019
19020
19021hard_links="nottested"
19022if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19023 # do not overwrite the value of need_locks provided by the user
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19025$as_echo_n "checking if we can lock with hard links... " >&6; }
19026 hard_links=yes
19027 $RM conftest*
19028 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19029 touch conftest.a
19030 ln conftest.a conftest.b 2>&5 || hard_links=no
19031 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19033$as_echo "$hard_links" >&6; }
19034 if test "$hard_links" = no; then
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19036$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19037 need_locks=warn
19038 fi
19039else
19040 need_locks=no
19041fi
19042
19043
19044
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19046$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19047
19048 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019049 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019050 case $host_os in
19051 aix[4-9]*)
19052 # If we're using GNU nm, then we don't want the "-C" option.
19053 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019054 # Also, AIX nm treats weak defined symbols like other global defined
19055 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019056 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019057 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 +000019058 else
19059 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'
19060 fi
19061 ;;
19062 pw32*)
19063 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019064 ;;
cristy73bd4a52010-10-05 11:24:23 +000019065 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019066 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019067 cl*)
19068 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19069 ;;
cristyda16f162011-02-19 23:52:17 +000019070 *)
19071 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'
19072 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19073 ;;
19074 esac
19075 ;;
cristy73bd4a52010-10-05 11:24:23 +000019076 *)
19077 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019078 ;;
cristy73bd4a52010-10-05 11:24:23 +000019079 esac
cristy73bd4a52010-10-05 11:24:23 +000019080
19081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19082$as_echo "$ld_shlibs_CXX" >&6; }
19083test "$ld_shlibs_CXX" = no && can_build_shared=no
19084
19085with_gnu_ld_CXX=$with_gnu_ld
19086
19087
19088
19089
19090
19091
19092#
19093# Do we need to explicitly link libc?
19094#
19095case "x$archive_cmds_need_lc_CXX" in
19096x|xyes)
19097 # Assume -lc should be added
19098 archive_cmds_need_lc_CXX=yes
19099
19100 if test "$enable_shared" = yes && test "$GCC" = yes; then
19101 case $archive_cmds_CXX in
19102 *'~'*)
19103 # FIXME: we may have to deal with multi-command sequences.
19104 ;;
19105 '$CC '*)
19106 # Test whether the compiler implicitly links with -lc since on some
19107 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19108 # to ld, don't add -lc before -lgcc.
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19110$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019111if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019112 $as_echo_n "(cached) " >&6
19113else
19114 $RM conftest*
19115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019116
cristy0c60a692010-11-04 01:09:47 +000019117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019118 (eval $ac_compile) 2>&5
19119 ac_status=$?
19120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19121 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019122 soname=conftest
19123 lib=conftest
19124 libobjs=conftest.$ac_objext
19125 deplibs=
19126 wl=$lt_prog_compiler_wl_CXX
19127 pic_flag=$lt_prog_compiler_pic_CXX
19128 compiler_flags=-v
19129 linker_flags=-v
19130 verstring=
19131 output_objdir=.
19132 libname=conftest
19133 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19134 allow_undefined_flag_CXX=
19135 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 +000019136 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19137 ac_status=$?
19138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19139 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019140 then
19141 lt_cv_archive_cmds_need_lc_CXX=no
19142 else
19143 lt_cv_archive_cmds_need_lc_CXX=yes
19144 fi
19145 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19146 else
19147 cat conftest.err 1>&5
19148 fi
19149 $RM conftest*
19150
19151fi
19152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19153$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19154 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019155 ;;
19156 esac
19157 fi
19158 ;;
19159esac
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
cristy73bd4a52010-10-05 11:24:23 +000019222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19223$as_echo_n "checking dynamic linker characteristics... " >&6; }
19224
19225library_names_spec=
19226libname_spec='lib$name'
19227soname_spec=
19228shrext_cmds=".so"
19229postinstall_cmds=
19230postuninstall_cmds=
19231finish_cmds=
19232finish_eval=
19233shlibpath_var=
19234shlibpath_overrides_runpath=unknown
19235version_type=none
19236dynamic_linker="$host_os ld.so"
19237sys_lib_dlsearch_path_spec="/lib /usr/lib"
19238need_lib_prefix=unknown
19239hardcode_into_libs=no
19240
19241# when you set need_version to no, make sure it does not cause -set_version
19242# flags to be left without arguments
19243need_version=unknown
19244
19245case $host_os in
19246aix3*)
cristy99bd5232011-12-07 14:38:20 +000019247 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019248 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19249 shlibpath_var=LIBPATH
19250
19251 # AIX 3 has no versioning support, so we append a major version to the name.
19252 soname_spec='${libname}${release}${shared_ext}$major'
19253 ;;
19254
19255aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019256 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019257 need_lib_prefix=no
19258 need_version=no
19259 hardcode_into_libs=yes
19260 if test "$host_cpu" = ia64; then
19261 # AIX 5 supports IA64
19262 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19263 shlibpath_var=LD_LIBRARY_PATH
19264 else
19265 # With GCC up to 2.95.x, collect2 would create an import file
19266 # for dependence libraries. The import file would start with
19267 # the line `#! .'. This would cause the generated library to
19268 # depend on `.', always an invalid library. This was fixed in
19269 # development snapshots of GCC prior to 3.0.
19270 case $host_os in
19271 aix4 | aix4.[01] | aix4.[01].*)
19272 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19273 echo ' yes '
19274 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19275 :
19276 else
19277 can_build_shared=no
19278 fi
19279 ;;
19280 esac
19281 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19282 # soname into executable. Probably we can add versioning support to
19283 # collect2, so additional links can be useful in future.
19284 if test "$aix_use_runtimelinking" = yes; then
19285 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19286 # instead of lib<name>.a to let people know that these are not
19287 # typical AIX shared libraries.
19288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19289 else
19290 # We preserve .a as extension for shared libraries through AIX4.2
19291 # and later when we are not doing run time linking.
19292 library_names_spec='${libname}${release}.a $libname.a'
19293 soname_spec='${libname}${release}${shared_ext}$major'
19294 fi
19295 shlibpath_var=LIBPATH
19296 fi
19297 ;;
19298
19299amigaos*)
19300 case $host_cpu in
19301 powerpc)
19302 # Since July 2007 AmigaOS4 officially supports .so libraries.
19303 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19305 ;;
19306 m68k)
19307 library_names_spec='$libname.ixlibrary $libname.a'
19308 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019309 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 +000019310 ;;
19311 esac
19312 ;;
19313
19314beos*)
19315 library_names_spec='${libname}${shared_ext}'
19316 dynamic_linker="$host_os ld.so"
19317 shlibpath_var=LIBRARY_PATH
19318 ;;
19319
19320bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019321 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019322 need_version=no
19323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19324 soname_spec='${libname}${release}${shared_ext}$major'
19325 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19326 shlibpath_var=LD_LIBRARY_PATH
19327 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19328 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19329 # the default ld.so.conf also contains /usr/contrib/lib and
19330 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19331 # libtool to hard-code these into programs
19332 ;;
19333
19334cygwin* | mingw* | pw32* | cegcc*)
19335 version_type=windows
19336 shrext_cmds=".dll"
19337 need_version=no
19338 need_lib_prefix=no
19339
cristyda16f162011-02-19 23:52:17 +000019340 case $GCC,$cc_basename in
19341 yes,*)
19342 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019343 library_names_spec='$libname.dll.a'
19344 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19345 postinstall_cmds='base_file=`basename \${file}`~
19346 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19347 dldir=$destdir/`dirname \$dlpath`~
19348 test -d \$dldir || mkdir -p \$dldir~
19349 $install_prog $dir/$dlname \$dldir/$dlname~
19350 chmod a+x \$dldir/$dlname~
19351 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19352 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19353 fi'
19354 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19355 dlpath=$dir/\$dldll~
19356 $RM \$dlpath'
19357 shlibpath_overrides_runpath=yes
19358
19359 case $host_os in
19360 cygwin*)
19361 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19362 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019363
cristy73bd4a52010-10-05 11:24:23 +000019364 ;;
19365 mingw* | cegcc*)
19366 # MinGW DLLs use traditional 'lib' prefix
19367 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019368 ;;
19369 pw32*)
19370 # pw32 DLLs use 'pw' prefix rather than 'lib'
19371 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19372 ;;
19373 esac
cristyda16f162011-02-19 23:52:17 +000019374 dynamic_linker='Win32 ld.exe'
19375 ;;
19376
19377 *,cl*)
19378 # Native MSVC
19379 libname_spec='$name'
19380 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19381 library_names_spec='${libname}.dll.lib'
19382
19383 case $build_os in
19384 mingw*)
19385 sys_lib_search_path_spec=
19386 lt_save_ifs=$IFS
19387 IFS=';'
19388 for lt_path in $LIB
19389 do
19390 IFS=$lt_save_ifs
19391 # Let DOS variable expansion print the short 8.3 style file name.
19392 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19393 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19394 done
19395 IFS=$lt_save_ifs
19396 # Convert to MSYS style.
19397 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19398 ;;
19399 cygwin*)
19400 # Convert to unix form, then to dos form, then back to unix form
19401 # but this time dos style (no spaces!) so that the unix form looks
19402 # like /cygdrive/c/PROGRA~1:/cygdr...
19403 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19404 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19405 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19406 ;;
19407 *)
19408 sys_lib_search_path_spec="$LIB"
19409 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19410 # It is most probably a Windows format PATH.
19411 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19412 else
19413 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19414 fi
19415 # FIXME: find the short name or the path components, as spaces are
19416 # common. (e.g. "Program Files" -> "PROGRA~1")
19417 ;;
19418 esac
19419
19420 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19421 postinstall_cmds='base_file=`basename \${file}`~
19422 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19423 dldir=$destdir/`dirname \$dlpath`~
19424 test -d \$dldir || mkdir -p \$dldir~
19425 $install_prog $dir/$dlname \$dldir/$dlname'
19426 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19427 dlpath=$dir/\$dldll~
19428 $RM \$dlpath'
19429 shlibpath_overrides_runpath=yes
19430 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019431 ;;
19432
19433 *)
cristyda16f162011-02-19 23:52:17 +000019434 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019435 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019436 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019437 ;;
19438 esac
cristy73bd4a52010-10-05 11:24:23 +000019439 # FIXME: first we should search . and the directory the executable is in
19440 shlibpath_var=PATH
19441 ;;
19442
19443darwin* | rhapsody*)
19444 dynamic_linker="$host_os dyld"
19445 version_type=darwin
19446 need_lib_prefix=no
19447 need_version=no
19448 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19449 soname_spec='${libname}${release}${major}$shared_ext'
19450 shlibpath_overrides_runpath=yes
19451 shlibpath_var=DYLD_LIBRARY_PATH
19452 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19453
19454 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19455 ;;
19456
19457dgux*)
cristy99bd5232011-12-07 14:38:20 +000019458 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019459 need_lib_prefix=no
19460 need_version=no
19461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19462 soname_spec='${libname}${release}${shared_ext}$major'
19463 shlibpath_var=LD_LIBRARY_PATH
19464 ;;
19465
cristy73bd4a52010-10-05 11:24:23 +000019466freebsd* | dragonfly*)
19467 # DragonFly does not have aout. When/if they implement a new
19468 # versioning mechanism, adjust this.
19469 if test -x /usr/bin/objformat; then
19470 objformat=`/usr/bin/objformat`
19471 else
19472 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019473 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000019474 *) objformat=elf ;;
19475 esac
19476 fi
19477 version_type=freebsd-$objformat
19478 case $version_type in
19479 freebsd-elf*)
19480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19481 need_version=no
19482 need_lib_prefix=no
19483 ;;
19484 freebsd-*)
19485 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19486 need_version=yes
19487 ;;
19488 esac
19489 shlibpath_var=LD_LIBRARY_PATH
19490 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019491 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019492 shlibpath_overrides_runpath=yes
19493 ;;
19494 freebsd3.[01]* | freebsdelf3.[01]*)
19495 shlibpath_overrides_runpath=yes
19496 hardcode_into_libs=yes
19497 ;;
19498 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19499 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19500 shlibpath_overrides_runpath=no
19501 hardcode_into_libs=yes
19502 ;;
19503 *) # from 4.6 on, and DragonFly
19504 shlibpath_overrides_runpath=yes
19505 hardcode_into_libs=yes
19506 ;;
19507 esac
19508 ;;
19509
19510gnu*)
cristy99bd5232011-12-07 14:38:20 +000019511 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019512 need_lib_prefix=no
19513 need_version=no
19514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19515 soname_spec='${libname}${release}${shared_ext}$major'
19516 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000019517 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000019518 hardcode_into_libs=yes
19519 ;;
19520
cristy0c60a692010-11-04 01:09:47 +000019521haiku*)
cristy99bd5232011-12-07 14:38:20 +000019522 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000019523 need_lib_prefix=no
19524 need_version=no
19525 dynamic_linker="$host_os runtime_loader"
19526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19527 soname_spec='${libname}${release}${shared_ext}$major'
19528 shlibpath_var=LIBRARY_PATH
19529 shlibpath_overrides_runpath=yes
19530 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19531 hardcode_into_libs=yes
19532 ;;
19533
cristy73bd4a52010-10-05 11:24:23 +000019534hpux9* | hpux10* | hpux11*)
19535 # Give a soname corresponding to the major version so that dld.sl refuses to
19536 # link against other versions.
19537 version_type=sunos
19538 need_lib_prefix=no
19539 need_version=no
19540 case $host_cpu in
19541 ia64*)
19542 shrext_cmds='.so'
19543 hardcode_into_libs=yes
19544 dynamic_linker="$host_os dld.so"
19545 shlibpath_var=LD_LIBRARY_PATH
19546 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19548 soname_spec='${libname}${release}${shared_ext}$major'
19549 if test "X$HPUX_IA64_MODE" = X32; then
19550 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19551 else
19552 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19553 fi
19554 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19555 ;;
19556 hppa*64*)
19557 shrext_cmds='.sl'
19558 hardcode_into_libs=yes
19559 dynamic_linker="$host_os dld.sl"
19560 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19561 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19563 soname_spec='${libname}${release}${shared_ext}$major'
19564 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19565 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19566 ;;
19567 *)
19568 shrext_cmds='.sl'
19569 dynamic_linker="$host_os dld.sl"
19570 shlibpath_var=SHLIB_PATH
19571 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19573 soname_spec='${libname}${release}${shared_ext}$major'
19574 ;;
19575 esac
cristy0c60a692010-11-04 01:09:47 +000019576 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019577 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019578 # or fails outright, so override atomically:
19579 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019580 ;;
19581
19582interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000019583 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019584 need_lib_prefix=no
19585 need_version=no
19586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19587 soname_spec='${libname}${release}${shared_ext}$major'
19588 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19589 shlibpath_var=LD_LIBRARY_PATH
19590 shlibpath_overrides_runpath=no
19591 hardcode_into_libs=yes
19592 ;;
19593
19594irix5* | irix6* | nonstopux*)
19595 case $host_os in
19596 nonstopux*) version_type=nonstopux ;;
19597 *)
19598 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000019599 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019600 else
19601 version_type=irix
19602 fi ;;
19603 esac
19604 need_lib_prefix=no
19605 need_version=no
19606 soname_spec='${libname}${release}${shared_ext}$major'
19607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19608 case $host_os in
19609 irix5* | nonstopux*)
19610 libsuff= shlibsuff=
19611 ;;
19612 *)
19613 case $LD in # libtool.m4 will add one of these switches to LD
19614 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19615 libsuff= shlibsuff= libmagic=32-bit;;
19616 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19617 libsuff=32 shlibsuff=N32 libmagic=N32;;
19618 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19619 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19620 *) libsuff= shlibsuff= libmagic=never-match;;
19621 esac
19622 ;;
19623 esac
19624 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19625 shlibpath_overrides_runpath=no
19626 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19627 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19628 hardcode_into_libs=yes
19629 ;;
19630
19631# No shared lib support for Linux oldld, aout, or coff.
19632linux*oldld* | linux*aout* | linux*coff*)
19633 dynamic_linker=no
19634 ;;
19635
cristy99bd5232011-12-07 14:38:20 +000019636# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000019637linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000019638 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019639 need_lib_prefix=no
19640 need_version=no
19641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19642 soname_spec='${libname}${release}${shared_ext}$major'
19643 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19644 shlibpath_var=LD_LIBRARY_PATH
19645 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019646
cristy73bd4a52010-10-05 11:24:23 +000019647 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019648 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019649 $as_echo_n "(cached) " >&6
19650else
19651 lt_cv_shlibpath_overrides_runpath=no
19652 save_LDFLAGS=$LDFLAGS
19653 save_libdir=$libdir
19654 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19655 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019657/* end confdefs.h. */
19658
19659int
19660main ()
19661{
19662
19663 ;
19664 return 0;
19665}
19666_ACEOF
19667if ac_fn_cxx_try_link "$LINENO"; then :
19668 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019669 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019670fi
19671fi
19672rm -f core conftest.err conftest.$ac_objext \
19673 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019674 LDFLAGS=$save_LDFLAGS
19675 libdir=$save_libdir
19676
19677fi
19678
19679 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019680
19681 # This implies no fast_install, which is unacceptable.
19682 # Some rework will be needed to allow for fast_install
19683 # before this can be enabled.
19684 hardcode_into_libs=yes
19685
19686 # Add ABI-specific directories to the system library path.
19687 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19688
19689 # Append ld.so.conf contents to the search path
19690 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019691 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 +000019692 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019693
cristy73bd4a52010-10-05 11:24:23 +000019694 fi
19695
19696 # We used to test for /lib/ld.so.1 and disable shared libraries on
19697 # powerpc, because MkLinux only supported shared libraries with the
19698 # GNU dynamic linker. Since this was broken with cross compilers,
19699 # most powerpc-linux boxes support dynamic linking these days and
19700 # people can always --disable-shared, the test was removed, and we
19701 # assume the GNU/Linux dynamic linker is in use.
19702 dynamic_linker='GNU/Linux ld.so'
19703 ;;
19704
19705netbsd*)
19706 version_type=sunos
19707 need_lib_prefix=no
19708 need_version=no
19709 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19712 dynamic_linker='NetBSD (a.out) ld.so'
19713 else
19714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19715 soname_spec='${libname}${release}${shared_ext}$major'
19716 dynamic_linker='NetBSD ld.elf_so'
19717 fi
19718 shlibpath_var=LD_LIBRARY_PATH
19719 shlibpath_overrides_runpath=yes
19720 hardcode_into_libs=yes
19721 ;;
19722
19723newsos6)
cristy99bd5232011-12-07 14:38:20 +000019724 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19726 shlibpath_var=LD_LIBRARY_PATH
19727 shlibpath_overrides_runpath=yes
19728 ;;
19729
19730*nto* | *qnx*)
19731 version_type=qnx
19732 need_lib_prefix=no
19733 need_version=no
19734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19735 soname_spec='${libname}${release}${shared_ext}$major'
19736 shlibpath_var=LD_LIBRARY_PATH
19737 shlibpath_overrides_runpath=no
19738 hardcode_into_libs=yes
19739 dynamic_linker='ldqnx.so'
19740 ;;
19741
19742openbsd*)
19743 version_type=sunos
19744 sys_lib_dlsearch_path_spec="/usr/lib"
19745 need_lib_prefix=no
19746 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19747 case $host_os in
19748 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19749 *) need_version=no ;;
19750 esac
19751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19753 shlibpath_var=LD_LIBRARY_PATH
19754 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19755 case $host_os in
19756 openbsd2.[89] | openbsd2.[89].*)
19757 shlibpath_overrides_runpath=no
19758 ;;
19759 *)
19760 shlibpath_overrides_runpath=yes
19761 ;;
19762 esac
19763 else
19764 shlibpath_overrides_runpath=yes
19765 fi
19766 ;;
19767
19768os2*)
19769 libname_spec='$name'
19770 shrext_cmds=".dll"
19771 need_lib_prefix=no
19772 library_names_spec='$libname${shared_ext} $libname.a'
19773 dynamic_linker='OS/2 ld.exe'
19774 shlibpath_var=LIBPATH
19775 ;;
19776
19777osf3* | osf4* | osf5*)
19778 version_type=osf
19779 need_lib_prefix=no
19780 need_version=no
19781 soname_spec='${libname}${release}${shared_ext}$major'
19782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19783 shlibpath_var=LD_LIBRARY_PATH
19784 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19785 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19786 ;;
19787
19788rdos*)
19789 dynamic_linker=no
19790 ;;
19791
19792solaris*)
cristy99bd5232011-12-07 14:38:20 +000019793 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019794 need_lib_prefix=no
19795 need_version=no
19796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19797 soname_spec='${libname}${release}${shared_ext}$major'
19798 shlibpath_var=LD_LIBRARY_PATH
19799 shlibpath_overrides_runpath=yes
19800 hardcode_into_libs=yes
19801 # ldd complains unless libraries are executable
19802 postinstall_cmds='chmod +x $lib'
19803 ;;
19804
19805sunos4*)
19806 version_type=sunos
19807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19808 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19809 shlibpath_var=LD_LIBRARY_PATH
19810 shlibpath_overrides_runpath=yes
19811 if test "$with_gnu_ld" = yes; then
19812 need_lib_prefix=no
19813 fi
19814 need_version=yes
19815 ;;
19816
19817sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000019818 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19820 soname_spec='${libname}${release}${shared_ext}$major'
19821 shlibpath_var=LD_LIBRARY_PATH
19822 case $host_vendor in
19823 sni)
19824 shlibpath_overrides_runpath=no
19825 need_lib_prefix=no
19826 runpath_var=LD_RUN_PATH
19827 ;;
19828 siemens)
19829 need_lib_prefix=no
19830 ;;
19831 motorola)
19832 need_lib_prefix=no
19833 need_version=no
19834 shlibpath_overrides_runpath=no
19835 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19836 ;;
19837 esac
19838 ;;
19839
19840sysv4*MP*)
19841 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000019842 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019843 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19844 soname_spec='$libname${shared_ext}.$major'
19845 shlibpath_var=LD_LIBRARY_PATH
19846 fi
19847 ;;
19848
19849sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19850 version_type=freebsd-elf
19851 need_lib_prefix=no
19852 need_version=no
19853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19854 soname_spec='${libname}${release}${shared_ext}$major'
19855 shlibpath_var=LD_LIBRARY_PATH
19856 shlibpath_overrides_runpath=yes
19857 hardcode_into_libs=yes
19858 if test "$with_gnu_ld" = yes; then
19859 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19860 else
19861 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19862 case $host_os in
19863 sco3.2v5*)
19864 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19865 ;;
19866 esac
19867 fi
19868 sys_lib_dlsearch_path_spec='/usr/lib'
19869 ;;
19870
19871tpf*)
19872 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000019873 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019874 need_lib_prefix=no
19875 need_version=no
19876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19877 shlibpath_var=LD_LIBRARY_PATH
19878 shlibpath_overrides_runpath=no
19879 hardcode_into_libs=yes
19880 ;;
19881
19882uts4*)
cristy99bd5232011-12-07 14:38:20 +000019883 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19885 soname_spec='${libname}${release}${shared_ext}$major'
19886 shlibpath_var=LD_LIBRARY_PATH
19887 ;;
19888
19889*)
19890 dynamic_linker=no
19891 ;;
19892esac
19893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19894$as_echo "$dynamic_linker" >&6; }
19895test "$dynamic_linker" = no && can_build_shared=no
19896
19897variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19898if test "$GCC" = yes; then
19899 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19900fi
19901
19902if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19903 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19904fi
19905if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19906 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19907fi
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
cristy0c60a692010-11-04 01:09:47 +000019944
19945
cristy73bd4a52010-10-05 11:24:23 +000019946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19947$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19948hardcode_action_CXX=
19949if test -n "$hardcode_libdir_flag_spec_CXX" ||
19950 test -n "$runpath_var_CXX" ||
19951 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19952
19953 # We can hardcode non-existent directories.
19954 if test "$hardcode_direct_CXX" != no &&
19955 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19956 # have to relink, otherwise we might link with an installed library
19957 # when we should be linking with a yet-to-be-installed one
19958 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19959 test "$hardcode_minus_L_CXX" != no; then
19960 # Linking always hardcodes the temporary library directory.
19961 hardcode_action_CXX=relink
19962 else
19963 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19964 hardcode_action_CXX=immediate
19965 fi
19966else
19967 # We cannot hardcode anything, or else we can only hardcode existing
19968 # directories.
19969 hardcode_action_CXX=unsupported
19970fi
19971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19972$as_echo "$hardcode_action_CXX" >&6; }
19973
19974if test "$hardcode_action_CXX" = relink ||
19975 test "$inherit_rpath_CXX" = yes; then
19976 # Fast installation is not supported
19977 enable_fast_install=no
19978elif test "$shlibpath_overrides_runpath" = yes ||
19979 test "$enable_shared" = no; then
19980 # Fast installation is not necessary
19981 enable_fast_install=needless
19982fi
19983
19984
19985
19986
19987
19988
19989
19990 fi # test -n "$compiler"
19991
19992 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019993 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019994 LDCXX=$LD
19995 LD=$lt_save_LD
19996 GCC=$lt_save_GCC
19997 with_gnu_ld=$lt_save_with_gnu_ld
19998 lt_cv_path_LDCXX=$lt_cv_path_LD
19999 lt_cv_path_LD=$lt_save_path_LD
20000 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20001 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20002fi # test "$_lt_caught_CXX_error" != yes
20003
20004ac_ext=c
20005ac_cpp='$CPP $CPPFLAGS'
20006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20008ac_compiler_gnu=$ac_cv_c_compiler_gnu
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
cristy99bd5232011-12-07 14:38:20 +000020022
20023
cristy73bd4a52010-10-05 11:24:23 +000020024 ac_config_commands="$ac_config_commands libtool"
20025
20026
20027
20028
20029# Only expand once:
20030
20031
20032
cristy3ed852e2009-09-05 21:47:34 +000020033
20034
20035# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000020036
20037
20038
20039
20040
20041
20042
cristy73bd4a52010-10-05 11:24:23 +000020043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
20044$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020045if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020046 $as_echo_n "(cached) " >&6
20047else
20048
20049module=yes
20050eval libltdl_cv_shlibext=$shrext_cmds
cristy99bd5232011-12-07 14:38:20 +000020051module=no
20052eval libltdl_cv_shrext=$shrext_cmds
cristy73bd4a52010-10-05 11:24:23 +000020053
20054fi
20055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20056$as_echo "$libltdl_cv_shlibext" >&6; }
20057if test -n "$libltdl_cv_shlibext"; then
20058
20059cat >>confdefs.h <<_ACEOF
20060#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20061_ACEOF
20062
20063fi
cristy99bd5232011-12-07 14:38:20 +000020064if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20065
20066cat >>confdefs.h <<_ACEOF
20067#define LT_SHARED_EXT "$libltdl_cv_shrext"
20068_ACEOF
20069
20070fi
cristy73bd4a52010-10-05 11:24:23 +000020071
20072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20073$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020074if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020075 $as_echo_n "(cached) " >&6
20076else
20077 lt_cv_module_path_var="$shlibpath_var"
20078fi
20079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20080$as_echo "$lt_cv_module_path_var" >&6; }
20081if test -n "$lt_cv_module_path_var"; then
20082
20083cat >>confdefs.h <<_ACEOF
20084#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20085_ACEOF
20086
20087fi
20088
20089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20090$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020091if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020092 $as_echo_n "(cached) " >&6
20093else
20094 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20095fi
20096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20097$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20098if test -n "$lt_cv_sys_dlsearch_path"; then
20099 sys_dlsearch_path=
20100 for dir in $lt_cv_sys_dlsearch_path; do
20101 if test -z "$sys_dlsearch_path"; then
20102 sys_dlsearch_path="$dir"
20103 else
20104 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20105 fi
20106 done
20107
20108cat >>confdefs.h <<_ACEOF
20109#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20110_ACEOF
20111
20112fi
20113
20114
20115LT_DLLOADERS=
20116
20117
20118ac_ext=c
20119ac_cpp='$CPP $CPPFLAGS'
20120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20122ac_compiler_gnu=$ac_cv_c_compiler_gnu
20123
20124
20125LIBADD_DLOPEN=
20126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20127$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020128if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020129 $as_echo_n "(cached) " >&6
20130else
20131 ac_func_search_save_LIBS=$LIBS
20132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20133/* end confdefs.h. */
20134
20135/* Override any GCC internal prototype to avoid an error.
20136 Use char because int might match the return type of a GCC
20137 builtin and then its argument prototype would still apply. */
20138#ifdef __cplusplus
20139extern "C"
20140#endif
20141char dlopen ();
20142int
20143main ()
20144{
20145return dlopen ();
20146 ;
20147 return 0;
20148}
20149_ACEOF
20150for ac_lib in '' dl; do
20151 if test -z "$ac_lib"; then
20152 ac_res="none required"
20153 else
20154 ac_res=-l$ac_lib
20155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20156 fi
20157 if ac_fn_c_try_link "$LINENO"; then :
20158 ac_cv_search_dlopen=$ac_res
20159fi
20160rm -f core conftest.err conftest.$ac_objext \
20161 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020162 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020163 break
20164fi
20165done
cristyda16f162011-02-19 23:52:17 +000020166if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020167
20168else
20169 ac_cv_search_dlopen=no
20170fi
20171rm conftest.$ac_ext
20172LIBS=$ac_func_search_save_LIBS
20173fi
20174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20175$as_echo "$ac_cv_search_dlopen" >&6; }
20176ac_res=$ac_cv_search_dlopen
20177if test "$ac_res" != no; then :
20178 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20179
20180$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20181
20182 if test "$ac_cv_search_dlopen" != "none required" ; then
20183 LIBADD_DLOPEN="-ldl"
20184 fi
20185 libltdl_cv_lib_dl_dlopen="yes"
20186 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20187else
20188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20189/* end confdefs.h. */
20190#if HAVE_DLFCN_H
20191# include <dlfcn.h>
20192#endif
20193
20194int
20195main ()
20196{
20197dlopen(0, 0);
20198 ;
20199 return 0;
20200}
20201_ACEOF
20202if ac_fn_c_try_link "$LINENO"; then :
20203
20204$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20205
20206 libltdl_cv_func_dlopen="yes"
20207 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20208else
20209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20210$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020211if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020212 $as_echo_n "(cached) " >&6
20213else
20214 ac_check_lib_save_LIBS=$LIBS
20215LIBS="-lsvld $LIBS"
20216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20217/* end confdefs.h. */
20218
20219/* Override any GCC internal prototype to avoid an error.
20220 Use char because int might match the return type of a GCC
20221 builtin and then its argument prototype would still apply. */
20222#ifdef __cplusplus
20223extern "C"
20224#endif
20225char dlopen ();
20226int
20227main ()
20228{
20229return dlopen ();
20230 ;
20231 return 0;
20232}
20233_ACEOF
20234if ac_fn_c_try_link "$LINENO"; then :
20235 ac_cv_lib_svld_dlopen=yes
20236else
20237 ac_cv_lib_svld_dlopen=no
20238fi
20239rm -f core conftest.err conftest.$ac_objext \
20240 conftest$ac_exeext conftest.$ac_ext
20241LIBS=$ac_check_lib_save_LIBS
20242fi
20243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20244$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020245if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020246
20247$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20248
20249 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20250 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20251fi
20252
20253fi
20254rm -f core conftest.err conftest.$ac_objext \
20255 conftest$ac_exeext conftest.$ac_ext
20256fi
20257
20258if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20259then
20260 lt_save_LIBS="$LIBS"
20261 LIBS="$LIBS $LIBADD_DLOPEN"
20262 for ac_func in dlerror
20263do :
20264 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020265if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020266 cat >>confdefs.h <<_ACEOF
20267#define HAVE_DLERROR 1
20268_ACEOF
20269
20270fi
20271done
20272
20273 LIBS="$lt_save_LIBS"
20274fi
20275
20276
20277LIBADD_SHL_LOAD=
20278ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020279if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020280
20281$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20282
20283 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20284else
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20286$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020287if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020288 $as_echo_n "(cached) " >&6
20289else
20290 ac_check_lib_save_LIBS=$LIBS
20291LIBS="-ldld $LIBS"
20292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20293/* end confdefs.h. */
20294
20295/* Override any GCC internal prototype to avoid an error.
20296 Use char because int might match the return type of a GCC
20297 builtin and then its argument prototype would still apply. */
20298#ifdef __cplusplus
20299extern "C"
20300#endif
20301char shl_load ();
20302int
20303main ()
20304{
20305return shl_load ();
20306 ;
20307 return 0;
20308}
20309_ACEOF
20310if ac_fn_c_try_link "$LINENO"; then :
20311 ac_cv_lib_dld_shl_load=yes
20312else
20313 ac_cv_lib_dld_shl_load=no
20314fi
20315rm -f core conftest.err conftest.$ac_objext \
20316 conftest$ac_exeext conftest.$ac_ext
20317LIBS=$ac_check_lib_save_LIBS
20318fi
20319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20320$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020321if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020322
20323$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20324
20325 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20326 LIBADD_SHL_LOAD="-ldld"
20327fi
20328
20329fi
20330
20331
20332
20333case $host_os in
20334darwin[1567].*)
20335# We only want this for pre-Mac OS X 10.4.
20336 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020337if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020338
20339$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20340
20341 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20342fi
20343
20344 ;;
20345beos*)
20346 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20347 ;;
20348cygwin* | mingw* | os2* | pw32*)
20349 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20350"
cristyda16f162011-02-19 23:52:17 +000020351if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020352 ac_have_decl=1
20353else
20354 ac_have_decl=0
20355fi
20356
20357cat >>confdefs.h <<_ACEOF
20358#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20359_ACEOF
20360
20361 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20362 ;;
20363esac
20364
20365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20366$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020367if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020368 $as_echo_n "(cached) " >&6
20369else
20370 ac_check_lib_save_LIBS=$LIBS
20371LIBS="-ldld $LIBS"
20372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20373/* end confdefs.h. */
20374
20375/* Override any GCC internal prototype to avoid an error.
20376 Use char because int might match the return type of a GCC
20377 builtin and then its argument prototype would still apply. */
20378#ifdef __cplusplus
20379extern "C"
20380#endif
20381char dld_link ();
20382int
20383main ()
20384{
20385return dld_link ();
20386 ;
20387 return 0;
20388}
20389_ACEOF
20390if ac_fn_c_try_link "$LINENO"; then :
20391 ac_cv_lib_dld_dld_link=yes
20392else
20393 ac_cv_lib_dld_dld_link=no
20394fi
20395rm -f core conftest.err conftest.$ac_objext \
20396 conftest$ac_exeext conftest.$ac_ext
20397LIBS=$ac_check_lib_save_LIBS
20398fi
20399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20400$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020401if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020402
20403$as_echo "#define HAVE_DLD 1" >>confdefs.h
20404
20405 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20406fi
20407
20408
20409
20410
20411LT_DLPREOPEN=
20412if test -n "$LT_DLLOADERS"
20413then
20414 for lt_loader in $LT_DLLOADERS; do
20415 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20416 done
20417
20418$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20419
20420fi
20421
20422
20423LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20424
20425
20426ac_ext=c
20427ac_cpp='$CPP $CPPFLAGS'
20428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20430ac_compiler_gnu=$ac_cv_c_compiler_gnu
20431
20432
20433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20434$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020435if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020436 $as_echo_n "(cached) " >&6
20437else
20438 lt_cv_sys_symbol_underscore=no
20439 cat > conftest.$ac_ext <<_LT_EOF
20440void nm_test_func(){}
20441int main(){nm_test_func;return 0;}
20442_LT_EOF
20443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20444 (eval $ac_compile) 2>&5
20445 ac_status=$?
20446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20447 test $ac_status = 0; }; then
20448 # Now try to grab the symbols.
20449 ac_nlist=conftest.nm
20450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20451 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20452 ac_status=$?
20453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20454 test $ac_status = 0; } && test -s "$ac_nlist"; then
20455 # See whether the symbols have a leading underscore.
20456 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20457 lt_cv_sys_symbol_underscore=yes
20458 else
20459 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20460 :
20461 else
20462 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20463 fi
20464 fi
20465 else
20466 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20467 fi
20468 else
20469 echo "configure: failed program was:" >&5
20470 cat conftest.c >&5
20471 fi
20472 rm -rf conftest*
20473
20474fi
20475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20476$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20477 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20478
20479
20480if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20481 if test x"$libltdl_cv_func_dlopen" = xyes ||
20482 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20484$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020485if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020486 $as_echo_n "(cached) " >&6
20487else
20488 libltdl_cv_need_uscore=unknown
20489 save_LIBS="$LIBS"
20490 LIBS="$LIBS $LIBADD_DLOPEN"
20491 if test "$cross_compiling" = yes; then :
20492 libltdl_cv_need_uscore=cross
20493else
20494 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20495 lt_status=$lt_dlunknown
20496 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020497#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020498#include "confdefs.h"
20499
20500#if HAVE_DLFCN_H
20501#include <dlfcn.h>
20502#endif
20503
20504#include <stdio.h>
20505
20506#ifdef RTLD_GLOBAL
20507# define LT_DLGLOBAL RTLD_GLOBAL
20508#else
20509# ifdef DL_GLOBAL
20510# define LT_DLGLOBAL DL_GLOBAL
20511# else
20512# define LT_DLGLOBAL 0
20513# endif
20514#endif
20515
20516/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20517 find out it does not work in some platform. */
20518#ifndef LT_DLLAZY_OR_NOW
20519# ifdef RTLD_LAZY
20520# define LT_DLLAZY_OR_NOW RTLD_LAZY
20521# else
20522# ifdef DL_LAZY
20523# define LT_DLLAZY_OR_NOW DL_LAZY
20524# else
20525# ifdef RTLD_NOW
20526# define LT_DLLAZY_OR_NOW RTLD_NOW
20527# else
20528# ifdef DL_NOW
20529# define LT_DLLAZY_OR_NOW DL_NOW
20530# else
20531# define LT_DLLAZY_OR_NOW 0
20532# endif
20533# endif
20534# endif
20535# endif
20536#endif
20537
cristy0c60a692010-11-04 01:09:47 +000020538/* When -fvisbility=hidden is used, assume the code has been annotated
20539 correspondingly for the symbols needed. */
20540#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020541int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020542#endif
20543
cristyda16f162011-02-19 23:52:17 +000020544int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020545int main ()
20546{
20547 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20548 int status = $lt_dlunknown;
20549
20550 if (self)
20551 {
20552 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020553 else
20554 {
20555 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20556 else puts (dlerror ());
20557 }
cristy73bd4a52010-10-05 11:24:23 +000020558 /* dlclose (self); */
20559 }
20560 else
20561 puts (dlerror ());
20562
20563 return status;
20564}
20565_LT_EOF
20566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20567 (eval $ac_link) 2>&5
20568 ac_status=$?
20569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20570 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20571 (./conftest; exit; ) >&5 2>/dev/null
20572 lt_status=$?
20573 case x$lt_status in
20574 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20575 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20576 x$lt_dlunknown|x*) ;;
20577 esac
20578 else :
20579 # compilation failed
20580
20581 fi
20582fi
20583rm -fr conftest*
20584
20585 LIBS="$save_LIBS"
20586
20587fi
20588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20589$as_echo "$libltdl_cv_need_uscore" >&6; }
20590 fi
20591fi
20592
20593if test x"$libltdl_cv_need_uscore" = xyes; then
20594
20595$as_echo "#define NEED_USCORE 1" >>confdefs.h
20596
20597fi
20598
20599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20600$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020601if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020602 $as_echo_n "(cached) " >&6
20603else
20604 # PORTME does your system automatically load deplibs for dlopen?
20605 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20606 # For now, we just catch OSes we know something about -- in the
20607 # future, we'll try test this programmatically.
20608 lt_cv_sys_dlopen_deplibs=unknown
20609 case $host_os in
20610 aix3*|aix4.1.*|aix4.2.*)
20611 # Unknown whether this is true for these versions of AIX, but
20612 # we want this `case' here to explicitly catch those versions.
20613 lt_cv_sys_dlopen_deplibs=unknown
20614 ;;
20615 aix[4-9]*)
20616 lt_cv_sys_dlopen_deplibs=yes
20617 ;;
20618 amigaos*)
20619 case $host_cpu in
20620 powerpc)
20621 lt_cv_sys_dlopen_deplibs=no
20622 ;;
20623 esac
20624 ;;
20625 darwin*)
20626 # Assuming the user has installed a libdl from somewhere, this is true
20627 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20628 lt_cv_sys_dlopen_deplibs=yes
20629 ;;
20630 freebsd* | dragonfly*)
20631 lt_cv_sys_dlopen_deplibs=yes
20632 ;;
cristy0c60a692010-11-04 01:09:47 +000020633 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020634 # GNU and its variants, using gnu ld.so (Glibc)
20635 lt_cv_sys_dlopen_deplibs=yes
20636 ;;
20637 hpux10*|hpux11*)
20638 lt_cv_sys_dlopen_deplibs=yes
20639 ;;
20640 interix*)
20641 lt_cv_sys_dlopen_deplibs=yes
20642 ;;
20643 irix[12345]*|irix6.[01]*)
20644 # Catch all versions of IRIX before 6.2, and indicate that we don't
20645 # know how it worked for any of those versions.
20646 lt_cv_sys_dlopen_deplibs=unknown
20647 ;;
20648 irix*)
20649 # The case above catches anything before 6.2, and it's known that
20650 # at 6.2 and later dlopen does load deplibs.
20651 lt_cv_sys_dlopen_deplibs=yes
20652 ;;
20653 netbsd*)
20654 lt_cv_sys_dlopen_deplibs=yes
20655 ;;
20656 openbsd*)
20657 lt_cv_sys_dlopen_deplibs=yes
20658 ;;
20659 osf[1234]*)
20660 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20661 # it did *not* use an RPATH in a shared library to find objects the
20662 # library depends on, so we explicitly say `no'.
20663 lt_cv_sys_dlopen_deplibs=no
20664 ;;
20665 osf5.0|osf5.0a|osf5.1)
20666 # dlopen *does* load deplibs and with the right loader patch applied
20667 # it even uses RPATH in a shared library to search for shared objects
20668 # that the library depends on, but there's no easy way to know if that
20669 # patch is installed. Since this is the case, all we can really
20670 # say is unknown -- it depends on the patch being installed. If
20671 # it is, this changes to `yes'. Without it, it would be `no'.
20672 lt_cv_sys_dlopen_deplibs=unknown
20673 ;;
20674 osf*)
20675 # the two cases above should catch all versions of osf <= 5.1. Read
20676 # the comments above for what we know about them.
20677 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20678 # is used to find them so we can finally say `yes'.
20679 lt_cv_sys_dlopen_deplibs=yes
20680 ;;
20681 qnx*)
20682 lt_cv_sys_dlopen_deplibs=yes
20683 ;;
20684 solaris*)
20685 lt_cv_sys_dlopen_deplibs=yes
20686 ;;
20687 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20688 libltdl_cv_sys_dlopen_deplibs=yes
20689 ;;
20690 esac
20691
20692fi
20693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20694$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20695if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20696
20697$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20698
20699fi
20700
20701:
20702
20703for ac_header in argz.h
20704do :
20705 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20706"
cristyda16f162011-02-19 23:52:17 +000020707if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020708 cat >>confdefs.h <<_ACEOF
20709#define HAVE_ARGZ_H 1
20710_ACEOF
20711
20712fi
20713
20714done
20715
20716
20717ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20718# include <argz.h>
20719#endif
20720"
cristyda16f162011-02-19 23:52:17 +000020721if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020722
20723cat >>confdefs.h <<_ACEOF
20724#define HAVE_ERROR_T 1
20725_ACEOF
20726
20727
20728else
20729
20730$as_echo "#define error_t int" >>confdefs.h
20731
20732
20733$as_echo "#define __error_t_defined 1" >>confdefs.h
20734
20735fi
20736
20737
20738ARGZ_H=
20739for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20740 argz_next argz_stringify
20741do :
20742 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20743ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020744if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020745 cat >>confdefs.h <<_ACEOF
20746#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20747_ACEOF
20748
20749else
20750 ARGZ_H=argz.h;
20751
20752 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20753
20754fi
20755done
20756
20757
20758if test -z "$ARGZ_H"; then :
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20760$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020761if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020762 $as_echo_n "(cached) " >&6
20763else
20764 case $host_os in #(
20765 *cygwin*)
20766 lt_cv_sys_argz_works=no
20767 if test "$cross_compiling" != no; then
20768 lt_cv_sys_argz_works="guessing no"
20769 else
20770 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20771 save_IFS=$IFS
20772 IFS=-.
20773 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20774 IFS=$save_IFS
20775 lt_os_major=${2-0}
20776 lt_os_minor=${3-0}
20777 lt_os_micro=${4-0}
20778 if test "$lt_os_major" -gt 1 \
20779 || { test "$lt_os_major" -eq 1 \
20780 && { test "$lt_os_minor" -gt 5 \
20781 || { test "$lt_os_minor" -eq 5 \
20782 && test "$lt_os_micro" -gt 24; }; }; }; then
20783 lt_cv_sys_argz_works=yes
20784 fi
20785 fi
20786 ;; #(
20787 *) lt_cv_sys_argz_works=yes ;;
20788 esac
20789fi
20790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20791$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020792 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020793
20794$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20795
20796else
20797 ARGZ_H=argz.h
20798
20799
20800 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20801
20802fi
20803fi
20804
20805
20806
20807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20808$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020809if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020810 $as_echo_n "(cached) " >&6
20811else
20812 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20813 libltdl_cv_preloaded_symbols=yes
20814 else
20815 libltdl_cv_preloaded_symbols=no
20816 fi
20817
20818fi
20819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20820$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20821if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20822
20823$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20824
20825fi
20826
20827# Set options
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839# Check whether --with-included_ltdl was given.
20840if test "${with_included_ltdl+set}" = set; then :
20841 withval=$with_included_ltdl;
20842fi
20843
20844
20845if test "x$with_included_ltdl" != xyes; then
20846 # We are not being forced to use the included libltdl sources, so
20847 # decide whether there is a useful installed version we can use.
20848 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20849
20850"
cristyda16f162011-02-19 23:52:17 +000020851if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020852 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20853 #include <ltdl.h>
20854"
cristyda16f162011-02-19 23:52:17 +000020855if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20857$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020858if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020859 $as_echo_n "(cached) " >&6
20860else
20861 ac_check_lib_save_LIBS=$LIBS
20862LIBS="-lltdl $LIBS"
20863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20864/* end confdefs.h. */
20865
20866/* Override any GCC internal prototype to avoid an error.
20867 Use char because int might match the return type of a GCC
20868 builtin and then its argument prototype would still apply. */
20869#ifdef __cplusplus
20870extern "C"
20871#endif
20872char lt_dladvise_preload ();
20873int
20874main ()
20875{
20876return lt_dladvise_preload ();
20877 ;
20878 return 0;
20879}
20880_ACEOF
20881if ac_fn_c_try_link "$LINENO"; then :
20882 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20883else
20884 ac_cv_lib_ltdl_lt_dladvise_preload=no
20885fi
20886rm -f core conftest.err conftest.$ac_objext \
20887 conftest$ac_exeext conftest.$ac_ext
20888LIBS=$ac_check_lib_save_LIBS
20889fi
20890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20891$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020892if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020893 with_included_ltdl=no
20894else
20895 with_included_ltdl=yes
20896fi
20897
20898else
20899 with_included_ltdl=yes
20900fi
20901
20902else
20903 with_included_ltdl=yes
20904fi
20905
20906
20907fi
20908
20909
20910
20911
20912# Check whether --with-ltdl_include was given.
20913if test "${with_ltdl_include+set}" = set; then :
20914 withval=$with_ltdl_include;
20915fi
20916
20917
20918if test -n "$with_ltdl_include"; then
20919 if test -f "$with_ltdl_include/ltdl.h"; then :
20920 else
cristy98dddb52010-11-04 00:30:15 +000020921 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020922 fi
20923else
20924 with_ltdl_include=no
20925fi
20926
20927
20928# Check whether --with-ltdl_lib was given.
20929if test "${with_ltdl_lib+set}" = set; then :
20930 withval=$with_ltdl_lib;
20931fi
20932
20933
20934if test -n "$with_ltdl_lib"; then
20935 if test -f "$with_ltdl_lib/libltdl.la"; then :
20936 else
cristy98dddb52010-11-04 00:30:15 +000020937 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020938 fi
20939else
20940 with_ltdl_lib=no
20941fi
20942
20943case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20944 ,yes,no,no,)
20945 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020946 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020947 "") enable_ltdl_convenience=yes
20948 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20949esac
20950LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20951LTDLDEPS=$LIBLTDL
20952LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20953
20954
20955
20956
20957
20958# For backwards non-gettext consistent compatibility...
20959INCLTDL="$LTDLINCL"
20960
20961
20962 ;;
20963 ,no,no,no,)
20964 # If the included ltdl is not to be used, then use the
20965 # preinstalled libltdl we found.
20966
20967$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20968
20969 LIBLTDL=-lltdl
20970 LTDLDEPS=
20971 LTDLINCL=
20972 ;;
20973 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020974 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020975 ;;
20976 *) with_included_ltdl=no
20977 LIBLTDL="-L$with_ltdl_lib -lltdl"
20978 LTDLDEPS=
20979 LTDLINCL="-I$with_ltdl_include"
20980 ;;
20981esac
20982INCLTDL="$LTDLINCL"
20983
20984# Report our decision...
20985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20986$as_echo_n "checking where to find libltdl headers... " >&6; }
20987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20988$as_echo "$LTDLINCL" >&6; }
20989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20990$as_echo_n "checking where to find libltdl library... " >&6; }
20991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20992$as_echo "$LIBLTDL" >&6; }
20993
20994
20995
20996# Check whether --enable-ltdl-install was given.
20997if test "${enable_ltdl_install+set}" = set; then :
20998 enableval=$enable_ltdl_install;
20999fi
21000
21001
21002case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21003 *yes*) ;;
21004 *) enable_ltdl_convenience=yes ;;
21005esac
21006
21007 if test x"${enable_ltdl_install-no}" != xno; then
21008 INSTALL_LTDL_TRUE=
21009 INSTALL_LTDL_FALSE='#'
21010else
21011 INSTALL_LTDL_TRUE='#'
21012 INSTALL_LTDL_FALSE=
21013fi
21014
21015 if test x"${enable_ltdl_convenience-no}" != xno; then
21016 CONVENIENCE_LTDL_TRUE=
21017 CONVENIENCE_LTDL_FALSE='#'
21018else
21019 CONVENIENCE_LTDL_TRUE='#'
21020 CONVENIENCE_LTDL_FALSE=
21021fi
21022
21023
21024
21025
21026
21027
cristy73bd4a52010-10-05 11:24:23 +000021028# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21029# the user used. This is so that ltdl.h can pick up the parent projects
21030# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21031# definitions required by ltdl.c.
21032# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21033
21034
21035
21036for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21037do :
21038 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21039ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21040"
cristy98dddb52010-11-04 00:30:15 +000021041if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021042 cat >>confdefs.h <<_ACEOF
21043#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21044_ACEOF
21045
21046fi
21047
21048done
21049
21050
21051for ac_func in closedir opendir readdir
21052do :
21053 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21054ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021055if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021056 cat >>confdefs.h <<_ACEOF
21057#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21058_ACEOF
21059
21060else
21061
21062
21063 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21064
21065fi
21066done
21067
21068for ac_func in strlcat strlcpy
21069do :
21070 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21071ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021072if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021073 cat >>confdefs.h <<_ACEOF
21074#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21075_ACEOF
21076
21077else
21078
21079
21080 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21081
21082fi
21083done
21084
21085
21086
21087cat >>confdefs.h <<_ACEOF
21088#define LT_LIBEXT "$libext"
21089_ACEOF
21090
21091
cristyda16f162011-02-19 23:52:17 +000021092name=
21093eval "lt_libprefix=\"$libname_spec\""
21094
21095cat >>confdefs.h <<_ACEOF
21096#define LT_LIBPREFIX "$lt_libprefix"
21097_ACEOF
21098
21099
cristy73bd4a52010-10-05 11:24:23 +000021100name=ltdl
cristyda16f162011-02-19 23:52:17 +000021101eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021102
21103
21104
21105
21106
21107
21108
21109
21110# Only expand once:
21111
21112
cristy3ed852e2009-09-05 21:47:34 +000021113
21114# Check to see if building shared libraries
21115libtool_build_shared_libs='no'
21116if test "$enable_shared" = 'yes'; then
21117 libtool_build_shared_libs='yes'
21118fi
21119
21120# Check to see if building static libraries
21121libtool_build_static_libs='no'
21122if test "$enable_static" = 'yes'; then
21123 libtool_build_static_libs='yes'
21124fi
21125
cristy73bd4a52010-10-05 11:24:23 +000021126 if test "${libtool_build_shared_libs}" = 'yes'; then
21127 WITH_SHARED_LIBS_TRUE=
21128 WITH_SHARED_LIBS_FALSE='#'
21129else
21130 WITH_SHARED_LIBS_TRUE='#'
21131 WITH_SHARED_LIBS_FALSE=
21132fi
21133
cristy3ed852e2009-09-05 21:47:34 +000021134#
21135# Enable support for building loadable modules
21136#
21137
21138# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021139if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021140 withval=$with_modules; with_modules=$withval
21141else
cristy5a1cefd2010-01-06 20:42:35 +000021142 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021143fi
21144
21145
21146# Only allow building loadable modules if we are building shared libraries
21147if test "$with_modules" != 'no' ; then
21148 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021149 { $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 +000021150$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21151 with_modules='no'
21152 fi
21153fi
21154if test "$with_modules" != 'no'; then
21155
cristy8b350f62009-11-15 23:12:43 +000021156$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021157
21158fi
cristy73bd4a52010-10-05 11:24:23 +000021159 if test "$with_modules" != 'no'; then
21160 WITH_MODULES_TRUE=
21161 WITH_MODULES_FALSE='#'
21162else
21163 WITH_MODULES_TRUE='#'
21164 WITH_MODULES_FALSE=
21165fi
21166
cristy3ed852e2009-09-05 21:47:34 +000021167
21168# Enable building/use of libltdl if we are building shared libraries regardless
21169# of whether modules are built or not.
21170with_ltdl='no'
21171if test "$libtool_build_shared_libs" != 'no'; then
21172 with_ltdl='yes'
21173fi
21174
cristy73bd4a52010-10-05 11:24:23 +000021175 if test "$with_ltdl" != 'no'; then
21176 WITH_LTDL_TRUE=
21177 WITH_LTDL_FALSE='#'
21178else
21179 WITH_LTDL_TRUE='#'
21180 WITH_LTDL_FALSE=
21181fi
21182
cristy3ed852e2009-09-05 21:47:34 +000021183if test "$with_ltdl" != 'no'; then
21184
cristy8b350f62009-11-15 23:12:43 +000021185$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021186
21187
21188 # Set DLLDFLAGS
21189 if test X"$enable_shared" = Xyes; then
21190 DLLDFLAGS=-export-dynamic
21191
21192 fi
21193fi
21194
21195# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021196# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021197# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021198if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021199 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21200else
21201 enable_delegate_build='no'
21202fi
21203
21204
21205# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021206if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021207 enableval=$enable_deprecated; enable_deprecated=$enableval
21208else
21209 enable_deprecated='no'
21210fi
21211
21212
21213if test "$enable_deprecated" = 'yes'; then
21214
cristy8b350f62009-11-15 23:12:43 +000021215$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021216
21217else
21218 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21219fi
21220
21221# Build a version of ImageMagick which operates uninstalled.
21222# Used to build distributions located via MAGICK_HOME / executable path
21223# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021224if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021225 enableval=$enable_installed; enable_installed=$enableval
21226else
21227 enable_installed='yes'
21228fi
21229
21230
21231if test "$enable_installed" = 'yes'; then
21232
cristy8b350f62009-11-15 23:12:43 +000021233$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021234
21235else
21236 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21237fi
21238
21239# Permit enciphering and deciphering image pixels.
21240# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021241if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021242 enableval=$enable_cipher; enable_cipher=$enableval
21243else
21244 enable_cipher='yes'
21245fi
21246
21247
21248if test "$enable_cipher" = 'yes'; then
21249
cristy8b350f62009-11-15 23:12:43 +000021250$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021251
21252fi
21253
cristy6e3607c2011-09-13 13:59:17 +000021254# Build a zero-configuration version of ImageMagick.
21255# Check whether --enable-zero-configuration was given.
21256if test "${enable_zero_configuration+set}" = set; then :
21257 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021258else
cristy6e3607c2011-09-13 13:59:17 +000021259 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021260fi
21261
21262
cristy6e3607c2011-09-13 13:59:17 +000021263if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021264
cristy6e3607c2011-09-13 13:59:17 +000021265$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021266
cristy81af5702011-09-13 14:20:58 +000021267 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021268fi
21269
21270# Build a high dynamic range version of ImageMagick.
21271# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021272if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021273 enableval=$enable_hdri; enable_hdri=$enableval
21274else
21275 enable_hdri='no'
21276fi
21277
21278
21279MAGICK_HDRI=""
21280if test "$enable_hdri" = 'yes'; then
21281 MAGICK_HDRI="HDRI"
21282
cristy8b350f62009-11-15 23:12:43 +000021283$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021284
cristyfd9dcd42010-08-08 18:07:02 +000021285 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021286fi
21287
cristy3ed852e2009-09-05 21:47:34 +000021288# Build a version of ImageMagick with assert statements.
21289# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021290if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021291 enableval=$enable_assert; enable_assert=$enableval
21292else
21293 enable_assert='yes'
21294fi
21295
21296
21297if test "$enable_assert" = 'no'; then
21298
cristy8b350f62009-11-15 23:12:43 +000021299$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021300
21301fi
21302
cristya448bd22011-10-14 12:38:13 +000021303# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021304
21305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21306$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21307 # Check whether --enable-maintainer-mode was given.
21308if test "${enable_maintainer_mode+set}" = set; then :
21309 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21310else
21311 USE_MAINTAINER_MODE=no
21312fi
21313
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21315$as_echo "$USE_MAINTAINER_MODE" >&6; }
21316 if test $USE_MAINTAINER_MODE = yes; then
21317 MAINTAINER_MODE_TRUE=
21318 MAINTAINER_MODE_FALSE='#'
21319else
21320 MAINTAINER_MODE_TRUE='#'
21321 MAINTAINER_MODE_FALSE=
21322fi
21323
21324 MAINT=$MAINTAINER_MODE_TRUE
21325
21326
cristy3ed852e2009-09-05 21:47:34 +000021327
cristy3ed852e2009-09-05 21:47:34 +000021328# Enable ccmalloc memory debugging support
21329# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021330if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021331 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21332else
21333 enable_ccmalloc='no'
21334fi
21335
21336
21337# Enable Electric Fence memory debugging support
21338# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021339if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021340 enableval=$enable_efence; enable_efence=$enableval
21341else
21342 enable_efence='no'
21343fi
21344
21345
21346# Enable prof-based profiling support
21347# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021348if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021349 enableval=$enable_prof; enable_prof=$enableval
21350else
21351 enable_prof='no'
21352fi
21353
21354
21355# Enable gprof-based profiling support
21356# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021357if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021358 enableval=$enable_gprof; enable_gprof=$enableval
21359else
21360 enable_gprof='no'
21361fi
21362
21363
21364# Enable gcov-based profiling support
21365# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021366if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021367 enableval=$enable_gcov; enable_gcov=$enableval
21368else
21369 enable_gcov='no'
21370fi
21371
21372
21373enable_profiling='no'
21374if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21375 enable_profiling='yes'
21376 if test "$libtool_build_shared_libs" = 'yes'; then
21377 echo "Warning: Can not profile code using shared libraries"
21378 fi
21379fi
21380
21381# Magick API method prefix
21382
21383# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021384if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021385 withval=$with_method_prefix; with_method_prefix=$enableval
21386else
21387 with_method_prefix=''
21388fi
21389
21390
21391if test "$with_method_prefix" != ''; then
21392
21393cat >>confdefs.h <<_ACEOF
21394#define NAMESPACE_PREFIX $with_method_prefix
21395_ACEOF
21396
21397fi
21398
21399# Number of bits in a Quantum
21400
21401# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021402if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021403 withval=$with_quantum_depth; with_quantum_depth=$withval
21404else
21405 with_quantum_depth=16
21406fi
21407
21408
21409if test "$with_quantum_depth" != '8'; then
21410 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21411fi
21412
21413case "${with_quantum_depth}" in
21414 8 ) ;;
21415 16 ) ;;
21416 32 ) ;;
21417 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021418 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021419esac
21420QUANTUM_DEPTH="$with_quantum_depth"
21421
21422cat >>confdefs.h <<_ACEOF
21423#define QUANTUM_DEPTH $QUANTUM_DEPTH
21424_ACEOF
21425
21426
21427# Set pixel cache threshold
21428
21429# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021430if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021431 withval=$with_cache; with_cache=$withval
21432else
21433 with_cache=''
21434fi
21435
21436
21437if test "$with_cache" != ''; then
21438
21439cat >>confdefs.h <<_ACEOF
21440#define PixelCacheThreshold $with_cache
21441_ACEOF
21442
21443 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21444fi
21445
21446# Disable/Enable support for full delegate paths
21447
21448# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021449if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021450 withval=$with_frozenpaths; with_frozenpaths=$withval
21451else
21452 with_frozenpaths='no'
21453fi
21454
21455
21456# Enable build/install of Magick++
21457
21458# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021459if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021460 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21461else
21462 with_magick_plus_plus='yes'
21463fi
21464
21465
21466# Disable build/install of PerlMagick.
21467
21468# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021469if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021470 withval=$with_perl; with_perl=$withval
21471else
cristyb5f4e2f2010-04-25 00:49:11 +000021472 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021473fi
21474
21475
21476# Options to pass when configuring PerlMagick
21477
21478# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021479if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021480 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021481fi
21482
21483
cristy3ed852e2009-09-05 21:47:34 +000021484
21485# Enable umem, object-caching memory allocation library.
21486
21487# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021488if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021489 withval=$with_umem; with_umem=$withval
21490else
21491 with_umem='no'
21492fi
21493
21494if test "$with_umem" != 'yes' ; then
21495 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21496fi
21497
21498#
21499# Specify path to shared libstdc++ if not in normal location
21500#
21501
21502# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021503if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021504 withval=$with_libstdc; with_libstdc=$withval
21505else
21506 with_libstdc=''
21507fi
21508
21509
21510if test "$with_libstdc" != ''; then
21511 if test -d "$with_libstdc"; then
21512 LIBSTDCLDFLAGS="-L$with_libstdc"
21513 fi
21514fi
21515
21516
21517# Does gcc required -traditional?
21518if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021520$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021521if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021522 $as_echo_n "(cached) " >&6
21523else
21524 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021526/* end confdefs.h. */
21527#include <sgtty.h>
21528Autoconf TIOCGETP
21529_ACEOF
21530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021531 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021532 ac_cv_prog_gcc_traditional=yes
21533else
21534 ac_cv_prog_gcc_traditional=no
21535fi
21536rm -f conftest*
21537
21538
21539 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021541/* end confdefs.h. */
21542#include <termio.h>
21543Autoconf TCGETA
21544_ACEOF
21545if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021546 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021547 ac_cv_prog_gcc_traditional=yes
21548fi
21549rm -f conftest*
21550
21551 fi
21552fi
cristy8b350f62009-11-15 23:12:43 +000021553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021554$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21555 if test $ac_cv_prog_gcc_traditional = yes; then
21556 CC="$CC -traditional"
21557 fi
21558fi
21559
21560
21561########
21562#
21563# Set defines required to build DLLs and modules using MinGW
21564#
21565########
21566# These options are set for multi-thread DLL module build
21567# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21568# module: _DLL
21569# executable/Magick++: _DLL _MAGICKMOD_
21570MODULE_EXTRA_CPPFLAGS=''
21571LIBRARY_EXTRA_CPPFLAGS=''
21572if test "${native_win32_build}" = 'yes'; then
21573 if test "${libtool_build_shared_libs}" = 'yes'; then
21574 CPPFLAGS="$CPPFLAGS -D_DLL"
21575 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21576 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21577 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21578 if test "$with_modules" = 'yes'; then
21579 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21580 else
21581 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21582 fi
21583 else
21584 CPPFLAGS="$CPPFLAGS -D_LIB"
21585 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21586 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21587 fi
21588 if test "$with_threads" = 'yes'; then
21589 CPPFLAGS="$CPPFLAGS -D_MT"
21590 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21591 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21592 fi
21593fi
21594
21595
21596
21597# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021599$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021600if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021601 $as_echo_n "(cached) " >&6
21602else
cristy8b350f62009-11-15 23:12:43 +000021603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021604/* end confdefs.h. */
21605#include <stdlib.h>
21606#include <stdarg.h>
21607#include <string.h>
21608#include <float.h>
21609
21610int
21611main ()
21612{
21613
21614 ;
21615 return 0;
21616}
21617_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021618if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021619 ac_cv_header_stdc=yes
21620else
cristy8b350f62009-11-15 23:12:43 +000021621 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021622fi
cristy3ed852e2009-09-05 21:47:34 +000021623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21624
21625if test $ac_cv_header_stdc = yes; then
21626 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021628/* end confdefs.h. */
21629#include <string.h>
21630
21631_ACEOF
21632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021633 $EGREP "memchr" >/dev/null 2>&1; then :
21634
cristy3ed852e2009-09-05 21:47:34 +000021635else
21636 ac_cv_header_stdc=no
21637fi
21638rm -f conftest*
21639
21640fi
21641
21642if test $ac_cv_header_stdc = yes; then
21643 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021645/* end confdefs.h. */
21646#include <stdlib.h>
21647
21648_ACEOF
21649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021650 $EGREP "free" >/dev/null 2>&1; then :
21651
cristy3ed852e2009-09-05 21:47:34 +000021652else
21653 ac_cv_header_stdc=no
21654fi
21655rm -f conftest*
21656
21657fi
21658
21659if test $ac_cv_header_stdc = yes; then
21660 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021661 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021662 :
21663else
cristy8b350f62009-11-15 23:12:43 +000021664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021665/* end confdefs.h. */
21666#include <ctype.h>
21667#include <stdlib.h>
21668#if ((' ' & 0x0FF) == 0x020)
21669# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21670# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21671#else
21672# define ISLOWER(c) \
21673 (('a' <= (c) && (c) <= 'i') \
21674 || ('j' <= (c) && (c) <= 'r') \
21675 || ('s' <= (c) && (c) <= 'z'))
21676# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21677#endif
21678
21679#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21680int
21681main ()
21682{
21683 int i;
21684 for (i = 0; i < 256; i++)
21685 if (XOR (islower (i), ISLOWER (i))
21686 || toupper (i) != TOUPPER (i))
21687 return 2;
21688 return 0;
21689}
21690_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021691if ac_fn_c_try_run "$LINENO"; then :
21692
cristy3ed852e2009-09-05 21:47:34 +000021693else
cristy8b350f62009-11-15 23:12:43 +000021694 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021695fi
cristy8b350f62009-11-15 23:12:43 +000021696rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21697 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021698fi
21699
cristy3ed852e2009-09-05 21:47:34 +000021700fi
21701fi
cristy8b350f62009-11-15 23:12:43 +000021702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021703$as_echo "$ac_cv_header_stdc" >&6; }
21704if test $ac_cv_header_stdc = yes; then
21705
cristy8b350f62009-11-15 23:12:43 +000021706$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021707
21708fi
21709
21710if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021711 { $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 +000021712 header files. Compilation cannot proceed. Please install the ANSI C
21713 headers and rerun this script." >&5
21714$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21715 header files. Compilation cannot proceed. Please install the ANSI C
21716 headers and rerun this script." >&2;};
21717fi
cristya0b81c32010-01-22 02:54:33 +000021718
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21720$as_echo_n "checking whether to enable assertions... " >&6; }
21721 # Check whether --enable-assert was given.
21722if test "${enable_assert+set}" = set; then :
21723 enableval=$enable_assert; ac_enable_assert=$enableval
21724 if test "x$enableval" = xno; then :
21725
21726$as_echo "#define NDEBUG 1" >>confdefs.h
21727
21728elif test "x$enableval" != xyes; then :
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21730$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21731 ac_enable_assert=yes
21732fi
21733else
21734 ac_enable_assert=yes
21735fi
21736
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21738$as_echo "$ac_enable_assert" >&6; }
21739
cristy3ed852e2009-09-05 21:47:34 +000021740ac_header_dirent=no
21741for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21742 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021744$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021745if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021746 $as_echo_n "(cached) " >&6
21747else
cristy8b350f62009-11-15 23:12:43 +000021748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021749/* end confdefs.h. */
21750#include <sys/types.h>
21751#include <$ac_hdr>
21752
21753int
21754main ()
21755{
21756if ((DIR *) 0)
21757return 0;
21758 ;
21759 return 0;
21760}
21761_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021762if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021763 eval "$as_ac_Header=yes"
21764else
cristy8b350f62009-11-15 23:12:43 +000021765 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021766fi
cristy3ed852e2009-09-05 21:47:34 +000021767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21768fi
cristy8b350f62009-11-15 23:12:43 +000021769eval ac_res=\$$as_ac_Header
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021771$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021772if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021773 cat >>confdefs.h <<_ACEOF
21774#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21775_ACEOF
21776
21777ac_header_dirent=$ac_hdr; break
21778fi
21779
21780done
21781# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21782if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021784$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021785if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021786 $as_echo_n "(cached) " >&6
21787else
21788 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021790/* end confdefs.h. */
21791
21792/* Override any GCC internal prototype to avoid an error.
21793 Use char because int might match the return type of a GCC
21794 builtin and then its argument prototype would still apply. */
21795#ifdef __cplusplus
21796extern "C"
21797#endif
21798char opendir ();
21799int
21800main ()
21801{
21802return opendir ();
21803 ;
21804 return 0;
21805}
21806_ACEOF
21807for ac_lib in '' dir; do
21808 if test -z "$ac_lib"; then
21809 ac_res="none required"
21810 else
21811 ac_res=-l$ac_lib
21812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21813 fi
cristy8b350f62009-11-15 23:12:43 +000021814 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021815 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021816fi
cristy8b350f62009-11-15 23:12:43 +000021817rm -f core conftest.err conftest.$ac_objext \
21818 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021819 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021820 break
21821fi
21822done
cristyda16f162011-02-19 23:52:17 +000021823if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021824
cristy3ed852e2009-09-05 21:47:34 +000021825else
21826 ac_cv_search_opendir=no
21827fi
21828rm conftest.$ac_ext
21829LIBS=$ac_func_search_save_LIBS
21830fi
cristy8b350f62009-11-15 23:12:43 +000021831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021832$as_echo "$ac_cv_search_opendir" >&6; }
21833ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021834if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021835 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21836
21837fi
21838
21839else
cristy8b350f62009-11-15 23:12:43 +000021840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021841$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021842if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021843 $as_echo_n "(cached) " >&6
21844else
21845 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021847/* end confdefs.h. */
21848
21849/* Override any GCC internal prototype to avoid an error.
21850 Use char because int might match the return type of a GCC
21851 builtin and then its argument prototype would still apply. */
21852#ifdef __cplusplus
21853extern "C"
21854#endif
21855char opendir ();
21856int
21857main ()
21858{
21859return opendir ();
21860 ;
21861 return 0;
21862}
21863_ACEOF
21864for ac_lib in '' x; do
21865 if test -z "$ac_lib"; then
21866 ac_res="none required"
21867 else
21868 ac_res=-l$ac_lib
21869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21870 fi
cristy8b350f62009-11-15 23:12:43 +000021871 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021872 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021873fi
cristy8b350f62009-11-15 23:12:43 +000021874rm -f core conftest.err conftest.$ac_objext \
21875 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021876 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021877 break
21878fi
21879done
cristyda16f162011-02-19 23:52:17 +000021880if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021881
cristy3ed852e2009-09-05 21:47:34 +000021882else
21883 ac_cv_search_opendir=no
21884fi
21885rm conftest.$ac_ext
21886LIBS=$ac_func_search_save_LIBS
21887fi
cristy8b350f62009-11-15 23:12:43 +000021888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021889$as_echo "$ac_cv_search_opendir" >&6; }
21890ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021891if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21893
21894fi
21895
21896fi
21897
21898
21899# Check additional headers
cristya8549b12011-05-18 19:05:08 +000021900for 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 xlocale.h
cristy8b350f62009-11-15 23:12:43 +000021901do :
21902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21903ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021904if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021905 cat >>confdefs.h <<_ACEOF
21906#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21907_ACEOF
21908
21909fi
21910
21911done
21912
21913
21914########
21915#
21916# Checks for typedefs, structures, and compiler characteristics.
21917#
21918########
21919
cristy8b350f62009-11-15 23:12:43 +000021920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021921$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021922if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021923 $as_echo_n "(cached) " >&6
21924else
cristy8b350f62009-11-15 23:12:43 +000021925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021926/* end confdefs.h. */
21927
21928#include <stdbool.h>
21929#ifndef bool
21930 "error: bool is not defined"
21931#endif
21932#ifndef false
21933 "error: false is not defined"
21934#endif
21935#if false
21936 "error: false is not 0"
21937#endif
21938#ifndef true
21939 "error: true is not defined"
21940#endif
21941#if true != 1
21942 "error: true is not 1"
21943#endif
21944#ifndef __bool_true_false_are_defined
21945 "error: __bool_true_false_are_defined is not defined"
21946#endif
21947
21948 struct s { _Bool s: 1; _Bool t; } s;
21949
21950 char a[true == 1 ? 1 : -1];
21951 char b[false == 0 ? 1 : -1];
21952 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21953 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021954 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021955 char f[(_Bool) 0.0 == false ? 1 : -1];
21956 char g[true];
21957 char h[sizeof (_Bool)];
21958 char i[sizeof s.t];
21959 enum { j = false, k = true, l = false * true, m = true * 256 };
21960 /* The following fails for
21961 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21962 _Bool n[m];
21963 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21964 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021965 /* Catch a bug in an HP-UX C compiler. See
21966 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21967 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21968 */
21969 _Bool q = true;
21970 _Bool *pq = &q;
21971
21972int
21973main ()
21974{
21975
cristyda16f162011-02-19 23:52:17 +000021976 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021977 *pq |= q;
21978 *pq |= ! q;
21979 /* Refer to every declared value, to avoid compiler optimizations. */
21980 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21981 + !m + !n + !o + !p + !q + !pq);
21982
21983 ;
21984 return 0;
21985}
21986_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021987if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021988 ac_cv_header_stdbool_h=yes
21989else
cristy8b350f62009-11-15 23:12:43 +000021990 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021991fi
cristy3ed852e2009-09-05 21:47:34 +000021992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21993fi
cristy8b350f62009-11-15 23:12:43 +000021994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021995$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021996ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021997if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021998
21999cat >>confdefs.h <<_ACEOF
22000#define HAVE__BOOL 1
22001_ACEOF
22002
22003
22004fi
22005
22006if test $ac_cv_header_stdbool_h = yes; then
22007
cristy8b350f62009-11-15 23:12:43 +000022008$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022009
22010fi
22011
cristy8b350f62009-11-15 23:12:43 +000022012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022013$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022014if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022015 $as_echo_n "(cached) " >&6
22016else
cristy8b350f62009-11-15 23:12:43 +000022017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022018/* end confdefs.h. */
22019
22020int
22021main ()
22022{
22023
22024volatile int x;
22025int * volatile y = (int *) 0;
22026return !x && !y;
22027 ;
22028 return 0;
22029}
22030_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022031if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022032 ac_cv_c_volatile=yes
22033else
cristy8b350f62009-11-15 23:12:43 +000022034 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022035fi
cristy3ed852e2009-09-05 21:47:34 +000022036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22037fi
cristy8b350f62009-11-15 23:12:43 +000022038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022039$as_echo "$ac_cv_c_volatile" >&6; }
22040if test $ac_cv_c_volatile = no; then
22041
cristy8b350f62009-11-15 23:12:43 +000022042$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022043
22044fi
22045
cristy8b350f62009-11-15 23:12:43 +000022046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022047$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022048if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022049 $as_echo_n "(cached) " >&6
22050else
cristy8b350f62009-11-15 23:12:43 +000022051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022052/* end confdefs.h. */
22053#define x(y) #y
22054
22055char *s = x(teststring);
22056_ACEOF
22057if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022058 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022059 ac_cv_c_stringize=no
22060else
22061 ac_cv_c_stringize=yes
22062fi
22063rm -f conftest*
22064
22065fi
cristy8b350f62009-11-15 23:12:43 +000022066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022067$as_echo "$ac_cv_c_stringize" >&6; }
22068if test $ac_cv_c_stringize = yes; then
22069
cristy8b350f62009-11-15 23:12:43 +000022070$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022071
22072fi
22073
cristy8b350f62009-11-15 23:12:43 +000022074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022075$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022076if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022077 $as_echo_n "(cached) " >&6
22078else
cristy8b350f62009-11-15 23:12:43 +000022079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022080/* end confdefs.h. */
22081#include <sys/types.h>
22082#include <sys/stat.h>
22083
22084#if defined S_ISBLK && defined S_IFDIR
22085extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22086#endif
22087
22088#if defined S_ISBLK && defined S_IFCHR
22089extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22090#endif
22091
22092#if defined S_ISLNK && defined S_IFREG
22093extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22094#endif
22095
22096#if defined S_ISSOCK && defined S_IFREG
22097extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22098#endif
22099
22100_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022101if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022102 ac_cv_header_stat_broken=no
22103else
cristy8b350f62009-11-15 23:12:43 +000022104 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022105fi
cristy3ed852e2009-09-05 21:47:34 +000022106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22107fi
cristy8b350f62009-11-15 23:12:43 +000022108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022109$as_echo "$ac_cv_header_stat_broken" >&6; }
22110if test $ac_cv_header_stat_broken = yes; then
22111
cristy8b350f62009-11-15 23:12:43 +000022112$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022113
22114fi
22115
cristy8b350f62009-11-15 23:12:43 +000022116{ $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 +000022117$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022118if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022119 $as_echo_n "(cached) " >&6
22120else
cristy8b350f62009-11-15 23:12:43 +000022121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022122/* end confdefs.h. */
22123#include <sys/types.h>
22124#include <sys/time.h>
22125#include <time.h>
22126
22127int
22128main ()
22129{
22130if ((struct tm *) 0)
22131return 0;
22132 ;
22133 return 0;
22134}
22135_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022136if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022137 ac_cv_header_time=yes
22138else
cristy8b350f62009-11-15 23:12:43 +000022139 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022140fi
cristy3ed852e2009-09-05 21:47:34 +000022141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22142fi
cristy8b350f62009-11-15 23:12:43 +000022143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022144$as_echo "$ac_cv_header_time" >&6; }
22145if test $ac_cv_header_time = yes; then
22146
cristy8b350f62009-11-15 23:12:43 +000022147$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022148
22149fi
22150
cristy8b350f62009-11-15 23:12:43 +000022151{ $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 +000022152$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022153if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022154 $as_echo_n "(cached) " >&6
22155else
cristy8b350f62009-11-15 23:12:43 +000022156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022157/* end confdefs.h. */
22158#include <sys/types.h>
22159#include <time.h>
22160
22161int
22162main ()
22163{
22164struct tm tm;
22165 int *p = &tm.tm_sec;
22166 return !p;
22167 ;
22168 return 0;
22169}
22170_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022171if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022172 ac_cv_struct_tm=time.h
22173else
cristy8b350f62009-11-15 23:12:43 +000022174 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022175fi
cristy3ed852e2009-09-05 21:47:34 +000022176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22177fi
cristy8b350f62009-11-15 23:12:43 +000022178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022179$as_echo "$ac_cv_struct_tm" >&6; }
22180if test $ac_cv_struct_tm = sys/time.h; then
22181
cristy8b350f62009-11-15 23:12:43 +000022182$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022183
22184fi
22185
cristy92703d82010-04-26 00:18:18 +000022186ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22187#include <$ac_cv_struct_tm>
22188
22189"
cristyda16f162011-02-19 23:52:17 +000022190if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022191
22192cat >>confdefs.h <<_ACEOF
22193#define HAVE_STRUCT_TM_TM_ZONE 1
22194_ACEOF
22195
22196
22197fi
22198
22199if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22200
22201$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22202
22203else
22204 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22205"
cristyda16f162011-02-19 23:52:17 +000022206if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022207 ac_have_decl=1
22208else
22209 ac_have_decl=0
22210fi
22211
22212cat >>confdefs.h <<_ACEOF
22213#define HAVE_DECL_TZNAME $ac_have_decl
22214_ACEOF
22215
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22217$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022218if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022219 $as_echo_n "(cached) " >&6
22220else
22221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22222/* end confdefs.h. */
22223#include <time.h>
22224#if !HAVE_DECL_TZNAME
22225extern char *tzname[];
22226#endif
22227
22228int
22229main ()
22230{
22231return tzname[0][0];
22232 ;
22233 return 0;
22234}
22235_ACEOF
22236if ac_fn_c_try_link "$LINENO"; then :
22237 ac_cv_var_tzname=yes
22238else
22239 ac_cv_var_tzname=no
22240fi
22241rm -f core conftest.err conftest.$ac_objext \
22242 conftest$ac_exeext conftest.$ac_ext
22243fi
22244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22245$as_echo "$ac_cv_var_tzname" >&6; }
22246 if test $ac_cv_var_tzname = yes; then
22247
22248$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22249
22250 fi
22251fi
22252
cristy8b350f62009-11-15 23:12:43 +000022253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022254$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022255if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022256 $as_echo_n "(cached) " >&6
22257else
22258 echo '#! /bin/cat
22259exit 69
22260' >conftest
22261chmod u+x conftest
22262(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22263if test $? -ne 69; then
22264 ac_cv_sys_interpreter=yes
22265else
22266 ac_cv_sys_interpreter=no
22267fi
22268rm -f conftest
22269fi
cristy8b350f62009-11-15 23:12:43 +000022270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022271$as_echo "$ac_cv_sys_interpreter" >&6; }
22272interpval=$ac_cv_sys_interpreter
22273
22274
cristy3ed852e2009-09-05 21:47:34 +000022275# If the C compiler supports the keyword inline, do nothing. Otherwise
22276# define inline to __inline__ or __inline if it accepts one of those,
22277# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022279$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022280if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022281 $as_echo_n "(cached) " >&6
22282else
22283 ac_cv_c_inline=no
22284for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022286/* end confdefs.h. */
22287#ifndef __cplusplus
22288typedef int foo_t;
22289static $ac_kw foo_t static_foo () {return 0; }
22290$ac_kw foo_t foo () {return 0; }
22291#endif
22292
22293_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022294if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022295 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022296fi
cristy3ed852e2009-09-05 21:47:34 +000022297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22298 test "$ac_cv_c_inline" != no && break
22299done
22300
22301fi
cristy8b350f62009-11-15 23:12:43 +000022302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022303$as_echo "$ac_cv_c_inline" >&6; }
22304
cristy3ed852e2009-09-05 21:47:34 +000022305case $ac_cv_c_inline in
22306 inline | yes) ;;
22307 *)
22308 case $ac_cv_c_inline in
22309 no) ac_val=;;
22310 *) ac_val=$ac_cv_c_inline;;
22311 esac
22312 cat >>confdefs.h <<_ACEOF
22313#ifndef __cplusplus
22314#define inline $ac_val
22315#endif
22316_ACEOF
22317 ;;
22318esac
22319
22320
22321# If the C compiler supports the keyword restrict, do nothing. Otherwise
22322# define restrict to __restrict__ or __restrict if it accepts one of those,
22323# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022325$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022326if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022327 $as_echo_n "(cached) " >&6
22328else
22329 ac_cv_c_restrict=no
22330 # The order here caters to the fact that C++ does not require restrict.
22331 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022333/* end confdefs.h. */
22334typedef int * int_ptr;
22335 int foo (int_ptr $ac_kw ip) {
22336 return ip[0];
22337 }
22338int
22339main ()
22340{
22341int s[1];
22342 int * $ac_kw t = s;
22343 t[0] = 0;
22344 return foo(t)
22345 ;
22346 return 0;
22347}
22348_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022349if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022350 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022351fi
cristy3ed852e2009-09-05 21:47:34 +000022352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22353 test "$ac_cv_c_restrict" != no && break
22354 done
22355
22356fi
cristy8b350f62009-11-15 23:12:43 +000022357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022358$as_echo "$ac_cv_c_restrict" >&6; }
22359
cristy3ed852e2009-09-05 21:47:34 +000022360 case $ac_cv_c_restrict in
22361 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022362 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022363 ;;
22364 *) cat >>confdefs.h <<_ACEOF
22365#define restrict $ac_cv_c_restrict
22366_ACEOF
22367 ;;
22368 esac
22369
22370
22371# If words are stored with the most significant byte first (like
22372# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022374$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022375if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022376 $as_echo_n "(cached) " >&6
22377else
22378 ac_cv_c_bigendian=unknown
22379 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022381/* end confdefs.h. */
22382#ifndef __APPLE_CC__
22383 not a universal capable compiler
22384 #endif
22385 typedef int dummy;
22386
22387_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022388if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022389
22390 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022391 # there are at least two -arch flags with different values.
22392 ac_arch=
22393 ac_prev=
22394 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22395 if test -n "$ac_prev"; then
22396 case $ac_word in
22397 i?86 | x86_64 | ppc | ppc64)
22398 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22399 ac_arch=$ac_word
22400 else
22401 ac_cv_c_bigendian=universal
22402 break
22403 fi
22404 ;;
22405 esac
22406 ac_prev=
22407 elif test "x$ac_word" = "x-arch"; then
22408 ac_prev=arch
22409 fi
22410 done
cristy3ed852e2009-09-05 21:47:34 +000022411fi
cristy3ed852e2009-09-05 21:47:34 +000022412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22413 if test $ac_cv_c_bigendian = unknown; then
22414 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022416/* end confdefs.h. */
22417#include <sys/types.h>
22418 #include <sys/param.h>
22419
22420int
22421main ()
22422{
22423#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22424 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22425 && LITTLE_ENDIAN)
22426 bogus endian macros
22427 #endif
22428
22429 ;
22430 return 0;
22431}
22432_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022433if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022434 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022436/* end confdefs.h. */
22437#include <sys/types.h>
22438 #include <sys/param.h>
22439
22440int
22441main ()
22442{
22443#if BYTE_ORDER != BIG_ENDIAN
22444 not big endian
22445 #endif
22446
22447 ;
22448 return 0;
22449}
22450_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022451if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022452 ac_cv_c_bigendian=yes
22453else
cristy8b350f62009-11-15 23:12:43 +000022454 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022455fi
cristy3ed852e2009-09-05 21:47:34 +000022456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022457fi
cristy3ed852e2009-09-05 21:47:34 +000022458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22459 fi
22460 if test $ac_cv_c_bigendian = unknown; then
22461 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022463/* end confdefs.h. */
22464#include <limits.h>
22465
22466int
22467main ()
22468{
22469#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22470 bogus endian macros
22471 #endif
22472
22473 ;
22474 return 0;
22475}
22476_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022477if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022478 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022480/* end confdefs.h. */
22481#include <limits.h>
22482
22483int
22484main ()
22485{
22486#ifndef _BIG_ENDIAN
22487 not big endian
22488 #endif
22489
22490 ;
22491 return 0;
22492}
22493_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022494if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022495 ac_cv_c_bigendian=yes
22496else
cristy8b350f62009-11-15 23:12:43 +000022497 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022498fi
cristy3ed852e2009-09-05 21:47:34 +000022499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022500fi
cristy3ed852e2009-09-05 21:47:34 +000022501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22502 fi
22503 if test $ac_cv_c_bigendian = unknown; then
22504 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022505 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022506 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022508/* end confdefs.h. */
22509short int ascii_mm[] =
22510 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22511 short int ascii_ii[] =
22512 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22513 int use_ascii (int i) {
22514 return ascii_mm[i] + ascii_ii[i];
22515 }
22516 short int ebcdic_ii[] =
22517 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22518 short int ebcdic_mm[] =
22519 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22520 int use_ebcdic (int i) {
22521 return ebcdic_mm[i] + ebcdic_ii[i];
22522 }
22523 extern int foo;
22524
22525int
22526main ()
22527{
22528return use_ascii (foo) == use_ebcdic (foo);
22529 ;
22530 return 0;
22531}
22532_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022533if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022534 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22535 ac_cv_c_bigendian=yes
22536 fi
22537 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22538 if test "$ac_cv_c_bigendian" = unknown; then
22539 ac_cv_c_bigendian=no
22540 else
22541 # finding both strings is unlikely to happen, but who knows?
22542 ac_cv_c_bigendian=unknown
22543 fi
22544 fi
cristy3ed852e2009-09-05 21:47:34 +000022545fi
cristy3ed852e2009-09-05 21:47:34 +000022546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22547else
cristy8b350f62009-11-15 23:12:43 +000022548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022549/* end confdefs.h. */
22550$ac_includes_default
22551int
22552main ()
22553{
22554
22555 /* Are we little or big endian? From Harbison&Steele. */
22556 union
22557 {
22558 long int l;
22559 char c[sizeof (long int)];
22560 } u;
22561 u.l = 1;
22562 return u.c[sizeof (long int) - 1] == 1;
22563
22564 ;
22565 return 0;
22566}
22567_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022568if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022569 ac_cv_c_bigendian=no
22570else
cristy8b350f62009-11-15 23:12:43 +000022571 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022572fi
cristy8b350f62009-11-15 23:12:43 +000022573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22574 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022575fi
22576
cristy3ed852e2009-09-05 21:47:34 +000022577 fi
22578fi
cristy8b350f62009-11-15 23:12:43 +000022579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022580$as_echo "$ac_cv_c_bigendian" >&6; }
22581 case $ac_cv_c_bigendian in #(
22582 yes)
cristy8b350f62009-11-15 23:12:43 +000022583 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022584;; #(
22585 no)
22586 ;; #(
22587 universal)
22588
cristy8b350f62009-11-15 23:12:43 +000022589$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022590
22591 ;; #(
22592 *)
cristy98dddb52010-11-04 00:30:15 +000022593 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022594 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022595 esac
22596
22597
cristy501c8042011-05-26 17:46:28 +000022598# Define to a suitable type, if standard headers do not define it.
22599ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22600case $ac_cv_c_int8_t in #(
22601 no|yes) ;; #(
22602 *)
cristy3ed852e2009-09-05 21:47:34 +000022603
22604cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022605#define int8_t $ac_cv_c_int8_t
22606_ACEOF
22607;;
22608esac
22609
22610ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22611case $ac_cv_c_int16_t in #(
22612 no|yes) ;; #(
22613 *)
22614
22615cat >>confdefs.h <<_ACEOF
22616#define int16_t $ac_cv_c_int16_t
22617_ACEOF
22618;;
22619esac
22620
22621ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22622case $ac_cv_c_int32_t in #(
22623 no|yes) ;; #(
22624 *)
22625
22626cat >>confdefs.h <<_ACEOF
22627#define int32_t $ac_cv_c_int32_t
22628_ACEOF
22629;;
22630esac
22631
22632ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22633case $ac_cv_c_int64_t in #(
22634 no|yes) ;; #(
22635 *)
22636
22637cat >>confdefs.h <<_ACEOF
22638#define int64_t $ac_cv_c_int64_t
22639_ACEOF
22640;;
22641esac
22642
22643
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22645$as_echo_n "checking for long long int... " >&6; }
22646if ${ac_cv_type_long_long_int+:} false; then :
22647 $as_echo_n "(cached) " >&6
22648else
22649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22650/* end confdefs.h. */
22651
22652 /* For now, do not test the preprocessor; as of 2007 there are too many
22653 implementations with broken preprocessors. Perhaps this can
22654 be revisited in 2012. In the meantime, code should not expect
22655 #if to work with literals wider than 32 bits. */
22656 /* Test literals. */
22657 long long int ll = 9223372036854775807ll;
22658 long long int nll = -9223372036854775807LL;
22659 unsigned long long int ull = 18446744073709551615ULL;
22660 /* Test constant expressions. */
22661 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22662 ? 1 : -1)];
22663 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22664 ? 1 : -1)];
22665 int i = 63;
22666int
22667main ()
22668{
22669/* Test availability of runtime routines for shift and division. */
22670 long long int llmax = 9223372036854775807ll;
22671 unsigned long long int ullmax = 18446744073709551615ull;
22672 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22673 | (llmax / ll) | (llmax % ll)
22674 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22675 | (ullmax / ull) | (ullmax % ull));
22676 ;
22677 return 0;
22678}
22679
22680_ACEOF
22681if ac_fn_c_try_link "$LINENO"; then :
22682 if test "$cross_compiling" = yes; then :
22683 ac_cv_type_long_long_int=yes
22684else
22685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22686/* end confdefs.h. */
22687#include <limits.h>
22688 #ifndef LLONG_MAX
22689 # define HALF \
22690 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22691 # define LLONG_MAX (HALF - 1 + HALF)
22692 #endif
22693int
22694main ()
22695{
22696long long int n = 1;
22697 int i;
22698 for (i = 0; ; i++)
22699 {
22700 long long int m = n << i;
22701 if (m >> i != n)
22702 return 1;
22703 if (LLONG_MAX / 2 < m)
22704 break;
22705 }
22706 return 0;
22707 ;
22708 return 0;
22709}
22710_ACEOF
22711if ac_fn_c_try_run "$LINENO"; then :
22712 ac_cv_type_long_long_int=yes
22713else
22714 ac_cv_type_long_long_int=no
22715fi
22716rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22717 conftest.$ac_objext conftest.beam conftest.$ac_ext
22718fi
22719
22720else
22721 ac_cv_type_long_long_int=no
22722fi
22723rm -f core conftest.err conftest.$ac_objext \
22724 conftest$ac_exeext conftest.$ac_ext
22725fi
22726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22727$as_echo "$ac_cv_type_long_long_int" >&6; }
22728 if test $ac_cv_type_long_long_int = yes; then
22729
22730$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22731
22732 fi
22733
22734
22735
22736 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22737if test "x$ac_cv_type_intmax_t" = xyes; then :
22738
22739$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22740
22741else
22742 test $ac_cv_type_long_long_int = yes \
22743 && ac_type='long long int' \
22744 || ac_type='long int'
22745
22746cat >>confdefs.h <<_ACEOF
22747#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022748_ACEOF
22749
22750fi
22751
22752
cristy501c8042011-05-26 17:46:28 +000022753
22754 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22755if test "x$ac_cv_type_intptr_t" = xyes; then :
22756
22757$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022758
cristy3ed852e2009-09-05 21:47:34 +000022759else
cristy501c8042011-05-26 17:46:28 +000022760 for ac_type in 'int' 'long int' 'long long int'; do
22761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22762/* end confdefs.h. */
22763$ac_includes_default
22764int
22765main ()
22766{
22767static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22768test_array [0] = 0
22769
22770 ;
22771 return 0;
22772}
22773_ACEOF
22774if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022775
22776cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022777#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022778_ACEOF
22779
cristy501c8042011-05-26 17:46:28 +000022780 ac_type=
22781fi
22782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22783 test -z "$ac_type" && break
22784 done
cristy3ed852e2009-09-05 21:47:34 +000022785fi
22786
22787
cristy3ed852e2009-09-05 21:47:34 +000022788
cristy501c8042011-05-26 17:46:28 +000022789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22790$as_echo_n "checking for long double... " >&6; }
22791if ${ac_cv_type_long_double+:} false; then :
22792 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022793else
cristy501c8042011-05-26 17:46:28 +000022794 if test "$GCC" = yes; then
22795 ac_cv_type_long_double=yes
22796 else
22797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22798/* end confdefs.h. */
22799/* The Stardent Vistra knows sizeof (long double), but does
22800 not support it. */
22801 long double foo = 0.0L;
22802int
22803main ()
22804{
22805static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22806 sizeof (double) <= sizeof (long double))];
22807test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000022808
cristy501c8042011-05-26 17:46:28 +000022809 ;
22810 return 0;
22811}
cristy3ed852e2009-09-05 21:47:34 +000022812_ACEOF
cristy501c8042011-05-26 17:46:28 +000022813if ac_fn_c_try_compile "$LINENO"; then :
22814 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022815else
cristy501c8042011-05-26 17:46:28 +000022816 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022817fi
cristy501c8042011-05-26 17:46:28 +000022818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22819 fi
cristy3ed852e2009-09-05 21:47:34 +000022820fi
cristy501c8042011-05-26 17:46:28 +000022821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22822$as_echo "$ac_cv_type_long_double" >&6; }
22823 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022824
cristy501c8042011-05-26 17:46:28 +000022825$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022826
cristy501c8042011-05-26 17:46:28 +000022827 fi
22828
cristy3ed852e2009-09-05 21:47:34 +000022829
cristy8b350f62009-11-15 23:12:43 +000022830 { $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 +000022831$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022832if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022833 $as_echo_n "(cached) " >&6
22834else
cristy8b350f62009-11-15 23:12:43 +000022835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022836/* end confdefs.h. */
22837#include <float.h>
22838 long double const a[] =
22839 {
22840 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22841 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22842 };
22843 long double
22844 f (long double x)
22845 {
22846 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22847 + (x ? f (x) : 'c'));
22848 }
22849
22850int
22851main ()
22852{
22853static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22854 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22855 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22856 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22857 && (int) LDBL_EPSILON == 0
22858 )];
22859test_array [0] = 0
22860
22861 ;
22862 return 0;
22863}
22864_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022865if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022866 ac_cv_type_long_double_wider=yes
22867else
cristy8b350f62009-11-15 23:12:43 +000022868 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022869fi
cristy3ed852e2009-09-05 21:47:34 +000022870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22871fi
cristy8b350f62009-11-15 23:12:43 +000022872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022873$as_echo "$ac_cv_type_long_double_wider" >&6; }
22874 if test $ac_cv_type_long_double_wider = yes; then
22875
cristy8b350f62009-11-15 23:12:43 +000022876$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022877
22878 fi
22879
22880
cristy501c8042011-05-26 17:46:28 +000022881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22882$as_echo_n "checking for long long int... " >&6; }
22883if ${ac_cv_type_long_long_int+:} false; then :
22884 $as_echo_n "(cached) " >&6
22885else
22886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22887/* end confdefs.h. */
22888
22889 /* For now, do not test the preprocessor; as of 2007 there are too many
22890 implementations with broken preprocessors. Perhaps this can
22891 be revisited in 2012. In the meantime, code should not expect
22892 #if to work with literals wider than 32 bits. */
22893 /* Test literals. */
22894 long long int ll = 9223372036854775807ll;
22895 long long int nll = -9223372036854775807LL;
22896 unsigned long long int ull = 18446744073709551615ULL;
22897 /* Test constant expressions. */
22898 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22899 ? 1 : -1)];
22900 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22901 ? 1 : -1)];
22902 int i = 63;
22903int
22904main ()
22905{
22906/* Test availability of runtime routines for shift and division. */
22907 long long int llmax = 9223372036854775807ll;
22908 unsigned long long int ullmax = 18446744073709551615ull;
22909 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22910 | (llmax / ll) | (llmax % ll)
22911 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22912 | (ullmax / ull) | (ullmax % ull));
22913 ;
22914 return 0;
22915}
22916
22917_ACEOF
22918if ac_fn_c_try_link "$LINENO"; then :
22919 if test "$cross_compiling" = yes; then :
22920 ac_cv_type_long_long_int=yes
22921else
22922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22923/* end confdefs.h. */
22924#include <limits.h>
22925 #ifndef LLONG_MAX
22926 # define HALF \
22927 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22928 # define LLONG_MAX (HALF - 1 + HALF)
22929 #endif
22930int
22931main ()
22932{
22933long long int n = 1;
22934 int i;
22935 for (i = 0; ; i++)
22936 {
22937 long long int m = n << i;
22938 if (m >> i != n)
22939 return 1;
22940 if (LLONG_MAX / 2 < m)
22941 break;
22942 }
22943 return 0;
22944 ;
22945 return 0;
22946}
22947_ACEOF
22948if ac_fn_c_try_run "$LINENO"; then :
22949 ac_cv_type_long_long_int=yes
22950else
22951 ac_cv_type_long_long_int=no
22952fi
22953rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22954 conftest.$ac_objext conftest.beam conftest.$ac_ext
22955fi
22956
22957else
22958 ac_cv_type_long_long_int=no
22959fi
22960rm -f core conftest.err conftest.$ac_objext \
22961 conftest$ac_exeext conftest.$ac_ext
22962fi
22963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22964$as_echo "$ac_cv_type_long_long_int" >&6; }
22965 if test $ac_cv_type_long_long_int = yes; then
22966
22967$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22968
22969 fi
22970
22971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22972$as_echo_n "checking for mbstate_t... " >&6; }
22973if ${ac_cv_type_mbstate_t+:} false; then :
22974 $as_echo_n "(cached) " >&6
22975else
22976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22977/* end confdefs.h. */
22978$ac_includes_default
22979# include <wchar.h>
22980int
22981main ()
22982{
22983mbstate_t x; return sizeof x;
22984 ;
22985 return 0;
22986}
22987_ACEOF
22988if ac_fn_c_try_compile "$LINENO"; then :
22989 ac_cv_type_mbstate_t=yes
22990else
22991 ac_cv_type_mbstate_t=no
22992fi
22993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22994fi
22995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22996$as_echo "$ac_cv_type_mbstate_t" >&6; }
22997 if test $ac_cv_type_mbstate_t = yes; then
22998
22999$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23000
23001 else
23002
23003$as_echo "#define mbstate_t int" >>confdefs.h
23004
23005 fi
23006ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23007if test "x$ac_cv_type_mode_t" = xyes; then :
23008
23009else
23010
23011cat >>confdefs.h <<_ACEOF
23012#define mode_t int
23013_ACEOF
23014
23015fi
23016
23017ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23018if test "x$ac_cv_type_off_t" = xyes; then :
23019
23020else
23021
23022cat >>confdefs.h <<_ACEOF
23023#define off_t long int
23024_ACEOF
23025
23026fi
23027
23028ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23029if test "x$ac_cv_type_pid_t" = xyes; then :
23030
23031else
23032
23033cat >>confdefs.h <<_ACEOF
23034#define pid_t int
23035_ACEOF
23036
23037fi
23038
23039ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23040if test "x$ac_cv_type_size_t" = xyes; then :
23041
23042else
23043
23044cat >>confdefs.h <<_ACEOF
23045#define size_t unsigned int
23046_ACEOF
23047
23048fi
23049
23050ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23051if test "x$ac_cv_type_ssize_t" = xyes; then :
23052
23053else
23054
23055cat >>confdefs.h <<_ACEOF
23056#define ssize_t int
23057_ACEOF
23058
23059fi
23060
23061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23062$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23063if ${ac_cv_type_uid_t+:} false; then :
23064 $as_echo_n "(cached) " >&6
23065else
23066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23067/* end confdefs.h. */
23068#include <sys/types.h>
23069
23070_ACEOF
23071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23072 $EGREP "uid_t" >/dev/null 2>&1; then :
23073 ac_cv_type_uid_t=yes
23074else
23075 ac_cv_type_uid_t=no
23076fi
23077rm -f conftest*
23078
23079fi
23080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23081$as_echo "$ac_cv_type_uid_t" >&6; }
23082if test $ac_cv_type_uid_t = no; then
23083
23084$as_echo "#define uid_t int" >>confdefs.h
23085
23086
23087$as_echo "#define gid_t int" >>confdefs.h
23088
23089fi
23090
23091ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23092case $ac_cv_c_uint8_t in #(
23093 no|yes) ;; #(
23094 *)
23095
23096$as_echo "#define _UINT8_T 1" >>confdefs.h
23097
23098
23099cat >>confdefs.h <<_ACEOF
23100#define uint8_t $ac_cv_c_uint8_t
23101_ACEOF
23102;;
23103 esac
23104
23105ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23106case $ac_cv_c_uint16_t in #(
23107 no|yes) ;; #(
23108 *)
23109
23110
23111cat >>confdefs.h <<_ACEOF
23112#define uint16_t $ac_cv_c_uint16_t
23113_ACEOF
23114;;
23115 esac
23116
23117ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23118case $ac_cv_c_uint32_t in #(
23119 no|yes) ;; #(
23120 *)
23121
23122$as_echo "#define _UINT32_T 1" >>confdefs.h
23123
23124
23125cat >>confdefs.h <<_ACEOF
23126#define uint32_t $ac_cv_c_uint32_t
23127_ACEOF
23128;;
23129 esac
23130
23131ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23132case $ac_cv_c_uint64_t in #(
23133 no|yes) ;; #(
23134 *)
23135
23136$as_echo "#define _UINT64_T 1" >>confdefs.h
23137
23138
23139cat >>confdefs.h <<_ACEOF
23140#define uint64_t $ac_cv_c_uint64_t
23141_ACEOF
23142;;
23143 esac
23144
23145
23146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23147$as_echo_n "checking for unsigned long long int... " >&6; }
23148if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23149 $as_echo_n "(cached) " >&6
23150else
23151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23152/* end confdefs.h. */
23153
23154 /* For now, do not test the preprocessor; as of 2007 there are too many
23155 implementations with broken preprocessors. Perhaps this can
23156 be revisited in 2012. In the meantime, code should not expect
23157 #if to work with literals wider than 32 bits. */
23158 /* Test literals. */
23159 long long int ll = 9223372036854775807ll;
23160 long long int nll = -9223372036854775807LL;
23161 unsigned long long int ull = 18446744073709551615ULL;
23162 /* Test constant expressions. */
23163 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23164 ? 1 : -1)];
23165 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23166 ? 1 : -1)];
23167 int i = 63;
23168int
23169main ()
23170{
23171/* Test availability of runtime routines for shift and division. */
23172 long long int llmax = 9223372036854775807ll;
23173 unsigned long long int ullmax = 18446744073709551615ull;
23174 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23175 | (llmax / ll) | (llmax % ll)
23176 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23177 | (ullmax / ull) | (ullmax % ull));
23178 ;
23179 return 0;
23180}
23181
23182_ACEOF
23183if ac_fn_c_try_link "$LINENO"; then :
23184 ac_cv_type_unsigned_long_long_int=yes
23185else
23186 ac_cv_type_unsigned_long_long_int=no
23187fi
23188rm -f core conftest.err conftest.$ac_objext \
23189 conftest$ac_exeext conftest.$ac_ext
23190fi
23191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23192$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23193 if test $ac_cv_type_unsigned_long_long_int = yes; then
23194
23195$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23196
23197 fi
23198
23199
23200
23201 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23202if test "x$ac_cv_type_uintmax_t" = xyes; then :
23203
23204$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23205
23206else
23207 test $ac_cv_type_unsigned_long_long_int = yes \
23208 && ac_type='unsigned long long int' \
23209 || ac_type='unsigned long int'
23210
23211cat >>confdefs.h <<_ACEOF
23212#define uintmax_t $ac_type
23213_ACEOF
23214
23215fi
23216
23217
23218
23219 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23220if test "x$ac_cv_type_uintptr_t" = xyes; then :
23221
23222$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23223
23224else
23225 for ac_type in 'unsigned int' 'unsigned long int' \
23226 'unsigned long long int'; do
23227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23228/* end confdefs.h. */
23229$ac_includes_default
23230int
23231main ()
23232{
23233static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23234test_array [0] = 0
23235
23236 ;
23237 return 0;
23238}
23239_ACEOF
23240if ac_fn_c_try_compile "$LINENO"; then :
23241
23242cat >>confdefs.h <<_ACEOF
23243#define uintptr_t $ac_type
23244_ACEOF
23245
23246 ac_type=
23247fi
23248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23249 test -z "$ac_type" && break
23250 done
23251fi
23252
23253
23254
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23256$as_echo_n "checking for unsigned long long int... " >&6; }
23257if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23258 $as_echo_n "(cached) " >&6
23259else
23260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23261/* end confdefs.h. */
23262
23263 /* For now, do not test the preprocessor; as of 2007 there are too many
23264 implementations with broken preprocessors. Perhaps this can
23265 be revisited in 2012. In the meantime, code should not expect
23266 #if to work with literals wider than 32 bits. */
23267 /* Test literals. */
23268 long long int ll = 9223372036854775807ll;
23269 long long int nll = -9223372036854775807LL;
23270 unsigned long long int ull = 18446744073709551615ULL;
23271 /* Test constant expressions. */
23272 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23273 ? 1 : -1)];
23274 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23275 ? 1 : -1)];
23276 int i = 63;
23277int
23278main ()
23279{
23280/* Test availability of runtime routines for shift and division. */
23281 long long int llmax = 9223372036854775807ll;
23282 unsigned long long int ullmax = 18446744073709551615ull;
23283 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23284 | (llmax / ll) | (llmax % ll)
23285 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23286 | (ullmax / ull) | (ullmax % ull));
23287 ;
23288 return 0;
23289}
23290
23291_ACEOF
23292if ac_fn_c_try_link "$LINENO"; then :
23293 ac_cv_type_unsigned_long_long_int=yes
23294else
23295 ac_cv_type_unsigned_long_long_int=no
23296fi
23297rm -f core conftest.err conftest.$ac_objext \
23298 conftest$ac_exeext conftest.$ac_ext
23299fi
23300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23301$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23302 if test $ac_cv_type_unsigned_long_long_int = yes; then
23303
23304$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23305
23306 fi
23307
23308
cristy3ed852e2009-09-05 21:47:34 +000023309# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23310# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023312$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023313if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023314 $as_echo_n "(cached) " >&6
23315else
cristy8b350f62009-11-15 23:12:43 +000023316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023317/* end confdefs.h. */
23318$ac_includes_default
23319int
23320main ()
23321{
23322static int test_array [1 - 2 * !(((char) -1) < 0)];
23323test_array [0] = 0
23324
23325 ;
23326 return 0;
23327}
23328_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023329if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023330 ac_cv_c_char_unsigned=no
23331else
cristy8b350f62009-11-15 23:12:43 +000023332 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023333fi
cristy3ed852e2009-09-05 21:47:34 +000023334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23335fi
cristy8b350f62009-11-15 23:12:43 +000023336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023337$as_echo "$ac_cv_c_char_unsigned" >&6; }
23338if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023339 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023340
23341fi
23342
23343
23344# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23345# The cast to long int works around a bug in the HP C Compiler
23346# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23347# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23348# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023350$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023351if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023352 $as_echo_n "(cached) " >&6
23353else
cristy8b350f62009-11-15 23:12:43 +000023354 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 +000023355
cristy3ed852e2009-09-05 21:47:34 +000023356else
cristy8b350f62009-11-15 23:12:43 +000023357 if test "$ac_cv_type_signed_short" = yes; then
23358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023359$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023360as_fn_error 77 "cannot compute sizeof (signed short)
23361See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023362 else
23363 ac_cv_sizeof_signed_short=0
23364 fi
23365fi
cristy8b350f62009-11-15 23:12:43 +000023366
cristy3ed852e2009-09-05 21:47:34 +000023367fi
cristy8b350f62009-11-15 23:12:43 +000023368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023369$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23370
23371
23372
23373cat >>confdefs.h <<_ACEOF
23374#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23375_ACEOF
23376
23377
23378
23379# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23380# The cast to long int works around a bug in the HP C Compiler
23381# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23382# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23383# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023385$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023386if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023387 $as_echo_n "(cached) " >&6
23388else
cristy8b350f62009-11-15 23:12:43 +000023389 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 +000023390
cristy3ed852e2009-09-05 21:47:34 +000023391else
cristy8b350f62009-11-15 23:12:43 +000023392 if test "$ac_cv_type_unsigned_short" = yes; then
23393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023395as_fn_error 77 "cannot compute sizeof (unsigned short)
23396See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023397 else
23398 ac_cv_sizeof_unsigned_short=0
23399 fi
23400fi
cristy8b350f62009-11-15 23:12:43 +000023401
cristy3ed852e2009-09-05 21:47:34 +000023402fi
cristy8b350f62009-11-15 23:12:43 +000023403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023404$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23405
23406
23407
23408cat >>confdefs.h <<_ACEOF
23409#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23410_ACEOF
23411
23412
23413
23414# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23415# The cast to long int works around a bug in the HP C Compiler
23416# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23417# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23418# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023420$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023421if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023422 $as_echo_n "(cached) " >&6
23423else
cristy8b350f62009-11-15 23:12:43 +000023424 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 +000023425
cristy3ed852e2009-09-05 21:47:34 +000023426else
cristy8b350f62009-11-15 23:12:43 +000023427 if test "$ac_cv_type_signed_int" = yes; then
23428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023430as_fn_error 77 "cannot compute sizeof (signed int)
23431See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023432 else
23433 ac_cv_sizeof_signed_int=0
23434 fi
23435fi
cristy8b350f62009-11-15 23:12:43 +000023436
cristy3ed852e2009-09-05 21:47:34 +000023437fi
cristy8b350f62009-11-15 23:12:43 +000023438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023439$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23440
23441
23442
23443cat >>confdefs.h <<_ACEOF
23444#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23445_ACEOF
23446
23447
23448
23449# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23450# The cast to long int works around a bug in the HP C Compiler
23451# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23452# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23453# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023455$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023456if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023457 $as_echo_n "(cached) " >&6
23458else
cristy8b350f62009-11-15 23:12:43 +000023459 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 +000023460
cristy3ed852e2009-09-05 21:47:34 +000023461else
cristy8b350f62009-11-15 23:12:43 +000023462 if test "$ac_cv_type_unsigned_int" = yes; then
23463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023465as_fn_error 77 "cannot compute sizeof (unsigned int)
23466See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023467 else
23468 ac_cv_sizeof_unsigned_int=0
23469 fi
23470fi
cristy8b350f62009-11-15 23:12:43 +000023471
cristy3ed852e2009-09-05 21:47:34 +000023472fi
cristy8b350f62009-11-15 23:12:43 +000023473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023474$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23475
23476
23477
23478cat >>confdefs.h <<_ACEOF
23479#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23480_ACEOF
23481
23482
23483
23484# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23485# The cast to long int works around a bug in the HP C Compiler
23486# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23487# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23488# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023490$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023491if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023492 $as_echo_n "(cached) " >&6
23493else
cristy8b350f62009-11-15 23:12:43 +000023494 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 +000023495
cristy3ed852e2009-09-05 21:47:34 +000023496else
cristy8b350f62009-11-15 23:12:43 +000023497 if test "$ac_cv_type_signed_long" = yes; then
23498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023500as_fn_error 77 "cannot compute sizeof (signed long)
23501See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023502 else
23503 ac_cv_sizeof_signed_long=0
23504 fi
23505fi
cristy8b350f62009-11-15 23:12:43 +000023506
cristy3ed852e2009-09-05 21:47:34 +000023507fi
cristy8b350f62009-11-15 23:12:43 +000023508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023509$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23510
23511
23512
23513cat >>confdefs.h <<_ACEOF
23514#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23515_ACEOF
23516
23517
23518
23519# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23520# The cast to long int works around a bug in the HP C Compiler
23521# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23522# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23523# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023525$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023526if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023527 $as_echo_n "(cached) " >&6
23528else
cristy8b350f62009-11-15 23:12:43 +000023529 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 +000023530
cristy3ed852e2009-09-05 21:47:34 +000023531else
cristy8b350f62009-11-15 23:12:43 +000023532 if test "$ac_cv_type_unsigned_long" = yes; then
23533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023534$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023535as_fn_error 77 "cannot compute sizeof (unsigned long)
23536See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023537 else
23538 ac_cv_sizeof_unsigned_long=0
23539 fi
23540fi
cristy8b350f62009-11-15 23:12:43 +000023541
cristy3ed852e2009-09-05 21:47:34 +000023542fi
cristy8b350f62009-11-15 23:12:43 +000023543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023544$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23545
23546
23547
23548cat >>confdefs.h <<_ACEOF
23549#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23550_ACEOF
23551
23552
23553
23554# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23555# 'signed long long' is not supported then the value defined is zero.
23556# The cast to long int works around a bug in the HP C Compiler
23557# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23558# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23559# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023561$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023562if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023563 $as_echo_n "(cached) " >&6
23564else
cristy8b350f62009-11-15 23:12:43 +000023565 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 +000023566
cristy3ed852e2009-09-05 21:47:34 +000023567else
cristy8b350f62009-11-15 23:12:43 +000023568 if test "$ac_cv_type_signed_long_long" = yes; then
23569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023571as_fn_error 77 "cannot compute sizeof (signed long long)
23572See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023573 else
23574 ac_cv_sizeof_signed_long_long=0
23575 fi
23576fi
cristy8b350f62009-11-15 23:12:43 +000023577
cristy3ed852e2009-09-05 21:47:34 +000023578fi
cristy8b350f62009-11-15 23:12:43 +000023579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023580$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23581
23582
23583
23584cat >>confdefs.h <<_ACEOF
23585#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23586_ACEOF
23587
23588
23589
23590# Obtain size of a 'unsigned long long' and define as
23591# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23592# supported then the value defined is zero.
23593# The cast to long int works around a bug in the HP C Compiler
23594# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23595# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23596# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023598$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023599if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023600 $as_echo_n "(cached) " >&6
23601else
cristy8b350f62009-11-15 23:12:43 +000023602 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 +000023603
cristy3ed852e2009-09-05 21:47:34 +000023604else
cristy8b350f62009-11-15 23:12:43 +000023605 if test "$ac_cv_type_unsigned_long_long" = yes; then
23606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023608as_fn_error 77 "cannot compute sizeof (unsigned long long)
23609See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023610 else
23611 ac_cv_sizeof_unsigned_long_long=0
23612 fi
23613fi
cristy8b350f62009-11-15 23:12:43 +000023614
cristy3ed852e2009-09-05 21:47:34 +000023615fi
cristy8b350f62009-11-15 23:12:43 +000023616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023617$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23618
23619
23620
23621cat >>confdefs.h <<_ACEOF
23622#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23623_ACEOF
23624
23625
23626
23627# Obtain size of off_t and define as SIZEOF_OFF_T
23628# The cast to long int works around a bug in the HP C Compiler
23629# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23630# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23631# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023633$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023634if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023635 $as_echo_n "(cached) " >&6
23636else
cristy8b350f62009-11-15 23:12:43 +000023637 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 +000023638
cristy3ed852e2009-09-05 21:47:34 +000023639else
cristy8b350f62009-11-15 23:12:43 +000023640 if test "$ac_cv_type_off_t" = yes; then
23641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023643as_fn_error 77 "cannot compute sizeof (off_t)
23644See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023645 else
23646 ac_cv_sizeof_off_t=0
23647 fi
23648fi
cristy8b350f62009-11-15 23:12:43 +000023649
cristy3ed852e2009-09-05 21:47:34 +000023650fi
cristy8b350f62009-11-15 23:12:43 +000023651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023652$as_echo "$ac_cv_sizeof_off_t" >&6; }
23653
23654
23655
23656cat >>confdefs.h <<_ACEOF
23657#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23658_ACEOF
23659
23660
23661
23662# Obtain size of size_t and define as SIZEOF_SIZE_T
23663# The cast to long int works around a bug in the HP C Compiler
23664# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23665# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23666# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023668$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023669if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023670 $as_echo_n "(cached) " >&6
23671else
cristy8b350f62009-11-15 23:12:43 +000023672 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 +000023673
cristy3ed852e2009-09-05 21:47:34 +000023674else
cristy8b350f62009-11-15 23:12:43 +000023675 if test "$ac_cv_type_size_t" = yes; then
23676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023678as_fn_error 77 "cannot compute sizeof (size_t)
23679See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023680 else
23681 ac_cv_sizeof_size_t=0
23682 fi
23683fi
cristy8b350f62009-11-15 23:12:43 +000023684
cristy3ed852e2009-09-05 21:47:34 +000023685fi
cristy8b350f62009-11-15 23:12:43 +000023686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023687$as_echo "$ac_cv_sizeof_size_t" >&6; }
23688
23689
23690
23691cat >>confdefs.h <<_ACEOF
23692#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23693_ACEOF
23694
23695
23696
cristy330e9352010-06-01 18:42:49 +000023697# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23698# The cast to long int works around a bug in the HP C Compiler
23699# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23700# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23701# This bug is HP SR number 8606223364.
23702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23703$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023704if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023705 $as_echo_n "(cached) " >&6
23706else
23707 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23708
23709else
23710 if test "$ac_cv_type_ssize_t" = yes; then
23711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023713as_fn_error 77 "cannot compute sizeof (ssize_t)
23714See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023715 else
23716 ac_cv_sizeof_ssize_t=0
23717 fi
23718fi
23719
23720fi
23721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23722$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23723
23724
23725
23726cat >>confdefs.h <<_ACEOF
23727#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23728_ACEOF
23729
23730
23731
cristy3ed852e2009-09-05 21:47:34 +000023732# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23733# The cast to long int works around a bug in the HP C Compiler
23734# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23735# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23736# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023738$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023739if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023740 $as_echo_n "(cached) " >&6
23741else
cristy8b350f62009-11-15 23:12:43 +000023742 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 +000023743
cristy3ed852e2009-09-05 21:47:34 +000023744else
cristy8b350f62009-11-15 23:12:43 +000023745 if test "$ac_cv_type_unsigned_intp" = yes; then
23746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023748as_fn_error 77 "cannot compute sizeof (unsigned int*)
23749See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023750 else
23751 ac_cv_sizeof_unsigned_intp=0
23752 fi
23753fi
cristy8b350f62009-11-15 23:12:43 +000023754
cristy3ed852e2009-09-05 21:47:34 +000023755fi
cristy8b350f62009-11-15 23:12:43 +000023756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023757$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23758
23759
23760
23761cat >>confdefs.h <<_ACEOF
23762#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23763_ACEOF
23764
23765
23766
23767#
23768# Compute sized types for current CPU and compiler options.
23769#
23770
cristy8b350f62009-11-15 23:12:43 +000023771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023772$as_echo_n "checking for signed 8-bit type... " >&6; }
23773INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000023774{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
23775$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023776
23777
cristy8b350f62009-11-15 23:12:43 +000023778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023779$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23780UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000023781{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
23782$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023783
23784
cristy8b350f62009-11-15 23:12:43 +000023785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023786$as_echo_n "checking for signed 16-bit type... " >&6; }
23787INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000023788{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
23789$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023790
23791
cristy8b350f62009-11-15 23:12:43 +000023792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023793$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23794UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000023795{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
23796$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023797
23798
cristy8b350f62009-11-15 23:12:43 +000023799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023800$as_echo_n "checking for signed 32-bit type... " >&6; }
23801INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023802INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023803if test $ac_cv_sizeof_signed_int -eq 4; then
23804 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023805 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023806elif test $ac_cv_sizeof_signed_long -eq 4; then
23807 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023808 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023809fi
cristy09b53e12011-10-14 12:47:22 +000023810{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
23811$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023812
23813
cristy6d5e20f2011-04-25 13:48:54 +000023814
cristy8b350f62009-11-15 23:12:43 +000023815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023816$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23817UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023818UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023819if test $ac_cv_sizeof_unsigned_int -eq 4; then
23820 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023821 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023822elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23823 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023824 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023825fi
cristy09b53e12011-10-14 12:47:22 +000023826{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
23827$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023828
23829
cristy6d5e20f2011-04-25 13:48:54 +000023830
cristy8b350f62009-11-15 23:12:43 +000023831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023832$as_echo_n "checking for signed 64-bit type... " >&6; }
23833INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023834INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023835if test $ac_cv_sizeof_signed_long -eq 8; then
23836 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023837 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023838elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23839 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023840 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023841fi
cristy6d5e20f2011-04-25 13:48:54 +000023842case "${build_os}" in
23843 mingw* )
23844 INT64_F='"I64"'
23845 ;;
23846esac
cristy09b53e12011-10-14 12:47:22 +000023847{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
23848$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023849
23850
cristy6d5e20f2011-04-25 13:48:54 +000023851
cristy8b350f62009-11-15 23:12:43 +000023852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023853$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23854UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023855UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023856if test $ac_cv_sizeof_unsigned_long -eq 8; then
23857 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023858 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023859elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23860 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023861 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023862fi
cristy6d5e20f2011-04-25 13:48:54 +000023863case "${build_os}" in
23864 mingw* )
23865 UINT64_F='"I64"'
23866 ;;
23867esac
cristy09b53e12011-10-14 12:47:22 +000023868{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
23869$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023870
23871
cristy6d5e20f2011-04-25 13:48:54 +000023872
cristy8b350f62009-11-15 23:12:43 +000023873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023874$as_echo_n "checking for unsigned maximum type... " >&6; }
23875UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023876UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023877if test "$UINT64_T" != 'none'; then
23878 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023879 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023880elif test "$UINT32_T" != 'none'; then
23881 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023882 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023883fi
cristy09b53e12011-10-14 12:47:22 +000023884{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
23885$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023886
23887
cristy6d5e20f2011-04-25 13:48:54 +000023888
cristy8b350f62009-11-15 23:12:43 +000023889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023890$as_echo_n "checking for pointer difference type... " >&6; }
23891UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023892UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023893if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23894 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023895 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023896elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23897 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023898 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023899fi
cristy09b53e12011-10-14 12:47:22 +000023900{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
23901$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023902
23903
cristy6d5e20f2011-04-25 13:48:54 +000023904
cristy8b350f62009-11-15 23:12:43 +000023905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023906$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023908/* end confdefs.h. */
23909
23910int
23911main ()
23912{
23913{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23914 ;
23915 return 0;
23916}
23917_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023918if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023919 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23920$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023921else
cristy09b53e12011-10-14 12:47:22 +000023922 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23923$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000023924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023925$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023927/* end confdefs.h. */
23928
23929int
23930main ()
23931{
23932{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23933 ;
23934 return 0;
23935}
23936_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023937if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023938 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23939$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023940
cristy8b350f62009-11-15 23:12:43 +000023941$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023942
23943else
cristy09b53e12011-10-14 12:47:22 +000023944 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23945$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023946
cristy8b350f62009-11-15 23:12:43 +000023947$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023948
23949fi
cristy3ed852e2009-09-05 21:47:34 +000023950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23951fi
cristy3ed852e2009-09-05 21:47:34 +000023952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23953
23954########
23955#
23956# Check for functions
23957#
23958########
cristy73bd4a52010-10-05 11:24:23 +000023959for ac_header in stdlib.h unistd.h
23960do :
23961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23962ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023963if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023964 cat >>confdefs.h <<_ACEOF
23965#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23966_ACEOF
23967
23968fi
23969
23970done
23971
23972for ac_func in getpagesize
23973do :
23974 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023975if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023976 cat >>confdefs.h <<_ACEOF
23977#define HAVE_GETPAGESIZE 1
23978_ACEOF
23979
23980fi
23981done
23982
23983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23984$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023985if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023986 $as_echo_n "(cached) " >&6
23987else
23988 if test "$cross_compiling" = yes; then :
23989 magick_cv_func_mmap_fileio=no
23990else
23991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23992/* end confdefs.h. */
23993$ac_includes_default
23994/* malloc might have been renamed as rpl_malloc. */
23995#undef malloc
23996
23997/*
23998 This test is derived from GNU Autoconf's similar macro.
23999 The purpose of this test is to verify that files may be memory
24000 mapped, and that memory mapping and file I/O are coherent.
24001
24002 The test creates a test file, memory maps the file, updates
24003 the file using the memory map, and then reads the file using
24004 file I/O to verify that the file contains the updates.
24005*/
24006
24007#include <fcntl.h>
24008#include <sys/mman.h>
24009
24010#if !STDC_HEADERS && !HAVE_STDLIB_H
24011char *malloc ();
24012#endif
24013
24014/* This mess was copied from the GNU getpagesize.h. */
24015#if !HAVE_GETPAGESIZE
24016/* Assume that all systems that can run configure have sys/param.h. */
24017# if !HAVE_SYS_PARAM_H
24018# define HAVE_SYS_PARAM_H 1
24019# endif
24020
24021# ifdef _SC_PAGESIZE
24022# define getpagesize() sysconf(_SC_PAGESIZE)
24023# else /* no _SC_PAGESIZE */
24024# if HAVE_SYS_PARAM_H
24025# include <sys/param.h>
24026# ifdef EXEC_PAGESIZE
24027# define getpagesize() EXEC_PAGESIZE
24028# else /* no EXEC_PAGESIZE */
24029# ifdef NBPG
24030# define getpagesize() NBPG * CLSIZE
24031# ifndef CLSIZE
24032# define CLSIZE 1
24033# endif /* no CLSIZE */
24034# else /* no NBPG */
24035# ifdef NBPC
24036# define getpagesize() NBPC
24037# else /* no NBPC */
24038# ifdef PAGESIZE
24039# define getpagesize() PAGESIZE
24040# endif /* PAGESIZE */
24041# endif /* no NBPC */
24042# endif /* no NBPG */
24043# endif /* no EXEC_PAGESIZE */
24044# else /* no HAVE_SYS_PARAM_H */
24045# define getpagesize() 8192 /* punt totally */
24046# endif /* no HAVE_SYS_PARAM_H */
24047# endif /* no _SC_PAGESIZE */
24048
24049#endif /* no HAVE_GETPAGESIZE */
24050
24051int
24052main ()
24053{
24054 char *data, *data2, *data3;
24055 int i, pagesize;
24056 int fd;
24057
24058 pagesize = getpagesize ();
24059
24060 /* First, make a file with some known garbage in it. */
24061 data = (char *) malloc (pagesize);
24062 if (!data)
24063 exit (1);
24064 for (i = 0; i < pagesize; ++i)
24065 *(data + i) = rand ();
24066 umask (0);
24067 fd = creat ("conftest.mmap", 0600);
24068 if (fd < 0)
24069 exit (1);
24070 if (write (fd, data, pagesize) != pagesize)
24071 exit (1);
24072 close (fd);
24073
24074 /* Mmap the file as read/write/shared and verify that we see the
24075 same garbage. */
24076 fd = open ("conftest.mmap", O_RDWR);
24077 if (fd < 0)
24078 exit (1);
24079 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24080 if (data2 == 0)
24081 exit (1);
24082 for (i = 0; i < pagesize; ++i)
24083 if (*(data + i) != *(data2 + i))
24084 exit (1);
24085
24086 /* Finally, make sure that changes to the mapped area
24087 percolate back to the file as seen by read(). */
24088 for (i = 0; i < pagesize; ++i)
24089 *(data2 + i) = *(data2 + i) + 1;
24090 data3 = (char *) malloc (pagesize);
24091 if (!data3)
24092 exit (1);
24093 if (read (fd, data3, pagesize) != pagesize)
24094 exit (1);
24095 for (i = 0; i < pagesize; ++i)
24096 if (*(data2 + i) != *(data3 + i))
24097 exit (1);
24098 close (fd);
24099 exit (0);
24100}
24101_ACEOF
24102if ac_fn_c_try_run "$LINENO"; then :
24103 magick_cv_func_mmap_fileio=yes
24104else
24105 magick_cv_func_mmap_fileio=no
24106fi
24107rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24108 conftest.$ac_objext conftest.beam conftest.$ac_ext
24109fi
24110
24111fi
24112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24113$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24114if test $magick_cv_func_mmap_fileio = yes; then
24115
24116$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24117
24118fi
24119rm -f conftest.mmap
24120
cristy8b350f62009-11-15 23:12:43 +000024121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024122$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024123if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024124 $as_echo_n "(cached) " >&6
24125else
cristy8b350f62009-11-15 23:12:43 +000024126 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024127 ac_cv_func_closedir_void=yes
24128else
cristy8b350f62009-11-15 23:12:43 +000024129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024130/* end confdefs.h. */
24131$ac_includes_default
24132#include <$ac_header_dirent>
24133#ifndef __cplusplus
24134int closedir ();
24135#endif
24136
24137int
24138main ()
24139{
24140return closedir (opendir (".")) != 0;
24141 ;
24142 return 0;
24143}
24144_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024145if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024146 ac_cv_func_closedir_void=no
24147else
cristy8b350f62009-11-15 23:12:43 +000024148 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024149fi
cristy8b350f62009-11-15 23:12:43 +000024150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24151 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024152fi
24153
cristy3ed852e2009-09-05 21:47:34 +000024154fi
cristy8b350f62009-11-15 23:12:43 +000024155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024156$as_echo "$ac_cv_func_closedir_void" >&6; }
24157if test $ac_cv_func_closedir_void = yes; then
24158
cristy8b350f62009-11-15 23:12:43 +000024159$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024160
24161fi
24162
cristycd4c5312009-11-22 01:19:08 +000024163
24164
24165
24166 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024167do :
24168 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024169ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24170"
cristy98dddb52010-11-04 00:30:15 +000024171if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024172 cat >>confdefs.h <<_ACEOF
24173#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24174_ACEOF
24175
24176fi
24177
24178done
24179
cristycd4c5312009-11-22 01:19:08 +000024180
24181
24182
24183
24184
24185
24186
cristy3ed852e2009-09-05 21:47:34 +000024187for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024188do :
24189 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024190if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024191 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024192#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024193_ACEOF
24194
24195fi
24196done
24197
cristy8b350f62009-11-15 23:12:43 +000024198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024199$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024200if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024201 $as_echo_n "(cached) " >&6
24202else
cristy8b350f62009-11-15 23:12:43 +000024203 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024204 ac_cv_func_mmap_fixed_mapped=no
24205else
cristy8b350f62009-11-15 23:12:43 +000024206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024207/* end confdefs.h. */
24208$ac_includes_default
24209/* malloc might have been renamed as rpl_malloc. */
24210#undef malloc
24211
24212/* Thanks to Mike Haertel and Jim Avera for this test.
24213 Here is a matrix of mmap possibilities:
24214 mmap private not fixed
24215 mmap private fixed at somewhere currently unmapped
24216 mmap private fixed at somewhere already mapped
24217 mmap shared not fixed
24218 mmap shared fixed at somewhere currently unmapped
24219 mmap shared fixed at somewhere already mapped
24220 For private mappings, we should verify that changes cannot be read()
24221 back from the file, nor mmap's back from the file at a different
24222 address. (There have been systems where private was not correctly
24223 implemented like the infamous i386 svr4.0, and systems where the
24224 VM page cache was not coherent with the file system buffer cache
24225 like early versions of FreeBSD and possibly contemporary NetBSD.)
24226 For shared mappings, we should conversely verify that changes get
24227 propagated back to all the places they're supposed to be.
24228
24229 Grep wants private fixed already mapped.
24230 The main things grep needs to know about mmap are:
24231 * does it exist and is it safe to write into the mmap'd area
24232 * how to use it (BSD variants) */
24233
24234#include <fcntl.h>
24235#include <sys/mman.h>
24236
24237#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24238char *malloc ();
24239#endif
24240
24241/* This mess was copied from the GNU getpagesize.h. */
24242#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024243# ifdef _SC_PAGESIZE
24244# define getpagesize() sysconf(_SC_PAGESIZE)
24245# else /* no _SC_PAGESIZE */
24246# ifdef HAVE_SYS_PARAM_H
24247# include <sys/param.h>
24248# ifdef EXEC_PAGESIZE
24249# define getpagesize() EXEC_PAGESIZE
24250# else /* no EXEC_PAGESIZE */
24251# ifdef NBPG
24252# define getpagesize() NBPG * CLSIZE
24253# ifndef CLSIZE
24254# define CLSIZE 1
24255# endif /* no CLSIZE */
24256# else /* no NBPG */
24257# ifdef NBPC
24258# define getpagesize() NBPC
24259# else /* no NBPC */
24260# ifdef PAGESIZE
24261# define getpagesize() PAGESIZE
24262# endif /* PAGESIZE */
24263# endif /* no NBPC */
24264# endif /* no NBPG */
24265# endif /* no EXEC_PAGESIZE */
24266# else /* no HAVE_SYS_PARAM_H */
24267# define getpagesize() 8192 /* punt totally */
24268# endif /* no HAVE_SYS_PARAM_H */
24269# endif /* no _SC_PAGESIZE */
24270
24271#endif /* no HAVE_GETPAGESIZE */
24272
24273int
24274main ()
24275{
24276 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024277 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024278 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024279 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024280
24281 pagesize = getpagesize ();
24282
24283 /* First, make a file with some known garbage in it. */
24284 data = (char *) malloc (pagesize);
24285 if (!data)
24286 return 1;
24287 for (i = 0; i < pagesize; ++i)
24288 *(data + i) = rand ();
24289 umask (0);
24290 fd = creat ("conftest.mmap", 0600);
24291 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024292 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024293 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024294 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024295 close (fd);
24296
cristycd4c5312009-11-22 01:19:08 +000024297 /* Next, check that the tail of a page is zero-filled. File must have
24298 non-zero length, otherwise we risk SIGBUS for entire page. */
24299 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24300 if (fd2 < 0)
24301 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024302 cdata2 = "";
24303 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024304 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024305 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024306 if (data2 == MAP_FAILED)
24307 return 6;
24308 for (i = 0; i < pagesize; ++i)
24309 if (*(data2 + i))
24310 return 7;
24311 close (fd2);
24312 if (munmap (data2, pagesize))
24313 return 8;
24314
cristy3ed852e2009-09-05 21:47:34 +000024315 /* Next, try to mmap the file at a fixed address which already has
24316 something else allocated at it. If we can, also make sure that
24317 we see the same garbage. */
24318 fd = open ("conftest.mmap", O_RDWR);
24319 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024320 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024321 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24322 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024323 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024324 for (i = 0; i < pagesize; ++i)
24325 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024326 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024327
24328 /* Finally, make sure that changes to the mapped area do not
24329 percolate back to the file as seen by read(). (This is a bug on
24330 some variants of i386 svr4.0.) */
24331 for (i = 0; i < pagesize; ++i)
24332 *(data2 + i) = *(data2 + i) + 1;
24333 data3 = (char *) malloc (pagesize);
24334 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024335 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024336 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024337 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024338 for (i = 0; i < pagesize; ++i)
24339 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024340 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024341 close (fd);
24342 return 0;
24343}
24344_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024345if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024346 ac_cv_func_mmap_fixed_mapped=yes
24347else
cristy8b350f62009-11-15 23:12:43 +000024348 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024349fi
cristy8b350f62009-11-15 23:12:43 +000024350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24351 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024352fi
24353
cristy3ed852e2009-09-05 21:47:34 +000024354fi
cristy8b350f62009-11-15 23:12:43 +000024355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024356$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24357if test $ac_cv_func_mmap_fixed_mapped = yes; then
24358
cristy8b350f62009-11-15 23:12:43 +000024359$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024360
24361fi
cristycd4c5312009-11-22 01:19:08 +000024362rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024363
cristy3ed852e2009-09-05 21:47:34 +000024364for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024365do :
24366 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024367if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024368 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024369#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024370_ACEOF
24371
24372fi
24373
24374done
24375
cristy3ed852e2009-09-05 21:47:34 +000024376for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024377do :
24378 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24379ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024380if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024381 cat >>confdefs.h <<_ACEOF
24382#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24383_ACEOF
24384
24385fi
24386done
24387
24388if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024390$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024391if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024392 $as_echo_n "(cached) " >&6
24393else
cristy8b350f62009-11-15 23:12:43 +000024394 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024395 ac_cv_func_fork_works=cross
24396else
cristy8b350f62009-11-15 23:12:43 +000024397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024398/* end confdefs.h. */
24399$ac_includes_default
24400int
24401main ()
24402{
24403
24404 /* By Ruediger Kuhlmann. */
24405 return fork () < 0;
24406
24407 ;
24408 return 0;
24409}
24410_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024411if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024412 ac_cv_func_fork_works=yes
24413else
cristy8b350f62009-11-15 23:12:43 +000024414 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024415fi
cristy8b350f62009-11-15 23:12:43 +000024416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24417 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024418fi
24419
cristy3ed852e2009-09-05 21:47:34 +000024420fi
cristy8b350f62009-11-15 23:12:43 +000024421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024422$as_echo "$ac_cv_func_fork_works" >&6; }
24423
24424else
24425 ac_cv_func_fork_works=$ac_cv_func_fork
24426fi
24427if test "x$ac_cv_func_fork_works" = xcross; then
24428 case $host in
24429 *-*-amigaos* | *-*-msdosdjgpp*)
24430 # Override, as these systems have only a dummy fork() stub
24431 ac_cv_func_fork_works=no
24432 ;;
24433 *)
24434 ac_cv_func_fork_works=yes
24435 ;;
24436 esac
cristy8b350f62009-11-15 23:12:43 +000024437 { $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 +000024438$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24439fi
24440ac_cv_func_vfork_works=$ac_cv_func_vfork
24441if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024443$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024444if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024445 $as_echo_n "(cached) " >&6
24446else
cristy8b350f62009-11-15 23:12:43 +000024447 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024448 ac_cv_func_vfork_works=cross
24449else
cristy8b350f62009-11-15 23:12:43 +000024450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024451/* end confdefs.h. */
24452/* Thanks to Paul Eggert for this test. */
24453$ac_includes_default
24454#include <sys/wait.h>
24455#ifdef HAVE_VFORK_H
24456# include <vfork.h>
24457#endif
24458/* On some sparc systems, changes by the child to local and incoming
24459 argument registers are propagated back to the parent. The compiler
24460 is told about this with #include <vfork.h>, but some compilers
24461 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24462 static variable whose address is put into a register that is
24463 clobbered by the vfork. */
24464static void
24465#ifdef __cplusplus
24466sparc_address_test (int arg)
24467# else
24468sparc_address_test (arg) int arg;
24469#endif
24470{
24471 static pid_t child;
24472 if (!child) {
24473 child = vfork ();
24474 if (child < 0) {
24475 perror ("vfork");
24476 _exit(2);
24477 }
24478 if (!child) {
24479 arg = getpid();
24480 write(-1, "", 0);
24481 _exit (arg);
24482 }
24483 }
24484}
24485
24486int
24487main ()
24488{
24489 pid_t parent = getpid ();
24490 pid_t child;
24491
24492 sparc_address_test (0);
24493
24494 child = vfork ();
24495
24496 if (child == 0) {
24497 /* Here is another test for sparc vfork register problems. This
24498 test uses lots of local variables, at least as many local
24499 variables as main has allocated so far including compiler
24500 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24501 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24502 reuse the register of parent for one of the local variables,
24503 since it will think that parent can't possibly be used any more
24504 in this routine. Assigning to the local variable will thus
24505 munge parent in the parent process. */
24506 pid_t
24507 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24508 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24509 /* Convince the compiler that p..p7 are live; otherwise, it might
24510 use the same hardware register for all 8 local variables. */
24511 if (p != p1 || p != p2 || p != p3 || p != p4
24512 || p != p5 || p != p6 || p != p7)
24513 _exit(1);
24514
24515 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24516 from child file descriptors. If the child closes a descriptor
24517 before it execs or exits, this munges the parent's descriptor
24518 as well. Test for this by closing stdout in the child. */
24519 _exit(close(fileno(stdout)) != 0);
24520 } else {
24521 int status;
24522 struct stat st;
24523
24524 while (wait(&status) != child)
24525 ;
24526 return (
24527 /* Was there some problem with vforking? */
24528 child < 0
24529
24530 /* Did the child fail? (This shouldn't happen.) */
24531 || status
24532
24533 /* Did the vfork/compiler bug occur? */
24534 || parent != getpid()
24535
24536 /* Did the file descriptor bug occur? */
24537 || fstat(fileno(stdout), &st) != 0
24538 );
24539 }
24540}
24541_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024542if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024543 ac_cv_func_vfork_works=yes
24544else
cristy8b350f62009-11-15 23:12:43 +000024545 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024546fi
cristy8b350f62009-11-15 23:12:43 +000024547rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24548 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024549fi
24550
cristy3ed852e2009-09-05 21:47:34 +000024551fi
cristy8b350f62009-11-15 23:12:43 +000024552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024553$as_echo "$ac_cv_func_vfork_works" >&6; }
24554
24555fi;
24556if test "x$ac_cv_func_fork_works" = xcross; then
24557 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024558 { $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 +000024559$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24560fi
24561
24562if test "x$ac_cv_func_vfork_works" = xyes; then
24563
cristy8b350f62009-11-15 23:12:43 +000024564$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024565
24566else
24567
cristy8b350f62009-11-15 23:12:43 +000024568$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024569
24570fi
24571if test "x$ac_cv_func_fork_works" = xyes; then
24572
cristy8b350f62009-11-15 23:12:43 +000024573$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024574
24575fi
24576
cristy8b350f62009-11-15 23:12:43 +000024577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024578$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024579if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024580 $as_echo_n "(cached) " >&6
24581else
cristy8b350f62009-11-15 23:12:43 +000024582 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024583 ac_cv_func_memcmp_working=no
24584else
cristy8b350f62009-11-15 23:12:43 +000024585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024586/* end confdefs.h. */
24587$ac_includes_default
24588int
24589main ()
24590{
24591
24592 /* Some versions of memcmp are not 8-bit clean. */
24593 char c0 = '\100', c1 = '\200', c2 = '\201';
24594 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24595 return 1;
24596
24597 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24598 or more and with at least one buffer not starting on a 4-byte boundary.
24599 William Lewis provided this test program. */
24600 {
24601 char foo[21];
24602 char bar[21];
24603 int i;
24604 for (i = 0; i < 4; i++)
24605 {
24606 char *a = foo + i;
24607 char *b = bar + i;
24608 strcpy (a, "--------01111111");
24609 strcpy (b, "--------10000000");
24610 if (memcmp (a, b, 16) >= 0)
24611 return 1;
24612 }
24613 return 0;
24614 }
24615
24616 ;
24617 return 0;
24618}
24619_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024620if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024621 ac_cv_func_memcmp_working=yes
24622else
cristy8b350f62009-11-15 23:12:43 +000024623 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024624fi
cristy8b350f62009-11-15 23:12:43 +000024625rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24626 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024627fi
24628
cristy3ed852e2009-09-05 21:47:34 +000024629fi
cristy8b350f62009-11-15 23:12:43 +000024630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024631$as_echo "$ac_cv_func_memcmp_working" >&6; }
24632test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24633 *" memcmp.$ac_objext "* ) ;;
24634 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24635 ;;
24636esac
24637
24638
cristy3ed852e2009-09-05 21:47:34 +000024639for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024640do :
24641 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24642ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024643if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024644 cat >>confdefs.h <<_ACEOF
24645#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24646_ACEOF
24647
24648fi
24649
24650done
24651
cristy8b350f62009-11-15 23:12:43 +000024652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024653$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024654if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024655 $as_echo_n "(cached) " >&6
24656else
24657 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24658 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24659 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024661/* end confdefs.h. */
24662$ac_includes_default
24663#ifdef HAVE_SYS_SELECT_H
24664# include <sys/select.h>
24665#endif
24666#ifdef HAVE_SYS_SOCKET_H
24667# include <sys/socket.h>
24668#endif
24669
24670int
24671main ()
24672{
24673extern int select ($ac_arg1,
24674 $ac_arg234, $ac_arg234, $ac_arg234,
24675 $ac_arg5);
24676 ;
24677 return 0;
24678}
24679_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024680if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024681 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024682fi
cristy3ed852e2009-09-05 21:47:34 +000024683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24684 done
24685 done
24686done
24687# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024688: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024689
24690fi
cristy8b350f62009-11-15 23:12:43 +000024691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024692$as_echo "$ac_cv_func_select_args" >&6; }
24693ac_save_IFS=$IFS; IFS=','
24694set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24695IFS=$ac_save_IFS
24696shift
24697
24698cat >>confdefs.h <<_ACEOF
24699#define SELECT_TYPE_ARG1 $1
24700_ACEOF
24701
24702
24703cat >>confdefs.h <<_ACEOF
24704#define SELECT_TYPE_ARG234 ($2)
24705_ACEOF
24706
24707
24708cat >>confdefs.h <<_ACEOF
24709#define SELECT_TYPE_ARG5 ($3)
24710_ACEOF
24711
24712rm -f conftest*
24713
cristyda16f162011-02-19 23:52:17 +000024714if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024715 $as_echo_n "(cached) " >&6
24716else
24717 ac_cv_func_setvbuf_reversed=no
24718fi
24719
24720
cristy8b350f62009-11-15 23:12:43 +000024721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024722$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024723if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024724 $as_echo_n "(cached) " >&6
24725else
cristy8b350f62009-11-15 23:12:43 +000024726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024727/* end confdefs.h. */
24728#include <sys/types.h>
24729#include <signal.h>
24730
24731int
24732main ()
24733{
24734return *(signal (0, 0)) (0) == 1;
24735 ;
24736 return 0;
24737}
24738_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024739if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024740 ac_cv_type_signal=int
24741else
cristy8b350f62009-11-15 23:12:43 +000024742 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024743fi
cristy3ed852e2009-09-05 21:47:34 +000024744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24745fi
cristy8b350f62009-11-15 23:12:43 +000024746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024747$as_echo "$ac_cv_type_signal" >&6; }
24748
24749cat >>confdefs.h <<_ACEOF
24750#define RETSIGTYPE $ac_cv_type_signal
24751_ACEOF
24752
24753
cristy8b350f62009-11-15 23:12:43 +000024754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024755$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024756if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024757 $as_echo_n "(cached) " >&6
24758else
cristy8b350f62009-11-15 23:12:43 +000024759 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024760 ac_cv_func_strtod=no
24761else
cristy8b350f62009-11-15 23:12:43 +000024762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024763/* end confdefs.h. */
24764
24765$ac_includes_default
24766#ifndef strtod
24767double strtod ();
24768#endif
24769int
24770main()
24771{
24772 {
24773 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24774 char *string = " +69";
24775 char *term;
24776 double value;
24777 value = strtod (string, &term);
24778 if (value != 69 || term != (string + 4))
24779 return 1;
24780 }
24781
24782 {
24783 /* Under Solaris 2.4, strtod returns the wrong value for the
24784 terminating character under some conditions. */
24785 char *string = "NaN";
24786 char *term;
24787 strtod (string, &term);
24788 if (term != string && *(term - 1) == 0)
24789 return 1;
24790 }
24791 return 0;
24792}
24793
24794_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024795if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024796 ac_cv_func_strtod=yes
24797else
cristy8b350f62009-11-15 23:12:43 +000024798 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024799fi
cristy8b350f62009-11-15 23:12:43 +000024800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24801 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024802fi
24803
cristy3ed852e2009-09-05 21:47:34 +000024804fi
cristy8b350f62009-11-15 23:12:43 +000024805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024806$as_echo "$ac_cv_func_strtod" >&6; }
24807if test $ac_cv_func_strtod = no; then
24808 case " $LIBOBJS " in
24809 *" strtod.$ac_objext "* ) ;;
24810 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24811 ;;
24812esac
24813
cristy8b350f62009-11-15 23:12:43 +000024814ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024815if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024816
cristy3ed852e2009-09-05 21:47:34 +000024817fi
24818
cristy3ed852e2009-09-05 21:47:34 +000024819if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024821$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024822if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024823 $as_echo_n "(cached) " >&6
24824else
24825 ac_check_lib_save_LIBS=$LIBS
24826LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024828/* end confdefs.h. */
24829
24830/* Override any GCC internal prototype to avoid an error.
24831 Use char because int might match the return type of a GCC
24832 builtin and then its argument prototype would still apply. */
24833#ifdef __cplusplus
24834extern "C"
24835#endif
24836char pow ();
24837int
24838main ()
24839{
24840return pow ();
24841 ;
24842 return 0;
24843}
24844_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024845if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024846 ac_cv_lib_m_pow=yes
24847else
cristy8b350f62009-11-15 23:12:43 +000024848 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024849fi
cristy8b350f62009-11-15 23:12:43 +000024850rm -f core conftest.err conftest.$ac_objext \
24851 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024852LIBS=$ac_check_lib_save_LIBS
24853fi
cristy8b350f62009-11-15 23:12:43 +000024854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024855$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024856if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024857 POW_LIB=-lm
24858else
cristy8b350f62009-11-15 23:12:43 +000024859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024860$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24861fi
24862
24863fi
24864
24865fi
24866
cristy7d4a1d62011-10-13 15:54:12 +000024867ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24868if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24869 ac_have_decl=1
24870else
24871 ac_have_decl=0
24872fi
24873
24874cat >>confdefs.h <<_ACEOF
24875#define HAVE_DECL_STRERROR_R $ac_have_decl
24876_ACEOF
24877
24878for ac_func in strerror_r
24879do :
24880 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24881if test "x$ac_cv_func_strerror_r" = xyes; then :
24882 cat >>confdefs.h <<_ACEOF
24883#define HAVE_STRERROR_R 1
24884_ACEOF
24885
24886fi
24887done
24888
24889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24890$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24891if ${ac_cv_func_strerror_r_char_p+:} false; then :
24892 $as_echo_n "(cached) " >&6
24893else
24894
24895 ac_cv_func_strerror_r_char_p=no
24896 if test $ac_cv_have_decl_strerror_r = yes; then
24897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24898/* end confdefs.h. */
24899$ac_includes_default
24900int
24901main ()
24902{
24903
24904 char buf[100];
24905 char x = *strerror_r (0, buf, sizeof buf);
24906 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024907 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024908
24909 ;
24910 return 0;
24911}
24912_ACEOF
24913if ac_fn_c_try_compile "$LINENO"; then :
24914 ac_cv_func_strerror_r_char_p=yes
24915fi
24916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24917 else
24918 # strerror_r is not declared. Choose between
24919 # systems that have relatively inaccessible declarations for the
24920 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24921 # former has a strerror_r that returns char*, while the latter
24922 # has a strerror_r that returns `int'.
24923 # This test should segfault on the DEC system.
24924 if test "$cross_compiling" = yes; then :
24925 :
24926else
24927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24928/* end confdefs.h. */
24929$ac_includes_default
24930 extern char *strerror_r ();
24931int
24932main ()
24933{
24934char buf[100];
24935 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024936 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024937 ;
24938 return 0;
24939}
24940_ACEOF
24941if ac_fn_c_try_run "$LINENO"; then :
24942 ac_cv_func_strerror_r_char_p=yes
24943fi
24944rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24945 conftest.$ac_objext conftest.beam conftest.$ac_ext
24946fi
24947
24948 fi
24949
24950fi
24951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24952$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24953if test $ac_cv_func_strerror_r_char_p = yes; then
24954
24955$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24956
24957fi
24958
cristy3ed852e2009-09-05 21:47:34 +000024959for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024960do :
24961 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024962if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024963 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024964#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024965_ACEOF
24966
cristy8b350f62009-11-15 23:12:43 +000024967ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024968if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024969
cristy8b350f62009-11-15 23:12:43 +000024970$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024971
24972fi
24973
24974fi
24975done
24976
24977
24978
cristy161b9262010-03-20 19:34:32 +000024979#
24980# Find math library
24981#
24982MATH_LIBS=''
24983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24984$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024985if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024986 $as_echo_n "(cached) " >&6
24987else
24988 ac_check_lib_save_LIBS=$LIBS
24989LIBS="-lm $LIBS"
24990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24991/* end confdefs.h. */
24992
24993/* Override any GCC internal prototype to avoid an error.
24994 Use char because int might match the return type of a GCC
24995 builtin and then its argument prototype would still apply. */
24996#ifdef __cplusplus
24997extern "C"
24998#endif
24999char sqrt ();
25000int
25001main ()
25002{
25003return sqrt ();
25004 ;
25005 return 0;
25006}
25007_ACEOF
25008if ac_fn_c_try_link "$LINENO"; then :
25009 ac_cv_lib_m_sqrt=yes
25010else
25011 ac_cv_lib_m_sqrt=no
25012fi
25013rm -f core conftest.err conftest.$ac_objext \
25014 conftest$ac_exeext conftest.$ac_ext
25015LIBS=$ac_check_lib_save_LIBS
25016fi
25017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25018$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025019if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025020 MATH_LIBS="-lm"
25021fi
25022
25023LIBS="$MATH_LIBS $LIBS"
25024
25025
cristy82b20722011-11-05 21:52:36 +000025026for ac_func in acosh asinh atanh 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 isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _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 strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000025027do :
25028 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25029ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025030if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025031 cat >>confdefs.h <<_ACEOF
25032#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25033_ACEOF
25034
25035fi
25036done
25037
25038
cristye43a45e2009-09-28 14:49:00 +000025039#
25040# Check for clock_gettime().
25041#
cristy8b350f62009-11-15 23:12:43 +000025042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025043$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025044if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025045 $as_echo_n "(cached) " >&6
25046else
25047 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025049/* end confdefs.h. */
25050
25051/* Override any GCC internal prototype to avoid an error.
25052 Use char because int might match the return type of a GCC
25053 builtin and then its argument prototype would still apply. */
25054#ifdef __cplusplus
25055extern "C"
25056#endif
25057char clock_gettime ();
25058int
25059main ()
25060{
25061return clock_gettime ();
25062 ;
25063 return 0;
25064}
25065_ACEOF
25066for ac_lib in '' rt; do
25067 if test -z "$ac_lib"; then
25068 ac_res="none required"
25069 else
25070 ac_res=-l$ac_lib
25071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25072 fi
cristy8b350f62009-11-15 23:12:43 +000025073 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025074 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025075fi
cristy8b350f62009-11-15 23:12:43 +000025076rm -f core conftest.err conftest.$ac_objext \
25077 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025078 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025079 break
25080fi
25081done
cristyda16f162011-02-19 23:52:17 +000025082if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025083
cristye43a45e2009-09-28 14:49:00 +000025084else
25085 ac_cv_search_clock_gettime=no
25086fi
25087rm conftest.$ac_ext
25088LIBS=$ac_func_search_save_LIBS
25089fi
cristy8b350f62009-11-15 23:12:43 +000025090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025091$as_echo "$ac_cv_search_clock_gettime" >&6; }
25092ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025093if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025094 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25095
25096
cristy8b350f62009-11-15 23:12:43 +000025097$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025098
cristy8b350f62009-11-15 23:12:43 +000025099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025100$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025102/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025103
25104 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025105int
25106main ()
25107{
25108clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025109 ;
25110 return 0;
25111}
25112_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025113if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025114
cristy09b53e12011-10-14 12:47:22 +000025115 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25116$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025117
cristy8b350f62009-11-15 23:12:43 +000025118$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025119
25120
25121else
cristy09b53e12011-10-14 12:47:22 +000025122 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25123$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025124
25125fi
cristye43a45e2009-09-28 14:49:00 +000025126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25127
25128else
25129
cristy8b350f62009-11-15 23:12:43 +000025130 for ac_func in gettimeofday ftime
25131do :
25132 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25133ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025134if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025135 cat >>confdefs.h <<_ACEOF
25136#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25137_ACEOF
25138 break
25139fi
25140done
25141
25142
25143
25144fi
25145
25146
cristy3ed852e2009-09-05 21:47:34 +000025147########
25148#
25149# Check for function prototypes
25150#
25151########
25152
cristy8b350f62009-11-15 23:12:43 +000025153ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025154#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025155"
cristyda16f162011-02-19 23:52:17 +000025156if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025157 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025158else
cristy8b350f62009-11-15 23:12:43 +000025159 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025160fi
25161
cristy3ed852e2009-09-05 21:47:34 +000025162cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025163#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025164_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025165ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025166#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025167"
cristyda16f162011-02-19 23:52:17 +000025168if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025169 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025170else
cristy8b350f62009-11-15 23:12:43 +000025171 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025172fi
25173
cristy3ed852e2009-09-05 21:47:34 +000025174cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025175#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025176_ACEOF
25177
25178
cristy8b350f62009-11-15 23:12:43 +000025179ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025180#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025181"
cristyda16f162011-02-19 23:52:17 +000025182if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025183 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025184else
cristy8b350f62009-11-15 23:12:43 +000025185 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025186fi
25187
cristy3ed852e2009-09-05 21:47:34 +000025188cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025189#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025190_ACEOF
25191
25192
cristy8b350f62009-11-15 23:12:43 +000025193ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025194#include <stdio.h>
25195#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025196"
cristyda16f162011-02-19 23:52:17 +000025197if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025198 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025199else
cristy8b350f62009-11-15 23:12:43 +000025200 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025201fi
25202
cristy3ed852e2009-09-05 21:47:34 +000025203cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025204#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025205_ACEOF
25206
25207
cristy3ed852e2009-09-05 21:47:34 +000025208########
25209#
25210# C++ Support Tests (For Magick++)
25211#
25212########
25213have_magick_plus_plus='no'
25214if test "$with_magick_plus_plus" = 'yes'; then
25215 OLIBS="$LIBS"
25216 LIBS=''
25217 ac_ext=cpp
25218ac_cpp='$CXXCPP $CPPFLAGS'
25219ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25220ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25221ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25222
25223
25224 # Full set of headers used...
25225 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25226 # functional iomanip iosfwd iostream iterator list string strstream utility
25227 ac_ext=cpp
25228ac_cpp='$CXXCPP $CPPFLAGS'
25229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25232
25233 ac_ext=cpp
25234ac_cpp='$CXXCPP $CPPFLAGS'
25235ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25236ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25237ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25238if test -z "$CXX"; then
25239 if test -n "$CCC"; then
25240 CXX=$CCC
25241 else
25242 if test -n "$ac_tool_prefix"; then
25243 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25244 do
25245 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25246set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025248$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025249if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025250 $as_echo_n "(cached) " >&6
25251else
25252 if test -n "$CXX"; then
25253 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25254else
25255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25256for as_dir in $PATH
25257do
25258 IFS=$as_save_IFS
25259 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025260 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25262 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025264 break 2
25265 fi
25266done
cristy8b350f62009-11-15 23:12:43 +000025267 done
cristy3ed852e2009-09-05 21:47:34 +000025268IFS=$as_save_IFS
25269
25270fi
25271fi
25272CXX=$ac_cv_prog_CXX
25273if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025275$as_echo "$CXX" >&6; }
25276else
cristy8b350f62009-11-15 23:12:43 +000025277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025278$as_echo "no" >&6; }
25279fi
25280
25281
25282 test -n "$CXX" && break
25283 done
25284fi
25285if test -z "$CXX"; then
25286 ac_ct_CXX=$CXX
25287 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25288do
25289 # Extract the first word of "$ac_prog", so it can be a program name with args.
25290set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025292$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025293if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025294 $as_echo_n "(cached) " >&6
25295else
25296 if test -n "$ac_ct_CXX"; then
25297 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25298else
25299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25300for as_dir in $PATH
25301do
25302 IFS=$as_save_IFS
25303 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25306 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025308 break 2
25309 fi
25310done
cristy8b350f62009-11-15 23:12:43 +000025311 done
cristy3ed852e2009-09-05 21:47:34 +000025312IFS=$as_save_IFS
25313
25314fi
25315fi
25316ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25317if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025319$as_echo "$ac_ct_CXX" >&6; }
25320else
cristy8b350f62009-11-15 23:12:43 +000025321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025322$as_echo "no" >&6; }
25323fi
25324
25325
25326 test -n "$ac_ct_CXX" && break
25327done
25328
25329 if test "x$ac_ct_CXX" = x; then
25330 CXX="g++"
25331 else
25332 case $cross_compiling:$ac_tool_warned in
25333yes:)
cristy8b350f62009-11-15 23:12:43 +000025334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25336ac_tool_warned=yes ;;
25337esac
25338 CXX=$ac_ct_CXX
25339 fi
25340fi
25341
25342 fi
25343fi
25344# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025345$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025346set X $ac_compile
25347ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025348for ac_option in --version -v -V -qversion; do
25349 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025350case "(($ac_try" in
25351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25352 *) ac_try_echo=$ac_try;;
25353esac
cristy8b350f62009-11-15 23:12:43 +000025354eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25355$as_echo "$ac_try_echo"; } >&5
25356 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025357 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025358 if test -s conftest.err; then
25359 sed '10a\
25360... rest of stderr output deleted ...
25361 10q' conftest.err >conftest.er1
25362 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025363 fi
cristycd4c5312009-11-22 01:19:08 +000025364 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25366 test $ac_status = 0; }
25367done
cristy3ed852e2009-09-05 21:47:34 +000025368
cristy8b350f62009-11-15 23:12:43 +000025369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025370$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025371if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025372 $as_echo_n "(cached) " >&6
25373else
cristy8b350f62009-11-15 23:12:43 +000025374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025375/* end confdefs.h. */
25376
25377int
25378main ()
25379{
25380#ifndef __GNUC__
25381 choke me
25382#endif
25383
25384 ;
25385 return 0;
25386}
25387_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025388if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025389 ac_compiler_gnu=yes
25390else
cristy8b350f62009-11-15 23:12:43 +000025391 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025392fi
cristy3ed852e2009-09-05 21:47:34 +000025393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25394ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25395
25396fi
cristy8b350f62009-11-15 23:12:43 +000025397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025398$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25399if test $ac_compiler_gnu = yes; then
25400 GXX=yes
25401else
25402 GXX=
25403fi
25404ac_test_CXXFLAGS=${CXXFLAGS+set}
25405ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025407$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025408if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025409 $as_echo_n "(cached) " >&6
25410else
25411 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25412 ac_cxx_werror_flag=yes
25413 ac_cv_prog_cxx_g=no
25414 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025416/* end confdefs.h. */
25417
25418int
25419main ()
25420{
25421
25422 ;
25423 return 0;
25424}
25425_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025426if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025427 ac_cv_prog_cxx_g=yes
25428else
cristy8b350f62009-11-15 23:12:43 +000025429 CXXFLAGS=""
25430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025431/* end confdefs.h. */
25432
25433int
25434main ()
25435{
25436
25437 ;
25438 return 0;
25439}
25440_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025441if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025442
cristy8b350f62009-11-15 23:12:43 +000025443else
25444 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025445 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025447/* end confdefs.h. */
25448
25449int
25450main ()
25451{
25452
25453 ;
25454 return 0;
25455}
25456_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025457if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025458 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025459fi
cristy3ed852e2009-09-05 21:47:34 +000025460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25461fi
cristy3ed852e2009-09-05 21:47:34 +000025462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25463fi
cristy3ed852e2009-09-05 21:47:34 +000025464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25465 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25466fi
cristy8b350f62009-11-15 23:12:43 +000025467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025468$as_echo "$ac_cv_prog_cxx_g" >&6; }
25469if test "$ac_test_CXXFLAGS" = set; then
25470 CXXFLAGS=$ac_save_CXXFLAGS
25471elif test $ac_cv_prog_cxx_g = yes; then
25472 if test "$GXX" = yes; then
25473 CXXFLAGS="-g -O2"
25474 else
25475 CXXFLAGS="-g"
25476 fi
25477else
25478 if test "$GXX" = yes; then
25479 CXXFLAGS="-O2"
25480 else
25481 CXXFLAGS=
25482 fi
25483fi
25484ac_ext=cpp
25485ac_cpp='$CXXCPP $CPPFLAGS'
25486ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25487ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25488ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25489
cristy73bd4a52010-10-05 11:24:23 +000025490depcc="$CXX" am_compiler_list=
25491
25492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25493$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025494if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025495 $as_echo_n "(cached) " >&6
25496else
25497 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25498 # We make a subdir and do the tests there. Otherwise we can end up
25499 # making bogus files that we don't know about and never remove. For
25500 # instance it was reported that on HP-UX the gcc test will end up
25501 # making a dummy file named `D' -- because `-MD' means `put the output
25502 # in D'.
25503 mkdir conftest.dir
25504 # Copy depcomp to subdir because otherwise we won't find it if we're
25505 # using a relative directory.
25506 cp "$am_depcomp" conftest.dir
25507 cd conftest.dir
25508 # We will build objects and dependencies in a subdirectory because
25509 # it helps to detect inapplicable dependency modes. For instance
25510 # both Tru64's cc and ICC support -MD to output dependencies as a
25511 # side effect of compilation, but ICC will put the dependencies in
25512 # the current directory while Tru64 will put them in the object
25513 # directory.
25514 mkdir sub
25515
25516 am_cv_CXX_dependencies_compiler_type=none
25517 if test "$am_compiler_list" = ""; then
25518 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25519 fi
25520 am__universal=false
25521 case " $depcc " in #(
25522 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25523 esac
25524
25525 for depmode in $am_compiler_list; do
25526 # Setup a source with many dependencies, because some compilers
25527 # like to wrap large dependency lists on column 80 (with \), and
25528 # we should not choose a depcomp mode which is confused by this.
25529 #
25530 # We need to recreate these files for each test, as the compiler may
25531 # overwrite some of them when testing with obscure command lines.
25532 # This happens at least with the AIX C compiler.
25533 : > sub/conftest.c
25534 for i in 1 2 3 4 5 6; do
25535 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25536 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25537 # Solaris 8's {/usr,}/bin/sh.
25538 touch sub/conftst$i.h
25539 done
25540 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25541
25542 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25543 # mode. It turns out that the SunPro C++ compiler does not properly
25544 # handle `-M -o', and we need to detect this. Also, some Intel
25545 # versions had trouble with output in subdirs
25546 am__obj=sub/conftest.${OBJEXT-o}
25547 am__minus_obj="-o $am__obj"
25548 case $depmode in
25549 gcc)
25550 # This depmode causes a compiler race in universal mode.
25551 test "$am__universal" = false || continue
25552 ;;
25553 nosideeffect)
25554 # after this tag, mechanisms are not by side-effect, so they'll
25555 # only be used when explicitly requested
25556 if test "x$enable_dependency_tracking" = xyes; then
25557 continue
25558 else
25559 break
25560 fi
25561 ;;
25562 msvisualcpp | msvcmsys)
25563 # This compiler won't grok `-c -o', but also, the minuso test has
25564 # not run yet. These depmodes are late enough in the game, and
25565 # so weak that their functioning should not be impacted.
25566 am__obj=conftest.${OBJEXT-o}
25567 am__minus_obj=
25568 ;;
25569 none) break ;;
25570 esac
25571 if depmode=$depmode \
25572 source=sub/conftest.c object=$am__obj \
25573 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25574 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25575 >/dev/null 2>conftest.err &&
25576 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25577 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25578 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25579 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25580 # icc doesn't choke on unknown options, it will just issue warnings
25581 # or remarks (even with -Werror). So we grep stderr for any message
25582 # that says an option was ignored or not supported.
25583 # When given -MP, icc 7.0 and 7.1 complain thusly:
25584 # icc: Command line warning: ignoring option '-M'; no argument required
25585 # The diagnosis changed in icc 8.0:
25586 # icc: Command line remark: option '-MP' not supported
25587 if (grep 'ignoring option' conftest.err ||
25588 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25589 am_cv_CXX_dependencies_compiler_type=$depmode
25590 break
25591 fi
25592 fi
25593 done
25594
25595 cd ..
25596 rm -rf conftest.dir
25597else
25598 am_cv_CXX_dependencies_compiler_type=none
25599fi
25600
25601fi
25602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25603$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25604CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25605
25606 if
25607 test "x$enable_dependency_tracking" != xno \
25608 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25609 am__fastdepCXX_TRUE=
25610 am__fastdepCXX_FALSE='#'
25611else
25612 am__fastdepCXX_TRUE='#'
25613 am__fastdepCXX_FALSE=
25614fi
25615
25616
25617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25618$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025619if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025620 $as_echo_n "(cached) " >&6
25621else
25622
25623 ac_ext=cpp
25624ac_cpp='$CXXCPP $CPPFLAGS'
25625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25628
25629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25630/* end confdefs.h. */
25631
25632int f(int x){return 1;}
25633int f(char x){return 1;}
25634int f(bool x){return 1;}
25635
25636int
25637main ()
25638{
25639bool b = true; return f(b);
25640 ;
25641 return 0;
25642}
25643_ACEOF
25644if ac_fn_cxx_try_compile "$LINENO"; then :
25645 ax_cv_cxx_bool=yes
25646else
25647 ax_cv_cxx_bool=no
25648fi
25649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25650 ac_ext=cpp
25651ac_cpp='$CXXCPP $CPPFLAGS'
25652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25655
25656
25657fi
25658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25659$as_echo "$ax_cv_cxx_bool" >&6; }
25660if test "$ax_cv_cxx_bool" = yes; then
25661
25662$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25663
25664fi
25665
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25667$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025668if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025669 $as_echo_n "(cached) " >&6
25670else
25671
25672 ac_ext=cpp
25673ac_cpp='$CXXCPP $CPPFLAGS'
25674ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25675ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25676ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25677
25678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25679/* end confdefs.h. */
25680namespace Outer { namespace Inner { int i = 0; }}
25681int
25682main ()
25683{
25684using namespace Outer::Inner; return i;
25685 ;
25686 return 0;
25687}
25688_ACEOF
25689if ac_fn_cxx_try_compile "$LINENO"; then :
25690 ax_cv_cxx_namespaces=yes
25691else
25692 ax_cv_cxx_namespaces=no
25693fi
25694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25695 ac_ext=cpp
25696ac_cpp='$CXXCPP $CPPFLAGS'
25697ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25698ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25699ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25700
25701
25702fi
25703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25704$as_echo "$ax_cv_cxx_namespaces" >&6; }
25705if test "$ax_cv_cxx_namespaces" = yes; then
25706
25707$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25708
25709fi
25710
25711
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25713$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025714if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025715 $as_echo_n "(cached) " >&6
25716else
25717
25718 ac_ext=cpp
25719ac_cpp='$CXXCPP $CPPFLAGS'
25720ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25721ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25722ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25723
25724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25725/* end confdefs.h. */
25726#include <iostream>
25727 std::istream& is = std::cin;
25728int
25729main ()
25730{
25731
25732 ;
25733 return 0;
25734}
25735_ACEOF
25736if ac_fn_cxx_try_compile "$LINENO"; then :
25737 ax_cv_cxx_have_std_namespace=yes
25738else
25739 ax_cv_cxx_have_std_namespace=no
25740fi
25741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25742 ac_ext=cpp
25743ac_cpp='$CXXCPP $CPPFLAGS'
25744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25747
25748
25749fi
25750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25751$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25752 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25753
25754$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25755
25756 fi
25757
25758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25759$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025760if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025761 $as_echo_n "(cached) " >&6
25762else
25763
25764
25765 ac_ext=cpp
25766ac_cpp='$CXXCPP $CPPFLAGS'
25767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25770
25771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25772/* end confdefs.h. */
25773#include <iostream>
25774#include <map>
25775#include <iomanip>
25776#include <cmath>
25777#ifdef HAVE_NAMESPACES
25778using namespace std;
25779#endif
25780int
25781main ()
25782{
25783return 0;
25784 ;
25785 return 0;
25786}
25787_ACEOF
25788if ac_fn_cxx_try_compile "$LINENO"; then :
25789 ac_cv_cxx_have_std_libs=yes
25790else
25791 ac_cv_cxx_have_std_libs=no
25792fi
25793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25794 ac_ext=cpp
25795ac_cpp='$CXXCPP $CPPFLAGS'
25796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25799
25800
25801fi
25802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25803$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25804if test "$ac_cv_cxx_have_std_libs" = yes; then
25805
25806$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25807
25808fi
25809
cristy3ed852e2009-09-05 21:47:34 +000025810
25811 OPENMP_CXXFLAGS=
25812 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025813if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025814 enableval=$enable_openmp;
25815fi
25816
25817 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25819$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025820if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025821 $as_echo_n "(cached) " >&6
25822else
cristy8b350f62009-11-15 23:12:43 +000025823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25824/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025825
25826#ifndef _OPENMP
25827 choke me
25828#endif
25829#include <omp.h>
25830int main () { return omp_get_num_threads (); }
25831
25832_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025833if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025834 ac_cv_prog_cxx_openmp='none needed'
25835else
cristy8b350f62009-11-15 23:12:43 +000025836 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000025837 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25838 ac_save_CXXFLAGS=$CXXFLAGS
25839 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25841/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025842
25843#ifndef _OPENMP
25844 choke me
25845#endif
25846#include <omp.h>
25847int main () { return omp_get_num_threads (); }
25848
25849_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025850if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025851 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025852fi
cristy8b350f62009-11-15 23:12:43 +000025853rm -f core conftest.err conftest.$ac_objext \
25854 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025855 CXXFLAGS=$ac_save_CXXFLAGS
25856 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25857 break
25858 fi
25859 done
25860fi
cristy8b350f62009-11-15 23:12:43 +000025861rm -f core conftest.err conftest.$ac_objext \
25862 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025863fi
cristy8b350f62009-11-15 23:12:43 +000025864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025865$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25866 case $ac_cv_prog_cxx_openmp in #(
25867 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025868 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025869 *)
cristy8b350f62009-11-15 23:12:43 +000025870 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025871 esac
25872 fi
25873
25874
25875 ac_ext=c
25876ac_cpp='$CPP $CPPFLAGS'
25877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25879ac_compiler_gnu=$ac_cv_c_compiler_gnu
25880
25881
cristy8b350f62009-11-15 23:12:43 +000025882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025883$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25884 if \
cristy964cb7f2010-04-25 23:18:00 +000025885 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025886 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025887 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025888 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025889 have_magick_plus_plus='yes'
25890 else
25891 have_magick_plus_plus='no (failed tests)'
25892 fi
cristy09b53e12011-10-14 12:47:22 +000025893 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
25894$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000025895 LIBS="$OLIBS"
25896fi
cristy73bd4a52010-10-05 11:24:23 +000025897 if test "$have_magick_plus_plus" = 'yes'; then
25898 WITH_MAGICK_PLUS_PLUS_TRUE=
25899 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25900else
25901 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25902 WITH_MAGICK_PLUS_PLUS_FALSE=
25903fi
25904
cristy3ed852e2009-09-05 21:47:34 +000025905
25906# Only check for delegate libraries in subdirectories if requested.
25907if test "$enable_delegate_build" != 'no'; then
25908 # Check for delegate sub-directories and add -I & -L options as required.
25909 # This presumes that delegates are installed as detailed in the ImageMagick
25910 # README. If delegates are installed in a standard location where the
25911 # compiler will automatically find them then these options should not be
25912 # required.
25913
25914 #
25915 # Most delegates have includes in the same directory as the library, but not all...
25916 #
25917 # Includes
cristy2542fc62011-12-06 17:50:25 +000025918 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 webp wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025919 if test -d "$builddir/$dir"; then
25920 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25921 else
25922 if test -d "$srcdirfull/$dir"; then
25923 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25924 fi
25925 fi
25926 done
25927
25928 # Libraries
cristy2542fc62011-12-06 17:50:25 +000025929 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 webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025930 if test -d "$builddir/$dir/.libs"; then
25931 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25932 else
25933 if test -d "$srcdirfull/$dir/.libs"; then
25934 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25935 fi
25936 fi
25937 if test -d "$builddir/$dir"; then
25938 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25939 else
25940 if test -d "$srcdirfull/$dir"; then
25941 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25942 fi
25943 fi
25944 done
25945fi
25946
25947# Assume that delegate headers reside under same directory as ImageMagick
25948# installation prefix.
25949MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25950
25951#
25952# Find the X11 RGB database
25953#
cristy8b350f62009-11-15 23:12:43 +000025954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025955$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025956if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025957 $as_echo_n "(cached) " >&6
25958else
25959 # Look for the header file in a standard set of common directories.
25960# Check X11 before X11Rn because it is often a symlink to the current release.
25961 for ac_dir in \
25962 /lib/usr/lib/X11 \
25963 /usr/X11/lib \
25964 /usr/X11R4/lib \
25965 /usr/X11R5/lib \
25966 /usr/X11R6/lib \
25967 /usr/X11R7/lib \
25968 /usr/X386/lib \
25969 /usr/XFree86/lib/X11 \
25970 /usr/athena/lib \
25971 /usr/lib \
25972 /usr/lib/X11 \
25973 /usr/lib/X11R4 \
25974 /usr/lib/X11R5 \
25975 /usr/lib/X11R6 \
25976 /usr/lib/X11R7 \
25977 /usr/local/X11/lib \
25978 /usr/local/X11R4/lib \
25979 /usr/local/X11R5/lib \
25980 /usr/local/X11R6/lib \
25981 /usr/local/lib \
25982 /usr/local/lib/X11 \
25983 /usr/local/lib/X11R4 \
25984 /usr/local/lib/X11R5 \
25985 /usr/local/lib/X11R6 \
25986 /usr/local/lib/X11R7 \
25987 /usr/local/x11r5/lib \
25988 /usr/lpp/Xamples/lib \
25989 /usr/openwin/lib \
25990 /usr/openwin/share/lib \
25991 /usr/unsupported/lib \
25992 /usr/x386/lib \
25993 ; do
25994 if test -f "$ac_dir/X11/rgb.txt"; then
25995 im_cv_x_configure="$ac_dir/X11/"
25996 break
25997 elif test -f "$ac_dir/rgb.txt"; then
25998 im_cv_x_configure="$ac_dir/"
25999 break
26000 fi
26001
26002 done
26003fi
cristy8b350f62009-11-15 23:12:43 +000026004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026005$as_echo "$im_cv_x_configure" >&6; }
26006X11_CONFIGURE_PATH="$im_cv_x_configure"
26007case "${build_os}" in
26008 mingw* )
26009 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26010 ;;
26011esac
26012
26013cat >>confdefs.h <<_ACEOF
26014#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26015_ACEOF
26016
26017
26018#
26019# Find OpenMP library
26020#
26021GOMP_LIBS=''
26022if test "$enable_openmp" != 'no'; then
26023 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000026024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026025$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026026if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026027 $as_echo_n "(cached) " >&6
26028else
26029 ac_check_lib_save_LIBS=$LIBS
26030LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026032/* end confdefs.h. */
26033
26034/* Override any GCC internal prototype to avoid an error.
26035 Use char because int might match the return type of a GCC
26036 builtin and then its argument prototype would still apply. */
26037#ifdef __cplusplus
26038extern "C"
26039#endif
26040char GOMP_parallel_start ();
26041int
26042main ()
26043{
26044return GOMP_parallel_start ();
26045 ;
26046 return 0;
26047}
26048_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026049if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026050 ac_cv_lib_gomp_GOMP_parallel_start=yes
26051else
cristy8b350f62009-11-15 23:12:43 +000026052 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026053fi
cristy8b350f62009-11-15 23:12:43 +000026054rm -f core conftest.err conftest.$ac_objext \
26055 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026056LIBS=$ac_check_lib_save_LIBS
26057fi
cristy8b350f62009-11-15 23:12:43 +000026058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026059$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026060if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026061 GOMP_LIBS="-lgomp"
26062fi
26063 # gcc
26064 else
cristy8b350f62009-11-15 23:12:43 +000026065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026066$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026067if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026068 $as_echo_n "(cached) " >&6
26069else
26070 ac_check_lib_save_LIBS=$LIBS
26071LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026073/* end confdefs.h. */
26074
26075/* Override any GCC internal prototype to avoid an error.
26076 Use char because int might match the return type of a GCC
26077 builtin and then its argument prototype would still apply. */
26078#ifdef __cplusplus
26079extern "C"
26080#endif
26081char sunw_mp_register_warn ();
26082int
26083main ()
26084{
26085return sunw_mp_register_warn ();
26086 ;
26087 return 0;
26088}
26089_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026090if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026091 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26092else
cristy8b350f62009-11-15 23:12:43 +000026093 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026094fi
cristy8b350f62009-11-15 23:12:43 +000026095rm -f core conftest.err conftest.$ac_objext \
26096 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026097LIBS=$ac_check_lib_save_LIBS
26098fi
cristy8b350f62009-11-15 23:12:43 +000026099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026100$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026101if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026102 GOMP_LIBS="-lmtsk"
26103fi
26104 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000026105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026106$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026107if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026108 $as_echo_n "(cached) " >&6
26109else
26110 ac_check_lib_save_LIBS=$LIBS
26111LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026113/* end confdefs.h. */
26114
26115/* Override any GCC internal prototype to avoid an error.
26116 Use char because int might match the return type of a GCC
26117 builtin and then its argument prototype would still apply. */
26118#ifdef __cplusplus
26119extern "C"
26120#endif
26121char _xlsmpFlush ();
26122int
26123main ()
26124{
26125return _xlsmpFlush ();
26126 ;
26127 return 0;
26128}
26129_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026130if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026131 ac_cv_lib_xlsmp__xlsmpFlush=yes
26132else
cristy8b350f62009-11-15 23:12:43 +000026133 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026134fi
cristy8b350f62009-11-15 23:12:43 +000026135rm -f core conftest.err conftest.$ac_objext \
26136 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026137LIBS=$ac_check_lib_save_LIBS
26138fi
cristy8b350f62009-11-15 23:12:43 +000026139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026140$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026141if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026142 GOMP_LIBS="-lxlsmp"
26143fi
26144 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000026145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026146$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026147if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026148 $as_echo_n "(cached) " >&6
26149else
26150 ac_check_lib_save_LIBS=$LIBS
26151LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026153/* end confdefs.h. */
26154
26155/* Override any GCC internal prototype to avoid an error.
26156 Use char because int might match the return type of a GCC
26157 builtin and then its argument prototype would still apply. */
26158#ifdef __cplusplus
26159extern "C"
26160#endif
26161char mp_destroy ();
26162int
26163main ()
26164{
26165return mp_destroy ();
26166 ;
26167 return 0;
26168}
26169_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026170if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026171 ac_cv_lib_mp_mp_destroy=yes
26172else
cristy8b350f62009-11-15 23:12:43 +000026173 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026174fi
cristy8b350f62009-11-15 23:12:43 +000026175rm -f core conftest.err conftest.$ac_objext \
26176 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026177LIBS=$ac_check_lib_save_LIBS
26178fi
cristy8b350f62009-11-15 23:12:43 +000026179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026180$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026181if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026182 GOMP_LIBS="-lmp"
26183fi
26184 # SGI IRIX 6.5 MIPSpro C/C++
26185 fi
26186 LIBS="$GOMP_LIBS $LIBS"
26187fi
26188
26189
26190#
26191# Find Posix threads library
26192#
26193THREAD_LIBS=''
26194if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26195
26196 if test "x$PTHREAD_LIBS" = "x"; then
26197 case "${host_cpu}-${host_os}" in
26198 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026199
26200
26201
26202ac_ext=c
26203ac_cpp='$CPP $CPPFLAGS'
26204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26206ac_compiler_gnu=$ac_cv_c_compiler_gnu
26207
26208magick_pthread_lib_ok=no
26209
26210LIB=-lc_r
26211save_LIBS="$LIBS"
26212LIBS="$LIBS $LIB"
26213
26214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26215$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26217/* end confdefs.h. */
26218#include <pthread.h>
26219int
26220main ()
26221{
26222 pthread_t th;
26223 pthread_join(th, 0);
26224 pthread_attr_init(0);
26225 pthread_cleanup_push(0, 0);
26226 pthread_create(0,0,0,0);
26227 pthread_cleanup_pop(0);
26228 ;
26229 return 0;
26230}
26231_ACEOF
26232if ac_fn_c_try_link "$LINENO"; then :
26233 magick_pthread_lib_ok=yes
26234fi
26235rm -f core conftest.err conftest.$ac_objext \
26236 conftest$ac_exeext conftest.$ac_ext
26237
26238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26239$as_echo "${magick_pthread_lib_ok}" >&6; }
26240if test "$magick_pthread_lib_ok" = yes
26241then
26242 PTHREAD_LIBS=-lc_r
26243 :
26244else
26245
26246 :
26247fi
26248
26249LIBS="$save_LIBS"
26250
26251ac_ext=c
26252ac_cpp='$CPP $CPPFLAGS'
26253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26255ac_compiler_gnu=$ac_cv_c_compiler_gnu
26256
26257 ;;
cristy3ed852e2009-09-05 21:47:34 +000026258 esac
26259 fi
26260
26261 for lib in pthread pthreads; do
26262 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026263
26264
26265
26266ac_ext=c
26267ac_cpp='$CPP $CPPFLAGS'
26268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26270ac_compiler_gnu=$ac_cv_c_compiler_gnu
26271
26272magick_pthread_lib_ok=no
26273
26274LIB=-l$lib
26275save_LIBS="$LIBS"
26276LIBS="$LIBS $LIB"
26277
26278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26279$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26281/* end confdefs.h. */
26282#include <pthread.h>
26283int
26284main ()
26285{
26286 pthread_t th;
26287 pthread_join(th, 0);
26288 pthread_attr_init(0);
26289 pthread_cleanup_push(0, 0);
26290 pthread_create(0,0,0,0);
26291 pthread_cleanup_pop(0);
26292 ;
26293 return 0;
26294}
26295_ACEOF
26296if ac_fn_c_try_link "$LINENO"; then :
26297 magick_pthread_lib_ok=yes
26298fi
26299rm -f core conftest.err conftest.$ac_objext \
26300 conftest$ac_exeext conftest.$ac_ext
26301
26302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26303$as_echo "${magick_pthread_lib_ok}" >&6; }
26304if test "$magick_pthread_lib_ok" = yes
26305then
26306 PTHREAD_LIBS=-l$lib
26307 :
26308else
26309
26310 :
26311fi
26312
26313LIBS="$save_LIBS"
26314
26315ac_ext=c
26316ac_cpp='$CPP $CPPFLAGS'
26317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26319ac_compiler_gnu=$ac_cv_c_compiler_gnu
26320
26321
cristy3ed852e2009-09-05 21:47:34 +000026322 fi
26323 done
26324
26325 THREAD_LIBS="$PTHREAD_LIBS"
26326 LIBS="$LIBS $THREAD_LIBS"
26327fi
26328
26329
26330#
26331# Check for umem.
26332#
26333have_umem='no'
26334UMEM_LIBS=''
26335if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026337$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026338 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26339$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026340 failed=0
26341 passed=0
cristy8b350f62009-11-15 23:12:43 +000026342 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026343if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026344 passed=`expr $passed + 1`
26345else
26346 failed=`expr $failed + 1`
26347fi
26348
26349
cristy8b350f62009-11-15 23:12:43 +000026350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026351$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026352if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026353 $as_echo_n "(cached) " >&6
26354else
26355 ac_check_lib_save_LIBS=$LIBS
26356LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026358/* end confdefs.h. */
26359
26360/* Override any GCC internal prototype to avoid an error.
26361 Use char because int might match the return type of a GCC
26362 builtin and then its argument prototype would still apply. */
26363#ifdef __cplusplus
26364extern "C"
26365#endif
26366char umem_alloc ();
26367int
26368main ()
26369{
26370return umem_alloc ();
26371 ;
26372 return 0;
26373}
26374_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026375if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026376 ac_cv_lib_umem_umem_alloc=yes
26377else
cristy8b350f62009-11-15 23:12:43 +000026378 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026379fi
cristy8b350f62009-11-15 23:12:43 +000026380rm -f core conftest.err conftest.$ac_objext \
26381 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026382LIBS=$ac_check_lib_save_LIBS
26383fi
cristy8b350f62009-11-15 23:12:43 +000026384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026385$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026386if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026387 passed=`expr $passed + 1`
26388else
26389 failed=`expr $failed + 1`
26390fi
26391
cristy8b350f62009-11-15 23:12:43 +000026392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026393$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026394if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026395 $as_echo_n "(cached) " >&6
26396else
26397 ac_check_lib_save_LIBS=$LIBS
26398LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026400/* end confdefs.h. */
26401
26402/* Override any GCC internal prototype to avoid an error.
26403 Use char because int might match the return type of a GCC
26404 builtin and then its argument prototype would still apply. */
26405#ifdef __cplusplus
26406extern "C"
26407#endif
26408char umem_free ();
26409int
26410main ()
26411{
26412return umem_free ();
26413 ;
26414 return 0;
26415}
26416_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026417if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026418 ac_cv_lib_umem_umem_free=yes
26419else
cristy8b350f62009-11-15 23:12:43 +000026420 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026421fi
cristy8b350f62009-11-15 23:12:43 +000026422rm -f core conftest.err conftest.$ac_objext \
26423 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026424LIBS=$ac_check_lib_save_LIBS
26425fi
cristy8b350f62009-11-15 23:12:43 +000026426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026427$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026428if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026429 passed=`expr $passed + 1`
26430else
26431 failed=`expr $failed + 1`
26432fi
26433
cristy8b350f62009-11-15 23:12:43 +000026434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026435$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26436 if test $passed -gt 0; then
26437 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026438 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26439$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026440 have_umem='no (failed tests)'
26441 else
26442 UMEM_LIBS='-lumem'
26443 LIBS="$UMEM_LIBS $LIBS"
26444
cristy8b350f62009-11-15 23:12:43 +000026445$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026446
cristy09b53e12011-10-14 12:47:22 +000026447 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26448$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026449 have_umem='yes'
26450 fi
26451 else
cristy09b53e12011-10-14 12:47:22 +000026452 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26453$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026454 fi
26455fi
cristy73bd4a52010-10-05 11:24:23 +000026456 if test "$have_umem" = 'yes'; then
26457 HasUMEM_TRUE=
26458 HasUMEM_FALSE='#'
26459else
26460 HasUMEM_TRUE='#'
26461 HasUMEM_FALSE=
26462fi
26463
cristy3ed852e2009-09-05 21:47:34 +000026464
26465
26466#
26467# Add support for ccmalloc memory debugging library if requested
26468#
26469have_ccmalloc='no'
26470CCMALLOC_LIBS=''
26471if test "$enable_ccmalloc" = 'yes'; then
26472 # Extract the first word of "ccmalloc", so it can be a program name with args.
26473set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026475$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026476if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026477 $as_echo_n "(cached) " >&6
26478else
26479 case $CCMALLOCDelegate in
26480 [\\/]* | ?:[\\/]*)
26481 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26482 ;;
26483 *)
26484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26485for as_dir in $PATH
26486do
26487 IFS=$as_save_IFS
26488 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026489 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26491 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026493 break 2
26494 fi
26495done
cristy8b350f62009-11-15 23:12:43 +000026496 done
cristy3ed852e2009-09-05 21:47:34 +000026497IFS=$as_save_IFS
26498
26499 ;;
26500esac
26501fi
26502CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26503if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026505$as_echo "$CCMALLOCDelegate" >&6; }
26506else
cristy8b350f62009-11-15 23:12:43 +000026507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026508$as_echo "no" >&6; }
26509fi
26510
26511
26512 if test -n "$CCMALLOCDelegate"; then
26513 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26514 OLIBS="$LIBS"
26515 # Assume that gcc is used with ccmalloc.
26516 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026518$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026519if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026520 $as_echo_n "(cached) " >&6
26521else
26522 ac_check_lib_save_LIBS=$LIBS
26523LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026525/* end confdefs.h. */
26526
26527/* Override any GCC internal prototype to avoid an error.
26528 Use char because int might match the return type of a GCC
26529 builtin and then its argument prototype would still apply. */
26530#ifdef __cplusplus
26531extern "C"
26532#endif
26533char ccmalloc_malloc ();
26534int
26535main ()
26536{
26537return ccmalloc_malloc ();
26538 ;
26539 return 0;
26540}
26541_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026542if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026543 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26544else
cristy8b350f62009-11-15 23:12:43 +000026545 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026546fi
cristy8b350f62009-11-15 23:12:43 +000026547rm -f core conftest.err conftest.$ac_objext \
26548 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026549LIBS=$ac_check_lib_save_LIBS
26550fi
cristy8b350f62009-11-15 23:12:43 +000026551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026552$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026553if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026554 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26555fi
26556
26557 if test -n "$CCMALLOC_LIBS"; then
26558 LIBS="$OLIBS"
26559 LIBS="$LIBS $CCMALLOC_LIBS"
26560 have_ccmalloc='yes'
26561 else
26562 LIBS="$OLIBS"
26563 fi
26564 fi
26565fi
26566
26567#
26568# Add support for efence memory debugging library if requested
26569#
26570if test "$enable_efence" = 'yes'; then
26571 EFENCE_LIBS='-lefence'
26572 LIBS="$EFENCE_LIBS $LIBS"
26573fi
26574
cristy3ed852e2009-09-05 21:47:34 +000026575
26576#
26577# Check for BZLIB
26578#
26579
26580
26581# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026582if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026583 withval=$with_bzlib; with_bzlib=$withval
26584else
26585 with_bzlib='yes'
26586fi
26587
26588
26589if test "$with_bzlib" != 'yes'; then
26590 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26591fi
26592
26593have_bzlib='no'
26594if test "$with_bzlib" != 'no'; then
26595 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000026596 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
26597$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000026598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026599$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026600 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26601$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026602 failed=0
26603 passed=0
26604 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026605 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026606if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026607 passed=`expr $passed + 1`
26608else
26609 failed=`expr $failed + 1`
26610fi
26611
26612
cristy8b350f62009-11-15 23:12:43 +000026613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026614$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026615if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026616 $as_echo_n "(cached) " >&6
26617else
26618 ac_check_lib_save_LIBS=$LIBS
26619LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026621/* end confdefs.h. */
26622
26623/* Override any GCC internal prototype to avoid an error.
26624 Use char because int might match the return type of a GCC
26625 builtin and then its argument prototype would still apply. */
26626#ifdef __cplusplus
26627extern "C"
26628#endif
26629char BZ2_bzDecompress ();
26630int
26631main ()
26632{
26633return BZ2_bzDecompress ();
26634 ;
26635 return 0;
26636}
26637_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026638if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026639 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26640else
cristy8b350f62009-11-15 23:12:43 +000026641 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026642fi
cristy8b350f62009-11-15 23:12:43 +000026643rm -f core conftest.err conftest.$ac_objext \
26644 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026645LIBS=$ac_check_lib_save_LIBS
26646fi
cristy8b350f62009-11-15 23:12:43 +000026647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026648$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026649if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026650 found_libbz=`expr $found_libbz + 1`
26651fi
26652
26653 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026655$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026656if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026657 $as_echo_n "(cached) " >&6
26658else
26659 ac_check_lib_save_LIBS=$LIBS
26660LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026662/* end confdefs.h. */
26663
26664/* Override any GCC internal prototype to avoid an error.
26665 Use char because int might match the return type of a GCC
26666 builtin and then its argument prototype would still apply. */
26667#ifdef __cplusplus
26668extern "C"
26669#endif
26670char _imp__BZ2_decompress ();
26671int
26672main ()
26673{
26674return _imp__BZ2_decompress ();
26675 ;
26676 return 0;
26677}
26678_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026679if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026680 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26681else
cristy8b350f62009-11-15 23:12:43 +000026682 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026683fi
cristy8b350f62009-11-15 23:12:43 +000026684rm -f core conftest.err conftest.$ac_objext \
26685 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026686LIBS=$ac_check_lib_save_LIBS
26687fi
cristy8b350f62009-11-15 23:12:43 +000026688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026689$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026690if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026691 found_libbz=`expr $found_libbz + 1`
26692fi
26693
26694 fi
26695 if test $found_libbz -gt 0; then
26696 passed=`expr $passed + 1`
26697 else
26698 failed=`expr $failed + 1`
26699 fi
cristy8b350f62009-11-15 23:12:43 +000026700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026701$as_echo_n "checking if BZLIB package is complete... " >&6; }
26702 if test $passed -gt 0; then
26703 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026704 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26705$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026706 have_bzlib='no (failed tests)'
26707 else
26708 BZLIB_LIBS='-lbz2'
26709 LIBS="$BZLIB_LIBS $LIBS"
26710
cristy8b350f62009-11-15 23:12:43 +000026711$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026712
cristy09b53e12011-10-14 12:47:22 +000026713 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26714$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026715 have_bzlib='yes'
26716 fi
26717 else
cristy09b53e12011-10-14 12:47:22 +000026718 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26719$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026720 fi
26721fi
cristy73bd4a52010-10-05 11:24:23 +000026722 if test "$have_bzlib" = 'yes'; then
26723 BZLIB_DELEGATE_TRUE=
26724 BZLIB_DELEGATE_FALSE='#'
26725else
26726 BZLIB_DELEGATE_TRUE='#'
26727 BZLIB_DELEGATE_FALSE=
26728fi
26729
cristy3ed852e2009-09-05 21:47:34 +000026730
26731
26732#
26733# Find the X11 include and library directories.
26734#
26735IPC_LIBS=''
26736X11_LIBS=''
26737XEXT_LIBS=''
26738XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026740$as_echo_n "checking for X... " >&6; }
26741
26742
26743# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026744if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026745 withval=$with_x;
26746fi
26747
26748# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26749if test "x$with_x" = xno; then
26750 # The user explicitly disabled X.
26751 have_x=disabled
26752else
26753 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026754 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026755 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026756 $as_echo_n "(cached) " >&6
26757else
26758 # One or both of the vars are not set, and there is no cached value.
26759ac_x_includes=no ac_x_libraries=no
26760rm -f -r conftest.dir
26761if mkdir conftest.dir; then
26762 cd conftest.dir
26763 cat >Imakefile <<'_ACEOF'
26764incroot:
26765 @echo incroot='${INCROOT}'
26766usrlibdir:
26767 @echo usrlibdir='${USRLIBDIR}'
26768libdir:
26769 @echo libdir='${LIBDIR}'
26770_ACEOF
26771 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026772 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026773 for ac_var in incroot usrlibdir libdir; do
26774 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26775 done
26776 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26777 for ac_extension in a so sl dylib la dll; do
26778 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26779 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26780 ac_im_usrlibdir=$ac_im_libdir; break
26781 fi
26782 done
26783 # Screen out bogus values from the imake configuration. They are
26784 # bogus both because they are the default anyway, and because
26785 # using them would break gcc on systems where it needs fixed includes.
26786 case $ac_im_incroot in
26787 /usr/include) ac_x_includes= ;;
26788 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26789 esac
26790 case $ac_im_usrlibdir in
26791 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26792 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26793 esac
26794 fi
26795 cd ..
26796 rm -f -r conftest.dir
26797fi
26798
26799# Standard set of common directories for X headers.
26800# Check X11 before X11Rn because it is often a symlink to the current release.
26801ac_x_header_dirs='
26802/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026803/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026804/usr/X11R6/include
26805/usr/X11R5/include
26806/usr/X11R4/include
26807
26808/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026809/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026810/usr/include/X11R6
26811/usr/include/X11R5
26812/usr/include/X11R4
26813
26814/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026815/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026816/usr/local/X11R6/include
26817/usr/local/X11R5/include
26818/usr/local/X11R4/include
26819
26820/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026821/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026822/usr/local/include/X11R6
26823/usr/local/include/X11R5
26824/usr/local/include/X11R4
26825
26826/usr/X386/include
26827/usr/x386/include
26828/usr/XFree86/include/X11
26829
26830/usr/include
26831/usr/local/include
26832/usr/unsupported/include
26833/usr/athena/include
26834/usr/local/x11r5/include
26835/usr/lpp/Xamples/include
26836
26837/usr/openwin/include
26838/usr/openwin/share/include'
26839
26840if test "$ac_x_includes" = no; then
26841 # Guess where to find include files, by looking for Xlib.h.
26842 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026844/* end confdefs.h. */
26845#include <X11/Xlib.h>
26846_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026847if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026848 # We can compile using X headers with no special include directory.
26849ac_x_includes=
26850else
cristyc7083c12009-10-14 03:16:55 +000026851 for ac_dir in $ac_x_header_dirs; do
26852 if test -r "$ac_dir/X11/Xlib.h"; then
26853 ac_x_includes=$ac_dir
26854 break
26855 fi
26856done
26857fi
cristyda16f162011-02-19 23:52:17 +000026858rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026859fi # $ac_x_includes = no
26860
26861if test "$ac_x_libraries" = no; then
26862 # Check for the libraries.
26863 # See if we find them without any special options.
26864 # Don't add to $LIBS permanently.
26865 ac_save_LIBS=$LIBS
26866 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026868/* end confdefs.h. */
26869#include <X11/Xlib.h>
26870int
26871main ()
26872{
26873XrmInitialize ()
26874 ;
26875 return 0;
26876}
26877_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026878if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026879 LIBS=$ac_save_LIBS
26880# We can link X programs with no special library path.
26881ac_x_libraries=
26882else
cristy8b350f62009-11-15 23:12:43 +000026883 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026884for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26885do
26886 # Don't even attempt the hair of trying to link an X program!
26887 for ac_extension in a so sl dylib la dll; do
26888 if test -r "$ac_dir/libX11.$ac_extension"; then
26889 ac_x_libraries=$ac_dir
26890 break 2
26891 fi
26892 done
26893done
26894fi
cristy8b350f62009-11-15 23:12:43 +000026895rm -f core conftest.err conftest.$ac_objext \
26896 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026897fi # $ac_x_libraries = no
26898
26899case $ac_x_includes,$ac_x_libraries in #(
26900 no,* | *,no | *\'*)
26901 # Didn't find X, or a directory has "'" in its name.
26902 ac_cv_have_x="have_x=no";; #(
26903 *)
26904 # Record where we found X for the cache.
26905 ac_cv_have_x="have_x=yes\
26906 ac_x_includes='$ac_x_includes'\
26907 ac_x_libraries='$ac_x_libraries'"
26908esac
26909fi
26910;; #(
26911 *) have_x=yes;;
26912 esac
26913 eval "$ac_cv_have_x"
26914fi # $with_x != no
26915
26916if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026918$as_echo "$have_x" >&6; }
26919 no_x=yes
26920else
26921 # If each of the values was on the command line, it overrides each guess.
26922 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26923 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26924 # Update the cache value to reflect the command line values.
26925 ac_cv_have_x="have_x=yes\
26926 ac_x_includes='$x_includes'\
26927 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026929$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26930fi
26931
cristy3ed852e2009-09-05 21:47:34 +000026932if test "$no_x" = yes; then
26933 # Not all programs may use this symbol, but it does not hurt to define it.
26934
cristy8b350f62009-11-15 23:12:43 +000026935$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026936
26937 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26938else
26939 if test -n "$x_includes"; then
26940 X_CFLAGS="$X_CFLAGS -I$x_includes"
26941 fi
26942
26943 # It would also be nice to do this for all -L options, not just this one.
26944 if test -n "$x_libraries"; then
26945 X_LIBS="$X_LIBS -L$x_libraries"
26946 # For Solaris; some versions of Sun CC require a space after -R and
26947 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026949$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26950 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26951 ac_xsave_c_werror_flag=$ac_c_werror_flag
26952 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026954/* end confdefs.h. */
26955
26956int
26957main ()
26958{
26959
26960 ;
26961 return 0;
26962}
26963_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026964if ac_fn_c_try_link "$LINENO"; then :
26965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026966$as_echo "no" >&6; }
26967 X_LIBS="$X_LIBS -R$x_libraries"
26968else
cristy8b350f62009-11-15 23:12:43 +000026969 LIBS="$ac_xsave_LIBS -R $x_libraries"
26970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026971/* end confdefs.h. */
26972
26973int
26974main ()
26975{
26976
26977 ;
26978 return 0;
26979}
26980_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026981if ac_fn_c_try_link "$LINENO"; then :
26982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026983$as_echo "yes" >&6; }
26984 X_LIBS="$X_LIBS -R $x_libraries"
26985else
cristy8b350f62009-11-15 23:12:43 +000026986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026987$as_echo "neither works" >&6; }
26988fi
cristy8b350f62009-11-15 23:12:43 +000026989rm -f core conftest.err conftest.$ac_objext \
26990 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026991fi
cristy8b350f62009-11-15 23:12:43 +000026992rm -f core conftest.err conftest.$ac_objext \
26993 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026994 ac_c_werror_flag=$ac_xsave_c_werror_flag
26995 LIBS=$ac_xsave_LIBS
26996 fi
26997
26998 # Check for system-dependent libraries X programs must link with.
26999 # Do this before checking for the system-independent R6 libraries
27000 # (-lICE), since we may need -lsocket or whatever for X linking.
27001
27002 if test "$ISC" = yes; then
27003 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27004 else
27005 # Martyn Johnson says this is needed for Ultrix, if the X
27006 # libraries were built with DECnet support. And Karl Berry says
27007 # the Alpha needs dnet_stub (dnet does not exist).
27008 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027010/* end confdefs.h. */
27011
27012/* Override any GCC internal prototype to avoid an error.
27013 Use char because int might match the return type of a GCC
27014 builtin and then its argument prototype would still apply. */
27015#ifdef __cplusplus
27016extern "C"
27017#endif
27018char XOpenDisplay ();
27019int
27020main ()
27021{
27022return XOpenDisplay ();
27023 ;
27024 return 0;
27025}
27026_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027027if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027028
cristy8b350f62009-11-15 23:12:43 +000027029else
27030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027031$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027032if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027033 $as_echo_n "(cached) " >&6
27034else
27035 ac_check_lib_save_LIBS=$LIBS
27036LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027038/* end confdefs.h. */
27039
27040/* Override any GCC internal prototype to avoid an error.
27041 Use char because int might match the return type of a GCC
27042 builtin and then its argument prototype would still apply. */
27043#ifdef __cplusplus
27044extern "C"
27045#endif
27046char dnet_ntoa ();
27047int
27048main ()
27049{
27050return dnet_ntoa ();
27051 ;
27052 return 0;
27053}
27054_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027055if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027056 ac_cv_lib_dnet_dnet_ntoa=yes
27057else
cristy8b350f62009-11-15 23:12:43 +000027058 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027059fi
cristy8b350f62009-11-15 23:12:43 +000027060rm -f core conftest.err conftest.$ac_objext \
27061 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027062LIBS=$ac_check_lib_save_LIBS
27063fi
cristy8b350f62009-11-15 23:12:43 +000027064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027065$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027066if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027067 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27068fi
27069
27070 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027072$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027073if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027074 $as_echo_n "(cached) " >&6
27075else
27076 ac_check_lib_save_LIBS=$LIBS
27077LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027079/* end confdefs.h. */
27080
27081/* Override any GCC internal prototype to avoid an error.
27082 Use char because int might match the return type of a GCC
27083 builtin and then its argument prototype would still apply. */
27084#ifdef __cplusplus
27085extern "C"
27086#endif
27087char dnet_ntoa ();
27088int
27089main ()
27090{
27091return dnet_ntoa ();
27092 ;
27093 return 0;
27094}
27095_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027096if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027097 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27098else
cristy8b350f62009-11-15 23:12:43 +000027099 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027100fi
cristy8b350f62009-11-15 23:12:43 +000027101rm -f core conftest.err conftest.$ac_objext \
27102 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027103LIBS=$ac_check_lib_save_LIBS
27104fi
cristy8b350f62009-11-15 23:12:43 +000027105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027106$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027107if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027108 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27109fi
27110
27111 fi
27112fi
cristy8b350f62009-11-15 23:12:43 +000027113rm -f core conftest.err conftest.$ac_objext \
27114 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027115 LIBS="$ac_xsave_LIBS"
27116
27117 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27118 # to get the SysV transport functions.
27119 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27120 # needs -lnsl.
27121 # The nsl library prevents programs from opening the X display
27122 # on Irix 5.2, according to T.E. Dickey.
27123 # The functions gethostbyname, getservbyname, and inet_addr are
27124 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027125 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027126if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027127
cristy3ed852e2009-09-05 21:47:34 +000027128fi
27129
cristy3ed852e2009-09-05 21:47:34 +000027130 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027132$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027133if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027134 $as_echo_n "(cached) " >&6
27135else
27136 ac_check_lib_save_LIBS=$LIBS
27137LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027139/* end confdefs.h. */
27140
27141/* Override any GCC internal prototype to avoid an error.
27142 Use char because int might match the return type of a GCC
27143 builtin and then its argument prototype would still apply. */
27144#ifdef __cplusplus
27145extern "C"
27146#endif
27147char gethostbyname ();
27148int
27149main ()
27150{
27151return gethostbyname ();
27152 ;
27153 return 0;
27154}
27155_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027156if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027157 ac_cv_lib_nsl_gethostbyname=yes
27158else
cristy8b350f62009-11-15 23:12:43 +000027159 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027160fi
cristy8b350f62009-11-15 23:12:43 +000027161rm -f core conftest.err conftest.$ac_objext \
27162 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027163LIBS=$ac_check_lib_save_LIBS
27164fi
cristy8b350f62009-11-15 23:12:43 +000027165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027166$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027167if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027168 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27169fi
27170
27171 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027173$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027174if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027175 $as_echo_n "(cached) " >&6
27176else
27177 ac_check_lib_save_LIBS=$LIBS
27178LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027180/* end confdefs.h. */
27181
27182/* Override any GCC internal prototype to avoid an error.
27183 Use char because int might match the return type of a GCC
27184 builtin and then its argument prototype would still apply. */
27185#ifdef __cplusplus
27186extern "C"
27187#endif
27188char gethostbyname ();
27189int
27190main ()
27191{
27192return gethostbyname ();
27193 ;
27194 return 0;
27195}
27196_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027197if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027198 ac_cv_lib_bsd_gethostbyname=yes
27199else
cristy8b350f62009-11-15 23:12:43 +000027200 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027201fi
cristy8b350f62009-11-15 23:12:43 +000027202rm -f core conftest.err conftest.$ac_objext \
27203 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027204LIBS=$ac_check_lib_save_LIBS
27205fi
cristy8b350f62009-11-15 23:12:43 +000027206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027207$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027208if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027209 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27210fi
27211
27212 fi
27213 fi
27214
27215 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27216 # socket/setsockopt and other routines are undefined under SCO ODT
27217 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27218 # on later versions), says Simon Leinen: it contains gethostby*
27219 # variants that don't use the name server (or something). -lsocket
27220 # must be given before -lnsl if both are needed. We assume that
27221 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027222 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027223if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027224
cristy3ed852e2009-09-05 21:47:34 +000027225fi
27226
cristy3ed852e2009-09-05 21:47:34 +000027227 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027229$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027230if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027231 $as_echo_n "(cached) " >&6
27232else
27233 ac_check_lib_save_LIBS=$LIBS
27234LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027236/* end confdefs.h. */
27237
27238/* Override any GCC internal prototype to avoid an error.
27239 Use char because int might match the return type of a GCC
27240 builtin and then its argument prototype would still apply. */
27241#ifdef __cplusplus
27242extern "C"
27243#endif
27244char connect ();
27245int
27246main ()
27247{
27248return connect ();
27249 ;
27250 return 0;
27251}
27252_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027253if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027254 ac_cv_lib_socket_connect=yes
27255else
cristy8b350f62009-11-15 23:12:43 +000027256 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027257fi
cristy8b350f62009-11-15 23:12:43 +000027258rm -f core conftest.err conftest.$ac_objext \
27259 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027260LIBS=$ac_check_lib_save_LIBS
27261fi
cristy8b350f62009-11-15 23:12:43 +000027262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027263$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027264if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027265 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27266fi
27267
27268 fi
27269
27270 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027271 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027272if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027273
cristy3ed852e2009-09-05 21:47:34 +000027274fi
27275
cristy3ed852e2009-09-05 21:47:34 +000027276 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027278$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027279if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027280 $as_echo_n "(cached) " >&6
27281else
27282 ac_check_lib_save_LIBS=$LIBS
27283LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027285/* end confdefs.h. */
27286
27287/* Override any GCC internal prototype to avoid an error.
27288 Use char because int might match the return type of a GCC
27289 builtin and then its argument prototype would still apply. */
27290#ifdef __cplusplus
27291extern "C"
27292#endif
27293char remove ();
27294int
27295main ()
27296{
27297return remove ();
27298 ;
27299 return 0;
27300}
27301_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027302if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027303 ac_cv_lib_posix_remove=yes
27304else
cristy8b350f62009-11-15 23:12:43 +000027305 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027306fi
cristy8b350f62009-11-15 23:12:43 +000027307rm -f core conftest.err conftest.$ac_objext \
27308 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027309LIBS=$ac_check_lib_save_LIBS
27310fi
cristy8b350f62009-11-15 23:12:43 +000027311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027312$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027313if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027314 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27315fi
27316
27317 fi
27318
27319 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027320 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027321if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027322
cristy3ed852e2009-09-05 21:47:34 +000027323fi
27324
cristy3ed852e2009-09-05 21:47:34 +000027325 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027327$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027328if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027329 $as_echo_n "(cached) " >&6
27330else
27331 ac_check_lib_save_LIBS=$LIBS
27332LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027334/* end confdefs.h. */
27335
27336/* Override any GCC internal prototype to avoid an error.
27337 Use char because int might match the return type of a GCC
27338 builtin and then its argument prototype would still apply. */
27339#ifdef __cplusplus
27340extern "C"
27341#endif
27342char shmat ();
27343int
27344main ()
27345{
27346return shmat ();
27347 ;
27348 return 0;
27349}
27350_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027351if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027352 ac_cv_lib_ipc_shmat=yes
27353else
cristy8b350f62009-11-15 23:12:43 +000027354 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027355fi
cristy8b350f62009-11-15 23:12:43 +000027356rm -f core conftest.err conftest.$ac_objext \
27357 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027358LIBS=$ac_check_lib_save_LIBS
27359fi
cristy8b350f62009-11-15 23:12:43 +000027360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027361$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027362if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027363 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27364fi
27365
27366 fi
27367 fi
27368
27369 # Check for libraries that X11R6 Xt/Xaw programs need.
27370 ac_save_LDFLAGS=$LDFLAGS
27371 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27372 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27373 # check for ICE first), but we must link in the order -lSM -lICE or
27374 # we get undefined symbols. So assume we have SM if we have ICE.
27375 # These have to be linked with before -lX11, unlike the other
27376 # libraries we check for below, so use a different variable.
27377 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027379$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027380if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027381 $as_echo_n "(cached) " >&6
27382else
27383 ac_check_lib_save_LIBS=$LIBS
27384LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027386/* end confdefs.h. */
27387
27388/* Override any GCC internal prototype to avoid an error.
27389 Use char because int might match the return type of a GCC
27390 builtin and then its argument prototype would still apply. */
27391#ifdef __cplusplus
27392extern "C"
27393#endif
27394char IceConnectionNumber ();
27395int
27396main ()
27397{
27398return IceConnectionNumber ();
27399 ;
27400 return 0;
27401}
27402_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027403if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027404 ac_cv_lib_ICE_IceConnectionNumber=yes
27405else
cristy8b350f62009-11-15 23:12:43 +000027406 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027407fi
cristy8b350f62009-11-15 23:12:43 +000027408rm -f core conftest.err conftest.$ac_objext \
27409 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027410LIBS=$ac_check_lib_save_LIBS
27411fi
cristy8b350f62009-11-15 23:12:43 +000027412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027413$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027414if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027415 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27416fi
27417
27418 LDFLAGS=$ac_save_LDFLAGS
27419
27420fi
27421
27422if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000027423 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27424$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027426$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027427 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27428$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027429 LDFLAGS="$LDFLAGS $X_LIBS"
27430 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27431 LIBS="$X11_LIBS $LIBS"
27432 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27433
27434
cristy8b350f62009-11-15 23:12:43 +000027435$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027436
27437 #
27438 # Check for X11 shared memory extension
27439 #
27440 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027441 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027442if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027443 have_shmctl='yes'
27444fi
27445
27446 if test "$have_shmctl" != 'yes'; then
27447 PERSIST_LIBS=$LIBS
27448 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027450/* end confdefs.h. */
27451
27452/* Override any GCC internal prototype to avoid an error.
27453 Use char because int might match the return type of a GCC
27454 builtin and then its argument prototype would still apply. */
27455#ifdef __cplusplus
27456extern "C"
27457#endif
27458char shmctl ();
27459int
27460main ()
27461{
27462return shmctl ();
27463 ;
27464 return 0;
27465}
27466_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027467if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027468 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027469fi
cristy8b350f62009-11-15 23:12:43 +000027470rm -f core conftest.err conftest.$ac_objext \
27471 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027472 LIBS=$PERSIST_LIBS
27473 fi
27474
27475 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027477$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027478if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027479 $as_echo_n "(cached) " >&6
27480else
27481 ac_check_lib_save_LIBS=$LIBS
27482LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027484/* end confdefs.h. */
27485
27486/* Override any GCC internal prototype to avoid an error.
27487 Use char because int might match the return type of a GCC
27488 builtin and then its argument prototype would still apply. */
27489#ifdef __cplusplus
27490extern "C"
27491#endif
27492char XShmAttach ();
27493int
27494main ()
27495{
27496return XShmAttach ();
27497 ;
27498 return 0;
27499}
27500_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027501if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027502 ac_cv_lib_Xext_XShmAttach=yes
27503else
cristy8b350f62009-11-15 23:12:43 +000027504 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027505fi
cristy8b350f62009-11-15 23:12:43 +000027506rm -f core conftest.err conftest.$ac_objext \
27507 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027508LIBS=$ac_check_lib_save_LIBS
27509fi
cristy8b350f62009-11-15 23:12:43 +000027510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027511$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027512if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027513 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027514$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027515
27516fi
27517
27518 fi
27519
27520 #
27521 # Check for X11 shape extension
27522 #
cristy8b350f62009-11-15 23:12:43 +000027523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027524$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027525if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027526 $as_echo_n "(cached) " >&6
27527else
27528 ac_check_lib_save_LIBS=$LIBS
27529LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027531/* end confdefs.h. */
27532
27533/* Override any GCC internal prototype to avoid an error.
27534 Use char because int might match the return type of a GCC
27535 builtin and then its argument prototype would still apply. */
27536#ifdef __cplusplus
27537extern "C"
27538#endif
27539char XShapeCombineMask ();
27540int
27541main ()
27542{
27543return XShapeCombineMask ();
27544 ;
27545 return 0;
27546}
27547_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027548if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027549 ac_cv_lib_Xext_XShapeCombineMask=yes
27550else
cristy8b350f62009-11-15 23:12:43 +000027551 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027552fi
cristy8b350f62009-11-15 23:12:43 +000027553rm -f core conftest.err conftest.$ac_objext \
27554 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027555LIBS=$ac_check_lib_save_LIBS
27556fi
cristy8b350f62009-11-15 23:12:43 +000027557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027558$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027559if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027560 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027561$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027562
27563fi
27564
cristy8b350f62009-11-15 23:12:43 +000027565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027566$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027567if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027568 $as_echo_n "(cached) " >&6
27569else
27570 ac_check_lib_save_LIBS=$LIBS
27571LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027573/* end confdefs.h. */
27574
27575/* Override any GCC internal prototype to avoid an error.
27576 Use char because int might match the return type of a GCC
27577 builtin and then its argument prototype would still apply. */
27578#ifdef __cplusplus
27579extern "C"
27580#endif
27581char XtSetEventDispatcher ();
27582int
27583main ()
27584{
27585return XtSetEventDispatcher ();
27586 ;
27587 return 0;
27588}
27589_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027590if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027591 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27592else
cristy8b350f62009-11-15 23:12:43 +000027593 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027594fi
cristy8b350f62009-11-15 23:12:43 +000027595rm -f core conftest.err conftest.$ac_objext \
27596 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027597LIBS=$ac_check_lib_save_LIBS
27598fi
cristy8b350f62009-11-15 23:12:43 +000027599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027600$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027601if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027602 XT_LIBS='-lXt'
27603fi
27604
27605 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27606fi
27607if test "$no_x" != 'yes'; then
27608 have_x='yes'
27609else
27610 have_x='no'
27611fi
cristy73bd4a52010-10-05 11:24:23 +000027612 if test "$have_x" = 'yes'; then
27613 X11_DELEGATE_TRUE=
27614 X11_DELEGATE_FALSE='#'
27615else
27616 X11_DELEGATE_TRUE='#'
27617 X11_DELEGATE_FALSE=
27618fi
27619
cristy3ed852e2009-09-05 21:47:34 +000027620
27621
27622
27623
27624#
27625# Check for ZLIB
27626#
27627
27628# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027629if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027630 withval=$with_zlib; with_zlib=$withval
27631else
27632 with_zlib='yes'
27633fi
27634
27635
27636if test "$with_zlib" != 'yes'; then
27637 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27638fi
27639
27640have_zlib='no'
27641ZLIB_LIBS=''
27642if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000027643 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27644$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027646$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027647 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27648$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027649 ZLIB_LIBS=''
27650 failed=0
27651 passed=0
cristy8b350f62009-11-15 23:12:43 +000027652 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027653if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027654 passed=`expr $passed + 1`
27655else
27656 failed=`expr $failed + 1`
27657fi
27658
27659
cristy8b350f62009-11-15 23:12:43 +000027660 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027661if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027662 passed=`expr $passed + 1`
27663else
27664 failed=`expr $failed + 1`
27665fi
27666
27667
cristy8b350f62009-11-15 23:12:43 +000027668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027669$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027670if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027671 $as_echo_n "(cached) " >&6
27672else
27673 ac_check_lib_save_LIBS=$LIBS
27674LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027676/* end confdefs.h. */
27677
27678/* Override any GCC internal prototype to avoid an error.
27679 Use char because int might match the return type of a GCC
27680 builtin and then its argument prototype would still apply. */
27681#ifdef __cplusplus
27682extern "C"
27683#endif
27684char compress ();
27685int
27686main ()
27687{
27688return compress ();
27689 ;
27690 return 0;
27691}
27692_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027693if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027694 ac_cv_lib_z_compress=yes
27695else
cristy8b350f62009-11-15 23:12:43 +000027696 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027697fi
cristy8b350f62009-11-15 23:12:43 +000027698rm -f core conftest.err conftest.$ac_objext \
27699 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027700LIBS=$ac_check_lib_save_LIBS
27701fi
cristy8b350f62009-11-15 23:12:43 +000027702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027703$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027704if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027705 passed=`expr $passed + 1`
27706else
27707 failed=`expr $failed + 1`
27708fi
27709
cristy8b350f62009-11-15 23:12:43 +000027710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027711$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027712if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027713 $as_echo_n "(cached) " >&6
27714else
27715 ac_check_lib_save_LIBS=$LIBS
27716LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027718/* end confdefs.h. */
27719
27720/* Override any GCC internal prototype to avoid an error.
27721 Use char because int might match the return type of a GCC
27722 builtin and then its argument prototype would still apply. */
27723#ifdef __cplusplus
27724extern "C"
27725#endif
27726char uncompress ();
27727int
27728main ()
27729{
27730return uncompress ();
27731 ;
27732 return 0;
27733}
27734_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027735if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027736 ac_cv_lib_z_uncompress=yes
27737else
cristy8b350f62009-11-15 23:12:43 +000027738 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027739fi
cristy8b350f62009-11-15 23:12:43 +000027740rm -f core conftest.err conftest.$ac_objext \
27741 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027742LIBS=$ac_check_lib_save_LIBS
27743fi
cristy8b350f62009-11-15 23:12:43 +000027744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027745$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027746if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027747 passed=`expr $passed + 1`
27748else
27749 failed=`expr $failed + 1`
27750fi
27751
cristy8b350f62009-11-15 23:12:43 +000027752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027753$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027754if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027755 $as_echo_n "(cached) " >&6
27756else
27757 ac_check_lib_save_LIBS=$LIBS
27758LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027760/* end confdefs.h. */
27761
27762/* Override any GCC internal prototype to avoid an error.
27763 Use char because int might match the return type of a GCC
27764 builtin and then its argument prototype would still apply. */
27765#ifdef __cplusplus
27766extern "C"
27767#endif
27768char deflate ();
27769int
27770main ()
27771{
27772return deflate ();
27773 ;
27774 return 0;
27775}
27776_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027777if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027778 ac_cv_lib_z_deflate=yes
27779else
cristy8b350f62009-11-15 23:12:43 +000027780 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027781fi
cristy8b350f62009-11-15 23:12:43 +000027782rm -f core conftest.err conftest.$ac_objext \
27783 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027784LIBS=$ac_check_lib_save_LIBS
27785fi
cristy8b350f62009-11-15 23:12:43 +000027786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027787$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027788if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027789 passed=`expr $passed + 1`
27790else
27791 failed=`expr $failed + 1`
27792fi
27793
cristy8b350f62009-11-15 23:12:43 +000027794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027795$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027796if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027797 $as_echo_n "(cached) " >&6
27798else
27799 ac_check_lib_save_LIBS=$LIBS
27800LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027802/* end confdefs.h. */
27803
27804/* Override any GCC internal prototype to avoid an error.
27805 Use char because int might match the return type of a GCC
27806 builtin and then its argument prototype would still apply. */
27807#ifdef __cplusplus
27808extern "C"
27809#endif
27810char inflate ();
27811int
27812main ()
27813{
27814return inflate ();
27815 ;
27816 return 0;
27817}
27818_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027819if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027820 ac_cv_lib_z_inflate=yes
27821else
cristy8b350f62009-11-15 23:12:43 +000027822 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027823fi
cristy8b350f62009-11-15 23:12:43 +000027824rm -f core conftest.err conftest.$ac_objext \
27825 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027826LIBS=$ac_check_lib_save_LIBS
27827fi
cristy8b350f62009-11-15 23:12:43 +000027828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027829$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027830if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027831 passed=`expr $passed + 1`
27832else
27833 failed=`expr $failed + 1`
27834fi
27835
cristy8b350f62009-11-15 23:12:43 +000027836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027837$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027838if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027839 $as_echo_n "(cached) " >&6
27840else
27841 ac_check_lib_save_LIBS=$LIBS
27842LIBS="-lz $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 gzseek ();
27853int
27854main ()
27855{
27856return gzseek ();
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_z_gzseek=yes
27863else
cristy8b350f62009-11-15 23:12:43 +000027864 ac_cv_lib_z_gzseek=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_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027871$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027872if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027873 passed=`expr $passed + 1`
27874else
27875 failed=`expr $failed + 1`
27876fi
27877
cristy8b350f62009-11-15 23:12:43 +000027878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027879$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027880if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027881 $as_echo_n "(cached) " >&6
27882else
27883 ac_check_lib_save_LIBS=$LIBS
27884LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027886/* end confdefs.h. */
27887
27888/* Override any GCC internal prototype to avoid an error.
27889 Use char because int might match the return type of a GCC
27890 builtin and then its argument prototype would still apply. */
27891#ifdef __cplusplus
27892extern "C"
27893#endif
27894char gztell ();
27895int
27896main ()
27897{
27898return gztell ();
27899 ;
27900 return 0;
27901}
27902_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027903if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027904 ac_cv_lib_z_gztell=yes
27905else
cristy8b350f62009-11-15 23:12:43 +000027906 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027907fi
cristy8b350f62009-11-15 23:12:43 +000027908rm -f core conftest.err conftest.$ac_objext \
27909 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027910LIBS=$ac_check_lib_save_LIBS
27911fi
cristy8b350f62009-11-15 23:12:43 +000027912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027913$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027914if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027915 passed=`expr $passed + 1`
27916else
27917 failed=`expr $failed + 1`
27918fi
27919
cristy8b350f62009-11-15 23:12:43 +000027920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027921$as_echo_n "checking if ZLIB package is complete... " >&6; }
27922 if test $passed -gt 0; then
27923 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027924 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27925$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027926 have_zlib='no (failed tests)'
27927 else
27928 ZLIB_LIBS='-lz'
27929 LIBS="$ZLIB_LIBS $LIBS"
27930
cristy8b350f62009-11-15 23:12:43 +000027931$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027932
cristy09b53e12011-10-14 12:47:22 +000027933 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27934$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027935 have_zlib='yes'
27936 fi
27937 else
cristy09b53e12011-10-14 12:47:22 +000027938 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27939$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027940 fi
27941fi
cristy73bd4a52010-10-05 11:24:23 +000027942 if test "$have_zlib" = 'yes'; then
27943 ZLIB_DELEGATE_TRUE=
27944 ZLIB_DELEGATE_FALSE='#'
27945else
27946 ZLIB_DELEGATE_TRUE='#'
27947 ZLIB_DELEGATE_FALSE=
27948fi
27949
cristy3ed852e2009-09-05 21:47:34 +000027950
27951
27952#
27953# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27954#
27955LIB_DL=''
27956if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027958$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027959if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027960 $as_echo_n "(cached) " >&6
27961else
27962 ac_check_lib_save_LIBS=$LIBS
27963LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027965/* end confdefs.h. */
27966
27967/* Override any GCC internal prototype to avoid an error.
27968 Use char because int might match the return type of a GCC
27969 builtin and then its argument prototype would still apply. */
27970#ifdef __cplusplus
27971extern "C"
27972#endif
27973char dlopen ();
27974int
27975main ()
27976{
27977return dlopen ();
27978 ;
27979 return 0;
27980}
27981_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027982if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027983 ac_cv_lib_dl_dlopen=yes
27984else
cristy8b350f62009-11-15 23:12:43 +000027985 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027986fi
cristy8b350f62009-11-15 23:12:43 +000027987rm -f core conftest.err conftest.$ac_objext \
27988 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027989LIBS=$ac_check_lib_save_LIBS
27990fi
cristy8b350f62009-11-15 23:12:43 +000027991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027992$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027993if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027994 LIB_DL='-ldl'
27995fi
27996
27997 LIBS="$LIB_DL $LIBS"
27998fi
27999
28000
28001
28002#
28003# Check for Autotrace delegate library.
28004#
28005
28006# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028007if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028008 withval=$with_autotrace; with_autotrace=$withval
28009else
28010 with_autotrace='no'
28011fi
28012
28013
28014if test "$with_autotrace" != 'yes'; then
28015 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28016fi
28017
28018have_autotrace='no'
28019AUTOTRACE_CFLAGS=""
28020AUTOTRACE_LIBS=""
28021AUTOTRACE_PKG=""
28022if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028023 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28024$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028025
28026pkg_failed=no
28027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28028$as_echo_n "checking for AUTOTRACE... " >&6; }
28029
28030if test -n "$AUTOTRACE_CFLAGS"; then
28031 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28032 elif test -n "$PKG_CONFIG"; then
28033 if test -n "$PKG_CONFIG" && \
28034 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28035 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28036 ac_status=$?
28037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28038 test $ac_status = 0; }; then
28039 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28040else
28041 pkg_failed=yes
28042fi
28043 else
28044 pkg_failed=untried
28045fi
28046if test -n "$AUTOTRACE_LIBS"; then
28047 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28048 elif test -n "$PKG_CONFIG"; then
28049 if test -n "$PKG_CONFIG" && \
28050 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28051 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28052 ac_status=$?
28053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28054 test $ac_status = 0; }; then
28055 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28056else
28057 pkg_failed=yes
28058fi
28059 else
28060 pkg_failed=untried
28061fi
28062
28063
28064
28065if test $pkg_failed = yes; then
28066
28067if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28068 _pkg_short_errors_supported=yes
28069else
28070 _pkg_short_errors_supported=no
28071fi
28072 if test $_pkg_short_errors_supported = yes; then
28073 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28074 else
28075 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28076 fi
28077 # Put the nasty error message in config.log where it belongs
28078 echo "$AUTOTRACE_PKG_ERRORS" >&5
28079
28080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28081$as_echo "no" >&6; }
28082 have_autotrace=no
28083elif test $pkg_failed = untried; then
28084 have_autotrace=no
28085else
28086 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28087 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28089$as_echo "yes" >&6; }
28090 have_autotrace=yes
28091fi
cristy09b53e12011-10-14 12:47:22 +000028092 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28093$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028094fi
28095
28096if test "$have_autotrace" = 'yes'; then
28097 failed=0
28098
cristy8b350f62009-11-15 23:12:43 +000028099$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028100
28101 if test "$with_modules" = 'no'; then
28102 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28103 fi
28104fi
28105
cristy73bd4a52010-10-05 11:24:23 +000028106 if test "$have_autotrace" = 'yes'; then
28107 AUTOTRACE_DELEGATE_TRUE=
28108 AUTOTRACE_DELEGATE_FALSE='#'
28109else
28110 AUTOTRACE_DELEGATE_TRUE='#'
28111 AUTOTRACE_DELEGATE_FALSE=
28112fi
28113
cristy3ed852e2009-09-05 21:47:34 +000028114
28115
28116
28117
28118#
28119# Check for Display Postscript delegate library.
28120#
28121
28122# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028123if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028124 withval=$with_dps; with_dps=$withval
28125else
28126 with_dps='yes'
28127fi
28128
28129
28130if test "$with_dps" != 'yes'; then
28131 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28132fi
28133
28134have_dps='no'
28135DPS_LIBS=''
28136if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028137 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28138$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028140$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028141 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28142$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028143 failed=0
28144 passed=0
28145 PERSIST_CPPFLAGS="$CPPFLAGS"
28146 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028147 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 +000028148if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028149 passed=`expr $passed + 1`
28150else
28151 failed=`expr $failed + 1`
28152fi
28153
28154
28155 # DPS issues:
28156 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28157 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28158 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28159 # ImageMagick itself doesn't use -lXt.
28160 have_libdps='no'
28161 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028163$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028164if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028165 $as_echo_n "(cached) " >&6
28166else
28167 ac_check_lib_save_LIBS=$LIBS
28168LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028170/* end confdefs.h. */
28171
28172/* Override any GCC internal prototype to avoid an error.
28173 Use char because int might match the return type of a GCC
28174 builtin and then its argument prototype would still apply. */
28175#ifdef __cplusplus
28176extern "C"
28177#endif
28178char DPSInitialize ();
28179int
28180main ()
28181{
28182return DPSInitialize ();
28183 ;
28184 return 0;
28185}
28186_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028187if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028188 ac_cv_lib_dps_DPSInitialize=yes
28189else
cristy8b350f62009-11-15 23:12:43 +000028190 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028191fi
cristy8b350f62009-11-15 23:12:43 +000028192rm -f core conftest.err conftest.$ac_objext \
28193 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028194LIBS=$ac_check_lib_save_LIBS
28195fi
cristy8b350f62009-11-15 23:12:43 +000028196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028197$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028198if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028199 have_libdps='yes'
28200else
28201 have_libdps='no'
28202fi
28203
28204 if test "$have_libdps" != 'yes'; then
28205 # Unset cache variable so we can try again.
28206 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028208$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028209if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028210 $as_echo_n "(cached) " >&6
28211else
28212 ac_check_lib_save_LIBS=$LIBS
28213LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028215/* end confdefs.h. */
28216
28217/* Override any GCC internal prototype to avoid an error.
28218 Use char because int might match the return type of a GCC
28219 builtin and then its argument prototype would still apply. */
28220#ifdef __cplusplus
28221extern "C"
28222#endif
28223char DPSInitialize ();
28224int
28225main ()
28226{
28227return DPSInitialize ();
28228 ;
28229 return 0;
28230}
28231_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028232if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028233 ac_cv_lib_dps_DPSInitialize=yes
28234else
cristy8b350f62009-11-15 23:12:43 +000028235 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028236fi
cristy8b350f62009-11-15 23:12:43 +000028237rm -f core conftest.err conftest.$ac_objext \
28238 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028239LIBS=$ac_check_lib_save_LIBS
28240fi
cristy8b350f62009-11-15 23:12:43 +000028241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028242$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028243if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028244 have_libdps='yes'
28245else
28246 have_libdps='no'
28247fi
28248
28249 if test "$have_libdps" = 'yes'; then
28250 LIBDPS_XT='-lXt'
28251 fi
28252 fi
28253 if test "$have_libdps" = 'yes'; then
28254 passed=`expr $passed + 1`
28255 else
28256 failed=`expr $failed + 1`
28257 fi
cristy8b350f62009-11-15 23:12:43 +000028258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028259$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028260if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028261 $as_echo_n "(cached) " >&6
28262else
28263 ac_check_lib_save_LIBS=$LIBS
28264LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028266/* end confdefs.h. */
28267
28268/* Override any GCC internal prototype to avoid an error.
28269 Use char because int might match the return type of a GCC
28270 builtin and then its argument prototype would still apply. */
28271#ifdef __cplusplus
28272extern "C"
28273#endif
28274char XDPSPixelsPerPoint ();
28275int
28276main ()
28277{
28278return XDPSPixelsPerPoint ();
28279 ;
28280 return 0;
28281}
28282_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028283if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028284 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28285else
cristy8b350f62009-11-15 23:12:43 +000028286 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028287fi
cristy8b350f62009-11-15 23:12:43 +000028288rm -f core conftest.err conftest.$ac_objext \
28289 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028290LIBS=$ac_check_lib_save_LIBS
28291fi
cristy8b350f62009-11-15 23:12:43 +000028292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028293$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028294if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028295 passed=`expr $passed + 1`
28296else
28297 failed=`expr $failed + 1`
28298fi
28299
cristy8b350f62009-11-15 23:12:43 +000028300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028301$as_echo_n "checking if DPS package is complete... " >&6; }
28302 if test $passed -gt 0; then
28303 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028304 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28305$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028306 have_dps='no (failed tests)'
28307 CPPFLAGS="$PERSIST_CPPFLAGS"
28308 else
28309 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28310 LIBS="$DPS_LIBS $LIBS"
28311
cristy8b350f62009-11-15 23:12:43 +000028312$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028313
cristy09b53e12011-10-14 12:47:22 +000028314 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28315$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028316 have_dps='yes'
28317 fi
28318 else
cristy09b53e12011-10-14 12:47:22 +000028319 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28320$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028321 CPPFLAGS=$PERSIST_CPPFLAGS
28322 fi
28323fi
cristy73bd4a52010-10-05 11:24:23 +000028324 if test "$have_dps" = 'yes'; then
28325 DPS_DELEGATE_TRUE=
28326 DPS_DELEGATE_FALSE='#'
28327else
28328 DPS_DELEGATE_TRUE='#'
28329 DPS_DELEGATE_FALSE=
28330fi
28331
cristy3ed852e2009-09-05 21:47:34 +000028332
28333
28334
28335#
28336# Check for DJVU delegate library.
28337#
28338
28339# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028340if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028341 withval=$with_djvu; with_djvu=$withval
28342else
28343 with_djvu='yes'
28344fi
28345
28346
28347if test "$with_djvu" != 'yes'; then
28348 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28349fi
28350
28351have_djvu='no'
28352DJVU_LIBS=''
28353if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028354 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28355$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028357$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028358 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28359$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028360 failed=0
28361 passed=0
cristy8b350f62009-11-15 23:12:43 +000028362 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 +000028363if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028364 passed=`expr $passed + 1`
28365else
28366 failed=`expr $failed + 1`
28367fi
28368
28369
cristy8b350f62009-11-15 23:12:43 +000028370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028371$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028372if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028373 $as_echo_n "(cached) " >&6
28374else
28375 ac_check_lib_save_LIBS=$LIBS
28376LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028378/* end confdefs.h. */
28379
28380/* Override any GCC internal prototype to avoid an error.
28381 Use char because int might match the return type of a GCC
28382 builtin and then its argument prototype would still apply. */
28383#ifdef __cplusplus
28384extern "C"
28385#endif
28386char ddjvu_context_create ();
28387int
28388main ()
28389{
28390return ddjvu_context_create ();
28391 ;
28392 return 0;
28393}
28394_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028395if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028396 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28397else
cristy8b350f62009-11-15 23:12:43 +000028398 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028399fi
cristy8b350f62009-11-15 23:12:43 +000028400rm -f core conftest.err conftest.$ac_objext \
28401 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028402LIBS=$ac_check_lib_save_LIBS
28403fi
cristy8b350f62009-11-15 23:12:43 +000028404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028405$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028406if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028407 passed=`expr $passed + 1`
28408else
28409 failed=`expr $failed + 1`
28410fi
28411
cristy8b350f62009-11-15 23:12:43 +000028412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028413$as_echo_n "checking if DJVU package is complete... " >&6; }
28414 if test $passed -gt 0; then
28415 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028416 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28417$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028418 have_djvu='no (failed tests)'
28419 else
28420 DJVU_LIBS='-ldjvulibre'
28421 LIBS="$DJVU_LIBS $LIBS"
28422
cristy8b350f62009-11-15 23:12:43 +000028423$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028424
cristy09b53e12011-10-14 12:47:22 +000028425 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28426$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028427 have_djvu='yes'
28428 fi
28429 else
cristy09b53e12011-10-14 12:47:22 +000028430 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28431$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028432 fi
28433fi
cristy73bd4a52010-10-05 11:24:23 +000028434 if test "$have_djvu" = 'yes'; then
28435 DJVU_DELEGATE_TRUE=
28436 DJVU_DELEGATE_FALSE='#'
28437else
28438 DJVU_DELEGATE_TRUE='#'
28439 DJVU_DELEGATE_FALSE=
28440fi
28441
cristy3ed852e2009-09-05 21:47:34 +000028442
28443
28444
28445#
cristy430a7312010-01-21 20:44:04 +000028446# Set DejaVu font directory.
28447#
28448
28449# Check whether --with-dejavu-font-dir was given.
28450if test "${with_dejavu_font_dir+set}" = set; then :
28451 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28452else
28453 with_dejavu_font_dir='default'
28454fi
28455
28456
28457if test "$with_dejavu_font_dir" != 'default'; then
28458 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28459fi
28460
28461
28462#
cristy3ed852e2009-09-05 21:47:34 +000028463# Check for FFTW delegate library.
28464#
28465
28466# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028467if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028468 withval=$with_fftw; with_fftw=$withval
28469else
28470 with_fftw='yes'
28471fi
28472
28473
28474if test "$with_fftw" != 'yes'; then
28475 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28476fi
28477
cristy81beccd2011-10-03 18:17:24 +000028478have_fftw='no'
28479FFTW_LIBS=''
28480if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028481 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28482$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28484$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028485 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28486$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028487 failed=0
28488 passed=0
28489 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28490if test "x$ac_cv_header_fftw3_h" = xyes; then :
28491 passed=`expr $passed + 1`
28492else
28493 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028494fi
28495
cristy81beccd2011-10-03 18:17:24 +000028496
28497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28498$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28499if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28500 $as_echo_n "(cached) " >&6
28501else
28502 ac_check_lib_save_LIBS=$LIBS
28503LIBS="-lfftw3 $LIBS"
28504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28505/* end confdefs.h. */
28506
28507/* Override any GCC internal prototype to avoid an error.
28508 Use char because int might match the return type of a GCC
28509 builtin and then its argument prototype would still apply. */
28510#ifdef __cplusplus
28511extern "C"
28512#endif
28513char fftw_execute ();
28514int
28515main ()
28516{
28517return fftw_execute ();
28518 ;
28519 return 0;
28520}
28521_ACEOF
28522if ac_fn_c_try_link "$LINENO"; then :
28523 ac_cv_lib_fftw3_fftw_execute=yes
28524else
28525 ac_cv_lib_fftw3_fftw_execute=no
28526fi
28527rm -f core conftest.err conftest.$ac_objext \
28528 conftest$ac_exeext conftest.$ac_ext
28529LIBS=$ac_check_lib_save_LIBS
28530fi
28531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28532$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28533if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28534 passed=`expr $passed + 1`
28535else
28536 failed=`expr $failed + 1`
28537fi
28538
28539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28540$as_echo_n "checking if FFTW package is complete... " >&6; }
28541 if test $passed -gt 0; then
28542 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028543 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28544$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028545 have_fftw='no (failed tests)'
28546 else
28547 FFTW_LIBS='-lfftw3'
28548 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028549
cristy8b350f62009-11-15 23:12:43 +000028550$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028551
cristy09b53e12011-10-14 12:47:22 +000028552 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28553$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028554 have_fftw='yes'
28555 fi
28556 else
cristy09b53e12011-10-14 12:47:22 +000028557 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28558$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028559 fi
28560fi
cristy73bd4a52010-10-05 11:24:23 +000028561 if test "$have_fftw" = 'yes'; then
28562 FFTW_DELEGATE_TRUE=
28563 FFTW_DELEGATE_FALSE='#'
28564else
28565 FFTW_DELEGATE_TRUE='#'
28566 FFTW_DELEGATE_FALSE=
28567fi
28568
cristy3ed852e2009-09-05 21:47:34 +000028569
28570
28571
28572#
28573# Check for FlashPIX delegate library.
28574#
28575
28576# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028577if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028578 withval=$with_fpx; with_fpx=$withval
28579else
28580 with_fpx='yes'
28581fi
28582
28583
28584if test "$with_fpx" != 'yes'; then
28585 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28586fi
28587
28588have_fpx='no'
28589FPX_LIBS=''
28590if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028591 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28592$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028594$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028595 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28596$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028597 failed=0
28598 passed=0
28599 ac_ext=cpp
28600ac_cpp='$CXXCPP $CPPFLAGS'
28601ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28602ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28603ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28604
28605
cristy8b350f62009-11-15 23:12:43 +000028606ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028607if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028608 passed=`expr $passed + 1`
28609else
28610 failed=`expr $failed + 1`
28611fi
28612
28613
cristy8b350f62009-11-15 23:12:43 +000028614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028615$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028616if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028617 $as_echo_n "(cached) " >&6
28618else
28619 ac_check_lib_save_LIBS=$LIBS
28620LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028622/* end confdefs.h. */
28623
28624/* Override any GCC internal prototype to avoid an error.
28625 Use char because int might match the return type of a GCC
28626 builtin and then its argument prototype would still apply. */
28627#ifdef __cplusplus
28628extern "C"
28629#endif
28630char FPX_OpenImageByFilename ();
28631int
28632main ()
28633{
28634return FPX_OpenImageByFilename ();
28635 ;
28636 return 0;
28637}
28638_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028639if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028640 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28641else
cristy8b350f62009-11-15 23:12:43 +000028642 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028643fi
cristy8b350f62009-11-15 23:12:43 +000028644rm -f core conftest.err conftest.$ac_objext \
28645 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028646LIBS=$ac_check_lib_save_LIBS
28647fi
cristy8b350f62009-11-15 23:12:43 +000028648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028649$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028650if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028651 passed=`expr $passed + 1`
28652else
28653 failed=`expr $failed + 1`
28654fi
28655
28656 ac_ext=c
28657ac_cpp='$CPP $CPPFLAGS'
28658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28660ac_compiler_gnu=$ac_cv_c_compiler_gnu
28661
cristy8b350f62009-11-15 23:12:43 +000028662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028663$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28664 if test $passed -gt 0; then
28665 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028666 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28667$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028668 have_fpx='no (failed tests)'
28669 else
28670 FPX_LIBS='-lfpx'
28671
cristy8b350f62009-11-15 23:12:43 +000028672$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028673
cristy09b53e12011-10-14 12:47:22 +000028674 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28675$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028676 have_fpx='yes'
28677 PERLMAINCC="$CXX"
28678 fi
28679 else
cristy09b53e12011-10-14 12:47:22 +000028680 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28681$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028682 fi
28683fi
cristy73bd4a52010-10-05 11:24:23 +000028684 if test "$have_fpx" = 'yes'; then
28685 FPX_DELEGATE_TRUE=
28686 FPX_DELEGATE_FALSE='#'
28687else
28688 FPX_DELEGATE_TRUE='#'
28689 FPX_DELEGATE_FALSE=
28690fi
28691
cristy3ed852e2009-09-05 21:47:34 +000028692
28693
28694
28695#
28696# Check for fontconfig delegate library.
28697#
28698
28699# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028700if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028701 withval=$with_fontconfig; with_fontconfig=$withval
28702else
28703 with_fontconfig=$have_x
28704fi
28705
28706
28707if test "$with_fontconfig" != 'yes'; then
28708 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28709fi
28710
28711have_fontconfig='no'
28712FONTCONFIG_CFLAGS=""
28713FONTCONFIG_LIBS=""
28714FONTCONFIG_PKG=""
28715if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028716 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28717$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028718
28719pkg_failed=no
28720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28721$as_echo_n "checking for FONTCONFIG... " >&6; }
28722
28723if test -n "$FONTCONFIG_CFLAGS"; then
28724 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28725 elif test -n "$PKG_CONFIG"; then
28726 if test -n "$PKG_CONFIG" && \
28727 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28728 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28729 ac_status=$?
28730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28731 test $ac_status = 0; }; then
28732 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28733else
28734 pkg_failed=yes
28735fi
28736 else
28737 pkg_failed=untried
28738fi
28739if test -n "$FONTCONFIG_LIBS"; then
28740 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28741 elif test -n "$PKG_CONFIG"; then
28742 if test -n "$PKG_CONFIG" && \
28743 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28744 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28745 ac_status=$?
28746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28747 test $ac_status = 0; }; then
28748 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28749else
28750 pkg_failed=yes
28751fi
28752 else
28753 pkg_failed=untried
28754fi
28755
28756
28757
28758if test $pkg_failed = yes; then
28759
28760if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28761 _pkg_short_errors_supported=yes
28762else
28763 _pkg_short_errors_supported=no
28764fi
28765 if test $_pkg_short_errors_supported = yes; then
28766 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28767 else
28768 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28769 fi
28770 # Put the nasty error message in config.log where it belongs
28771 echo "$FONTCONFIG_PKG_ERRORS" >&5
28772
28773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28774$as_echo "no" >&6; }
28775 have_fontconfig=no
28776elif test $pkg_failed = untried; then
28777 have_fontconfig=no
28778else
28779 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28780 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28782$as_echo "yes" >&6; }
28783 have_fontconfig=yes
28784fi
cristy09b53e12011-10-14 12:47:22 +000028785 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28786$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028787fi
28788
28789if test "$have_fontconfig" = 'yes'; then
28790
cristy8b350f62009-11-15 23:12:43 +000028791$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028792
cristyd09bcf92010-03-25 03:04:45 +000028793 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028794 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028795 fi
cristy3ed852e2009-09-05 21:47:34 +000028796fi
28797
cristy73bd4a52010-10-05 11:24:23 +000028798 if test "$have_fontconfig" = 'yes'; then
28799 FONTCONFIG_DELEGATE_TRUE=
28800 FONTCONFIG_DELEGATE_FALSE='#'
28801else
28802 FONTCONFIG_DELEGATE_TRUE='#'
28803 FONTCONFIG_DELEGATE_FALSE=
28804fi
28805
cristy3ed852e2009-09-05 21:47:34 +000028806
28807
28808
28809
28810#
cristy81beccd2011-10-03 18:17:24 +000028811# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028812#
28813
28814# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028815if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028816 withval=$with_freetype; with_freetype=$withval
28817else
28818 with_freetype='yes'
28819fi
28820
28821
cristy81beccd2011-10-03 18:17:24 +000028822
cristy3ed852e2009-09-05 21:47:34 +000028823if test "$with_freetype" != 'yes'; then
28824 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28825fi
28826
cristy81beccd2011-10-03 18:17:24 +000028827have_freetype='no'
28828FREETYPE_LIBS=''
28829if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028830 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28831$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28833$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028834 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28835$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028836 failed=0
28837 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028838 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028839 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028840 freetype_config=''
28841 # Allow the user to specify the location of freetype.
28842 if test "$with_freetype" != 'yes'; then
28843 if test -x "${with_freetype}/bin/freetype-config"; then
28844 freetype_config="${with_freetype}/bin/freetype-config"
28845 elif test -x "${with_freetype}"; then
28846 freetype_config=${with_freetype}
28847 fi
28848 fi
28849 if test -z "$freetype_config"; then
28850 # Extract the first word of "freetype-config", so it can be a program name with args.
28851set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28853$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028854if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028855 $as_echo_n "(cached) " >&6
28856else
cristy98ca0f52011-10-08 23:19:10 +000028857 case $freetype_config in
28858 [\\/]* | ?:[\\/]*)
28859 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28860 ;;
28861 *)
28862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000028863for as_dir in $PATH
28864do
28865 IFS=$as_save_IFS
28866 test -z "$as_dir" && as_dir=.
28867 for ac_exec_ext in '' $ac_executable_extensions; do
28868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy98ca0f52011-10-08 23:19:10 +000028869 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000028870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28871 break 2
28872 fi
28873done
28874 done
28875IFS=$as_save_IFS
28876
cristy98ca0f52011-10-08 23:19:10 +000028877 ;;
28878esac
cristy81beccd2011-10-03 18:17:24 +000028879fi
cristy98ca0f52011-10-08 23:19:10 +000028880freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000028881if test -n "$freetype_config"; then
28882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28883$as_echo "$freetype_config" >&6; }
28884else
28885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28886$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028887fi
28888
cristy98ca0f52011-10-08 23:19:10 +000028889 fi
28890 if test -n "$freetype_config"; then
28891 freetype_prefix=`${freetype_config} --prefix`
28892 freetype_exec_prefix=`${freetype_config} --exec-prefix`
28893 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
28894 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000028895 fi
28896
28897 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000028898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000028899$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28900if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28901 $as_echo_n "(cached) " >&6
28902else
28903 ac_check_lib_save_LIBS=$LIBS
28904LIBS="-lfreetype $LIBS"
28905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28906/* end confdefs.h. */
28907
28908/* Override any GCC internal prototype to avoid an error.
28909 Use char because int might match the return type of a GCC
28910 builtin and then its argument prototype would still apply. */
28911#ifdef __cplusplus
28912extern "C"
28913#endif
28914char FT_Init_FreeType ();
28915int
28916main ()
28917{
28918return FT_Init_FreeType ();
28919 ;
28920 return 0;
28921}
28922_ACEOF
28923if ac_fn_c_try_link "$LINENO"; then :
28924 ac_cv_lib_freetype_FT_Init_FreeType=yes
28925else
28926 ac_cv_lib_freetype_FT_Init_FreeType=no
28927fi
28928rm -f core conftest.err conftest.$ac_objext \
28929 conftest$ac_exeext conftest.$ac_ext
28930LIBS=$ac_check_lib_save_LIBS
28931fi
28932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28933$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28934if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28935 FREETYPE_LIBS='-lfreetype'
28936fi
28937
cristy98ca0f52011-10-08 23:19:10 +000028938 if test "$FREETYPE_LIBS" != ''; then
28939 passed=`expr $passed + 1`
28940 else
28941 failed=`expr $failed + 1`
28942 LDFLAGS="$PERSIST_LDFLAGS"
28943 fi
cristy81beccd2011-10-03 18:17:24 +000028944 fi
28945
28946 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28947if test "x$ac_cv_header_ft2build_h" = xyes; then :
28948 FT2BUILD_H='#include <ft2build.h>'
28949else
28950 ft2build=''
28951fi
28952
28953
28954 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28955"
28956if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28957 have_freetype_h='yes'
28958else
28959 have_freetype_h='no'
28960fi
28961
28962
cristy98ca0f52011-10-08 23:19:10 +000028963 if test "$have_freetype_h" = 'yes'; then
28964 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000028965 else
cristy98ca0f52011-10-08 23:19:10 +000028966 failed=`expr $failed + 1`
28967 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028968 fi
28969
28970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28971$as_echo_n "checking if FreeType package is complete... " >&6; }
28972 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000028973 if test $failed -gt 0; then
28974 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000028975 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28976$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028977 have_freetype='no (failed tests)'
28978 else
28979 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028980
cristy8b350f62009-11-15 23:12:43 +000028981$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028982
cristy98ca0f52011-10-08 23:19:10 +000028983 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000028984
28985$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28986
cristy81beccd2011-10-03 18:17:24 +000028987 fi
cristy09b53e12011-10-14 12:47:22 +000028988 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28989$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028990 have_freetype='yes'
28991 fi
cristy81beccd2011-10-03 18:17:24 +000028992 else
cristy09b53e12011-10-14 12:47:22 +000028993 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28994$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028995 fi
28996fi
cristy73bd4a52010-10-05 11:24:23 +000028997 if test "$have_freetype" = 'yes'; then
28998 FREETYPE_DELEGATE_TRUE=
28999 FREETYPE_DELEGATE_FALSE='#'
29000else
29001 FREETYPE_DELEGATE_TRUE='#'
29002 FREETYPE_DELEGATE_FALSE=
29003fi
29004
cristy3ed852e2009-09-05 21:47:34 +000029005
29006
29007
cristy3ed852e2009-09-05 21:47:34 +000029008#
29009# Check for Ghostscript library or framework.
29010#
29011# Test for iapi.h & test for gsapi_new_instance in -lgs
29012# or -framework Ghostscript
29013
29014
29015# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029016if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029017 withval=$with_gslib; with_gslib=$withval
29018else
29019 with_gslib='no'
29020fi
29021
29022
cristyb7931f12009-09-25 10:22:21 +000029023gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029024if test "$with_gslib" != 'yes'; then
29025 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29026fi
29027
29028have_gslib='no'
29029GS_LIBS=''
29030if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029031 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29032$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029034$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029035 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29036$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000029037 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029038 failed=0
29039 passed=0
cristy8b350f62009-11-15 23:12:43 +000029040 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 +000029041if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029042 passed=`expr $passed + 1`
29043else
29044 failed=`expr $failed + 1`
29045fi
29046
29047
cristy8b350f62009-11-15 23:12:43 +000029048 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 +000029049if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029050 passed=`expr $passed + 1`
29051else
29052 failed=`expr $failed + 1`
29053fi
29054
29055
cristy73bd4a52010-10-05 11:24:23 +000029056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29057$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029058if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029059 $as_echo_n "(cached) " >&6
29060else
29061 ac_check_framework_save_LIBS=$LIBS
29062LIBS="-framework Ghostscript $LIBS"
29063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29064/* end confdefs.h. */
29065
29066/* Override any GCC internal prototype to avoid an error.
29067 Use char because int might match the return type of a GCC
29068 builtin and then its argument prototype would still apply. */
29069#ifdef __cplusplus
29070extern "C"
29071#endif
29072char gsapi_new_instance ();
29073int
29074main ()
29075{
29076return gsapi_new_instance ();
29077 ;
29078 return 0;
29079}
29080_ACEOF
29081if ac_fn_c_try_link "$LINENO"; then :
29082 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29083else
29084 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29085fi
29086rm -f core conftest.err conftest.$ac_objext \
29087 conftest$ac_exeext conftest.$ac_ext
29088LIBS=$ac_check_framework_save_LIBS
29089fi
29090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29091$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29092if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29093 framework=`expr $framework + 1`
29094else
29095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029096$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029097if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029098 $as_echo_n "(cached) " >&6
29099else
29100 ac_check_lib_save_LIBS=$LIBS
29101LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029103/* end confdefs.h. */
29104
29105/* Override any GCC internal prototype to avoid an error.
29106 Use char because int might match the return type of a GCC
29107 builtin and then its argument prototype would still apply. */
29108#ifdef __cplusplus
29109extern "C"
29110#endif
29111char gsapi_new_instance ();
29112int
29113main ()
29114{
29115return gsapi_new_instance ();
29116 ;
29117 return 0;
29118}
29119_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029120if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029121 ac_cv_lib_gs_gsapi_new_instance=yes
29122else
cristy8b350f62009-11-15 23:12:43 +000029123 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029124fi
cristy8b350f62009-11-15 23:12:43 +000029125rm -f core conftest.err conftest.$ac_objext \
29126 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029127LIBS=$ac_check_lib_save_LIBS
29128fi
cristy8b350f62009-11-15 23:12:43 +000029129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029130$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029131if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029132 passed=`expr $passed + 1`
29133else
29134 failed=`expr $failed + 1`
29135fi
cristy73bd4a52010-10-05 11:24:23 +000029136
29137fi
cristy8b350f62009-11-15 23:12:43 +000029138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029139$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29140 if test $passed -gt 0; then
29141 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029142 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29143$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029144 have_gslib='no (failed tests)'
29145 else
29146 if test $framework -gt 0; then
29147 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029148 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029149 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29150$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029151 else
cristy09b53e12011-10-14 12:47:22 +000029152 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29153$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029154 GS_LIBS='-lgs'
29155 fi
29156 LIBS="$GS_LIBS $LIBS"
29157
cristy8b350f62009-11-15 23:12:43 +000029158$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029159
29160 have_gslib='yes'
29161 fi
29162 else
cristy09b53e12011-10-14 12:47:22 +000029163 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29164$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029165 fi
29166fi
cristy73bd4a52010-10-05 11:24:23 +000029167 if test "$have_gslib" = 'yes'; then
29168 GS_DELEGATE_TRUE=
29169 GS_DELEGATE_FALSE='#'
29170else
29171 GS_DELEGATE_TRUE='#'
29172 GS_DELEGATE_FALSE=
29173fi
29174
cristy3ed852e2009-09-05 21:47:34 +000029175
29176
29177# Set default font search path
29178
29179# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029180if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029181 withval=$with_fontpath; with_fontpath=$withval
29182else
29183 with_fontpath=''
29184fi
29185
29186
29187if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29188 with_fontpath=''
29189else
29190
29191cat >>confdefs.h <<_ACEOF
29192#define MAGICK_FONT_PATH "$with_fontpath"
29193_ACEOF
29194
29195fi
29196if test "$with_fontpath=" != ''; then
29197 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29198fi
29199
29200# Set Ghostscript font directory
29201
29202# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029203if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029204 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29205else
29206 with_gs_font_dir='default'
29207fi
29208
29209
29210if test "$with_gs_font_dir" != 'default'; then
29211 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29212fi
29213
29214
29215#
29216# Check for GVC delegate library.
29217#
29218
29219# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029220if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029221 withval=$with_gvc; with_gvc=$withval
29222else
29223 with_gvc='yes'
29224fi
29225
29226
29227if test "$with_gvc" != 'yes'; then
29228 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29229fi
29230
29231GVC_PKG=""
29232if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029233 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29234$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029235
29236pkg_failed=no
29237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29238$as_echo_n "checking for GVC... " >&6; }
29239
29240if test -n "$GVC_CFLAGS"; then
29241 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29242 elif test -n "$PKG_CONFIG"; then
29243 if test -n "$PKG_CONFIG" && \
29244 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29245 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29246 ac_status=$?
29247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29248 test $ac_status = 0; }; then
29249 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29250else
29251 pkg_failed=yes
29252fi
29253 else
29254 pkg_failed=untried
29255fi
29256if test -n "$GVC_LIBS"; then
29257 pkg_cv_GVC_LIBS="$GVC_LIBS"
29258 elif test -n "$PKG_CONFIG"; then
29259 if test -n "$PKG_CONFIG" && \
29260 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29261 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29262 ac_status=$?
29263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29264 test $ac_status = 0; }; then
29265 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29266else
29267 pkg_failed=yes
29268fi
29269 else
29270 pkg_failed=untried
29271fi
29272
29273
29274
29275if test $pkg_failed = yes; then
29276
29277if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29278 _pkg_short_errors_supported=yes
29279else
29280 _pkg_short_errors_supported=no
29281fi
29282 if test $_pkg_short_errors_supported = yes; then
29283 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29284 else
29285 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29286 fi
29287 # Put the nasty error message in config.log where it belongs
29288 echo "$GVC_PKG_ERRORS" >&5
29289
29290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29291$as_echo "no" >&6; }
29292 have_gvc=no
29293elif test $pkg_failed = untried; then
29294 have_gvc=no
29295else
29296 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29297 GVC_LIBS=$pkg_cv_GVC_LIBS
29298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29299$as_echo "yes" >&6; }
29300 have_gvc=yes
29301fi
cristy09b53e12011-10-14 12:47:22 +000029302 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29303$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029304fi
29305
29306if test "$have_gvc" = 'yes'; then
29307
cristy8b350f62009-11-15 23:12:43 +000029308$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029309
29310 if test "$with_modules" = 'no'; then
29311 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29312 fi
29313fi
29314
cristy73bd4a52010-10-05 11:24:23 +000029315 if test "$have_gvc" = 'yes'; then
29316 GVC_DELEGATE_TRUE=
29317 GVC_DELEGATE_FALSE='#'
29318else
29319 GVC_DELEGATE_TRUE='#'
29320 GVC_DELEGATE_FALSE=
29321fi
29322
cristy3ed852e2009-09-05 21:47:34 +000029323
29324
29325
29326
29327#
29328# Check for JBIG delegate library.
29329#
29330
29331
29332# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029333if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029334 withval=$with_jbig; with_jbig=$withval
29335else
29336 with_jbig='yes'
29337fi
29338
29339
29340have_jbig='no'
29341JBIG_LIBS=''
29342if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029343 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29344$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029346$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029347 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29348$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029349 failed=0
29350 passed=0
cristy8b350f62009-11-15 23:12:43 +000029351 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029352if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029353 passed=`expr $passed + 1`
29354else
29355 failed=`expr $failed + 1`
29356fi
29357
29358
cristy8b350f62009-11-15 23:12:43 +000029359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029360$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029361if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029362 $as_echo_n "(cached) " >&6
29363else
29364 ac_check_lib_save_LIBS=$LIBS
29365LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029367/* end confdefs.h. */
29368
29369/* Override any GCC internal prototype to avoid an error.
29370 Use char because int might match the return type of a GCC
29371 builtin and then its argument prototype would still apply. */
29372#ifdef __cplusplus
29373extern "C"
29374#endif
29375char jbg_dec_init ();
29376int
29377main ()
29378{
29379return jbg_dec_init ();
29380 ;
29381 return 0;
29382}
29383_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029384if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029385 ac_cv_lib_jbig_jbg_dec_init=yes
29386else
cristy8b350f62009-11-15 23:12:43 +000029387 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029388fi
cristy8b350f62009-11-15 23:12:43 +000029389rm -f core conftest.err conftest.$ac_objext \
29390 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029391LIBS=$ac_check_lib_save_LIBS
29392fi
cristy8b350f62009-11-15 23:12:43 +000029393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029394$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029395if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029396 passed=`expr $passed + 1`
29397else
29398 failed=`expr $failed + 1`
29399fi
29400
cristy8b350f62009-11-15 23:12:43 +000029401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029402$as_echo_n "checking if JBIG package is complete... " >&6; }
29403 if test $passed -gt 0; then
29404 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029405 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29406$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029407 have_jbig='no (failed tests)'
29408 else
29409 JBIG_LIBS='-ljbig'
29410 LIBS="$JBIG_LIBS $LIBS"
29411
cristy8b350f62009-11-15 23:12:43 +000029412$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029413
cristy09b53e12011-10-14 12:47:22 +000029414 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29415$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029416 have_jbig='yes'
29417 fi
29418 else
cristy09b53e12011-10-14 12:47:22 +000029419 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29420$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029421 fi
29422fi
cristy73bd4a52010-10-05 11:24:23 +000029423 if test "$have_jbig" = 'yes'; then
29424 JBIG_DELEGATE_TRUE=
29425 JBIG_DELEGATE_FALSE='#'
29426else
29427 JBIG_DELEGATE_TRUE='#'
29428 JBIG_DELEGATE_FALSE=
29429fi
29430
cristy3ed852e2009-09-05 21:47:34 +000029431
29432
29433
29434#
29435# Check for JPEG delegate library.
29436#
29437
29438# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029439if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029440 withval=$with_jpeg; with_jpeg=$withval
29441else
29442 with_jpeg='yes'
29443fi
29444
29445
29446if test "$with_jpeg" != 'yes'; then
29447 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29448fi
29449
29450have_jpeg='no'
29451JPEG_LIBS=''
29452if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029453 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29454$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029456$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029457 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29458$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029459 failed=0
29460 passed=0
cristy8b350f62009-11-15 23:12:43 +000029461 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029462if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029463 passed=`expr $passed + 1`
29464else
29465 failed=`expr $failed + 1`
29466fi
29467
29468
cristy8b350f62009-11-15 23:12:43 +000029469 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029470if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029471 passed=`expr $passed + 1`
29472else
29473 failed=`expr $failed + 1`
29474fi
29475
29476
cristy8b350f62009-11-15 23:12:43 +000029477 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029478if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029479 passed=`expr $passed + 1`
29480else
29481 failed=`expr $failed + 1`
29482fi
29483
29484
cristy8b350f62009-11-15 23:12:43 +000029485 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029486if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029487 passed=`expr $passed + 1`
29488else
29489 failed=`expr $failed + 1`
29490fi
29491
29492
cristy8b350f62009-11-15 23:12:43 +000029493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029494$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029495if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029496 $as_echo_n "(cached) " >&6
29497else
29498 ac_check_lib_save_LIBS=$LIBS
29499LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029501/* end confdefs.h. */
29502
29503/* Override any GCC internal prototype to avoid an error.
29504 Use char because int might match the return type of a GCC
29505 builtin and then its argument prototype would still apply. */
29506#ifdef __cplusplus
29507extern "C"
29508#endif
29509char jpeg_read_header ();
29510int
29511main ()
29512{
29513return jpeg_read_header ();
29514 ;
29515 return 0;
29516}
29517_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029518if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029519 ac_cv_lib_jpeg_jpeg_read_header=yes
29520else
cristy8b350f62009-11-15 23:12:43 +000029521 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029522fi
cristy8b350f62009-11-15 23:12:43 +000029523rm -f core conftest.err conftest.$ac_objext \
29524 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029525LIBS=$ac_check_lib_save_LIBS
29526fi
cristy8b350f62009-11-15 23:12:43 +000029527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029528$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029529if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029530 passed=`expr $passed + 1`
29531else
29532 failed=`expr $failed + 1`
29533fi
29534
29535
29536# Test for compatible JPEG library
29537if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029539$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029540if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029541 $as_echo_n "(cached) " >&6
29542else
cristy8b350f62009-11-15 23:12:43 +000029543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029544/* end confdefs.h. */
29545#include <stdio.h>
29546#include <stdlib.h>
29547#include <jpeglib.h>
29548
29549int
29550main ()
29551{
29552
29553#if JPEG_LIB_VERSION < 62
29554#error IJG JPEG library must be version 6b or newer!
29555#endif
29556return 0;
29557
29558 ;
29559 return 0;
29560}
29561_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029562if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029563 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29564else
cristy8b350f62009-11-15 23:12:43 +000029565 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029566fi
cristy3ed852e2009-09-05 21:47:34 +000029567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29568fi
cristy8b350f62009-11-15 23:12:43 +000029569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029570$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29571fi
cristy8b350f62009-11-15 23:12:43 +000029572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029573$as_echo_n "checking if JPEG package is complete... " >&6; }
29574 if test $passed -gt 0; then
29575 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029576 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29577$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029578 have_jpeg='no (failed tests)'
29579 else
29580 JPEG_LIBS='-ljpeg'
29581 LIBS="$JPEG_LIBS $LIBS"
29582
cristy8b350f62009-11-15 23:12:43 +000029583$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029584
cristy09b53e12011-10-14 12:47:22 +000029585 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29586$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029587 have_jpeg='yes'
29588 fi
29589 else
cristy09b53e12011-10-14 12:47:22 +000029590 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29591$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029592 fi
29593fi
cristy73bd4a52010-10-05 11:24:23 +000029594 if test "$have_jpeg" = 'yes'; then
29595 JPEG_DELEGATE_TRUE=
29596 JPEG_DELEGATE_FALSE='#'
29597else
29598 JPEG_DELEGATE_TRUE='#'
29599 JPEG_DELEGATE_FALSE=
29600fi
29601
cristy3ed852e2009-09-05 21:47:34 +000029602
29603
29604
29605#
29606# Check for JPEG Version 2 delegate library.
29607#
29608
29609# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029610if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029611 withval=$with_jp2; with_jp2=$withval
29612else
29613 with_jp2='yes'
29614fi
29615
29616
29617if test "$with_jp2" != 'yes'; then
29618 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29619fi
29620
29621have_jp2='no'
29622JP2_LIBS=''
29623if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029624 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29625$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029627$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029628 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29629$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029630 failed=0
29631 passed=0
cristy8b350f62009-11-15 23:12:43 +000029632 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 +000029633if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029634 passed=`expr $passed + 1`
29635else
29636 failed=`expr $failed + 1`
29637fi
29638
29639
cristy8b350f62009-11-15 23:12:43 +000029640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029641$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029642if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029643 $as_echo_n "(cached) " >&6
29644else
29645 ac_check_lib_save_LIBS=$LIBS
29646LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029648/* end confdefs.h. */
29649
29650/* Override any GCC internal prototype to avoid an error.
29651 Use char because int might match the return type of a GCC
29652 builtin and then its argument prototype would still apply. */
29653#ifdef __cplusplus
29654extern "C"
29655#endif
29656char jas_stream_fopen ();
29657int
29658main ()
29659{
29660return jas_stream_fopen ();
29661 ;
29662 return 0;
29663}
29664_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029665if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029666 ac_cv_lib_jasper_jas_stream_fopen=yes
29667else
cristy8b350f62009-11-15 23:12:43 +000029668 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029669fi
cristy8b350f62009-11-15 23:12:43 +000029670rm -f core conftest.err conftest.$ac_objext \
29671 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029672LIBS=$ac_check_lib_save_LIBS
29673fi
cristy8b350f62009-11-15 23:12:43 +000029674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029675$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029676if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029677 passed=`expr $passed + 1`
29678else
29679 failed=`expr $failed + 1`
29680fi
29681
cristy8b350f62009-11-15 23:12:43 +000029682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029683$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29684 if test $passed -gt 0; then
29685 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029686 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29687$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029688 have_jp2='no (failed tests)'
29689 else
29690 JP2_LIBS='-ljasper'
29691 LIBS="$JP2_LIBS $LIBS"
29692
cristy8b350f62009-11-15 23:12:43 +000029693$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029694
cristy09b53e12011-10-14 12:47:22 +000029695 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29696$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029697 have_jp2='yes'
29698 fi
29699 else
cristy09b53e12011-10-14 12:47:22 +000029700 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29701$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029702 fi
29703fi
cristy73bd4a52010-10-05 11:24:23 +000029704 if test "$have_jp2" = 'yes'; then
29705 JP2_DELEGATE_TRUE=
29706 JP2_DELEGATE_FALSE='#'
29707else
29708 JP2_DELEGATE_TRUE='#'
29709 JP2_DELEGATE_FALSE=
29710fi
29711
cristy3ed852e2009-09-05 21:47:34 +000029712
29713
29714
29715#
29716# Check for LCMS delegate library.
29717#
cristy71203402010-06-18 13:12:03 +000029718# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029719
29720# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029721if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029722 withval=$with_lcms; with_lcms=$withval
29723else
29724 with_lcms='yes'
29725fi
29726
cristy71203402010-06-18 13:12:03 +000029727if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029728 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29729fi
29730
cristy71203402010-06-18 13:12:03 +000029731# Disable LCMS2.
29732
29733# Check whether --with-lcms2 was given.
29734if test "${with_lcms2+set}" = set; then :
29735 withval=$with_lcms2; with_lcms2=$withval
29736else
29737 with_lcms2='yes'
29738fi
29739
29740if test "$with_lcms2" != 'yes' ; then
29741 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29742fi
29743
29744have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029745LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029746if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029747 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29748$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29750$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029751 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29752$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029753 failed=0
29754 passed=0
29755 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029756
29757 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029758 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029759if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029760 have_lcms_header='yes'
29761fi
29762
29763
29764 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029765
29766$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29767
cristy71203402010-06-18 13:12:03 +000029768 passed=`expr $passed + 1`
29769 fi
29770
29771 # Check for <lcms2/lcms2.h)
29772 if test "$have_lcms_header" != 'yes'; then
29773 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 +000029774if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029775 have_lcms_header='yes'
29776fi
29777
29778
cristy71203402010-06-18 13:12:03 +000029779 if test "$have_lcms_header" = 'yes'; then
29780 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029781
cristy71203402010-06-18 13:12:03 +000029782$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029783
cristy71203402010-06-18 13:12:03 +000029784 fi
cristyd09bcf92010-03-25 03:04:45 +000029785 fi
cristy71203402010-06-18 13:12:03 +000029786
29787 # Failed to find lcms header?
29788 if test "$have_lcms_header" != 'yes'; then
29789 failed=`expr $failed + 1`
29790 fi
29791
29792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29793$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029794if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029795 $as_echo_n "(cached) " >&6
29796else
29797 ac_check_lib_save_LIBS=$LIBS
29798LIBS="-llcms2 $LIBS"
29799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29800/* end confdefs.h. */
29801
29802/* Override any GCC internal prototype to avoid an error.
29803 Use char because int might match the return type of a GCC
29804 builtin and then its argument prototype would still apply. */
29805#ifdef __cplusplus
29806extern "C"
29807#endif
cristy71203402010-06-18 13:12:03 +000029808char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029809int
29810main ()
29811{
cristy71203402010-06-18 13:12:03 +000029812return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029813 ;
29814 return 0;
29815}
29816_ACEOF
29817if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029818 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029819else
cristy71203402010-06-18 13:12:03 +000029820 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029821fi
29822rm -f core conftest.err conftest.$ac_objext \
29823 conftest$ac_exeext conftest.$ac_ext
29824LIBS=$ac_check_lib_save_LIBS
29825fi
cristy71203402010-06-18 13:12:03 +000029826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29827$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029828if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029829 passed=`expr $passed + 1`
29830else
29831 failed=`expr $failed + 1`
29832fi
29833
cristy71203402010-06-18 13:12:03 +000029834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29835$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029836 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029837 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029838 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29839$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029840 have_lcms2='no (failed tests)'
29841 else
29842 LCMS_LIBS='-llcms2'
29843 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029844 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29845$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029846 have_lcms2='yes'
29847 fi
cristyd09bcf92010-03-25 03:04:45 +000029848 else
cristy09b53e12011-10-14 12:47:22 +000029849 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29850$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029851 fi
29852fi
29853
cristy71203402010-06-18 13:12:03 +000029854#
29855# Check for LCMS v1 (1.11 or later)
29856#
29857if test $have_lcms2 = 'yes'; then
29858 with_lcms='no'
29859fi
29860
29861have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029862if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029863 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29864$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29866$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029867 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29868$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029869 failed=0
29870 passed=0
29871 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029872
29873 # Check for <lcms.h>
29874 if test "$have_lcms_header" != 'yes'; then
29875 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029876if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029877 have_lcms_header='yes'
29878fi
29879
29880
cristy71203402010-06-18 13:12:03 +000029881 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029882 passed=`expr $passed + 1`
29883
cristy8b350f62009-11-15 23:12:43 +000029884$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029885
cristy71203402010-06-18 13:12:03 +000029886 fi
29887 fi
29888
29889 # Check for <lcms/lcms.h>
29890 if test "$have_lcms_header" != 'yes'; then
29891 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 +000029892if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029893 have_lcms_header='yes'
29894fi
29895
29896
cristy71203402010-06-18 13:12:03 +000029897 if test "$have_lcms_header" = 'yes'; then
29898 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029899
cristy8b350f62009-11-15 23:12:43 +000029900$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029901
cristy71203402010-06-18 13:12:03 +000029902 fi
cristy3ed852e2009-09-05 21:47:34 +000029903 fi
cristy71203402010-06-18 13:12:03 +000029904
29905 # Failed to find lcms header?
29906 if test "$have_lcms_header" != 'yes'; then
29907 failed=`expr $failed + 1`
29908 fi
29909
29910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29911$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029912if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029913 $as_echo_n "(cached) " >&6
29914else
29915 ac_check_lib_save_LIBS=$LIBS
29916LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029918/* end confdefs.h. */
29919
29920/* Override any GCC internal prototype to avoid an error.
29921 Use char because int might match the return type of a GCC
29922 builtin and then its argument prototype would still apply. */
29923#ifdef __cplusplus
29924extern "C"
29925#endif
cristy71203402010-06-18 13:12:03 +000029926char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029927int
29928main ()
29929{
cristy71203402010-06-18 13:12:03 +000029930return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029931 ;
29932 return 0;
29933}
29934_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029935if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029936 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029937else
cristy71203402010-06-18 13:12:03 +000029938 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029939fi
cristy8b350f62009-11-15 23:12:43 +000029940rm -f core conftest.err conftest.$ac_objext \
29941 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029942LIBS=$ac_check_lib_save_LIBS
29943fi
cristy71203402010-06-18 13:12:03 +000029944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29945$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029946if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029947 passed=`expr $passed + 1`
29948else
29949 failed=`expr $failed + 1`
29950fi
29951
cristy8b350f62009-11-15 23:12:43 +000029952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029953$as_echo_n "checking if LCMS package is complete... " >&6; }
29954 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029955 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029956 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29957$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029958 have_lcms='no (failed tests)'
29959 else
29960 LCMS_LIBS='-llcms'
29961 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029962 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29963$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029964 have_lcms='yes'
29965 fi
cristy3ed852e2009-09-05 21:47:34 +000029966 else
cristy09b53e12011-10-14 12:47:22 +000029967 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29968$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029969 fi
29970fi
cristy71203402010-06-18 13:12:03 +000029971
cristy73bd4a52010-10-05 11:24:23 +000029972 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29973 LCMS_DELEGATE_TRUE=
29974 LCMS_DELEGATE_FALSE='#'
29975else
29976 LCMS_DELEGATE_TRUE='#'
29977 LCMS_DELEGATE_FALSE=
29978fi
29979
cristy71203402010-06-18 13:12:03 +000029980if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29981
29982$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29983
29984fi
29985
cristy3ed852e2009-09-05 21:47:34 +000029986
29987
29988
29989#
29990# Check for the LQR (Liquid Rescale) delegate library.
29991#
29992
29993# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029994if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029995 withval=$with_lqr; with_lqr=$withval
29996else
29997 with_lqr='yes'
29998fi
29999
30000
30001if test "$with_lqr" != 'yes'; then
30002 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30003fi
30004
30005have_lqr='no'
30006LQR_CFLAGS=""
30007LQR_LIBS=""
30008LQR_PKG=""
30009if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030010 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30011$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030012
30013pkg_failed=no
30014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30015$as_echo_n "checking for LQR... " >&6; }
30016
30017if test -n "$LQR_CFLAGS"; then
30018 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30019 elif test -n "$PKG_CONFIG"; then
30020 if test -n "$PKG_CONFIG" && \
30021 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30022 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30023 ac_status=$?
30024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30025 test $ac_status = 0; }; then
30026 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30027else
30028 pkg_failed=yes
30029fi
30030 else
30031 pkg_failed=untried
30032fi
30033if test -n "$LQR_LIBS"; then
30034 pkg_cv_LQR_LIBS="$LQR_LIBS"
30035 elif test -n "$PKG_CONFIG"; then
30036 if test -n "$PKG_CONFIG" && \
30037 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30038 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30039 ac_status=$?
30040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30041 test $ac_status = 0; }; then
30042 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30043else
30044 pkg_failed=yes
30045fi
30046 else
30047 pkg_failed=untried
30048fi
30049
30050
30051
30052if test $pkg_failed = yes; then
30053
30054if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30055 _pkg_short_errors_supported=yes
30056else
30057 _pkg_short_errors_supported=no
30058fi
30059 if test $_pkg_short_errors_supported = yes; then
30060 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30061 else
30062 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30063 fi
30064 # Put the nasty error message in config.log where it belongs
30065 echo "$LQR_PKG_ERRORS" >&5
30066
30067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30068$as_echo "no" >&6; }
30069 have_lqr=no
30070elif test $pkg_failed = untried; then
30071 have_lqr=no
30072else
30073 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30074 LQR_LIBS=$pkg_cv_LQR_LIBS
30075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30076$as_echo "yes" >&6; }
30077 have_lqr=yes
30078fi
cristy09b53e12011-10-14 12:47:22 +000030079 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30080$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030081fi
30082
30083if test "$have_lqr" = 'yes'; then
30084
cristy8b350f62009-11-15 23:12:43 +000030085$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030086
30087 CFLAGS="$LQR_CFLAGS $CFLAGS"
30088fi
30089
cristy73bd4a52010-10-05 11:24:23 +000030090 if test "$have_lqr" = 'yes'; then
30091 LQR_DELEGATE_TRUE=
30092 LQR_DELEGATE_FALSE='#'
30093else
30094 LQR_DELEGATE_TRUE='#'
30095 LQR_DELEGATE_FALSE=
30096fi
30097
cristy3ed852e2009-09-05 21:47:34 +000030098
30099
30100
30101
cristy81beccd2011-10-03 18:17:24 +000030102# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030103
30104# Check whether --with-lzma was given.
30105if test "${with_lzma+set}" = set; then :
30106 withval=$with_lzma; with_lzma=$withval
30107else
30108 with_lzma='yes'
30109fi
30110
cristy81beccd2011-10-03 18:17:24 +000030111if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030112 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30113fi
30114
cristyb94e5002011-11-14 13:20:10 +000030115LZMA_PKG=""
30116if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030117 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30118$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030119
30120pkg_failed=no
30121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030122$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030123
30124if test -n "$LZMA_CFLAGS"; then
30125 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30126 elif test -n "$PKG_CONFIG"; then
30127 if test -n "$PKG_CONFIG" && \
30128 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30129 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30130 ac_status=$?
30131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30132 test $ac_status = 0; }; then
30133 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30134else
30135 pkg_failed=yes
30136fi
30137 else
30138 pkg_failed=untried
30139fi
30140if test -n "$LZMA_LIBS"; then
30141 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30142 elif test -n "$PKG_CONFIG"; then
30143 if test -n "$PKG_CONFIG" && \
30144 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30145 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30146 ac_status=$?
30147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30148 test $ac_status = 0; }; then
30149 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30150else
30151 pkg_failed=yes
30152fi
30153 else
30154 pkg_failed=untried
30155fi
30156
30157
30158
30159if test $pkg_failed = yes; then
30160
30161if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30162 _pkg_short_errors_supported=yes
30163else
30164 _pkg_short_errors_supported=no
30165fi
30166 if test $_pkg_short_errors_supported = yes; then
30167 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30168 else
30169 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30170 fi
30171 # Put the nasty error message in config.log where it belongs
30172 echo "$LZMA_PKG_ERRORS" >&5
30173
30174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30175$as_echo "no" >&6; }
30176 have_lzma=no
30177elif test $pkg_failed = untried; then
30178 have_lzma=no
30179else
30180 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30181 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30183$as_echo "yes" >&6; }
30184 have_lzma=yes
30185fi
30186 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030187$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030188fi
30189
cristyb94e5002011-11-14 13:20:10 +000030190if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030191
30192$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30193
cristyb94e5002011-11-14 13:20:10 +000030194 if test "$with_modules" = 'no'; then
30195 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030196 fi
cristyfbb0ef02010-12-19 02:32:11 +000030197fi
cristyb94e5002011-11-14 13:20:10 +000030198
cristyfbb0ef02010-12-19 02:32:11 +000030199 if test "$have_lzma" = 'yes'; then
30200 LZMA_DELEGATE_TRUE=
30201 LZMA_DELEGATE_FALSE='#'
30202else
30203 LZMA_DELEGATE_TRUE='#'
30204 LZMA_DELEGATE_FALSE=
30205fi
30206
30207
30208
30209
cristyb94e5002011-11-14 13:20:10 +000030210
cristy3ed852e2009-09-05 21:47:34 +000030211#
30212# Check for the OpenEXR delegate library.
30213#
30214
30215# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030216if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030217 withval=$with_openexr; with_openexr=$withval
30218else
30219 with_openexr='yes'
30220fi
30221
30222
30223if test "$with_openexr" != 'yes'; then
30224 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30225fi
30226
30227have_openexr='no'
30228OPENEXR_CFLAGS=""
30229OPENEXR_LIBS=""
30230OPENEXR_PKG=""
30231if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030232 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30233$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030234
30235pkg_failed=no
30236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30237$as_echo_n "checking for OPENEXR... " >&6; }
30238
30239if test -n "$OPENEXR_CFLAGS"; then
30240 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30241 elif test -n "$PKG_CONFIG"; then
30242 if test -n "$PKG_CONFIG" && \
30243 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30244 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30245 ac_status=$?
30246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30247 test $ac_status = 0; }; then
30248 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30249else
30250 pkg_failed=yes
30251fi
30252 else
30253 pkg_failed=untried
30254fi
30255if test -n "$OPENEXR_LIBS"; then
30256 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30257 elif test -n "$PKG_CONFIG"; then
30258 if test -n "$PKG_CONFIG" && \
30259 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30260 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30261 ac_status=$?
30262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30263 test $ac_status = 0; }; then
30264 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30265else
30266 pkg_failed=yes
30267fi
30268 else
30269 pkg_failed=untried
30270fi
30271
30272
30273
30274if test $pkg_failed = yes; then
30275
30276if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30277 _pkg_short_errors_supported=yes
30278else
30279 _pkg_short_errors_supported=no
30280fi
30281 if test $_pkg_short_errors_supported = yes; then
30282 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30283 else
30284 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30285 fi
30286 # Put the nasty error message in config.log where it belongs
30287 echo "$OPENEXR_PKG_ERRORS" >&5
30288
30289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30290$as_echo "no" >&6; }
30291 have_openexr=no
30292elif test $pkg_failed = untried; then
30293 have_openexr=no
30294else
30295 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30296 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30298$as_echo "yes" >&6; }
30299 have_openexr=yes
30300fi
cristy09b53e12011-10-14 12:47:22 +000030301 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30302$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030303fi
30304
30305if test "$have_openexr" = 'yes'; then
30306
cristy8b350f62009-11-15 23:12:43 +000030307$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030308
30309 if test "$with_modules" = 'no'; then
30310 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30311 fi
30312fi
30313
cristy73bd4a52010-10-05 11:24:23 +000030314 if test "$have_openexr" = 'yes'; then
30315 OPENEXR_DELEGATE_TRUE=
30316 OPENEXR_DELEGATE_FALSE='#'
30317else
30318 OPENEXR_DELEGATE_TRUE='#'
30319 OPENEXR_DELEGATE_FALSE=
30320fi
30321
cristy3ed852e2009-09-05 21:47:34 +000030322
30323
30324
30325
30326#
cristy41cbe8a2011-10-27 01:35:18 +000030327# Check for PANGO delegate library.
30328#
30329
30330# Check whether --with-pango was given.
30331if test "${with_pango+set}" = set; then :
30332 withval=$with_pango; with_pango=$withval
30333else
30334 with_pango=$have_x
30335fi
30336
30337
30338if test "$with_pango" != 'yes'; then
30339 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30340fi
30341
30342have_pango='no'
30343have_pangoft2='no'
30344PANGO_CFLAGS=""
30345PANGO_LIBS=""
30346PANGO_PKG=""
30347if test "x$with_pango" = "xyes"; then
30348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30349$as_echo "-------------------------------------------------------------" >&6; }
30350
30351pkg_failed=no
30352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30353$as_echo_n "checking for PANGO... " >&6; }
30354
30355if test -n "$PANGO_CFLAGS"; then
30356 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30357 elif test -n "$PKG_CONFIG"; then
30358 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030359 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.28.1\""; } >&5
30360 ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030361 ac_status=$?
30362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30363 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030364 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030365else
30366 pkg_failed=yes
30367fi
30368 else
30369 pkg_failed=untried
30370fi
30371if test -n "$PANGO_LIBS"; then
30372 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30373 elif test -n "$PKG_CONFIG"; then
30374 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030375 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.28.1\""; } >&5
30376 ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030377 ac_status=$?
30378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30379 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030380 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030381else
30382 pkg_failed=yes
30383fi
30384 else
30385 pkg_failed=untried
30386fi
30387
30388
30389
30390if test $pkg_failed = yes; then
30391
30392if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30393 _pkg_short_errors_supported=yes
30394else
30395 _pkg_short_errors_supported=no
30396fi
30397 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030398 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangoft2 >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030399 else
cristy2542fc62011-12-06 17:50:25 +000030400 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangoft2 >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030401 fi
30402 # Put the nasty error message in config.log where it belongs
30403 echo "$PANGO_PKG_ERRORS" >&5
30404
30405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30406$as_echo "no" >&6; }
30407 have_pangoft2=no
30408elif test $pkg_failed = untried; then
30409 have_pangoft2=no
30410else
30411 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30412 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30414$as_echo "yes" >&6; }
30415 have_pangoft2=yes
30416fi
30417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30418$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030419
30420pkg_failed=no
30421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30422$as_echo_n "checking for PANGO... " >&6; }
30423
30424if test -n "$PANGO_CFLAGS"; then
30425 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30426 elif test -n "$PKG_CONFIG"; then
30427 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030428 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30429 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030430 ac_status=$?
30431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30432 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030433 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030434else
30435 pkg_failed=yes
30436fi
30437 else
30438 pkg_failed=untried
30439fi
30440if test -n "$PANGO_LIBS"; then
30441 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30442 elif test -n "$PKG_CONFIG"; then
30443 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030444 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30445 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030446 ac_status=$?
30447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30448 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030449 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030450else
30451 pkg_failed=yes
30452fi
30453 else
30454 pkg_failed=untried
30455fi
30456
30457
30458
30459if test $pkg_failed = yes; then
30460
30461if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30462 _pkg_short_errors_supported=yes
30463else
30464 _pkg_short_errors_supported=no
30465fi
30466 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030467 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030468 else
cristy2542fc62011-12-06 17:50:25 +000030469 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030470 fi
30471 # Put the nasty error message in config.log where it belongs
30472 echo "$PANGO_PKG_ERRORS" >&5
30473
30474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30475$as_echo "no" >&6; }
30476 have_pango=no
30477elif test $pkg_failed = untried; then
30478 have_pango=no
30479else
30480 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30481 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30483$as_echo "yes" >&6; }
30484 have_pango=yes
30485fi
30486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30487$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030488fi
30489
30490if test "$have_pango" = 'yes'; then
30491
30492$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30493
30494 if test "$with_modules" = 'no'; then
30495 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30496 fi
30497fi
30498
30499if test "$have_pangoft2" = 'yes'; then
30500
30501$as_echo "#define PANGOFT2_DELEGATE 1" >>confdefs.h
30502
30503 if test "$with_modules" = 'no'; then
30504 CPPFLAGS="$PANGOFT2_CFLAGS $CPPFLAGS"
30505 fi
30506fi
30507
30508 if test "$have_pango" = 'yes'; then
30509 PANGO_DELEGATE_TRUE=
30510 PANGO_DELEGATE_FALSE='#'
30511else
30512 PANGO_DELEGATE_TRUE='#'
30513 PANGO_DELEGATE_FALSE=
30514fi
30515
30516 if test "$have_pangoft2" = 'yes'; then
30517 PANGOFT2_DELEGATE_TRUE=
30518 PANGOFT2_DELEGATE_FALSE='#'
30519else
30520 PANGOFT2_DELEGATE_TRUE='#'
30521 PANGOFT2_DELEGATE_FALSE=
30522fi
30523
30524
30525
30526
30527
30528#
cristy3ed852e2009-09-05 21:47:34 +000030529# Check for PNG delegate library.
30530#
30531
30532# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030533if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030534 withval=$with_png; with_png=$withval
30535else
30536 with_png='yes'
30537fi
30538
30539
30540if test "$with_png" != 'yes'; then
30541 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30542fi
30543
cristy81beccd2011-10-03 18:17:24 +000030544have_png='no'
30545PNG_LIBS=''
30546
30547if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000030548 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30549$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30551$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030552 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30553$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030554 failed=0
30555 passed=0
30556 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30557if test "x$ac_cv_header_png_h" = xyes; then :
30558 passed=`expr $passed + 1`
30559else
30560 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030561fi
30562
cristy81beccd2011-10-03 18:17:24 +000030563
30564
30565 if test $passed -gt 0; then
30566 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030567 if test "$have_png" = 'no' ; then
30568 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030569 pnglib='png'
30570 else
30571 pnglib="png1${var}"
30572 fi
30573
30574# Test for compatible LIBPNG library
30575 failed=0
30576 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030577 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030578 if test "${pnglib}" != 'png' ; then
30579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30580$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30582/* end confdefs.h. */
30583#include <stdio.h>
30584#include <stdlib.h>
30585#include <png.h>
30586
30587int
30588main ()
30589{
30590
30591#if PNG_LIBPNG_VER_MINOR != ${var}
30592#error LIBPNG library must be version 1${var}!
30593Kaboom, Kaboom
30594#endif
30595return 0;
30596
30597 ;
30598 return 0;
30599}
30600_ACEOF
30601if ac_fn_c_try_compile "$LINENO"; then :
30602 ac_cv_libpng_ok='yes'
30603else
30604 ac_cv_libpng_ok='no'
30605fi
30606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30607 if test "$ac_cv_libpng_ok" = 'yes' ; then
30608 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030609 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30610$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030611 else
30612 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000030613 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30614$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030615 fi
30616 else
30617 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030618 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30619$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030620 fi
30621 fi
30622
30623 if test $passed -gt 0 -a $failed -le 0; then
30624 if test "1${var}" = '15' ; then
30625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30626$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30627if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30628 $as_echo_n "(cached) " >&6
30629else
30630 ac_check_lib_save_LIBS=$LIBS
30631LIBS="-lpng15 $LIBS"
30632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30633/* end confdefs.h. */
30634
30635/* Override any GCC internal prototype to avoid an error.
30636 Use char because int might match the return type of a GCC
30637 builtin and then its argument prototype would still apply. */
30638#ifdef __cplusplus
30639extern "C"
30640#endif
30641char png_get_io_ptr ();
30642int
30643main ()
30644{
30645return png_get_io_ptr ();
30646 ;
30647 return 0;
30648}
30649_ACEOF
30650if ac_fn_c_try_link "$LINENO"; then :
30651 ac_cv_lib_png15_png_get_io_ptr=yes
30652else
30653 ac_cv_lib_png15_png_get_io_ptr=no
30654fi
30655rm -f core conftest.err conftest.$ac_objext \
30656 conftest$ac_exeext conftest.$ac_ext
30657LIBS=$ac_check_lib_save_LIBS
30658fi
30659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30660$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30661if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30662 passed=`expr $passed + 1`
30663else
30664 failed=`expr $failed + 1`
30665fi
30666
30667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30668$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30669if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30670 $as_echo_n "(cached) " >&6
30671else
30672 ac_check_lib_save_LIBS=$LIBS
30673LIBS="-lpng15 $LIBS"
30674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30675/* end confdefs.h. */
30676
30677/* Override any GCC internal prototype to avoid an error.
30678 Use char because int might match the return type of a GCC
30679 builtin and then its argument prototype would still apply. */
30680#ifdef __cplusplus
30681extern "C"
30682#endif
30683char png_longjmp ();
30684int
30685main ()
30686{
30687return png_longjmp ();
30688 ;
30689 return 0;
30690}
30691_ACEOF
30692if ac_fn_c_try_link "$LINENO"; then :
30693 ac_cv_lib_png15_png_longjmp=yes
30694else
30695 ac_cv_lib_png15_png_longjmp=no
30696fi
30697rm -f core conftest.err conftest.$ac_objext \
30698 conftest$ac_exeext conftest.$ac_ext
30699LIBS=$ac_check_lib_save_LIBS
30700fi
30701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30702$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30703if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30704 passed=`expr $passed + 1`
30705else
30706 failed=`expr $failed + 1`
30707fi
30708
30709 fi
30710 if test "1${var}" = '14' ; then
30711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30712$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30713if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30714 $as_echo_n "(cached) " >&6
30715else
30716 ac_check_lib_save_LIBS=$LIBS
30717LIBS="-lpng14 $LIBS"
30718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30719/* end confdefs.h. */
30720
30721/* Override any GCC internal prototype to avoid an error.
30722 Use char because int might match the return type of a GCC
30723 builtin and then its argument prototype would still apply. */
30724#ifdef __cplusplus
30725extern "C"
30726#endif
30727char png_get_io_ptr ();
30728int
30729main ()
30730{
30731return png_get_io_ptr ();
30732 ;
30733 return 0;
30734}
30735_ACEOF
30736if ac_fn_c_try_link "$LINENO"; then :
30737 ac_cv_lib_png14_png_get_io_ptr=yes
30738else
30739 ac_cv_lib_png14_png_get_io_ptr=no
30740fi
30741rm -f core conftest.err conftest.$ac_objext \
30742 conftest$ac_exeext conftest.$ac_ext
30743LIBS=$ac_check_lib_save_LIBS
30744fi
30745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30746$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30747if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30748 passed=`expr $passed + 1`
30749else
30750 failed=`expr $failed + 1`
30751fi
30752
30753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30754$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30755if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30756 $as_echo_n "(cached) " >&6
30757else
30758 ac_check_lib_save_LIBS=$LIBS
30759LIBS="-lpng14 $LIBS"
30760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30761/* end confdefs.h. */
30762
30763/* Override any GCC internal prototype to avoid an error.
30764 Use char because int might match the return type of a GCC
30765 builtin and then its argument prototype would still apply. */
30766#ifdef __cplusplus
30767extern "C"
30768#endif
30769char png_get_io_state ();
30770int
30771main ()
30772{
30773return png_get_io_state ();
30774 ;
30775 return 0;
30776}
30777_ACEOF
30778if ac_fn_c_try_link "$LINENO"; then :
30779 ac_cv_lib_png14_png_get_io_state=yes
30780else
30781 ac_cv_lib_png14_png_get_io_state=no
30782fi
30783rm -f core conftest.err conftest.$ac_objext \
30784 conftest$ac_exeext conftest.$ac_ext
30785LIBS=$ac_check_lib_save_LIBS
30786fi
30787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30788$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30789if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30790 passed=`expr $passed + 1`
30791else
30792 failed=`expr $failed + 1`
30793fi
30794
30795 fi
30796 if test "1${var}" = '12' ; then
30797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30798$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30799if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30800 $as_echo_n "(cached) " >&6
30801else
30802 ac_check_lib_save_LIBS=$LIBS
30803LIBS="-lpng12 $LIBS"
30804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30805/* end confdefs.h. */
30806
30807/* Override any GCC internal prototype to avoid an error.
30808 Use char because int might match the return type of a GCC
30809 builtin and then its argument prototype would still apply. */
30810#ifdef __cplusplus
30811extern "C"
30812#endif
30813char png_get_io_ptr ();
30814int
30815main ()
30816{
30817return png_get_io_ptr ();
30818 ;
30819 return 0;
30820}
30821_ACEOF
30822if ac_fn_c_try_link "$LINENO"; then :
30823 ac_cv_lib_png12_png_get_io_ptr=yes
30824else
30825 ac_cv_lib_png12_png_get_io_ptr=no
30826fi
30827rm -f core conftest.err conftest.$ac_objext \
30828 conftest$ac_exeext conftest.$ac_ext
30829LIBS=$ac_check_lib_save_LIBS
30830fi
30831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30832$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30833if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30834 passed=`expr $passed + 1`
30835else
30836 failed=`expr $failed + 1`
30837fi
30838
30839 fi
30840 if test "1${var}" = '1' ; then
30841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30842$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30843if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30844 $as_echo_n "(cached) " >&6
30845else
30846 ac_check_lib_save_LIBS=$LIBS
30847LIBS="-lpng $LIBS"
30848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30849/* end confdefs.h. */
30850
30851/* Override any GCC internal prototype to avoid an error.
30852 Use char because int might match the return type of a GCC
30853 builtin and then its argument prototype would still apply. */
30854#ifdef __cplusplus
30855extern "C"
30856#endif
30857char png_get_io_ptr ();
30858int
30859main ()
30860{
30861return png_get_io_ptr ();
30862 ;
30863 return 0;
30864}
30865_ACEOF
30866if ac_fn_c_try_link "$LINENO"; then :
30867 ac_cv_lib_png_png_get_io_ptr=yes
30868else
30869 ac_cv_lib_png_png_get_io_ptr=no
30870fi
30871rm -f core conftest.err conftest.$ac_objext \
30872 conftest$ac_exeext conftest.$ac_ext
30873LIBS=$ac_check_lib_save_LIBS
30874fi
30875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30876$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30877if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30878 passed=`expr $passed + 1`
30879else
30880 failed=`expr $failed + 1`
30881fi
30882
30883 fi
30884 if test $passed -gt 0 -a $failed -le 0 ; then
30885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30886$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30887 if test $passed -gt 0 ; then
30888 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000030889 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30890$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030891 have_png='no (failed tests)'
30892 else
30893 PNG_LIBS="-l${pnglib}"
30894 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030895
cristy8b350f62009-11-15 23:12:43 +000030896$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030897
cristy09b53e12011-10-14 12:47:22 +000030898 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30899$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030900 have_png='yes'
30901 fi
30902 fi
30903 fi
30904 fi
30905 fi
30906 done
30907 fi
cristy3ed852e2009-09-05 21:47:34 +000030908fi
cristy64877302011-08-23 19:10:31 +000030909
cristy73bd4a52010-10-05 11:24:23 +000030910 if test "$have_png" = 'yes'; then
30911 PNG_DELEGATE_TRUE=
30912 PNG_DELEGATE_FALSE='#'
30913else
30914 PNG_DELEGATE_TRUE='#'
30915 PNG_DELEGATE_FALSE=
30916fi
30917
cristy3ed852e2009-09-05 21:47:34 +000030918
cristy50d3f5c2011-09-10 20:09:06 +000030919
cristy3ed852e2009-09-05 21:47:34 +000030920
30921
30922#
30923# Check for RSVG delegate library.
30924#
30925
30926# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030927if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030928 withval=$with_rsvg; with_rsvg=$withval
30929else
30930 with_rsvg=$have_x
30931fi
30932
30933
30934if test "$with_rsvg" != 'yes'; then
30935 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30936fi
30937
30938have_rsvg='no'
30939have_cairo='no'
30940RSVG_CFLAGS=""
30941RSVG_LIBS=""
30942RSVG_PKG=""
30943if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030944 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30945$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030946
30947pkg_failed=no
30948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30949$as_echo_n "checking for RSVG... " >&6; }
30950
30951if test -n "$RSVG_CFLAGS"; then
30952 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30953 elif test -n "$PKG_CONFIG"; then
30954 if test -n "$PKG_CONFIG" && \
30955 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30956 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30957 ac_status=$?
30958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30959 test $ac_status = 0; }; then
30960 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30961else
30962 pkg_failed=yes
30963fi
30964 else
30965 pkg_failed=untried
30966fi
30967if test -n "$RSVG_LIBS"; then
30968 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30969 elif test -n "$PKG_CONFIG"; then
30970 if test -n "$PKG_CONFIG" && \
30971 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30972 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30973 ac_status=$?
30974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30975 test $ac_status = 0; }; then
30976 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30977else
30978 pkg_failed=yes
30979fi
30980 else
30981 pkg_failed=untried
30982fi
30983
30984
30985
30986if test $pkg_failed = yes; then
30987
30988if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30989 _pkg_short_errors_supported=yes
30990else
30991 _pkg_short_errors_supported=no
30992fi
30993 if test $_pkg_short_errors_supported = yes; then
30994 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30995 else
30996 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30997 fi
30998 # Put the nasty error message in config.log where it belongs
30999 echo "$RSVG_PKG_ERRORS" >&5
31000
31001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31002$as_echo "no" >&6; }
31003 have_rsvg=no
31004elif test $pkg_failed = untried; then
31005 have_rsvg=no
31006else
31007 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31008 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31010$as_echo "yes" >&6; }
31011 have_rsvg=yes
31012fi
cristy09b53e12011-10-14 12:47:22 +000031013 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31014$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031015
31016pkg_failed=no
31017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31018$as_echo_n "checking for CAIRO_SVG... " >&6; }
31019
31020if test -n "$CAIRO_SVG_CFLAGS"; then
31021 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31022 elif test -n "$PKG_CONFIG"; then
31023 if test -n "$PKG_CONFIG" && \
31024 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31025 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31026 ac_status=$?
31027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31028 test $ac_status = 0; }; then
31029 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31030else
31031 pkg_failed=yes
31032fi
31033 else
31034 pkg_failed=untried
31035fi
31036if test -n "$CAIRO_SVG_LIBS"; then
31037 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31038 elif test -n "$PKG_CONFIG"; then
31039 if test -n "$PKG_CONFIG" && \
31040 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31041 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31042 ac_status=$?
31043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31044 test $ac_status = 0; }; then
31045 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31046else
31047 pkg_failed=yes
31048fi
31049 else
31050 pkg_failed=untried
31051fi
31052
31053
31054
31055if test $pkg_failed = yes; then
31056
31057if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31058 _pkg_short_errors_supported=yes
31059else
31060 _pkg_short_errors_supported=no
31061fi
31062 if test $_pkg_short_errors_supported = yes; then
31063 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31064 else
31065 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31066 fi
31067 # Put the nasty error message in config.log where it belongs
31068 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31069
31070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31071$as_echo "no" >&6; }
31072 have_cairo=no
31073elif test $pkg_failed = untried; then
31074 have_cairo=no
31075else
31076 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31077 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31079$as_echo "yes" >&6; }
31080 have_cairo=yes
31081fi
cristy09b53e12011-10-14 12:47:22 +000031082 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31083$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031084fi
31085
31086if test "$have_rsvg" = 'yes'; then
31087
cristy8b350f62009-11-15 23:12:43 +000031088$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031089
31090 if test "$with_modules" = 'no'; then
31091 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31092 fi
31093fi
31094
31095if test "$have_cairo" = 'yes'; then
31096
cristy8b350f62009-11-15 23:12:43 +000031097$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031098
31099 if test "$with_modules" = 'no'; then
31100 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31101 fi
31102fi
31103
cristy73bd4a52010-10-05 11:24:23 +000031104 if test "$have_rsvg" = 'yes'; then
31105 RSVG_DELEGATE_TRUE=
31106 RSVG_DELEGATE_FALSE='#'
31107else
31108 RSVG_DELEGATE_TRUE='#'
31109 RSVG_DELEGATE_FALSE=
31110fi
31111
31112 if test "$have_cairo" = 'yes'; then
31113 CAIRO_DELEGATE_TRUE=
31114 CAIRO_DELEGATE_FALSE='#'
31115else
31116 CAIRO_DELEGATE_TRUE='#'
31117 CAIRO_DELEGATE_FALSE=
31118fi
31119
cristy3ed852e2009-09-05 21:47:34 +000031120
31121
31122
31123
31124#
31125# Check for TIFF delegate library.
31126#
31127
31128# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031129if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031130 withval=$with_tiff; with_tiff=$withval
31131else
31132 with_tiff='yes'
31133fi
31134
31135
31136if test "$with_tiff" != 'yes'; then
31137 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31138fi
31139
31140have_tiff='no'
31141TIFF_LIBS=''
31142if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031143 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31144$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031146$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031147 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31148$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031149 failed=0
31150 passed=0
cristy8b350f62009-11-15 23:12:43 +000031151 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031152if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031153 passed=`expr $passed + 1`
31154else
31155 failed=`expr $failed + 1`
31156fi
31157
31158
cristy8b350f62009-11-15 23:12:43 +000031159 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031160if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031161 passed=`expr $passed + 1`
31162else
31163 failed=`expr $failed + 1`
31164fi
31165
31166
cristy8b350f62009-11-15 23:12:43 +000031167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031168$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031169if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031170 $as_echo_n "(cached) " >&6
31171else
31172 ac_check_lib_save_LIBS=$LIBS
31173LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031175/* end confdefs.h. */
31176
31177/* Override any GCC internal prototype to avoid an error.
31178 Use char because int might match the return type of a GCC
31179 builtin and then its argument prototype would still apply. */
31180#ifdef __cplusplus
31181extern "C"
31182#endif
31183char TIFFOpen ();
31184int
31185main ()
31186{
31187return TIFFOpen ();
31188 ;
31189 return 0;
31190}
31191_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031192if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031193 ac_cv_lib_tiff_TIFFOpen=yes
31194else
cristy8b350f62009-11-15 23:12:43 +000031195 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031196fi
cristy8b350f62009-11-15 23:12:43 +000031197rm -f core conftest.err conftest.$ac_objext \
31198 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031199LIBS=$ac_check_lib_save_LIBS
31200fi
cristy8b350f62009-11-15 23:12:43 +000031201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031202$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031203if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031204 passed=`expr $passed + 1`
31205else
31206 failed=`expr $failed + 1`
31207fi
31208
cristy8b350f62009-11-15 23:12:43 +000031209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031210$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031211if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031212 $as_echo_n "(cached) " >&6
31213else
31214 ac_check_lib_save_LIBS=$LIBS
31215LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031217/* end confdefs.h. */
31218
31219/* Override any GCC internal prototype to avoid an error.
31220 Use char because int might match the return type of a GCC
31221 builtin and then its argument prototype would still apply. */
31222#ifdef __cplusplus
31223extern "C"
31224#endif
31225char TIFFClientOpen ();
31226int
31227main ()
31228{
31229return TIFFClientOpen ();
31230 ;
31231 return 0;
31232}
31233_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031234if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031235 ac_cv_lib_tiff_TIFFClientOpen=yes
31236else
cristy8b350f62009-11-15 23:12:43 +000031237 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031238fi
cristy8b350f62009-11-15 23:12:43 +000031239rm -f core conftest.err conftest.$ac_objext \
31240 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031241LIBS=$ac_check_lib_save_LIBS
31242fi
cristy8b350f62009-11-15 23:12:43 +000031243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031244$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031245if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031246 passed=`expr $passed + 1`
31247else
31248 failed=`expr $failed + 1`
31249fi
31250
cristy8b350f62009-11-15 23:12:43 +000031251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031252$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031253if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031254 $as_echo_n "(cached) " >&6
31255else
31256 ac_check_lib_save_LIBS=$LIBS
31257LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031259/* end confdefs.h. */
31260
31261/* Override any GCC internal prototype to avoid an error.
31262 Use char because int might match the return type of a GCC
31263 builtin and then its argument prototype would still apply. */
31264#ifdef __cplusplus
31265extern "C"
31266#endif
31267char TIFFIsByteSwapped ();
31268int
31269main ()
31270{
31271return TIFFIsByteSwapped ();
31272 ;
31273 return 0;
31274}
31275_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031276if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031277 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31278else
cristy8b350f62009-11-15 23:12:43 +000031279 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031280fi
cristy8b350f62009-11-15 23:12:43 +000031281rm -f core conftest.err conftest.$ac_objext \
31282 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031283LIBS=$ac_check_lib_save_LIBS
31284fi
cristy8b350f62009-11-15 23:12:43 +000031285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031286$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031287if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031288 passed=`expr $passed + 1`
31289else
31290 failed=`expr $failed + 1`
31291fi
31292
cristy8b350f62009-11-15 23:12:43 +000031293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031294$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031295if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031296 $as_echo_n "(cached) " >&6
31297else
31298 ac_check_lib_save_LIBS=$LIBS
31299LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031301/* end confdefs.h. */
31302
31303/* Override any GCC internal prototype to avoid an error.
31304 Use char because int might match the return type of a GCC
31305 builtin and then its argument prototype would still apply. */
31306#ifdef __cplusplus
31307extern "C"
31308#endif
31309char TIFFReadRGBATile ();
31310int
31311main ()
31312{
31313return TIFFReadRGBATile ();
31314 ;
31315 return 0;
31316}
31317_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031318if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031319 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31320else
cristy8b350f62009-11-15 23:12:43 +000031321 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031322fi
cristy8b350f62009-11-15 23:12:43 +000031323rm -f core conftest.err conftest.$ac_objext \
31324 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031325LIBS=$ac_check_lib_save_LIBS
31326fi
cristy8b350f62009-11-15 23:12:43 +000031327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031328$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031329if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031330 passed=`expr $passed + 1`
31331else
31332 failed=`expr $failed + 1`
31333fi
31334
cristy8b350f62009-11-15 23:12:43 +000031335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031336$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031337if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031338 $as_echo_n "(cached) " >&6
31339else
31340 ac_check_lib_save_LIBS=$LIBS
31341LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031343/* end confdefs.h. */
31344
31345/* Override any GCC internal prototype to avoid an error.
31346 Use char because int might match the return type of a GCC
31347 builtin and then its argument prototype would still apply. */
31348#ifdef __cplusplus
31349extern "C"
31350#endif
31351char TIFFReadRGBAStrip ();
31352int
31353main ()
31354{
31355return TIFFReadRGBAStrip ();
31356 ;
31357 return 0;
31358}
31359_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031360if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031361 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31362else
cristy8b350f62009-11-15 23:12:43 +000031363 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031364fi
cristy8b350f62009-11-15 23:12:43 +000031365rm -f core conftest.err conftest.$ac_objext \
31366 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031367LIBS=$ac_check_lib_save_LIBS
31368fi
cristy8b350f62009-11-15 23:12:43 +000031369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031370$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031371if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031372 passed=`expr $passed + 1`
31373else
31374 failed=`expr $failed + 1`
31375fi
31376
cristy8b350f62009-11-15 23:12:43 +000031377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031378$as_echo_n "checking if TIFF package is complete... " >&6; }
31379 if test $passed -gt 0; then
31380 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031381 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31382$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031383 have_tiff='no (failed tests)'
31384 else
31385 TIFF_LIBS='-ltiff'
31386 LIBS="$TIFF_LIBS $LIBS"
31387
cristy8b350f62009-11-15 23:12:43 +000031388$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031389
cristy09b53e12011-10-14 12:47:22 +000031390 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31391$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031392 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031393 for ac_header in tiffconf.h
31394do :
31395 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031396if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031397 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031398#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031399_ACEOF
31400
31401fi
31402
31403done
31404
cristy8b350f62009-11-15 23:12:43 +000031405 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031406 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31407 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31408 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031409do :
31410 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31411ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031412if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031413 cat >>confdefs.h <<_ACEOF
31414#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31415_ACEOF
31416
31417fi
31418done
31419
31420 fi
31421 else
cristy09b53e12011-10-14 12:47:22 +000031422 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31423$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031424 fi
31425fi
cristy73bd4a52010-10-05 11:24:23 +000031426 if test "$have_tiff" = 'yes'; then
31427 TIFF_DELEGATE_TRUE=
31428 TIFF_DELEGATE_FALSE='#'
31429else
31430 TIFF_DELEGATE_TRUE='#'
31431 TIFF_DELEGATE_FALSE=
31432fi
31433
cristy3ed852e2009-09-05 21:47:34 +000031434
31435
31436
31437#
cristyb1860752011-03-14 00:27:46 +000031438# Check for WEBP delegate library.
31439#
31440
31441# Check whether --with-webp was given.
31442if test "${with_webp+set}" = set; then :
31443 withval=$with_webp; with_webp=$withval
31444else
31445 with_webp='yes'
31446fi
31447
31448
31449if test "$with_webp" != 'yes'; then
31450 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31451fi
31452
31453have_webp='no'
31454WEBP_LIBS=''
31455if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031456 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31457$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000031458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31459$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031460 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31461$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000031462 failed=0
31463 passed=0
31464 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31465if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31466 passed=`expr $passed + 1`
31467else
31468 failed=`expr $failed + 1`
31469fi
31470
31471
31472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31473$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31474if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31475 $as_echo_n "(cached) " >&6
31476else
31477 ac_check_lib_save_LIBS=$LIBS
31478LIBS="-lwebp $LIBS"
31479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31480/* end confdefs.h. */
31481
31482/* Override any GCC internal prototype to avoid an error.
31483 Use char because int might match the return type of a GCC
31484 builtin and then its argument prototype would still apply. */
31485#ifdef __cplusplus
31486extern "C"
31487#endif
31488char WebPDecodeRGB ();
31489int
31490main ()
31491{
31492return WebPDecodeRGB ();
31493 ;
31494 return 0;
31495}
31496_ACEOF
31497if ac_fn_c_try_link "$LINENO"; then :
31498 ac_cv_lib_webp_WebPDecodeRGB=yes
31499else
31500 ac_cv_lib_webp_WebPDecodeRGB=no
31501fi
31502rm -f core conftest.err conftest.$ac_objext \
31503 conftest$ac_exeext conftest.$ac_ext
31504LIBS=$ac_check_lib_save_LIBS
31505fi
31506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31507$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31508if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31509 passed=`expr $passed + 1`
31510else
31511 failed=`expr $failed + 1`
31512fi
31513
31514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31515$as_echo_n "checking if WEBP package is complete... " >&6; }
31516 if test $passed -gt 0; then
31517 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031518 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31519$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000031520 have_webp='no (failed tests)'
31521 else
31522 WEBP_LIBS='-lwebp'
31523 LIBS="$WEBP_LIBS $LIBS"
31524
31525$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31526
cristy09b53e12011-10-14 12:47:22 +000031527 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31528$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000031529 have_webp='yes'
31530 fi
31531 else
cristy09b53e12011-10-14 12:47:22 +000031532 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31533$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000031534 fi
31535fi
31536 if test "$have_webp" = 'yes'; then
31537 WEBP_DELEGATE_TRUE=
31538 WEBP_DELEGATE_FALSE='#'
31539else
31540 WEBP_DELEGATE_TRUE='#'
31541 WEBP_DELEGATE_FALSE=
31542fi
31543
31544
31545
31546
31547#
cristy3ed852e2009-09-05 21:47:34 +000031548# Set Windows font directory.
31549#
31550
31551# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031552if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031553 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31554else
31555 with_windows_font_dir=''
31556fi
31557
31558if test "$with_windows_font_dir" != '' ; then
31559 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31560fi
31561
31562
31563#
31564# Check for WMF delegate library.
31565#
31566
31567# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031568if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031569 withval=$with_wmf; with_wmf=$withval
31570else
cristy8d63d1d2010-01-06 20:38:37 +000031571 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000031572fi
31573
31574
31575if test "$with_wmf" != 'yes'; then
31576 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31577fi
31578
31579have_wmf='no'
31580WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000031581if test "$with_wmf" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031582 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31583$as_echo "$as_me: -------------------------------------------------------------" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031585$as_echo_n "checking for WMF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031586 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31587$as_echo "$as_me: " >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031588 failed=0
31589 passed=0
31590 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
31591if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
31592 passed=`expr $passed + 1`
31593else
31594 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000031595fi
31596
31597
glennrp33e524b2011-08-24 17:41:57 +000031598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
31599$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
31600if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031601 $as_echo_n "(cached) " >&6
31602else
31603 ac_check_lib_save_LIBS=$LIBS
glennrp33e524b2011-08-24 17:41:57 +000031604LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031606/* end confdefs.h. */
31607
31608/* Override any GCC internal prototype to avoid an error.
31609 Use char because int might match the return type of a GCC
31610 builtin and then its argument prototype would still apply. */
31611#ifdef __cplusplus
31612extern "C"
31613#endif
glennrp33e524b2011-08-24 17:41:57 +000031614char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031615int
31616main ()
31617{
glennrp33e524b2011-08-24 17:41:57 +000031618return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031619 ;
31620 return 0;
31621}
31622_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031623if ac_fn_c_try_link "$LINENO"; then :
glennrp33e524b2011-08-24 17:41:57 +000031624 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000031625else
glennrp33e524b2011-08-24 17:41:57 +000031626 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000031627fi
cristy8b350f62009-11-15 23:12:43 +000031628rm -f core conftest.err conftest.$ac_objext \
31629 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031630LIBS=$ac_check_lib_save_LIBS
31631fi
glennrp33e524b2011-08-24 17:41:57 +000031632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
31633$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
31634if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
31635 passed=`expr $passed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031636else
glennrp33e524b2011-08-24 17:41:57 +000031637 failed=`expr $failed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031638fi
31639
glennrp33e524b2011-08-24 17:41:57 +000031640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31641$as_echo_n "checking if WMF package is complete... " >&6; }
31642 if test $passed -gt 0; then
31643 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031644 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31645$as_echo "$as_me: no -- some components failed test" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031646 have_wmf='no (failed tests)'
31647 else
31648 WMF_LIBS='-lwmf -lwmflite'
31649 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031650
cristy8b350f62009-11-15 23:12:43 +000031651$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031652
cristy09b53e12011-10-14 12:47:22 +000031653 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31654$as_echo "$as_me: yes" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031655 have_wmf='yes'
31656 fi
31657 else
cristy09b53e12011-10-14 12:47:22 +000031658 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31659$as_echo "$as_me: no" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031660 fi
cristy3ed852e2009-09-05 21:47:34 +000031661fi
cristy73bd4a52010-10-05 11:24:23 +000031662 if test "$have_wmf" = 'yes'; then
31663 WMF_DELEGATE_TRUE=
31664 WMF_DELEGATE_FALSE='#'
31665else
31666 WMF_DELEGATE_TRUE='#'
31667 WMF_DELEGATE_FALSE=
31668fi
31669
cristy3ed852e2009-09-05 21:47:34 +000031670
31671
31672
cristy81beccd2011-10-03 18:17:24 +000031673
31674
cristy3ed852e2009-09-05 21:47:34 +000031675#
31676# Check for XML delegate library.
31677#
31678
31679# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031680if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031681 withval=$with_xml; with_xml=$withval
31682else
cristy81beccd2011-10-03 18:17:24 +000031683 with_xml=$have_x
cristy3ed852e2009-09-05 21:47:34 +000031684fi
31685
31686
cristy81beccd2011-10-03 18:17:24 +000031687if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031688 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31689fi
31690
cristy81beccd2011-10-03 18:17:24 +000031691have_xml='no'
31692XML_LIBS=''
31693if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031694 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31695$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31697$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031698 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31699$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031700 PERSIST_LDFLAGS=$LDFLAGS
31701 PERSIST_CPPFLAGS=$CPPFLAGS
31702 xml2_config=''
31703 # Extract the first word of "xml2-config", so it can be a program name with args.
31704set dummy xml2-config; ac_word=$2
31705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31706$as_echo_n "checking for $ac_word... " >&6; }
31707if ${ac_cv_path_xml2_config+:} false; then :
31708 $as_echo_n "(cached) " >&6
31709else
31710 case $xml2_config in
31711 [\\/]* | ?:[\\/]*)
31712 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31713 ;;
31714 *)
31715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31716for as_dir in $PATH
31717do
31718 IFS=$as_save_IFS
31719 test -z "$as_dir" && as_dir=.
31720 for ac_exec_ext in '' $ac_executable_extensions; do
31721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31722 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31724 break 2
31725 fi
31726done
31727 done
31728IFS=$as_save_IFS
31729
31730 ;;
31731esac
31732fi
31733xml2_config=$ac_cv_path_xml2_config
31734if test -n "$xml2_config"; then
31735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31736$as_echo "$xml2_config" >&6; }
31737else
31738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31739$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031740fi
31741
cristy81beccd2011-10-03 18:17:24 +000031742 if test -n "$xml2_config"; then
31743 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31744 # the shared library installed under /usr/lib, whereas the package
31745 # installs itself under $prefix/libxml and $prefix/lib.
31746 xml2_prefix=`xml2-config --prefix`
31747 if test -d "${xml2_prefix}/include/libxml2"; then
31748 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31749 fi
31750 if test "${xml2_prefix}" != '/usr'; then
31751 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31752 fi
31753 fi
31754 failed=0
31755 passed=0
31756 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31757if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31758 passed=`expr $passed + 1`
31759else
31760 failed=`expr $failed + 1`
31761fi
31762
31763
31764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31765$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31766if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31767 $as_echo_n "(cached) " >&6
31768else
31769 ac_check_lib_save_LIBS=$LIBS
31770LIBS="-lxml2 $LIBS"
31771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31772/* end confdefs.h. */
31773
31774/* Override any GCC internal prototype to avoid an error.
31775 Use char because int might match the return type of a GCC
31776 builtin and then its argument prototype would still apply. */
31777#ifdef __cplusplus
31778extern "C"
31779#endif
31780char xmlSAXVersion ();
31781int
31782main ()
31783{
31784return xmlSAXVersion ();
31785 ;
31786 return 0;
31787}
31788_ACEOF
31789if ac_fn_c_try_link "$LINENO"; then :
31790 ac_cv_lib_xml2_xmlSAXVersion=yes
31791else
31792 ac_cv_lib_xml2_xmlSAXVersion=no
31793fi
31794rm -f core conftest.err conftest.$ac_objext \
31795 conftest$ac_exeext conftest.$ac_ext
31796LIBS=$ac_check_lib_save_LIBS
31797fi
31798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31799$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31800if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31801 passed=`expr $passed + 1`
31802else
31803 failed=`expr $failed + 1`
31804fi
31805
31806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31807$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31808if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31809 $as_echo_n "(cached) " >&6
31810else
31811 ac_check_lib_save_LIBS=$LIBS
31812LIBS="-lxml2 $LIBS"
31813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31814/* end confdefs.h. */
31815
31816/* Override any GCC internal prototype to avoid an error.
31817 Use char because int might match the return type of a GCC
31818 builtin and then its argument prototype would still apply. */
31819#ifdef __cplusplus
31820extern "C"
31821#endif
31822char xmlParseChunk ();
31823int
31824main ()
31825{
31826return xmlParseChunk ();
31827 ;
31828 return 0;
31829}
31830_ACEOF
31831if ac_fn_c_try_link "$LINENO"; then :
31832 ac_cv_lib_xml2_xmlParseChunk=yes
31833else
31834 ac_cv_lib_xml2_xmlParseChunk=no
31835fi
31836rm -f core conftest.err conftest.$ac_objext \
31837 conftest$ac_exeext conftest.$ac_ext
31838LIBS=$ac_check_lib_save_LIBS
31839fi
31840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31841$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31842if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31843 passed=`expr $passed + 1`
31844else
31845 failed=`expr $failed + 1`
31846fi
31847
31848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31849$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31850if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31851 $as_echo_n "(cached) " >&6
31852else
31853 ac_check_lib_save_LIBS=$LIBS
31854LIBS="-lxml2 $LIBS"
31855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31856/* end confdefs.h. */
31857
31858/* Override any GCC internal prototype to avoid an error.
31859 Use char because int might match the return type of a GCC
31860 builtin and then its argument prototype would still apply. */
31861#ifdef __cplusplus
31862extern "C"
31863#endif
31864char xmlCreatePushParserCtxt ();
31865int
31866main ()
31867{
31868return xmlCreatePushParserCtxt ();
31869 ;
31870 return 0;
31871}
31872_ACEOF
31873if ac_fn_c_try_link "$LINENO"; then :
31874 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31875else
31876 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31877fi
31878rm -f core conftest.err conftest.$ac_objext \
31879 conftest$ac_exeext conftest.$ac_ext
31880LIBS=$ac_check_lib_save_LIBS
31881fi
31882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
31883$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
31884if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
31885 passed=`expr $passed + 1`
31886else
31887 failed=`expr $failed + 1`
31888fi
31889
31890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31891$as_echo_n "checking if XML package is complete... " >&6; }
31892 if test $passed -gt 0; then
31893 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031894 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31895$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031896 have_xml='no (failed tests)'
31897 LDFLAGS="$PERSIST_LDFLAGS"
31898 CPPFLAGS="$PERSIST_CPPFLAGS"
31899 else
31900 XML_LIBS='-lxml2'
31901 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031902
cristy8b350f62009-11-15 23:12:43 +000031903$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031904
cristy09b53e12011-10-14 12:47:22 +000031905 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31906$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031907 have_xml='yes'
31908 fi
31909 else
cristy09b53e12011-10-14 12:47:22 +000031910 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31911$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031912 fi
31913fi
cristy73bd4a52010-10-05 11:24:23 +000031914 if test "$have_xml" = 'yes'; then
31915 XML_DELEGATE_TRUE=
31916 XML_DELEGATE_FALSE='#'
31917else
31918 XML_DELEGATE_TRUE='#'
31919 XML_DELEGATE_FALSE=
31920fi
31921
cristy3ed852e2009-09-05 21:47:34 +000031922
31923
31924
31925# Substitute compiler name to build/link PerlMagick
31926#
31927
31928
31929#
31930# Configure install Paths
31931#
cristy7def36a2011-10-28 19:04:41 +000031932
cristy2a11bef2011-10-28 18:33:11 +000031933# Path to ImageMagick header files
31934INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000031935INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
31936DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000031937case "${build_os}" in
31938 mingw* )
31939 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
31940 ;;
31941esac
31942
31943cat >>confdefs.h <<_ACEOF
31944#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
31945_ACEOF
31946
31947
cristy3ed852e2009-09-05 21:47:34 +000031948
31949# Subdirectory under lib to place ImageMagick lib files
31950LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31951
31952cat >>confdefs.h <<_ACEOF
31953#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31954_ACEOF
31955
31956
31957# Path to ImageMagick bin directory
31958EXECUTABLE_PATH="${BIN_DIR}"
31959DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31960case "${build_os}" in
31961 mingw* )
31962 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31963 ;;
31964esac
31965
31966cat >>confdefs.h <<_ACEOF
31967#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31968_ACEOF
31969
31970
31971
31972# Path to ImageMagick lib
31973LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31974DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31975case "${build_os}" in
31976 mingw* )
31977 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31978 ;;
31979esac
31980
31981cat >>confdefs.h <<_ACEOF
31982#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31983_ACEOF
31984
31985
31986
cristy3ed852e2009-09-05 21:47:34 +000031987#
31988# Subdirectory under lib to place ImageMagick coder module files
31989CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31990
31991cat >>confdefs.h <<_ACEOF
31992#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31993_ACEOF
31994
31995CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31996DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31997case "${build_os}" in
31998 mingw* )
31999 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32000 ;;
32001esac
32002
32003cat >>confdefs.h <<_ACEOF
32004#define CODER_PATH "$DEFINE_CODER_PATH"
32005_ACEOF
32006
32007
32008
32009#
32010# Subdirectory under lib to place ImageMagick filter module files
32011FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32012
32013cat >>confdefs.h <<_ACEOF
32014#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32015_ACEOF
32016
32017FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32018DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32019case "${build_os}" in
32020 mingw* )
32021 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32022 ;;
32023esac
32024
32025cat >>confdefs.h <<_ACEOF
32026#define FILTER_PATH "$DEFINE_FILTER_PATH"
32027_ACEOF
32028
32029
32030
32031#
32032# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000032033DOCUMENTATION_RELATIVE_PATH=""
32034DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32035DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032036case "${build_os}" in
32037 mingw* )
32038 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32039 ;;
32040esac
32041
32042cat >>confdefs.h <<_ACEOF
32043#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32044_ACEOF
32045
32046
32047
cristy2a11bef2011-10-28 18:33:11 +000032048# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032049CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032050
32051cat >>confdefs.h <<_ACEOF
32052#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32053_ACEOF
32054
cristy7def36a2011-10-28 19:04:41 +000032055CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032056DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32057case "${build_os}" in
32058 mingw* )
32059 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32060 ;;
32061esac
32062
32063cat >>confdefs.h <<_ACEOF
32064#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32065_ACEOF
32066
32067
32068
cristy2a11bef2011-10-28 18:33:11 +000032069# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032070SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032071
32072cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032073#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032074_ACEOF
32075
cristy670aa3c2011-11-03 00:54:00 +000032076SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032077DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032078case "${build_os}" in
32079 mingw* )
cristy4f820712011-04-01 12:35:43 +000032080 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032081 ;;
32082esac
32083
32084cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032085#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032086_ACEOF
32087
32088
32089
cristy408ebcd2011-11-14 01:36:57 +000032090# Subdirectory to place architecture-dependent configuration files
32091SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032092
32093cat >>confdefs.h <<_ACEOF
32094#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32095_ACEOF
32096
cristy408ebcd2011-11-14 01:36:57 +000032097SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32098DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032099case "${build_os}" in
32100 mingw* )
32101 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32102 ;;
32103esac
32104
32105cat >>confdefs.h <<_ACEOF
32106#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32107_ACEOF
32108
32109
32110
cristy3ed852e2009-09-05 21:47:34 +000032111#
32112# program_transform_name is formed for use in a Makefile, so create a
32113# modified version for use in a shell script.
32114configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32115
32116# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032117{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32118$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032120$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032121{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32122$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032123AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032124BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032125BZIPDelegateDefault='bzip2'
32126BrowseDelegateDefault='xdg-open'
32127CGMDecodeDelegateDefault='ralcgm'
32128CatDelegateDefault='cat'
32129DNGDecodeDelegateDefault='ufraw-batch'
32130GVCDecodeDelegateDefault='dot'
32131DVIDecodeDelegateDefault='dvips'
32132EchoDelegateDefault='echo'
32133EditorDelegateDefault='xterm'
32134FIGDecodeDelegateDefault='fig2dev'
32135ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32136DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32137MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32138GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032139HPGLDecodeDelegateDefault='hp2xx'
32140HTMLDecodeDelegateDefault='html2ps'
32141ILBMDecodeDelegateDefault='ilbmtoppm'
32142ILBMEncodeDelegateDefault='ppmtoilbm'
32143LPDelegateDefault='lp'
32144LPRDelegateDefault='lpr'
32145LZWDecodeDelegateDefault='uncompress'
32146LZWEncodeDelegateDefault='compress'
32147LaunchDelegateDefault='gimp'
32148MANDelegateDefault='groff'
32149MPEGDecodeDelegateDefault='ffmpeg'
32150MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032151MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032152MVDelegateDefault='mv'
32153PCLDelegateDefault='pcl6'
32154PGPDecodeDelegateDefault='pgpv'
32155POVDelegateDefault='povray'
32156if test "$native_win32_build" = 'yes'; then
32157 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032158elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032159 PSDelegateDefault='gsc'
32160else
32161 PSDelegateDefault='gs'
32162fi
32163RLEEncodeDelegateDefault='rawtorle'
32164RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000032165RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000032166SCANDecodeDelegateDefault='scanimage'
32167TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032168UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032169WMFDecodeDelegateDefault='wmf2eps'
32170WWWDecodeDelegateDefault='curl'
32171XPSDelegateDefault='gxps'
32172ZipDelegateDefault='gzip'
32173
32174# Search for delegates
32175# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32176set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032178$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032179if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032180 $as_echo_n "(cached) " >&6
32181else
32182 case $AutotraceDecodeDelegate in
32183 [\\/]* | ?:[\\/]*)
32184 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32185 ;;
32186 *)
32187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32188for as_dir in $PATH
32189do
32190 IFS=$as_save_IFS
32191 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032192 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32194 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032196 break 2
32197 fi
32198done
cristy8b350f62009-11-15 23:12:43 +000032199 done
cristy3ed852e2009-09-05 21:47:34 +000032200IFS=$as_save_IFS
32201
32202 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32203 ;;
32204esac
32205fi
32206AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32207if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032209$as_echo "$AutotraceDecodeDelegate" >&6; }
32210else
cristy8b350f62009-11-15 23:12:43 +000032211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032212$as_echo "no" >&6; }
32213fi
32214
32215
cristy3ed852e2009-09-05 21:47:34 +000032216# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32217set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032219$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032220if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032221 $as_echo_n "(cached) " >&6
32222else
32223 case $BlenderDecodeDelegate in
32224 [\\/]* | ?:[\\/]*)
32225 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32226 ;;
32227 *)
32228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32229for as_dir in $PATH
32230do
32231 IFS=$as_save_IFS
32232 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032233 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32235 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032237 break 2
32238 fi
32239done
cristy8b350f62009-11-15 23:12:43 +000032240 done
cristy3ed852e2009-09-05 21:47:34 +000032241IFS=$as_save_IFS
32242
32243 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32244 ;;
32245esac
32246fi
32247BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32248if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032250$as_echo "$BlenderDecodeDelegate" >&6; }
32251else
cristy8b350f62009-11-15 23:12:43 +000032252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032253$as_echo "no" >&6; }
32254fi
32255
32256
32257# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32258set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032260$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032261if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032262 $as_echo_n "(cached) " >&6
32263else
32264 case $BZIPDelegate in
32265 [\\/]* | ?:[\\/]*)
32266 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32267 ;;
32268 *)
32269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32270for as_dir in $PATH
32271do
32272 IFS=$as_save_IFS
32273 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032274 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32276 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032278 break 2
32279 fi
32280done
cristy8b350f62009-11-15 23:12:43 +000032281 done
cristy3ed852e2009-09-05 21:47:34 +000032282IFS=$as_save_IFS
32283
32284 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32285 ;;
32286esac
32287fi
32288BZIPDelegate=$ac_cv_path_BZIPDelegate
32289if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032291$as_echo "$BZIPDelegate" >&6; }
32292else
cristy8b350f62009-11-15 23:12:43 +000032293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032294$as_echo "no" >&6; }
32295fi
32296
32297
32298# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32299set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032301$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032302if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032303 $as_echo_n "(cached) " >&6
32304else
32305 case $BrowseDelegate in
32306 [\\/]* | ?:[\\/]*)
32307 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32308 ;;
32309 *)
32310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32311for as_dir in $PATH
32312do
32313 IFS=$as_save_IFS
32314 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032315 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32317 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032319 break 2
32320 fi
32321done
cristy8b350f62009-11-15 23:12:43 +000032322 done
cristy3ed852e2009-09-05 21:47:34 +000032323IFS=$as_save_IFS
32324
32325 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
32326 ;;
32327esac
32328fi
32329BrowseDelegate=$ac_cv_path_BrowseDelegate
32330if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032332$as_echo "$BrowseDelegate" >&6; }
32333else
cristy8b350f62009-11-15 23:12:43 +000032334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032335$as_echo "no" >&6; }
32336fi
32337
32338
32339# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32340set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032342$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032343if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032344 $as_echo_n "(cached) " >&6
32345else
32346 case $CGMDecodeDelegate in
32347 [\\/]* | ?:[\\/]*)
32348 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32349 ;;
32350 *)
32351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32352for as_dir in $PATH
32353do
32354 IFS=$as_save_IFS
32355 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032356 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32358 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032360 break 2
32361 fi
32362done
cristy8b350f62009-11-15 23:12:43 +000032363 done
cristy3ed852e2009-09-05 21:47:34 +000032364IFS=$as_save_IFS
32365
32366 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32367 ;;
32368esac
32369fi
32370CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32371if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032373$as_echo "$CGMDecodeDelegate" >&6; }
32374else
cristy8b350f62009-11-15 23:12:43 +000032375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032376$as_echo "no" >&6; }
32377fi
32378
32379
32380# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32381set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032383$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032384if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032385 $as_echo_n "(cached) " >&6
32386else
32387 case $CatDelegate in
32388 [\\/]* | ?:[\\/]*)
32389 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32390 ;;
32391 *)
32392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32393for as_dir in $PATH
32394do
32395 IFS=$as_save_IFS
32396 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032397 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32399 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032401 break 2
32402 fi
32403done
cristy8b350f62009-11-15 23:12:43 +000032404 done
cristy3ed852e2009-09-05 21:47:34 +000032405IFS=$as_save_IFS
32406
32407 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32408 ;;
32409esac
32410fi
32411CatDelegate=$ac_cv_path_CatDelegate
32412if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032414$as_echo "$CatDelegate" >&6; }
32415else
cristy8b350f62009-11-15 23:12:43 +000032416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032417$as_echo "no" >&6; }
32418fi
32419
32420
32421# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32422set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032424$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032425if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032426 $as_echo_n "(cached) " >&6
32427else
32428 case $DNGDecodeDelegate in
32429 [\\/]* | ?:[\\/]*)
32430 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32431 ;;
32432 *)
32433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32434for as_dir in $PATH
32435do
32436 IFS=$as_save_IFS
32437 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032438 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32440 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032442 break 2
32443 fi
32444done
cristy8b350f62009-11-15 23:12:43 +000032445 done
cristy3ed852e2009-09-05 21:47:34 +000032446IFS=$as_save_IFS
32447
32448 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32449 ;;
32450esac
32451fi
32452DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32453if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032455$as_echo "$DNGDecodeDelegate" >&6; }
32456else
cristy8b350f62009-11-15 23:12:43 +000032457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032458$as_echo "no" >&6; }
32459fi
32460
32461
32462# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32463set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032465$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032466if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032467 $as_echo_n "(cached) " >&6
32468else
32469 case $GVCDecodeDelegate in
32470 [\\/]* | ?:[\\/]*)
32471 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32472 ;;
32473 *)
32474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32475for as_dir in $PATH
32476do
32477 IFS=$as_save_IFS
32478 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032479 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32481 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032483 break 2
32484 fi
32485done
cristy8b350f62009-11-15 23:12:43 +000032486 done
cristy3ed852e2009-09-05 21:47:34 +000032487IFS=$as_save_IFS
32488
32489 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32490 ;;
32491esac
32492fi
32493GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32494if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032496$as_echo "$GVCDecodeDelegate" >&6; }
32497else
cristy8b350f62009-11-15 23:12:43 +000032498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032499$as_echo "no" >&6; }
32500fi
32501
32502
32503# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32504set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032506$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032507if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032508 $as_echo_n "(cached) " >&6
32509else
32510 case $DVIDecodeDelegate in
32511 [\\/]* | ?:[\\/]*)
32512 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32513 ;;
32514 *)
32515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32516for as_dir in $PATH
32517do
32518 IFS=$as_save_IFS
32519 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032520 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32522 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032524 break 2
32525 fi
32526done
cristy8b350f62009-11-15 23:12:43 +000032527 done
cristy3ed852e2009-09-05 21:47:34 +000032528IFS=$as_save_IFS
32529
32530 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32531 ;;
32532esac
32533fi
32534DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32535if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032537$as_echo "$DVIDecodeDelegate" >&6; }
32538else
cristy8b350f62009-11-15 23:12:43 +000032539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032540$as_echo "no" >&6; }
32541fi
32542
32543
32544# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32545set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032547$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032548if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032549 $as_echo_n "(cached) " >&6
32550else
32551 case $EchoDelegate in
32552 [\\/]* | ?:[\\/]*)
32553 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32554 ;;
32555 *)
32556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32557for as_dir in $PATH
32558do
32559 IFS=$as_save_IFS
32560 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32563 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032565 break 2
32566 fi
32567done
cristy8b350f62009-11-15 23:12:43 +000032568 done
cristy3ed852e2009-09-05 21:47:34 +000032569IFS=$as_save_IFS
32570
32571 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32572 ;;
32573esac
32574fi
32575EchoDelegate=$ac_cv_path_EchoDelegate
32576if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032578$as_echo "$EchoDelegate" >&6; }
32579else
cristy8b350f62009-11-15 23:12:43 +000032580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032581$as_echo "no" >&6; }
32582fi
32583
32584
32585# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32586set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032588$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032589if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032590 $as_echo_n "(cached) " >&6
32591else
32592 case $EditorDelegate in
32593 [\\/]* | ?:[\\/]*)
32594 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32595 ;;
32596 *)
32597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32598for as_dir in $PATH
32599do
32600 IFS=$as_save_IFS
32601 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032602 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32604 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032606 break 2
32607 fi
32608done
cristy8b350f62009-11-15 23:12:43 +000032609 done
cristy3ed852e2009-09-05 21:47:34 +000032610IFS=$as_save_IFS
32611
32612 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32613 ;;
32614esac
32615fi
32616EditorDelegate=$ac_cv_path_EditorDelegate
32617if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032619$as_echo "$EditorDelegate" >&6; }
32620else
cristy8b350f62009-11-15 23:12:43 +000032621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032622$as_echo "no" >&6; }
32623fi
32624
32625
32626# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32627set dummy "$FIGDecodeDelegateDefault"; 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_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032631 $as_echo_n "(cached) " >&6
32632else
32633 case $FIGDecodeDelegate in
32634 [\\/]* | ?:[\\/]*)
32635 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32636 ;;
32637 *)
32638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32639for as_dir in $PATH
32640do
32641 IFS=$as_save_IFS
32642 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032643 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32645 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032647 break 2
32648 fi
32649done
cristy8b350f62009-11-15 23:12:43 +000032650 done
cristy3ed852e2009-09-05 21:47:34 +000032651IFS=$as_save_IFS
32652
32653 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32654 ;;
32655esac
32656fi
32657FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32658if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032660$as_echo "$FIGDecodeDelegate" >&6; }
32661else
cristy8b350f62009-11-15 23:12:43 +000032662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032663$as_echo "no" >&6; }
32664fi
32665
32666
32667# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32668set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032670$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032671if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032672 $as_echo_n "(cached) " >&6
32673else
32674 case $ConvertDelegate in
32675 [\\/]* | ?:[\\/]*)
32676 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32677 ;;
32678 *)
32679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32680for as_dir in $PATH
32681do
32682 IFS=$as_save_IFS
32683 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032684 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32686 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032688 break 2
32689 fi
32690done
cristy8b350f62009-11-15 23:12:43 +000032691 done
cristy3ed852e2009-09-05 21:47:34 +000032692IFS=$as_save_IFS
32693
32694 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32695 ;;
32696esac
32697fi
32698ConvertDelegate=$ac_cv_path_ConvertDelegate
32699if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032701$as_echo "$ConvertDelegate" >&6; }
32702else
cristy8b350f62009-11-15 23:12:43 +000032703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032704$as_echo "no" >&6; }
32705fi
32706
32707
32708# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32709set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032711$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032712if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032713 $as_echo_n "(cached) " >&6
32714else
32715 case $DisplayDelegate in
32716 [\\/]* | ?:[\\/]*)
32717 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32718 ;;
32719 *)
32720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32721for as_dir in $PATH
32722do
32723 IFS=$as_save_IFS
32724 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032725 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32727 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032729 break 2
32730 fi
32731done
cristy8b350f62009-11-15 23:12:43 +000032732 done
cristy3ed852e2009-09-05 21:47:34 +000032733IFS=$as_save_IFS
32734
32735 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32736 ;;
32737esac
32738fi
32739DisplayDelegate=$ac_cv_path_DisplayDelegate
32740if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032742$as_echo "$DisplayDelegate" >&6; }
32743else
cristy8b350f62009-11-15 23:12:43 +000032744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032745$as_echo "no" >&6; }
32746fi
32747
32748
32749# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32750set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032752$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032753if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032754 $as_echo_n "(cached) " >&6
32755else
32756 case $MogrifyDelegate in
32757 [\\/]* | ?:[\\/]*)
32758 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32759 ;;
32760 *)
32761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32762for as_dir in $PATH
32763do
32764 IFS=$as_save_IFS
32765 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032766 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32768 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032770 break 2
32771 fi
32772done
cristy8b350f62009-11-15 23:12:43 +000032773 done
cristy3ed852e2009-09-05 21:47:34 +000032774IFS=$as_save_IFS
32775
32776 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32777 ;;
32778esac
32779fi
32780MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32781if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032783$as_echo "$MogrifyDelegate" >&6; }
32784else
cristy8b350f62009-11-15 23:12:43 +000032785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032786$as_echo "no" >&6; }
32787fi
32788
32789
32790# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32791set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032793$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032794if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032795 $as_echo_n "(cached) " >&6
32796else
32797 case $GnuplotDecodeDelegate in
32798 [\\/]* | ?:[\\/]*)
32799 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32800 ;;
32801 *)
32802 as_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_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
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
32817 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32818 ;;
32819esac
32820fi
32821GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32822if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032824$as_echo "$GnuplotDecodeDelegate" >&6; }
32825else
cristy8b350f62009-11-15 23:12:43 +000032826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032827$as_echo "no" >&6; }
32828fi
32829
32830
cristy3ed852e2009-09-05 21:47:34 +000032831# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32832set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032834$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032835if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032836 $as_echo_n "(cached) " >&6
32837else
32838 case $HPGLDecodeDelegate in
32839 [\\/]* | ?:[\\/]*)
32840 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32841 ;;
32842 *)
32843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32844for as_dir in $PATH
32845do
32846 IFS=$as_save_IFS
32847 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032848 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32850 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032852 break 2
32853 fi
32854done
cristy8b350f62009-11-15 23:12:43 +000032855 done
cristy3ed852e2009-09-05 21:47:34 +000032856IFS=$as_save_IFS
32857
32858 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32859 ;;
32860esac
32861fi
32862HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32863if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032865$as_echo "$HPGLDecodeDelegate" >&6; }
32866else
cristy8b350f62009-11-15 23:12:43 +000032867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032868$as_echo "no" >&6; }
32869fi
32870
32871
32872# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32873set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032875$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032876if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032877 $as_echo_n "(cached) " >&6
32878else
32879 case $HTMLDecodeDelegate in
32880 [\\/]* | ?:[\\/]*)
32881 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32882 ;;
32883 *)
32884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32885for as_dir in $PATH
32886do
32887 IFS=$as_save_IFS
32888 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032889 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32891 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032893 break 2
32894 fi
32895done
cristy8b350f62009-11-15 23:12:43 +000032896 done
cristy3ed852e2009-09-05 21:47:34 +000032897IFS=$as_save_IFS
32898
32899 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32900 ;;
32901esac
32902fi
32903HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32904if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032906$as_echo "$HTMLDecodeDelegate" >&6; }
32907else
cristy8b350f62009-11-15 23:12:43 +000032908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032909$as_echo "no" >&6; }
32910fi
32911
32912
32913# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32914set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032916$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032917if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032918 $as_echo_n "(cached) " >&6
32919else
32920 case $ILBMDecodeDelegate in
32921 [\\/]* | ?:[\\/]*)
32922 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32923 ;;
32924 *)
32925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32926for as_dir in $PATH
32927do
32928 IFS=$as_save_IFS
32929 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032930 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32932 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032934 break 2
32935 fi
32936done
cristy8b350f62009-11-15 23:12:43 +000032937 done
cristy3ed852e2009-09-05 21:47:34 +000032938IFS=$as_save_IFS
32939
32940 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32941 ;;
32942esac
32943fi
32944ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32945if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032947$as_echo "$ILBMDecodeDelegate" >&6; }
32948else
cristy8b350f62009-11-15 23:12:43 +000032949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032950$as_echo "no" >&6; }
32951fi
32952
32953
32954# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32955set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032957$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032958if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032959 $as_echo_n "(cached) " >&6
32960else
32961 case $ILBMEncodeDelegate in
32962 [\\/]* | ?:[\\/]*)
32963 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32964 ;;
32965 *)
32966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32967for as_dir in $PATH
32968do
32969 IFS=$as_save_IFS
32970 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032971 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32973 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032975 break 2
32976 fi
32977done
cristy8b350f62009-11-15 23:12:43 +000032978 done
cristy3ed852e2009-09-05 21:47:34 +000032979IFS=$as_save_IFS
32980
32981 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32982 ;;
32983esac
32984fi
32985ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32986if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032988$as_echo "$ILBMEncodeDelegate" >&6; }
32989else
cristy8b350f62009-11-15 23:12:43 +000032990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032991$as_echo "no" >&6; }
32992fi
32993
32994
32995# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32996set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032998$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032999if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033000 $as_echo_n "(cached) " >&6
33001else
33002 case $LPDelegate in
33003 [\\/]* | ?:[\\/]*)
33004 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33005 ;;
33006 *)
33007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33008for as_dir in $PATH
33009do
33010 IFS=$as_save_IFS
33011 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033012 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33014 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033016 break 2
33017 fi
33018done
cristy8b350f62009-11-15 23:12:43 +000033019 done
cristy3ed852e2009-09-05 21:47:34 +000033020IFS=$as_save_IFS
33021
33022 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33023 ;;
33024esac
33025fi
33026LPDelegate=$ac_cv_path_LPDelegate
33027if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033029$as_echo "$LPDelegate" >&6; }
33030else
cristy8b350f62009-11-15 23:12:43 +000033031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033032$as_echo "no" >&6; }
33033fi
33034
33035
33036# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33037set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033039$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033040if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033041 $as_echo_n "(cached) " >&6
33042else
33043 case $LPRDelegate in
33044 [\\/]* | ?:[\\/]*)
33045 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33046 ;;
33047 *)
33048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33049for as_dir in $PATH
33050do
33051 IFS=$as_save_IFS
33052 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033053 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33055 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033057 break 2
33058 fi
33059done
cristy8b350f62009-11-15 23:12:43 +000033060 done
cristy3ed852e2009-09-05 21:47:34 +000033061IFS=$as_save_IFS
33062
33063 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33064 ;;
33065esac
33066fi
33067LPRDelegate=$ac_cv_path_LPRDelegate
33068if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033070$as_echo "$LPRDelegate" >&6; }
33071else
cristy8b350f62009-11-15 23:12:43 +000033072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033073$as_echo "no" >&6; }
33074fi
33075
33076
33077# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
33078set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033080$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033081if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033082 $as_echo_n "(cached) " >&6
33083else
33084 case $LZWDecodeDelegate in
33085 [\\/]* | ?:[\\/]*)
33086 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
33087 ;;
33088 *)
33089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33090for as_dir in $PATH
33091do
33092 IFS=$as_save_IFS
33093 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033094 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33096 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033098 break 2
33099 fi
33100done
cristy8b350f62009-11-15 23:12:43 +000033101 done
cristy3ed852e2009-09-05 21:47:34 +000033102IFS=$as_save_IFS
33103
33104 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33105 ;;
33106esac
33107fi
33108LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33109if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033111$as_echo "$LZWDecodeDelegate" >&6; }
33112else
cristy8b350f62009-11-15 23:12:43 +000033113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033114$as_echo "no" >&6; }
33115fi
33116
33117
33118# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33119set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033121$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033122if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033123 $as_echo_n "(cached) " >&6
33124else
33125 case $LZWEncodeDelegate in
33126 [\\/]* | ?:[\\/]*)
33127 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33128 ;;
33129 *)
33130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33131for as_dir in $PATH
33132do
33133 IFS=$as_save_IFS
33134 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033135 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33137 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033139 break 2
33140 fi
33141done
cristy8b350f62009-11-15 23:12:43 +000033142 done
cristy3ed852e2009-09-05 21:47:34 +000033143IFS=$as_save_IFS
33144
33145 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33146 ;;
33147esac
33148fi
33149LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33150if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033152$as_echo "$LZWEncodeDelegate" >&6; }
33153else
cristy8b350f62009-11-15 23:12:43 +000033154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033155$as_echo "no" >&6; }
33156fi
33157
33158
33159# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33160set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033162$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033163if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033164 $as_echo_n "(cached) " >&6
33165else
33166 case $LaunchDelegate in
33167 [\\/]* | ?:[\\/]*)
33168 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33169 ;;
33170 *)
33171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33172for as_dir in $PATH
33173do
33174 IFS=$as_save_IFS
33175 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033176 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33178 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033180 break 2
33181 fi
33182done
cristy8b350f62009-11-15 23:12:43 +000033183 done
cristy3ed852e2009-09-05 21:47:34 +000033184IFS=$as_save_IFS
33185
33186 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33187 ;;
33188esac
33189fi
33190LaunchDelegate=$ac_cv_path_LaunchDelegate
33191if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033193$as_echo "$LaunchDelegate" >&6; }
33194else
cristy8b350f62009-11-15 23:12:43 +000033195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033196$as_echo "no" >&6; }
33197fi
33198
33199
33200# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33201set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033203$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033204if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033205 $as_echo_n "(cached) " >&6
33206else
33207 case $MANDelegate in
33208 [\\/]* | ?:[\\/]*)
33209 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33210 ;;
33211 *)
33212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33213for as_dir in $PATH
33214do
33215 IFS=$as_save_IFS
33216 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033217 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33219 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033221 break 2
33222 fi
33223done
cristy8b350f62009-11-15 23:12:43 +000033224 done
cristy3ed852e2009-09-05 21:47:34 +000033225IFS=$as_save_IFS
33226
33227 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33228 ;;
33229esac
33230fi
33231MANDelegate=$ac_cv_path_MANDelegate
33232if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033234$as_echo "$MANDelegate" >&6; }
33235else
cristy8b350f62009-11-15 23:12:43 +000033236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033237$as_echo "no" >&6; }
33238fi
33239
33240
33241# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33242set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033244$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033245if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033246 $as_echo_n "(cached) " >&6
33247else
33248 case $MPEGDecodeDelegate in
33249 [\\/]* | ?:[\\/]*)
33250 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33251 ;;
33252 *)
33253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33254for as_dir in $PATH
33255do
33256 IFS=$as_save_IFS
33257 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033258 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33260 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033262 break 2
33263 fi
33264done
cristy8b350f62009-11-15 23:12:43 +000033265 done
cristy3ed852e2009-09-05 21:47:34 +000033266IFS=$as_save_IFS
33267
33268 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33269 ;;
33270esac
33271fi
33272MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33273if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033275$as_echo "$MPEGDecodeDelegate" >&6; }
33276else
cristy8b350f62009-11-15 23:12:43 +000033277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033278$as_echo "no" >&6; }
33279fi
33280
33281
33282# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33283set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033285$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033286if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033287 $as_echo_n "(cached) " >&6
33288else
33289 case $MPEGEncodeDelegate in
33290 [\\/]* | ?:[\\/]*)
33291 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33292 ;;
33293 *)
33294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33295for as_dir in $PATH
33296do
33297 IFS=$as_save_IFS
33298 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033299 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33301 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033303 break 2
33304 fi
33305done
cristy8b350f62009-11-15 23:12:43 +000033306 done
cristy3ed852e2009-09-05 21:47:34 +000033307IFS=$as_save_IFS
33308
33309 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33310 ;;
33311esac
33312fi
33313MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33314if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033316$as_echo "$MPEGEncodeDelegate" >&6; }
33317else
cristy8b350f62009-11-15 23:12:43 +000033318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033319$as_echo "no" >&6; }
33320fi
33321
33322
cristy935c86e2010-06-05 23:50:07 +000033323# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33324set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33326$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033327if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033328 $as_echo_n "(cached) " >&6
33329else
33330 case $MrSIDDecodeDelegate in
33331 [\\/]* | ?:[\\/]*)
33332 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33333 ;;
33334 *)
33335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33336for as_dir in $PATH
33337do
33338 IFS=$as_save_IFS
33339 test -z "$as_dir" && as_dir=.
33340 for ac_exec_ext in '' $ac_executable_extensions; do
33341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33342 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33344 break 2
33345 fi
33346done
33347 done
33348IFS=$as_save_IFS
33349
33350 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33351 ;;
33352esac
33353fi
33354MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33355if test -n "$MrSIDDecodeDelegate"; then
33356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33357$as_echo "$MrSIDDecodeDelegate" >&6; }
33358else
33359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33360$as_echo "no" >&6; }
33361fi
33362
33363
cristy3ed852e2009-09-05 21:47:34 +000033364# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33365set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033367$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033368if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033369 $as_echo_n "(cached) " >&6
33370else
33371 case $MVDelegate in
33372 [\\/]* | ?:[\\/]*)
33373 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33374 ;;
33375 *)
33376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33377for as_dir in $PATH
33378do
33379 IFS=$as_save_IFS
33380 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033381 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33383 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033385 break 2
33386 fi
33387done
cristy8b350f62009-11-15 23:12:43 +000033388 done
cristy3ed852e2009-09-05 21:47:34 +000033389IFS=$as_save_IFS
33390
33391 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33392 ;;
33393esac
33394fi
33395MVDelegate=$ac_cv_path_MVDelegate
33396if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033398$as_echo "$MVDelegate" >&6; }
33399else
cristy8b350f62009-11-15 23:12:43 +000033400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033401$as_echo "no" >&6; }
33402fi
33403
33404
33405# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33406set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033408$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033409if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033410 $as_echo_n "(cached) " >&6
33411else
33412 case $PCLDelegate in
33413 [\\/]* | ?:[\\/]*)
33414 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33415 ;;
33416 *)
33417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33418for as_dir in $PATH
33419do
33420 IFS=$as_save_IFS
33421 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033422 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33424 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033426 break 2
33427 fi
33428done
cristy8b350f62009-11-15 23:12:43 +000033429 done
cristy3ed852e2009-09-05 21:47:34 +000033430IFS=$as_save_IFS
33431
33432 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33433 ;;
33434esac
33435fi
33436PCLDelegate=$ac_cv_path_PCLDelegate
33437if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033439$as_echo "$PCLDelegate" >&6; }
33440else
cristy8b350f62009-11-15 23:12:43 +000033441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033442$as_echo "no" >&6; }
33443fi
33444
33445
33446# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33447set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033449$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033450if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033451 $as_echo_n "(cached) " >&6
33452else
33453 case $PGPDecodeDelegate in
33454 [\\/]* | ?:[\\/]*)
33455 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33456 ;;
33457 *)
33458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33459for as_dir in $PATH
33460do
33461 IFS=$as_save_IFS
33462 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033463 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33465 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033467 break 2
33468 fi
33469done
cristy8b350f62009-11-15 23:12:43 +000033470 done
cristy3ed852e2009-09-05 21:47:34 +000033471IFS=$as_save_IFS
33472
33473 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33474 ;;
33475esac
33476fi
33477PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33478if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033480$as_echo "$PGPDecodeDelegate" >&6; }
33481else
cristy8b350f62009-11-15 23:12:43 +000033482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033483$as_echo "no" >&6; }
33484fi
33485
33486
33487# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33488set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033490$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033491if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033492 $as_echo_n "(cached) " >&6
33493else
33494 case $POVDelegate in
33495 [\\/]* | ?:[\\/]*)
33496 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33497 ;;
33498 *)
33499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33500for as_dir in $PATH
33501do
33502 IFS=$as_save_IFS
33503 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033504 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33506 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033508 break 2
33509 fi
33510done
cristy8b350f62009-11-15 23:12:43 +000033511 done
cristy3ed852e2009-09-05 21:47:34 +000033512IFS=$as_save_IFS
33513
33514 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33515 ;;
33516esac
33517fi
33518POVDelegate=$ac_cv_path_POVDelegate
33519if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033521$as_echo "$POVDelegate" >&6; }
33522else
cristy8b350f62009-11-15 23:12:43 +000033523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033524$as_echo "no" >&6; }
33525fi
33526
33527
33528for ac_prog in gsx gsc "$PSDelegateDefault"
33529do
33530 # Extract the first word of "$ac_prog", so it can be a program name with args.
33531set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033533$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033534if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033535 $as_echo_n "(cached) " >&6
33536else
33537 case $PSDelegate in
33538 [\\/]* | ?:[\\/]*)
33539 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33540 ;;
33541 *)
33542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33543for as_dir in $PATH
33544do
33545 IFS=$as_save_IFS
33546 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033547 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33549 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033551 break 2
33552 fi
33553done
cristy8b350f62009-11-15 23:12:43 +000033554 done
cristy3ed852e2009-09-05 21:47:34 +000033555IFS=$as_save_IFS
33556
33557 ;;
33558esac
33559fi
33560PSDelegate=$ac_cv_path_PSDelegate
33561if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033563$as_echo "$PSDelegate" >&6; }
33564else
cristy8b350f62009-11-15 23:12:43 +000033565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033566$as_echo "no" >&6; }
33567fi
33568
33569
33570 test -n "$PSDelegate" && break
33571done
33572test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33573
33574# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33575set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033577$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033578if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033579 $as_echo_n "(cached) " >&6
33580else
33581 case $RLEEncodeDelegate in
33582 [\\/]* | ?:[\\/]*)
33583 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33584 ;;
33585 *)
33586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33587for as_dir in $PATH
33588do
33589 IFS=$as_save_IFS
33590 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033591 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33593 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033595 break 2
33596 fi
33597done
cristy8b350f62009-11-15 23:12:43 +000033598 done
cristy3ed852e2009-09-05 21:47:34 +000033599IFS=$as_save_IFS
33600
33601 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33602 ;;
33603esac
33604fi
33605RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33606if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033608$as_echo "$RLEEncodeDelegate" >&6; }
33609else
cristy8b350f62009-11-15 23:12:43 +000033610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033611$as_echo "no" >&6; }
33612fi
33613
33614
33615# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33616set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033618$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033619if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033620 $as_echo_n "(cached) " >&6
33621else
33622 case $RMDelegate in
33623 [\\/]* | ?:[\\/]*)
33624 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33625 ;;
33626 *)
33627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33628for as_dir in $PATH
33629do
33630 IFS=$as_save_IFS
33631 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033632 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33634 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033636 break 2
33637 fi
33638done
cristy8b350f62009-11-15 23:12:43 +000033639 done
cristy3ed852e2009-09-05 21:47:34 +000033640IFS=$as_save_IFS
33641
33642 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33643 ;;
33644esac
33645fi
33646RMDelegate=$ac_cv_path_RMDelegate
33647if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033649$as_echo "$RMDelegate" >&6; }
33650else
cristy8b350f62009-11-15 23:12:43 +000033651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033652$as_echo "no" >&6; }
33653fi
33654
33655
cristy4689cf02010-02-17 21:15:45 +000033656# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33657set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33659$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033660if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033661 $as_echo_n "(cached) " >&6
33662else
33663 case $RSVGDecodeDelegate in
33664 [\\/]* | ?:[\\/]*)
33665 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33666 ;;
33667 *)
33668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33669for as_dir in $PATH
33670do
33671 IFS=$as_save_IFS
33672 test -z "$as_dir" && as_dir=.
33673 for ac_exec_ext in '' $ac_executable_extensions; do
33674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33675 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33677 break 2
33678 fi
33679done
33680 done
33681IFS=$as_save_IFS
33682
33683 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33684 ;;
33685esac
33686fi
33687RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33688if test -n "$RSVGDecodeDelegate"; then
33689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33690$as_echo "$RSVGDecodeDelegate" >&6; }
33691else
33692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33693$as_echo "no" >&6; }
33694fi
33695
33696
cristy3ed852e2009-09-05 21:47:34 +000033697# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33698set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033700$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033701if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033702 $as_echo_n "(cached) " >&6
33703else
33704 case $SCANDecodeDelegate in
33705 [\\/]* | ?:[\\/]*)
33706 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33707 ;;
33708 *)
33709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33710for as_dir in $PATH
33711do
33712 IFS=$as_save_IFS
33713 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033714 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33716 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033718 break 2
33719 fi
33720done
cristy8b350f62009-11-15 23:12:43 +000033721 done
cristy3ed852e2009-09-05 21:47:34 +000033722IFS=$as_save_IFS
33723
33724 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33725 ;;
33726esac
33727fi
33728SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33729if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033731$as_echo "$SCANDecodeDelegate" >&6; }
33732else
cristy8b350f62009-11-15 23:12:43 +000033733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033734$as_echo "no" >&6; }
33735fi
33736
33737
33738# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33739set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033741$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033742if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033743 $as_echo_n "(cached) " >&6
33744else
33745 case $TXTDelegate in
33746 [\\/]* | ?:[\\/]*)
33747 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33748 ;;
33749 *)
33750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33751for as_dir in $PATH
33752do
33753 IFS=$as_save_IFS
33754 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033755 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33757 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033759 break 2
33760 fi
33761done
cristy8b350f62009-11-15 23:12:43 +000033762 done
cristy3ed852e2009-09-05 21:47:34 +000033763IFS=$as_save_IFS
33764
33765 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33766 ;;
33767esac
33768fi
33769TXTDelegate=$ac_cv_path_TXTDelegate
33770if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033772$as_echo "$TXTDelegate" >&6; }
33773else
cristy8b350f62009-11-15 23:12:43 +000033774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033775$as_echo "no" >&6; }
33776fi
33777
33778
cristy5ac9ac82010-07-29 13:24:24 +000033779# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33780set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33782$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033783if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033784 $as_echo_n "(cached) " >&6
33785else
33786 case $UniconvertorDelegate in
33787 [\\/]* | ?:[\\/]*)
33788 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33789 ;;
33790 *)
33791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33792for as_dir in $PATH
33793do
33794 IFS=$as_save_IFS
33795 test -z "$as_dir" && as_dir=.
33796 for ac_exec_ext in '' $ac_executable_extensions; do
33797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33798 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33800 break 2
33801 fi
33802done
33803 done
33804IFS=$as_save_IFS
33805
33806 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33807 ;;
33808esac
33809fi
33810UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33811if test -n "$UniconvertorDelegate"; then
33812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33813$as_echo "$UniconvertorDelegate" >&6; }
33814else
33815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33816$as_echo "no" >&6; }
33817fi
33818
33819
cristy3ed852e2009-09-05 21:47:34 +000033820# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33821set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033823$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033824if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033825 $as_echo_n "(cached) " >&6
33826else
33827 case $WMFDecodeDelegate in
33828 [\\/]* | ?:[\\/]*)
33829 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33830 ;;
33831 *)
33832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33833for as_dir in $PATH
33834do
33835 IFS=$as_save_IFS
33836 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033837 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33839 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033841 break 2
33842 fi
33843done
cristy8b350f62009-11-15 23:12:43 +000033844 done
cristy3ed852e2009-09-05 21:47:34 +000033845IFS=$as_save_IFS
33846
33847 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33848 ;;
33849esac
33850fi
33851WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33852if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033854$as_echo "$WMFDecodeDelegate" >&6; }
33855else
cristy8b350f62009-11-15 23:12:43 +000033856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033857$as_echo "no" >&6; }
33858fi
33859
33860
33861# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33862set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033864$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033865if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033866 $as_echo_n "(cached) " >&6
33867else
33868 case $WWWDecodeDelegate in
33869 [\\/]* | ?:[\\/]*)
33870 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33871 ;;
33872 *)
33873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33874for as_dir in $PATH
33875do
33876 IFS=$as_save_IFS
33877 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033878 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33880 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033882 break 2
33883 fi
33884done
cristy8b350f62009-11-15 23:12:43 +000033885 done
cristy3ed852e2009-09-05 21:47:34 +000033886IFS=$as_save_IFS
33887
33888 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33889 ;;
33890esac
33891fi
33892WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33893if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033895$as_echo "$WWWDecodeDelegate" >&6; }
33896else
cristy8b350f62009-11-15 23:12:43 +000033897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033898$as_echo "no" >&6; }
33899fi
33900
33901
33902# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33903set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033905$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033906if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033907 $as_echo_n "(cached) " >&6
33908else
33909 case $XPSDelegate in
33910 [\\/]* | ?:[\\/]*)
33911 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33912 ;;
33913 *)
33914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33915for as_dir in $PATH
33916do
33917 IFS=$as_save_IFS
33918 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033919 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33921 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033923 break 2
33924 fi
33925done
cristy8b350f62009-11-15 23:12:43 +000033926 done
cristy3ed852e2009-09-05 21:47:34 +000033927IFS=$as_save_IFS
33928
33929 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33930 ;;
33931esac
33932fi
33933XPSDelegate=$ac_cv_path_XPSDelegate
33934if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033936$as_echo "$XPSDelegate" >&6; }
33937else
cristy8b350f62009-11-15 23:12:43 +000033938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033939$as_echo "no" >&6; }
33940fi
33941
33942
33943# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33944set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033946$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033947if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033948 $as_echo_n "(cached) " >&6
33949else
33950 case $ZipDelegate in
33951 [\\/]* | ?:[\\/]*)
33952 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33953 ;;
33954 *)
33955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33956for as_dir in $PATH
33957do
33958 IFS=$as_save_IFS
33959 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033960 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33962 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033964 break 2
33965 fi
33966done
cristy8b350f62009-11-15 23:12:43 +000033967 done
cristy3ed852e2009-09-05 21:47:34 +000033968IFS=$as_save_IFS
33969
33970 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33971 ;;
33972esac
33973fi
33974ZipDelegate=$ac_cv_path_ZipDelegate
33975if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033977$as_echo "$ZipDelegate" >&6; }
33978else
cristy8b350f62009-11-15 23:12:43 +000033979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033980$as_echo "no" >&6; }
33981fi
33982
33983
33984
33985# Prefer lpr to lp; lp needs options tacked on.
33986if test "$LPRDelegate" != no; then
33987 PrintDelegate="$LPRDelegate"
33988else
33989 PrintDelegate="$LPDelegate -c -s"
33990fi
33991
33992
33993# Installed ImageMagick utiltity paths
33994ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33995DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33996MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33997
33998# Set delegate booleans
33999have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34000have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34001have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34002have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34003have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034004have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034005have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34006have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034007have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34008have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34009
34010#
34011# Test for font directories
34012#
34013type_include_files=''
34014
cristy430a7312010-01-21 20:44:04 +000034015# Dejavu fonts.
34016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34017$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34018dejavu_font_dir=''
34019if test "${with_dejavu_font_dir}" != 'default'; then
34020 dejavu_font_dir="${with_dejavu_font_dir}/"
34021else
34022 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34023 if test -f "${font_dir}DejaVuSerif.ttf"; then
34024 dejavu_font_dir="${font_dir}"
34025 break 1
34026 fi
34027 done
34028fi
34029if test "${dejavu_font_dir}x" != 'x'; then
34030 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034031 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34032$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034033else
cristy09b53e12011-10-14 12:47:22 +000034034 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34035$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034036fi
34037
34038
cristy3ed852e2009-09-05 21:47:34 +000034039# Windows
34040windows_font_dir=''
34041if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34042 windows_font_dir="${with_windows_font_dir}/"
34043fi
cristy430a7312010-01-21 20:44:04 +000034044if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034045 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34046 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34047 fi
34048 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34049 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34050 fi
34051 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34052 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34053 fi
34054fi
cristy430a7312010-01-21 20:44:04 +000034055if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034056 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34057fi
34058
34059
34060# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034062$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34063ghostscript_font_dir=''
34064if test "${with_gs_font_dir}" != 'default'; then
34065 ghostscript_font_dir="${with_gs_font_dir}/"
34066else
34067 if test "${native_win32_build}" = 'yes'; then
34068 # Native Windows Build
34069 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34070 if test -f "${font_dir}a010013l.pfb"; then
34071 ghostscript_font_dir="$font_dir"
34072 break 1
34073 fi
34074 done
34075 if test "${PSDelegate}" != 'gswin32c'; then
34076 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34077 fi
34078 else
34079 # Linux / Mac OS X / Unix Build
34080 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
34081 if test -f "${font_dir}a010013l.pfb"; then
34082 ghostscript_font_dir="${font_dir}"
34083 break 1
34084 fi
34085 done
34086 if test "${ghostscript_font_dir}x" = 'x'; then
34087 if test "$PSDelegate" != 'gs'; then
34088 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34089 fi
34090 fi
34091 fi
34092fi
34093if test "${ghostscript_font_dir}x" != 'x'; then
34094 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034095 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34096$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034097else
cristy09b53e12011-10-14 12:47:22 +000034098 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34099$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034100fi
34101
34102case "${build_os}" in
34103 mingw* )
34104 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34105 ;;
34106esac
34107
34108
34109
34110#
34111# Handle case where user doesn't want frozen paths
34112#
34113if test "$with_frozenpaths" != 'yes'; then
34114 # Re-set delegate definitions to default (no paths)
34115 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034116 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34117 BZIPDelegate="$BZIPDelegateDefault"
34118 BrowseDelegate="$BrowseDelegateDefault"
34119 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34120 CatDelegate="$CatDelegateDefault"
34121 ConvertDelegate="$ConvertDelegateDefault"
34122 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34123 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34124 EchoDelegate="$EchoDelegateDefault"
34125 EditorDelegate="$EditorDelegateDefault"
34126 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34127 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34128 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34129 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34130 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34131 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34132 LPDelegate="$LPDelegateDefault"
34133 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34134 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34135 LaunchDelegate="$LaunchDelegateDefault"
34136 MANDelegate="$MANDelegateDefault"
34137 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34138 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034139 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034140 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34141 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034142 PCLDelegate="$PCLDelegateDefault"
34143 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34144 POVDelegate="$POVDelegateDefault"
34145 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034146 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34147 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034148 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034149 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34150 ShowImageDelegate="$ShowImageDelegateDefault"
34151 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034152 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034153 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34154 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34155 XPSDelegate="$XPSDelegateDefault"
34156 ZipDelegate="$ZipDelegateDefault"
34157fi
34158
34159# Delegate substitutions
34160
34161
34162
34163
34164
34165
34166
34167
34168
34169
34170
34171
34172
34173
34174
34175
34176
34177
34178
34179
34180
34181
34182
34183
34184
34185
34186
34187
34188
34189
34190
34191
34192
34193
34194
34195
34196
34197
34198
34199
34200
34201
34202#
34203# RPM support.
34204#
34205RPM=''
34206for ac_prog in gnutar gtar tar
34207do
34208 # Extract the first word of "$ac_prog", so it can be a program name with args.
34209set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034211$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034212if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034213 $as_echo_n "(cached) " >&6
34214else
34215 if test -n "$TAR"; then
34216 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34217else
34218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34219for as_dir in $PATH
34220do
34221 IFS=$as_save_IFS
34222 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034223 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34225 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034227 break 2
34228 fi
34229done
cristy8b350f62009-11-15 23:12:43 +000034230 done
cristy3ed852e2009-09-05 21:47:34 +000034231IFS=$as_save_IFS
34232
34233fi
34234fi
34235TAR=$ac_cv_prog_TAR
34236if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034238$as_echo "$TAR" >&6; }
34239else
cristy8b350f62009-11-15 23:12:43 +000034240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034241$as_echo "no" >&6; }
34242fi
34243
34244
34245 test -n "$TAR" && break
34246done
34247
34248for ac_prog in perl
34249do
34250 # Extract the first word of "$ac_prog", so it can be a program name with args.
34251set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034253$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034254if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034255 $as_echo_n "(cached) " >&6
34256else
34257 if test -n "$PERL"; then
34258 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34259else
34260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34261for as_dir in $PATH
34262do
34263 IFS=$as_save_IFS
34264 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034265 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34267 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034269 break 2
34270 fi
34271done
cristy8b350f62009-11-15 23:12:43 +000034272 done
cristy3ed852e2009-09-05 21:47:34 +000034273IFS=$as_save_IFS
34274
34275fi
34276fi
34277PERL=$ac_cv_prog_PERL
34278if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034280$as_echo "$PERL" >&6; }
34281else
cristy8b350f62009-11-15 23:12:43 +000034282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034283$as_echo "no" >&6; }
34284fi
34285
34286
34287 test -n "$PERL" && break
34288done
34289
34290for ac_prog in rpmbuild rpm
34291do
34292 # Extract the first word of "$ac_prog", so it can be a program name with args.
34293set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034295$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034296if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034297 $as_echo_n "(cached) " >&6
34298else
34299 if test -n "$RPM"; then
34300 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34301else
34302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34303for as_dir in $PATH
34304do
34305 IFS=$as_save_IFS
34306 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034307 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34309 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034311 break 2
34312 fi
34313done
cristy8b350f62009-11-15 23:12:43 +000034314 done
cristy3ed852e2009-09-05 21:47:34 +000034315IFS=$as_save_IFS
34316
34317fi
34318fi
34319RPM=$ac_cv_prog_RPM
34320if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034322$as_echo "$RPM" >&6; }
34323else
cristy8b350f62009-11-15 23:12:43 +000034324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034325$as_echo "no" >&6; }
34326fi
34327
34328
34329 test -n "$RPM" && break
34330done
34331
34332
cristy73bd4a52010-10-05 11:24:23 +000034333ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34334
34335
34336AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34337
34338
34339AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34340
34341
34342AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34343
34344
34345 if test "x$RPM" != "x" ; then
34346 RPM_DELEGATE_TRUE=
34347 RPM_DELEGATE_FALSE='#'
34348else
34349 RPM_DELEGATE_TRUE='#'
34350 RPM_DELEGATE_FALSE=
34351fi
34352
cristy3ed852e2009-09-05 21:47:34 +000034353
34354#
34355# 7ZIP support (http://p7zip.sourceforge.net/)
34356#
34357P7ZIP=''
34358for ac_prog in 7za
34359do
34360 # Extract the first word of "$ac_prog", so it can be a program name with args.
34361set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034363$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034364if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034365 $as_echo_n "(cached) " >&6
34366else
34367 if test -n "$P7ZIP"; then
34368 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34369else
34370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34371for as_dir in $PATH
34372do
34373 IFS=$as_save_IFS
34374 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034375 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34377 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034379 break 2
34380 fi
34381done
cristy8b350f62009-11-15 23:12:43 +000034382 done
cristy3ed852e2009-09-05 21:47:34 +000034383IFS=$as_save_IFS
34384
34385fi
34386fi
34387P7ZIP=$ac_cv_prog_P7ZIP
34388if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034390$as_echo "$P7ZIP" >&6; }
34391else
cristy8b350f62009-11-15 23:12:43 +000034392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034393$as_echo "no" >&6; }
34394fi
34395
34396
34397 test -n "$P7ZIP" && break
34398done
34399
34400
cristy73bd4a52010-10-05 11:24:23 +000034401 if test "x$P7ZIP" != "x" ; then
34402 P7ZIP_DELEGATE_TRUE=
34403 P7ZIP_DELEGATE_FALSE='#'
34404else
34405 P7ZIP_DELEGATE_TRUE='#'
34406 P7ZIP_DELEGATE_FALSE=
34407fi
34408
cristy3ed852e2009-09-05 21:47:34 +000034409
34410#
34411# ZIP support (http://www.info-zip.org/Zip.html)
34412#
34413ZIP=''
34414for ac_prog in zip
34415do
34416 # Extract the first word of "$ac_prog", so it can be a program name with args.
34417set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034419$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034420if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034421 $as_echo_n "(cached) " >&6
34422else
34423 if test -n "$ZIP"; then
34424 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34425else
34426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34427for as_dir in $PATH
34428do
34429 IFS=$as_save_IFS
34430 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034431 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34433 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034435 break 2
34436 fi
34437done
cristy8b350f62009-11-15 23:12:43 +000034438 done
cristy3ed852e2009-09-05 21:47:34 +000034439IFS=$as_save_IFS
34440
34441fi
34442fi
34443ZIP=$ac_cv_prog_ZIP
34444if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034446$as_echo "$ZIP" >&6; }
34447else
cristy8b350f62009-11-15 23:12:43 +000034448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034449$as_echo "no" >&6; }
34450fi
34451
34452
34453 test -n "$ZIP" && break
34454done
34455
34456
cristy73bd4a52010-10-05 11:24:23 +000034457 if test "x$ZIP" != "x" ; then
34458 ZIP_DELEGATE_TRUE=
34459 ZIP_DELEGATE_FALSE='#'
34460else
34461 ZIP_DELEGATE_TRUE='#'
34462 ZIP_DELEGATE_FALSE=
34463fi
34464
cristy3ed852e2009-09-05 21:47:34 +000034465
34466#
34467# GhostPCL related configuration.
34468#
34469PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034470PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034471PCLMonoDevice=pbmraw
34472if test -z "$PCLVersion"; then
34473 PCLVersion='unknown'
34474fi
34475if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034476 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34477$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034479$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034480 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34481$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034482 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034484$as_echo_n "checking for pcl color device... " >&6; }
34485 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34486 :
34487 else
34488 PCLColorDevice=ppmraw
34489 fi
cristy09b53e12011-10-14 12:47:22 +000034490 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
34491$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034492
34493 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034495$as_echo_n "checking for pcl CMYK device... " >&6; }
34496 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34497 :
34498 else
34499 PCLCMYKDevice=$PCLColorDevice
34500 fi
cristy09b53e12011-10-14 12:47:22 +000034501 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
34502$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034503
34504 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034506$as_echo_n "checking for pcl mono device... " >&6; }
34507 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34508 :
34509 else
34510 PCLMonoDevice=$PCLColorDevice
34511 fi
cristy09b53e12011-10-14 12:47:22 +000034512 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
34513$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034514fi
34515
34516
34517
34518
34519
34520
34521#
34522# GhostXPS related configuration.
34523#
34524XPSColorDevice=ppmraw
34525XPSCMYKDevice=bmpsep8
34526XPSMonoDevice=pbmraw
34527if test -z "$XPSVersion"; then
34528 XPSVersion='unknown'
34529fi
34530if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034531 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34532$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034534$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034535 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34536$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034537 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034539$as_echo_n "checking for xps color device... " >&6; }
34540 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34541 :
34542 else
34543 XPSColorDevice=ppmraw
34544 fi
cristy09b53e12011-10-14 12:47:22 +000034545 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
34546$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034547
34548 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034550$as_echo_n "checking for xps CMYK device... " >&6; }
34551 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34552 :
34553 else
34554 XPSCMYKDevice=$XPSColorDevice
34555 fi
cristy09b53e12011-10-14 12:47:22 +000034556 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
34557$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034558
34559 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034561$as_echo_n "checking for xps mono device... " >&6; }
34562 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34563 :
34564 else
34565 XPSMonoDevice=$XPSColorDevice
34566 fi
cristy09b53e12011-10-14 12:47:22 +000034567 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
34568$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034569fi
34570
34571
34572
34573
34574
34575
34576#
34577# Ghostscript related configuration.
34578#
cristya97426c2011-02-04 01:41:27 +000034579GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034580GSColorDevice=pnmraw
34581GSCMYKDevice=pam
34582GSMonoDevice=pbmraw
34583GSPDFDevice=pdfwrite
34584GSPSDevice=pswrite
34585GSEPSDevice=epswrite
34586GSVersion='unknown'
34587if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034588 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34589$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034591$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034592 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34593$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000034594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034595$as_echo_n "checking for Ghostscript version... " >&6; }
34596 if GSVersion=`$PSDelegate --version`; then
34597 :
34598 else
34599 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34600 fi
cristy09b53e12011-10-14 12:47:22 +000034601 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
34602$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034603
34604 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034606$as_echo_n "checking for gs alpha device... " >&6; }
34607 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34608 :
34609 else
34610 GSAlphaDevice=pnmraw
34611 fi
cristy09b53e12011-10-14 12:47:22 +000034612 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
34613$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034614
34615 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034617$as_echo_n "checking for gs color device... " >&6; }
34618 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34619 :
34620 else
34621 GSColorDevice=pnmraw
34622 fi
cristy09b53e12011-10-14 12:47:22 +000034623 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
34624$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034625
34626 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034628$as_echo_n "checking for gs CMYK device... " >&6; }
34629 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34630 :
34631 else
34632 GSCMYKDevice=bmpsep8
34633 fi
cristy09b53e12011-10-14 12:47:22 +000034634 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
34635$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034636
34637 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034639$as_echo_n "checking for gs mono device... " >&6; }
34640 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34641 :
34642 else
34643 GSMonoDevice=$GSColorDevice
34644 fi
cristy09b53e12011-10-14 12:47:22 +000034645 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
34646$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034647
34648 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034650$as_echo_n "checking for gs PDF writing device... " >&6; }
34651 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34652 :
34653 else
34654 GSPDFDevice=nodevice
34655 fi
cristy09b53e12011-10-14 12:47:22 +000034656 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
34657$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034658
34659 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034661$as_echo_n "checking for gs PS writing device... " >&6; }
34662 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34663 :
34664 else
34665 GSPSDevice=nodevice
34666 fi
cristy09b53e12011-10-14 12:47:22 +000034667 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
34668$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034669
34670 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034672$as_echo_n "checking for gs EPS writing device... " >&6; }
34673 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34674 :
34675 else
34676 GSEPSDevice=nodevice
34677 fi
cristy09b53e12011-10-14 12:47:22 +000034678 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
34679$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034680fi
34681
34682
34683
34684
34685
34686
34687
34688
34689
34690
34691#
34692# PerlMagick-related configuration
34693#
34694
34695# Look for PERL if PerlMagick requested
34696# If name/path of desired PERL interpreter is specified, look for that one first
34697have_perl='no'
34698if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000034699 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34700$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034702$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034703 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34704$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034705 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034707$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034708if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034709 $as_echo_n "(cached) " >&6
34710else
34711 ac_cv_path_PERL="$with_perl"
34712fi
cristy8b350f62009-11-15 23:12:43 +000034713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034714$as_echo "$ac_cv_path_PERL" >&6; };
34715 PERL=$ac_cv_path_PERL
34716 have_perl="$ac_cv_path_PERL"
34717 else
34718 for ac_prog in perl perl5
34719do
34720 # Extract the first word of "$ac_prog", so it can be a program name with args.
34721set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034723$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034724if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034725 $as_echo_n "(cached) " >&6
34726else
34727 case $PERL in
34728 [\\/]* | ?:[\\/]*)
34729 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34730 ;;
34731 *)
34732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34733for as_dir in $PATH
34734do
34735 IFS=$as_save_IFS
34736 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034737 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34739 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034741 break 2
34742 fi
34743done
cristy8b350f62009-11-15 23:12:43 +000034744 done
cristy3ed852e2009-09-05 21:47:34 +000034745IFS=$as_save_IFS
34746
34747 ;;
34748esac
34749fi
34750PERL=$ac_cv_path_PERL
34751if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034753$as_echo "$PERL" >&6; }
34754else
cristy8b350f62009-11-15 23:12:43 +000034755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034756$as_echo "no" >&6; }
34757fi
34758
34759
34760 test -n "$PERL" && break
34761done
34762 if test "$ac_cv_path_PERL"; then
34763 have_perl="$ac_cv_path_PERL"
34764 fi
34765 fi
34766fi
34767
cristy949301e2010-01-06 01:38:40 +000034768if test "$with_perl" != 'yes' ; then
34769 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34770fi
34771
34772PERL_SUPPORTS_DESTDIR='no'
34773
cristy3ed852e2009-09-05 21:47:34 +000034774with_perl_static='no'
34775with_perl_dynamic='no'
34776if test "$have_perl" != 'no'; then
34777 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34778 with_perl_static='yes'
34779 fi
34780 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34781 with_perl_dynamic='yes'
34782 fi
34783 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034784
34785
34786
34787
34788 if test -n "$PERL"; then :
34789
34790 ax_perl_version="5.8.1"
34791
34792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34793$as_echo_n "checking for perl version... " >&6; }
34794
34795 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34796
34797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34798$as_echo "$perl_version" >&6; }
34799
34800 PERL_VERSION=$perl_version
34801
34802
34803
34804
34805
34806 # Used to indicate true or false condition
34807 ax_compare_version=false
34808
34809 # Convert the two version strings to be compared into a format that
34810 # allows a simple string comparison. The end result is that a version
34811 # string of the form 1.12.5-r617 will be converted to the form
34812 # 0001001200050617. In other words, each number is zero padded to four
34813 # digits, and non digits are removed.
34814
34815 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34816 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34817 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34818 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34819 -e 's/[^0-9]//g'`
34820
34821
34822 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34823 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34824 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34825 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34826 -e 's/[^0-9]//g'`
34827
34828
34829 ax_compare_version=`echo "x$ax_compare_version_A
34830x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34831
34832
34833
34834 if test "$ax_compare_version" = "true" ; then
34835
34836 :
34837 PERL_SUPPORTS_DESTDIR='yes'
34838
34839 else
34840 :
34841 PERL_SUPPORTS_DESTDIR='no'
34842
34843 fi
34844
34845
34846else
34847
34848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34849$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34850 PERL_SUPPORTS_DESTDIR='no'
34851
cristy3ed852e2009-09-05 21:47:34 +000034852fi
cristy73bd4a52010-10-05 11:24:23 +000034853
34854fi
34855 if test "$have_perl" != 'no'; then
34856 WITH_PERL_TRUE=
34857 WITH_PERL_FALSE='#'
34858else
34859 WITH_PERL_TRUE='#'
34860 WITH_PERL_FALSE=
34861fi
34862
34863 if test $with_perl_static = 'yes'; then
34864 WITH_PERL_STATIC_TRUE=
34865 WITH_PERL_STATIC_FALSE='#'
34866else
34867 WITH_PERL_STATIC_TRUE='#'
34868 WITH_PERL_STATIC_FALSE=
34869fi
34870
34871 if test $with_perl_dynamic = 'yes'; then
34872 WITH_PERL_DYNAMIC_TRUE=
34873 WITH_PERL_DYNAMIC_FALSE='#'
34874else
34875 WITH_PERL_DYNAMIC_TRUE='#'
34876 WITH_PERL_DYNAMIC_FALSE=
34877fi
34878
cristy3ed852e2009-09-05 21:47:34 +000034879
34880
34881# Determine path to pick up MagickCore library from for use with building PerlMagick
34882MAGICKCORE_PATH="${LIB_DIR}"
34883if test $with_perl_static = 'yes'; then
34884 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34885 libtool_objdir=$objdir
34886
34887 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000034888 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000034889fi
34890
34891
34892# Create a simple string containing format names for all delegate libraries
34893DELEGATES=''
34894if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34895if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34896if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34897if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34898if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34899if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34900if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34901if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34902if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34903if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34904if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34905if test "$have_jpeg" = 'yes'; then
34906 DELEGATES="$DELEGATES jpeg";
34907 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34908fi
34909if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000034910if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000034911if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34912if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000034913if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000034914if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34915if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
34916if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34917if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34918if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34919if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34920if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34921if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34922if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34923
34924
34925
34926#
34927# Handle special compiler flags
34928#
34929
34930# Add '-p' if prof source profiling support enabled
34931if test "$enable_prof" = 'yes'; then
34932 CFLAGS="-p $CFLAGS"
34933 CXXFLAGS="-p $CXXFLAGS"
34934 LDFLAGS="-p $LDFLAGS"
34935fi
34936
34937# Add '-pg' if gprof source profiling support enabled
34938if test "$enable_gprof" = 'yes'; then
34939 CFLAGS="-pg $CFLAGS"
34940 CXXFLAGS="-pg $CXXFLAGS"
34941 LDFLAGS="-pg $LDFLAGS"
34942fi
34943
34944# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34945# This is a gcc-specific feature
34946if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034948$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034949if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034950 $as_echo_n "(cached) " >&6
34951else
34952 ac_check_lib_save_LIBS=$LIBS
34953LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034955/* end confdefs.h. */
34956
34957/* Override any GCC internal prototype to avoid an error.
34958 Use char because int might match the return type of a GCC
34959 builtin and then its argument prototype would still apply. */
34960#ifdef __cplusplus
34961extern "C"
34962#endif
34963char _gcov_init ();
34964int
34965main ()
34966{
34967return _gcov_init ();
34968 ;
34969 return 0;
34970}
34971_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034972if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034973 ac_cv_lib_gcov__gcov_init=yes
34974else
cristy8b350f62009-11-15 23:12:43 +000034975 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034976fi
cristy8b350f62009-11-15 23:12:43 +000034977rm -f core conftest.err conftest.$ac_objext \
34978 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034979LIBS=$ac_check_lib_save_LIBS
34980fi
cristy8b350f62009-11-15 23:12:43 +000034981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034982$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034983if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034984 cat >>confdefs.h <<_ACEOF
34985#define HAVE_LIBGCOV 1
34986_ACEOF
34987
34988 LIBS="-lgcov $LIBS"
34989
34990fi
34991
cristy8b350f62009-11-15 23:12:43 +000034992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034993$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034994if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034995 $as_echo_n "(cached) " >&6
34996else
34997 ac_check_lib_save_LIBS=$LIBS
34998LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035000/* end confdefs.h. */
35001
35002/* Override any GCC internal prototype to avoid an error.
35003 Use char because int might match the return type of a GCC
35004 builtin and then its argument prototype would still apply. */
35005#ifdef __cplusplus
35006extern "C"
35007#endif
35008char __gcov_init ();
35009int
35010main ()
35011{
35012return __gcov_init ();
35013 ;
35014 return 0;
35015}
35016_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035017if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035018 ac_cv_lib_gcov___gcov_init=yes
35019else
cristy8b350f62009-11-15 23:12:43 +000035020 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035021fi
cristy8b350f62009-11-15 23:12:43 +000035022rm -f core conftest.err conftest.$ac_objext \
35023 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035024LIBS=$ac_check_lib_save_LIBS
35025fi
cristy8b350f62009-11-15 23:12:43 +000035026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035027$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035028if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035029 cat >>confdefs.h <<_ACEOF
35030#define HAVE_LIBGCOV 1
35031_ACEOF
35032
35033 LIBS="-lgcov $LIBS"
35034
35035fi
35036
35037 case "$target_os" in
35038 darwin*)
35039 OSX_GCOV_LDFLAG="-Wl,-single_module"
35040 ;;
35041 *)
35042 OSX_GCOV_LDFLAG=""
35043 ;;
35044 esac
35045
35046 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35047 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35048 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35049fi
35050
35051#
35052# Build library dependency list for libMagickCore
35053#
35054
35055MAGICK_LIBLTDL='' # Libltdl for build
35056MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35057MAGICK_LTDLDEPS='' # extra libltdl dependencies
35058if test "$with_ltdl" != 'no'
35059then
35060 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35061 MAGICK_API_LIBLTDL='-lltdl'
35062 fi
35063 MAGICK_LIBLTDL=${LIBLTDL}
35064 MAGICK_LTDLDEPS=${LTDLDEPS}
35065fi
35066
35067
35068
35069if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000035070 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 +000035071else
cristy41cbe8a2011-10-27 01:35:18 +000035072 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 $PANGO_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 +000035073fi
35074
35075
35076#
35077# Remove extraneous spaces from output variables (asthetic)
35078#
35079X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35080X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35081X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35082X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35083
35084CC=`echo $CC | sed -e 's/ */ /g'`
35085CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35086CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35087CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35088DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35089DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35090LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35091TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35092MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35093#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35094
35095# Pass only user-provided LIBS as "global" libraries
35096LIBS=$USER_LIBS
35097
35098#AC_SUBST(CPPFLAGS)
35099
35100#AC_SUBST(LDFLAGS)
35101#AC_SUBST(X_PRE_LIBS)
35102#AC_SUBST(X_LIBS)
35103#AC_SUBST(X_EXTRA_LIBS)
35104
35105MAGICK_CFLAGS=$CFLAGS
35106MAGICK_CXXFLAGS="$CXXFLAGS"
35107MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35108MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35109MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35110MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35111
35112
35113
35114
35115
35116
35117
35118
cristyfd9dcd42010-08-08 18:07:02 +000035119
cristy3ed852e2009-09-05 21:47:34 +000035120# Set configured scripts to executable.
35121ac_config_commands="$ac_config_commands default"
35122
35123ac_config_commands="$ac_config_commands MagickCore-config.in"
35124
cristy3ed852e2009-09-05 21:47:34 +000035125ac_config_commands="$ac_config_commands MagickWand-config.in"
35126
cristy3ed852e2009-09-05 21:47:34 +000035127ac_config_commands="$ac_config_commands Magick++-config.in"
35128
35129ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35130
35131
cristy09b53e12011-10-14 12:47:22 +000035132{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35133$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35134{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35135$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035136cat >confcache <<\_ACEOF
35137# This file is a shell script that caches the results of configure
35138# tests run on this system so they can be shared between configure
35139# scripts and configure runs, see configure's option --config-cache.
35140# It is not useful on other systems. If it contains results you don't
35141# want to keep, you may remove or edit it.
35142#
35143# config.status only pays attention to the cache file if you give it
35144# the --recheck option to rerun configure.
35145#
35146# `ac_cv_env_foo' variables (set or unset) will be overridden when
35147# loading this file, other *unset* `ac_cv_foo' will be assigned the
35148# following values.
35149
35150_ACEOF
35151
35152# The following way of writing the cache mishandles newlines in values,
35153# but we know of no workaround that is simple, portable, and efficient.
35154# So, we kill variables containing newlines.
35155# Ultrix sh set writes to stderr and can't be redirected directly,
35156# and sets the high bit in the cache file unless we assign to the vars.
35157(
35158 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35159 eval ac_val=\$$ac_var
35160 case $ac_val in #(
35161 *${as_nl}*)
35162 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035163 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035164$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35165 esac
35166 case $ac_var in #(
35167 _ | IFS | as_nl) ;; #(
35168 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035169 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035170 esac ;;
35171 esac
35172 done
35173
35174 (set) 2>&1 |
35175 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35176 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035177 # `set' does not quote correctly, so add quotes: double-quote
35178 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035179 sed -n \
35180 "s/'/'\\\\''/g;
35181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35182 ;; #(
35183 *)
35184 # `set' quotes correctly as required by POSIX, so do not add quotes.
35185 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35186 ;;
35187 esac |
35188 sort
35189) |
35190 sed '
35191 /^ac_cv_env_/b end
35192 t clear
35193 :clear
35194 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35195 t end
35196 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35197 :end' >>confcache
35198if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35199 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035200 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035201 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035202$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035203 if test ! -f "$cache_file" || test -h "$cache_file"; then
35204 cat confcache >"$cache_file"
35205 else
35206 case $cache_file in #(
35207 */* | ?:*)
35208 mv -f confcache "$cache_file"$$ &&
35209 mv -f "$cache_file"$$ "$cache_file" ;; #(
35210 *)
35211 mv -f confcache "$cache_file" ;;
35212 esac
35213 fi
35214 fi
cristy3ed852e2009-09-05 21:47:34 +000035215 else
cristy8b350f62009-11-15 23:12:43 +000035216 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035217$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35218 fi
35219fi
35220rm -f confcache
35221
35222test "x$prefix" = xNONE && prefix=$ac_default_prefix
35223# Let make expand exec_prefix.
35224test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35225
35226DEFS=-DHAVE_CONFIG_H
35227
35228ac_libobjs=
35229ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035230U=
cristy3ed852e2009-09-05 21:47:34 +000035231for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35232 # 1. Remove the extension, and $U if already installed.
35233 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35234 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35235 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35236 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035237 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35238 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035239done
35240LIBOBJS=$ac_libobjs
35241
35242LTLIBOBJS=$ac_ltlibobjs
35243
35244
cristy73bd4a52010-10-05 11:24:23 +000035245 if test -n "$EXEEXT"; then
35246 am__EXEEXT_TRUE=
35247 am__EXEEXT_FALSE='#'
35248else
35249 am__EXEEXT_TRUE='#'
35250 am__EXEEXT_FALSE=
35251fi
cristy3ed852e2009-09-05 21:47:34 +000035252
cristy73bd4a52010-10-05 11:24:23 +000035253if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035254 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035255Usually this means the macro was only invoked conditionally." "$LINENO" 5
35256fi
35257if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035258 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035259Usually this means the macro was only invoked conditionally." "$LINENO" 5
35260fi
35261if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035262 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035263Usually this means the macro was only invoked conditionally." "$LINENO" 5
35264fi
35265if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035266 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035267Usually this means the macro was only invoked conditionally." "$LINENO" 5
35268fi
35269if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035270 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035271Usually this means the macro was only invoked conditionally." "$LINENO" 5
35272fi
35273if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035274 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035275Usually this means the macro was only invoked conditionally." "$LINENO" 5
35276fi
35277if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035278 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035279Usually this means the macro was only invoked conditionally." "$LINENO" 5
35280fi
35281if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035282 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035283Usually this means the macro was only invoked conditionally." "$LINENO" 5
35284fi
cristy73bd4a52010-10-05 11:24:23 +000035285if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035286 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035287Usually this means the macro was only invoked conditionally." "$LINENO" 5
35288fi
35289if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035290 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035291Usually this means the macro was only invoked conditionally." "$LINENO" 5
35292fi
35293LT_CONFIG_H=config/config.h
35294
35295 _ltdl_libobjs=
35296 _ltdl_ltlibobjs=
35297 if test -n "$_LT_LIBOBJS"; then
35298 # Remove the extension.
35299 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35300 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35301 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35302 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35303 done
35304 fi
35305 ltdl_LIBOBJS=$_ltdl_libobjs
35306
35307 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35308
35309
35310if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035311 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035312Usually this means the macro was only invoked conditionally." "$LINENO" 5
35313fi
35314if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035315 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035316Usually this means the macro was only invoked conditionally." "$LINENO" 5
35317fi
35318if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035319 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035320Usually this means the macro was only invoked conditionally." "$LINENO" 5
35321fi
35322if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035323 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035324Usually this means the macro was only invoked conditionally." "$LINENO" 5
35325fi
35326
35327if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035328 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035329Usually this means the macro was only invoked conditionally." "$LINENO" 5
35330fi
35331if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035332 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035333Usually this means the macro was only invoked conditionally." "$LINENO" 5
35334fi
35335if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035336 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035337Usually this means the macro was only invoked conditionally." "$LINENO" 5
35338fi
35339if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035340 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035341Usually this means the macro was only invoked conditionally." "$LINENO" 5
35342fi
35343if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035344 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035345Usually this means the macro was only invoked conditionally." "$LINENO" 5
35346fi
35347if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035348 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035349Usually this means the macro was only invoked conditionally." "$LINENO" 5
35350fi
35351if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035352 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035353Usually this means the macro was only invoked conditionally." "$LINENO" 5
35354fi
35355if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035356 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035357Usually this means the macro was only invoked conditionally." "$LINENO" 5
35358fi
35359if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035360 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035361Usually this means the macro was only invoked conditionally." "$LINENO" 5
35362fi
35363if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035364 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035365Usually this means the macro was only invoked conditionally." "$LINENO" 5
35366fi
35367if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035368 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035369Usually this means the macro was only invoked conditionally." "$LINENO" 5
35370fi
35371if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035372 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035373Usually this means the macro was only invoked conditionally." "$LINENO" 5
35374fi
35375if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035376 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035377Usually this means the macro was only invoked conditionally." "$LINENO" 5
35378fi
35379if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035380 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035381Usually this means the macro was only invoked conditionally." "$LINENO" 5
35382fi
35383if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035384 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035385Usually this means the macro was only invoked conditionally." "$LINENO" 5
35386fi
35387if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035388 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035389Usually this means the macro was only invoked conditionally." "$LINENO" 5
35390fi
35391if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035392 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035393Usually this means the macro was only invoked conditionally." "$LINENO" 5
35394fi
35395if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035396 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035397Usually this means the macro was only invoked conditionally." "$LINENO" 5
35398fi
35399if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035400 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035401Usually this means the macro was only invoked conditionally." "$LINENO" 5
35402fi
35403if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035404 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035405Usually this means the macro was only invoked conditionally." "$LINENO" 5
35406fi
cristyfbb0ef02010-12-19 02:32:11 +000035407if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35408 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35409Usually this means the macro was only invoked conditionally." "$LINENO" 5
35410fi
cristy73bd4a52010-10-05 11:24:23 +000035411if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035412 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035413Usually this means the macro was only invoked conditionally." "$LINENO" 5
35414fi
cristy41cbe8a2011-10-27 01:35:18 +000035415if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35416 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35417Usually this means the macro was only invoked conditionally." "$LINENO" 5
35418fi
35419if test -z "${PANGOFT2_DELEGATE_TRUE}" && test -z "${PANGOFT2_DELEGATE_FALSE}"; then
35420 as_fn_error $? "conditional \"PANGOFT2_DELEGATE\" was never defined.
35421Usually this means the macro was only invoked conditionally." "$LINENO" 5
35422fi
cristy73bd4a52010-10-05 11:24:23 +000035423if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035424 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035425Usually this means the macro was only invoked conditionally." "$LINENO" 5
35426fi
35427if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035428 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035429Usually this means the macro was only invoked conditionally." "$LINENO" 5
35430fi
35431if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035432 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035433Usually this means the macro was only invoked conditionally." "$LINENO" 5
35434fi
35435if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035436 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035437Usually this means the macro was only invoked conditionally." "$LINENO" 5
35438fi
cristyb1860752011-03-14 00:27:46 +000035439if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35440 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35441Usually this means the macro was only invoked conditionally." "$LINENO" 5
35442fi
cristy73bd4a52010-10-05 11:24:23 +000035443if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035444 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035445Usually this means the macro was only invoked conditionally." "$LINENO" 5
35446fi
35447if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035448 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035449Usually this means the macro was only invoked conditionally." "$LINENO" 5
35450fi
35451if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035452 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035453Usually this means the macro was only invoked conditionally." "$LINENO" 5
35454fi
35455if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035456 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035457Usually this means the macro was only invoked conditionally." "$LINENO" 5
35458fi
35459if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035460 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035461Usually this means the macro was only invoked conditionally." "$LINENO" 5
35462fi
35463if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035464 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035465Usually this means the macro was only invoked conditionally." "$LINENO" 5
35466fi
35467if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035468 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035469Usually this means the macro was only invoked conditionally." "$LINENO" 5
35470fi
35471if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035472 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035473Usually this means the macro was only invoked conditionally." "$LINENO" 5
35474fi
cristy3ed852e2009-09-05 21:47:34 +000035475
cristyda16f162011-02-19 23:52:17 +000035476: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035477ac_write_fail=0
35478ac_clean_files_save=$ac_clean_files
35479ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035480{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035481$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035482as_write_fail=0
35483cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035484#! $SHELL
35485# Generated by $as_me.
35486# Run this file to recreate the current configuration.
35487# Compiler output produced by configure, useful for debugging
35488# configure, is in config.log if it exists.
35489
35490debug=false
35491ac_cs_recheck=false
35492ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035493
cristy8b350f62009-11-15 23:12:43 +000035494SHELL=\${CONFIG_SHELL-$SHELL}
35495export SHELL
35496_ASEOF
35497cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35498## -------------------- ##
35499## M4sh Initialization. ##
35500## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035501
35502# Be more Bourne compatible
35503DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035504if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035505 emulate sh
35506 NULLCMD=:
35507 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35508 # is contrary to our usage. Disable this feature.
35509 alias -g '${1+"$@"}'='"$@"'
35510 setopt NO_GLOB_SUBST
35511else
cristy8b350f62009-11-15 23:12:43 +000035512 case `(set -o) 2>/dev/null` in #(
35513 *posix*) :
35514 set -o posix ;; #(
35515 *) :
35516 ;;
cristy3ed852e2009-09-05 21:47:34 +000035517esac
cristy3ed852e2009-09-05 21:47:34 +000035518fi
35519
35520
cristy3ed852e2009-09-05 21:47:34 +000035521as_nl='
35522'
35523export as_nl
35524# Printing a long string crashes Solaris 7 /usr/bin/printf.
35525as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35526as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35527as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035528# Prefer a ksh shell builtin over an external printf program on Solaris,
35529# but without wasting forks for bash or zsh.
35530if test -z "$BASH_VERSION$ZSH_VERSION" \
35531 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35532 as_echo='print -r --'
35533 as_echo_n='print -rn --'
35534elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035535 as_echo='printf %s\n'
35536 as_echo_n='printf %s'
35537else
35538 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35539 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35540 as_echo_n='/usr/ucb/echo -n'
35541 else
35542 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35543 as_echo_n_body='eval
35544 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035545 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035546 *"$as_nl"*)
35547 expr "X$arg" : "X\\(.*\\)$as_nl";
35548 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35549 esac;
35550 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35551 '
35552 export as_echo_n_body
35553 as_echo_n='sh -c $as_echo_n_body as_echo'
35554 fi
35555 export as_echo_body
35556 as_echo='sh -c $as_echo_body as_echo'
35557fi
35558
35559# The user is always right.
35560if test "${PATH_SEPARATOR+set}" != set; then
35561 PATH_SEPARATOR=:
35562 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35563 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35564 PATH_SEPARATOR=';'
35565 }
35566fi
35567
cristy3ed852e2009-09-05 21:47:34 +000035568
35569# IFS
35570# We need space, tab and new line, in precisely that order. Quoting is
35571# there to prevent editors from complaining about space-tab.
35572# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35573# splitting by setting IFS to empty value.)
35574IFS=" "" $as_nl"
35575
35576# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035577as_myself=
cristy8b350f62009-11-15 23:12:43 +000035578case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035579 *[\\/]* ) as_myself=$0 ;;
35580 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35581for as_dir in $PATH
35582do
35583 IFS=$as_save_IFS
35584 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035585 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35586 done
cristy3ed852e2009-09-05 21:47:34 +000035587IFS=$as_save_IFS
35588
35589 ;;
35590esac
35591# We did not find ourselves, most probably we were run as `sh COMMAND'
35592# in which case we are not to be found in the path.
35593if test "x$as_myself" = x; then
35594 as_myself=$0
35595fi
35596if test ! -f "$as_myself"; then
35597 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035598 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035599fi
35600
cristy8b350f62009-11-15 23:12:43 +000035601# Unset variables that we do not need and which cause bugs (e.g. in
35602# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35603# suppresses any "Segmentation fault" message there. '((' could
35604# trigger a bug in pdksh 5.2.14.
35605for as_var in BASH_ENV ENV MAIL MAILPATH
35606do eval test x\${$as_var+set} = xset \
35607 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035608done
35609PS1='$ '
35610PS2='> '
35611PS4='+ '
35612
35613# NLS nuisances.
35614LC_ALL=C
35615export LC_ALL
35616LANGUAGE=C
35617export LANGUAGE
35618
cristy8b350f62009-11-15 23:12:43 +000035619# CDPATH.
35620(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35621
35622
cristy98dddb52010-11-04 00:30:15 +000035623# as_fn_error STATUS ERROR [LINENO LOG_FD]
35624# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035625# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35626# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035627# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035628as_fn_error ()
35629{
cristy98dddb52010-11-04 00:30:15 +000035630 as_status=$1; test $as_status -eq 0 && as_status=1
35631 if test "$4"; then
35632 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35633 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035634 fi
cristy98dddb52010-11-04 00:30:15 +000035635 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035636 as_fn_exit $as_status
35637} # as_fn_error
35638
35639
35640# as_fn_set_status STATUS
35641# -----------------------
35642# Set $? to STATUS, without forking.
35643as_fn_set_status ()
35644{
35645 return $1
35646} # as_fn_set_status
35647
35648# as_fn_exit STATUS
35649# -----------------
35650# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35651as_fn_exit ()
35652{
35653 set +e
35654 as_fn_set_status $1
35655 exit $1
35656} # as_fn_exit
35657
35658# as_fn_unset VAR
35659# ---------------
35660# Portably unset VAR.
35661as_fn_unset ()
35662{
35663 { eval $1=; unset $1;}
35664}
35665as_unset=as_fn_unset
35666# as_fn_append VAR VALUE
35667# ----------------------
35668# Append the text in VALUE to the end of the definition contained in VAR. Take
35669# advantage of any shell optimizations that allow amortized linear growth over
35670# repeated appends, instead of the typical quadratic growth present in naive
35671# implementations.
35672if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35673 eval 'as_fn_append ()
35674 {
35675 eval $1+=\$2
35676 }'
35677else
35678 as_fn_append ()
35679 {
35680 eval $1=\$$1\$2
35681 }
35682fi # as_fn_append
35683
35684# as_fn_arith ARG...
35685# ------------------
35686# Perform arithmetic evaluation on the ARGs, and store the result in the
35687# global $as_val. Take advantage of shells that can avoid forks. The arguments
35688# must be portable across $(()) and expr.
35689if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35690 eval 'as_fn_arith ()
35691 {
35692 as_val=$(( $* ))
35693 }'
35694else
35695 as_fn_arith ()
35696 {
35697 as_val=`expr "$@" || test $? -eq 1`
35698 }
35699fi # as_fn_arith
35700
35701
cristy3ed852e2009-09-05 21:47:34 +000035702if expr a : '\(a\)' >/dev/null 2>&1 &&
35703 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35704 as_expr=expr
35705else
35706 as_expr=false
35707fi
35708
35709if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35710 as_basename=basename
35711else
35712 as_basename=false
35713fi
35714
cristy8b350f62009-11-15 23:12:43 +000035715if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35716 as_dirname=dirname
35717else
35718 as_dirname=false
35719fi
cristy3ed852e2009-09-05 21:47:34 +000035720
cristy3ed852e2009-09-05 21:47:34 +000035721as_me=`$as_basename -- "$0" ||
35722$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35723 X"$0" : 'X\(//\)$' \| \
35724 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35725$as_echo X/"$0" |
35726 sed '/^.*\/\([^/][^/]*\)\/*$/{
35727 s//\1/
35728 q
35729 }
35730 /^X\/\(\/\/\)$/{
35731 s//\1/
35732 q
35733 }
35734 /^X\/\(\/\).*/{
35735 s//\1/
35736 q
35737 }
35738 s/.*/./; q'`
35739
cristy8b350f62009-11-15 23:12:43 +000035740# Avoid depending upon Character Ranges.
35741as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35742as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35743as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35744as_cr_digits='0123456789'
35745as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035746
35747ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035748case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035749-n*)
cristy8b350f62009-11-15 23:12:43 +000035750 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035751 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035752 xy) ECHO_C='\c';;
35753 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35754 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035755 esac;;
35756*)
35757 ECHO_N='-n';;
35758esac
cristy3ed852e2009-09-05 21:47:34 +000035759
35760rm -f conf$$ conf$$.exe conf$$.file
35761if test -d conf$$.dir; then
35762 rm -f conf$$.dir/conf$$.file
35763else
35764 rm -f conf$$.dir
35765 mkdir conf$$.dir 2>/dev/null
35766fi
35767if (echo >conf$$.file) 2>/dev/null; then
35768 if ln -s conf$$.file conf$$ 2>/dev/null; then
35769 as_ln_s='ln -s'
35770 # ... but there are two gotchas:
35771 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35772 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35773 # In both cases, we have to default to `cp -p'.
35774 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35775 as_ln_s='cp -p'
35776 elif ln conf$$.file conf$$ 2>/dev/null; then
35777 as_ln_s=ln
35778 else
35779 as_ln_s='cp -p'
35780 fi
35781else
35782 as_ln_s='cp -p'
35783fi
35784rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35785rmdir conf$$.dir 2>/dev/null
35786
cristy8b350f62009-11-15 23:12:43 +000035787
35788# as_fn_mkdir_p
35789# -------------
35790# Create "$as_dir" as a directory, including parents if necessary.
35791as_fn_mkdir_p ()
35792{
35793
35794 case $as_dir in #(
35795 -*) as_dir=./$as_dir;;
35796 esac
35797 test -d "$as_dir" || eval $as_mkdir_p || {
35798 as_dirs=
35799 while :; do
35800 case $as_dir in #(
35801 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35802 *) as_qdir=$as_dir;;
35803 esac
35804 as_dirs="'$as_qdir' $as_dirs"
35805 as_dir=`$as_dirname -- "$as_dir" ||
35806$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35807 X"$as_dir" : 'X\(//\)[^/]' \| \
35808 X"$as_dir" : 'X\(//\)$' \| \
35809 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35810$as_echo X"$as_dir" |
35811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35812 s//\1/
35813 q
35814 }
35815 /^X\(\/\/\)[^/].*/{
35816 s//\1/
35817 q
35818 }
35819 /^X\(\/\/\)$/{
35820 s//\1/
35821 q
35822 }
35823 /^X\(\/\).*/{
35824 s//\1/
35825 q
35826 }
35827 s/.*/./; q'`
35828 test -d "$as_dir" && break
35829 done
35830 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035831 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035832
35833
35834} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035835if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035836 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035837else
35838 test -d ./-p && rmdir ./-p
35839 as_mkdir_p=false
35840fi
35841
35842if test -x / >/dev/null 2>&1; then
35843 as_test_x='test -x'
35844else
35845 if ls -dL / >/dev/null 2>&1; then
35846 as_ls_L_option=L
35847 else
35848 as_ls_L_option=
35849 fi
35850 as_test_x='
35851 eval sh -c '\''
35852 if test -d "$1"; then
35853 test -d "$1/.";
35854 else
cristy8b350f62009-11-15 23:12:43 +000035855 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000035856 -*)set "./$1";;
35857 esac;
cristy8b350f62009-11-15 23:12:43 +000035858 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000035859 ???[sx]*):;;*)false;;esac;fi
35860 '\'' sh
35861 '
35862fi
35863as_executable_p=$as_test_x
35864
35865# Sed expression to map a string onto a valid CPP name.
35866as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35867
35868# Sed expression to map a string onto a valid variable name.
35869as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35870
35871
35872exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035873## ----------------------------------- ##
35874## Main body of $CONFIG_STATUS script. ##
35875## ----------------------------------- ##
35876_ASEOF
35877test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035878
cristy8b350f62009-11-15 23:12:43 +000035879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35880# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035881# report actual input values of CONFIG_FILES etc. instead of their
35882# values after options handling.
35883ac_log="
cristy29eb34e2011-10-16 00:46:08 +000035884This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +000035885generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035886
35887 CONFIG_FILES = $CONFIG_FILES
35888 CONFIG_HEADERS = $CONFIG_HEADERS
35889 CONFIG_LINKS = $CONFIG_LINKS
35890 CONFIG_COMMANDS = $CONFIG_COMMANDS
35891 $ $0 $@
35892
35893on `(hostname || uname -n) 2>/dev/null | sed 1q`
35894"
35895
35896_ACEOF
35897
35898case $ac_config_files in *"
35899"*) set x $ac_config_files; shift; ac_config_files=$*;;
35900esac
35901
35902case $ac_config_headers in *"
35903"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35904esac
35905
35906
35907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35908# Files that config.status was made for.
35909config_files="$ac_config_files"
35910config_headers="$ac_config_headers"
35911config_commands="$ac_config_commands"
35912
35913_ACEOF
35914
35915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35916ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035917\`$as_me' instantiates files and other configuration actions
35918from templates according to the current configuration. Unless the files
35919and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035920
cristy8b350f62009-11-15 23:12:43 +000035921Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035922
35923 -h, --help print this help, then exit
35924 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035925 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035926 -q, --quiet, --silent
35927 do not print progress messages
35928 -d, --debug don't remove temporary files
35929 --recheck update $as_me by reconfiguring in the same conditions
35930 --file=FILE[:TEMPLATE]
35931 instantiate the configuration file FILE
35932 --header=FILE[:TEMPLATE]
35933 instantiate the configuration header FILE
35934
35935Configuration files:
35936$config_files
35937
35938Configuration headers:
35939$config_headers
35940
35941Configuration commands:
35942$config_commands
35943
cristy8b350f62009-11-15 23:12:43 +000035944Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035945
35946_ACEOF
35947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035948ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035949ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000035950ImageMagick config.status 7.0.0-0
cristyda16f162011-02-19 23:52:17 +000035951configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000035952 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035953
cristy98dddb52010-11-04 00:30:15 +000035954Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035955This config.status script is free software; the Free Software Foundation
35956gives unlimited permission to copy, distribute and modify it."
35957
35958ac_pwd='$ac_pwd'
35959srcdir='$srcdir'
35960INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035961MKDIR_P='$MKDIR_P'
35962AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035963test -n "\$AWK" || AWK=awk
35964_ACEOF
35965
35966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35967# The default lists apply if the user does not specify any file.
35968ac_need_defaults=:
35969while test $# != 0
35970do
35971 case $1 in
cristyda16f162011-02-19 23:52:17 +000035972 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035973 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35974 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35975 ac_shift=:
35976 ;;
cristyda16f162011-02-19 23:52:17 +000035977 --*=)
35978 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35979 ac_optarg=
35980 ac_shift=:
35981 ;;
cristy3ed852e2009-09-05 21:47:34 +000035982 *)
35983 ac_option=$1
35984 ac_optarg=$2
35985 ac_shift=shift
35986 ;;
35987 esac
35988
35989 case $ac_option in
35990 # Handling of the options.
35991 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35992 ac_cs_recheck=: ;;
35993 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35994 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035995 --config | --confi | --conf | --con | --co | --c )
35996 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035997 --debug | --debu | --deb | --de | --d | -d )
35998 debug=: ;;
35999 --file | --fil | --fi | --f )
36000 $ac_shift
36001 case $ac_optarg in
36002 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036003 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036004 esac
cristy8b350f62009-11-15 23:12:43 +000036005 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036006 ac_need_defaults=false;;
36007 --header | --heade | --head | --hea )
36008 $ac_shift
36009 case $ac_optarg in
36010 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36011 esac
cristy8b350f62009-11-15 23:12:43 +000036012 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036013 ac_need_defaults=false;;
36014 --he | --h)
36015 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036016 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036017Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036018 --help | --hel | -h )
36019 $as_echo "$ac_cs_usage"; exit ;;
36020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36021 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36022 ac_cs_silent=: ;;
36023
36024 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036025 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036026Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036027
cristy8b350f62009-11-15 23:12:43 +000036028 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036029 ac_need_defaults=false ;;
36030
36031 esac
36032 shift
36033done
36034
36035ac_configure_extra_args=
36036
36037if $ac_cs_silent; then
36038 exec 6>/dev/null
36039 ac_configure_extra_args="$ac_configure_extra_args --silent"
36040fi
36041
36042_ACEOF
36043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36044if \$ac_cs_recheck; then
36045 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36046 shift
36047 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36048 CONFIG_SHELL='$SHELL'
36049 export CONFIG_SHELL
36050 exec "\$@"
36051fi
36052
36053_ACEOF
36054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36055exec 5>>config.log
36056{
36057 echo
36058 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36059## Running $as_me. ##
36060_ASBOX
36061 $as_echo "$ac_log"
36062} >&5
36063
36064_ACEOF
36065cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036066#
36067# INIT-COMMANDS
36068#
36069PACKAGE="$PACKAGE"
36070AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36071
36072
36073# The HP-UX ksh and POSIX shell print the target directory to stdout
36074# if CDPATH is set.
36075(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36076
36077sed_quote_subst='$sed_quote_subst'
36078double_quote_subst='$double_quote_subst'
36079delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036080SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36081Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36082GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36083EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36084FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36085SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36086ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36087LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36088macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36089macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36090AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36091DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36092OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36093enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36094enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36095pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36096enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036097PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036098host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36099host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36100host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36101build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36102build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36103build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36104NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36105LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36106max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36107ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36108exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36109lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36110lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36111lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036112lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36113lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036114reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36115reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36116deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36117file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036118file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36119want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36120sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036121AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36122AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036123archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036124STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36125RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36126old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36127old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36128old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36129lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36130CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36131CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36132compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36133GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36134lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36135lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36136lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36137lt_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 +000036138nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36139lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036140objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36141MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36142lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036143lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036144lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036145lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36146lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36147need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036148MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036149DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36150NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36151LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36152OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36153OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36154libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36155shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36156extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36157archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36158enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36159export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36160whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36161compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36162old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36163old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36164archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36165archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36166module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36167module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36168with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36169allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36170no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36171hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036172hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36173hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36174hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36175hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36176hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36177hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36178inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36179link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036180always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36181export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36182exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36183include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36184prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036185postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036186file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36187variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36188need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36189need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36190version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36191runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36192shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36193shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36194libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36195library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36196soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36197install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36198postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36199postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36200finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36201finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36202hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36203sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36204sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36205hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36206enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36207enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36208enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36209old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36210striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36211compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36212predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36213postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36214predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36215postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36216compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36217LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36218reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36219reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36220old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36221compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36222GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36223lt_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 +000036224lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036225lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036226lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36227lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36228archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36229enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36230export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36231whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36232compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36233old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36234old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36235archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36236archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36237module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36238module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36239with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36240allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36241no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36242hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036243hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36244hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36245hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36246hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36247hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36248hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36249inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36250link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036251always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36252export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36253exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36254include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36255prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036256postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036257file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36258hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36259compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36260predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36261postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36262predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36263postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36264compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036265
36266LTCC='$LTCC'
36267LTCFLAGS='$LTCFLAGS'
36268compiler='$compiler_DEFAULT'
36269
cristy0c60a692010-11-04 01:09:47 +000036270# A function that is used when there is no print builtin or printf.
36271func_fallback_echo ()
36272{
36273 eval 'cat <<_LTECHO_EOF
36274\$1
36275_LTECHO_EOF'
36276}
36277
cristy73bd4a52010-10-05 11:24:23 +000036278# Quote evaled strings.
36279for var in SED \
36280GREP \
36281EGREP \
36282FGREP \
cristy0c60a692010-11-04 01:09:47 +000036283SHELL \
36284ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036285LD \
cristy0c60a692010-11-04 01:09:47 +000036286AS \
36287DLLTOOL \
36288OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036289PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036290NM \
36291LN_S \
36292lt_SP2NL \
36293lt_NL2SP \
36294reload_flag \
36295deplibs_check_method \
36296file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036297file_magic_glob \
36298want_nocaseglob \
36299sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036300AR \
36301AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036302archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036303STRIP \
36304RANLIB \
36305CC \
36306CFLAGS \
36307compiler \
36308lt_cv_sys_global_symbol_pipe \
36309lt_cv_sys_global_symbol_to_cdecl \
36310lt_cv_sys_global_symbol_to_c_name_address \
36311lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036312nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036313lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036314lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036315lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036316lt_prog_compiler_static \
36317lt_cv_prog_compiler_c_o \
36318need_locks \
cristyda16f162011-02-19 23:52:17 +000036319MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036320DSYMUTIL \
36321NMEDIT \
36322LIPO \
36323OTOOL \
36324OTOOL64 \
36325shrext_cmds \
36326export_dynamic_flag_spec \
36327whole_archive_flag_spec \
36328compiler_needs_object \
36329with_gnu_ld \
36330allow_undefined_flag \
36331no_undefined_flag \
36332hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036333hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036334exclude_expsyms \
36335include_expsyms \
36336file_list_spec \
36337variables_saved_for_relink \
36338libname_spec \
36339library_names_spec \
36340soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036341install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036342finish_eval \
36343old_striplib \
36344striplib \
36345compiler_lib_search_dirs \
36346predep_objects \
36347postdep_objects \
36348predeps \
36349postdeps \
36350compiler_lib_search_path \
36351LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036352reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036353compiler_CXX \
36354lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036355lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036356lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036357lt_prog_compiler_static_CXX \
36358lt_cv_prog_compiler_c_o_CXX \
36359export_dynamic_flag_spec_CXX \
36360whole_archive_flag_spec_CXX \
36361compiler_needs_object_CXX \
36362with_gnu_ld_CXX \
36363allow_undefined_flag_CXX \
36364no_undefined_flag_CXX \
36365hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036366hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036367exclude_expsyms_CXX \
36368include_expsyms_CXX \
36369file_list_spec_CXX \
36370compiler_lib_search_dirs_CXX \
36371predep_objects_CXX \
36372postdep_objects_CXX \
36373predeps_CXX \
36374postdeps_CXX \
36375compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036376 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036377 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036378 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036379 ;;
36380 *)
36381 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36382 ;;
36383 esac
36384done
36385
36386# Double-quote double-evaled strings.
36387for var in reload_cmds \
36388old_postinstall_cmds \
36389old_postuninstall_cmds \
36390old_archive_cmds \
36391extract_expsyms_cmds \
36392old_archive_from_new_cmds \
36393old_archive_from_expsyms_cmds \
36394archive_cmds \
36395archive_expsym_cmds \
36396module_cmds \
36397module_expsym_cmds \
36398export_symbols_cmds \
36399prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036400postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036401postinstall_cmds \
36402postuninstall_cmds \
36403finish_cmds \
36404sys_lib_search_path_spec \
36405sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036406reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036407old_archive_cmds_CXX \
36408old_archive_from_new_cmds_CXX \
36409old_archive_from_expsyms_cmds_CXX \
36410archive_cmds_CXX \
36411archive_expsym_cmds_CXX \
36412module_cmds_CXX \
36413module_expsym_cmds_CXX \
36414export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036415prelink_cmds_CXX \
36416postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036417 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036418 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036419 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036420 ;;
36421 *)
36422 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36423 ;;
36424 esac
36425done
36426
cristy73bd4a52010-10-05 11:24:23 +000036427ac_aux_dir='$ac_aux_dir'
36428xsi_shell='$xsi_shell'
36429lt_shell_append='$lt_shell_append'
36430
36431# See if we are running on zsh, and set the options which allow our
36432# commands through without removal of \ escapes INIT.
36433if test -n "\${ZSH_VERSION+set}" ; then
36434 setopt NO_GLOB_SUBST
36435fi
36436
36437
36438 PACKAGE='$PACKAGE'
36439 VERSION='$VERSION'
36440 TIMESTAMP='$TIMESTAMP'
36441 RM='$RM'
36442 ofile='$ofile'
36443
36444
36445
36446
36447
36448
cristy3ed852e2009-09-05 21:47:34 +000036449_ACEOF
36450
36451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36452
36453# Handling of arguments.
36454for ac_config_target in $ac_config_targets
36455do
36456 case $ac_config_target in
36457 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000036458 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036459 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36460 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36461 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36462 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36463 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036464 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036465 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36466 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36467 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36468 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36469 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036470 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036471 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36472 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036473 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36474 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36475 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036476 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36477 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36478 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36479 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36480 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36481 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36482 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36483 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36484 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36485 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36486 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36487 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36488 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36489 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36490 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36491 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36492 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036493 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36494 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036495 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36496 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036497 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36498 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036499 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036500 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36501 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36502
cristy98dddb52010-11-04 00:30:15 +000036503 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036504 esac
36505done
36506
36507
36508# If the user did not use the arguments to specify the items to instantiate,
36509# then the envvar interface is used. Set only those that are not.
36510# We use the long form for the default assignment because of an extremely
36511# bizarre bug on SunOS 4.1.3.
36512if $ac_need_defaults; then
36513 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36514 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36515 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36516fi
36517
36518# Have a temporary directory for convenience. Make it in the build tree
36519# simply because there is no reason against having it here, and in addition,
36520# creating and moving files from /tmp can sometimes cause problems.
36521# Hook for its removal unless debugging.
36522# Note that there is a small window in which the directory will not be cleaned:
36523# after its creation but before its name has been assigned to `$tmp'.
36524$debug ||
36525{
cristyda16f162011-02-19 23:52:17 +000036526 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036527 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036528 : "${ac_tmp:=$tmp}"
36529 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036530' 0
cristy8b350f62009-11-15 23:12:43 +000036531 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036532}
36533# Create a (secure) tmp directory for tmp files.
36534
36535{
36536 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036537 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036538} ||
36539{
36540 tmp=./conf$$-$RANDOM
36541 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036542} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036543ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036544
36545# Set up the scripts for CONFIG_FILES section.
36546# No need to generate them if there are no CONFIG_FILES.
36547# This happens for instance with `./config.status config.h'.
36548if test -n "$CONFIG_FILES"; then
36549
36550
cristy8b350f62009-11-15 23:12:43 +000036551ac_cr=`echo X | tr X '\015'`
36552# On cygwin, bash can eat \r inside `` if the user requested igncr.
36553# But we know of no other shell where ac_cr would be empty at this
36554# point, so we can use a bashism as a fallback.
36555if test "x$ac_cr" = x; then
36556 eval ac_cr=\$\'\\r\'
36557fi
cristy3ed852e2009-09-05 21:47:34 +000036558ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36559if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036560 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036561else
36562 ac_cs_awk_cr=$ac_cr
36563fi
36564
cristyda16f162011-02-19 23:52:17 +000036565echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036566_ACEOF
36567
36568
36569{
36570 echo "cat >conf$$subs.awk <<_ACEOF" &&
36571 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36572 echo "_ACEOF"
36573} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036574 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36575ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036576ac_delim='%!_!# '
36577for ac_last_try in false false false false false :; do
36578 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036579 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036580
36581 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36582 if test $ac_delim_n = $ac_delim_num; then
36583 break
36584 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036585 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036586 else
36587 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36588 fi
36589done
36590rm -f conf$$subs.sh
36591
36592cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036593cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036594_ACEOF
36595sed -n '
36596h
36597s/^/S["/; s/!.*/"]=/
36598p
36599g
36600s/^[^!]*!//
36601:repl
36602t repl
36603s/'"$ac_delim"'$//
36604t delim
36605:nl
36606h
cristycd4c5312009-11-22 01:19:08 +000036607s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036608t more1
36609s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36610p
36611n
36612b repl
36613:more1
36614s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36615p
36616g
36617s/.\{148\}//
36618t nl
36619:delim
36620h
cristycd4c5312009-11-22 01:19:08 +000036621s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036622t more2
36623s/["\\]/\\&/g; s/^/"/; s/$/"/
36624p
36625b
36626:more2
36627s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36628p
36629g
36630s/.\{148\}//
36631t delim
36632' <conf$$subs.awk | sed '
36633/^[^""]/{
36634 N
36635 s/\n//
36636}
36637' >>$CONFIG_STATUS || ac_write_fail=1
36638rm -f conf$$subs.awk
36639cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36640_ACAWK
cristyda16f162011-02-19 23:52:17 +000036641cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036642 for (key in S) S_is_set[key] = 1
36643 FS = ""
36644
36645}
36646{
36647 line = $ 0
36648 nfields = split(line, field, "@")
36649 substed = 0
36650 len = length(field[1])
36651 for (i = 2; i < nfields; i++) {
36652 key = field[i]
36653 keylen = length(key)
36654 if (S_is_set[key]) {
36655 value = S[key]
36656 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36657 len += length(value) + length(field[++i])
36658 substed = 1
36659 } else
36660 len += 1 + keylen
36661 }
36662
36663 print line
36664}
36665
36666_ACAWK
36667_ACEOF
36668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36669if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36670 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36671else
36672 cat
cristyda16f162011-02-19 23:52:17 +000036673fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036674 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036675_ACEOF
36676
cristy98dddb52010-11-04 00:30:15 +000036677# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36678# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036679# trailing colons and then remove the whole line if VPATH becomes empty
36680# (actually we leave an empty line to preserve line numbers).
36681if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036682 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36683h
36684s///
36685s/^/:/
36686s/[ ]*$/:/
36687s/:\$(srcdir):/:/g
36688s/:\${srcdir}:/:/g
36689s/:@srcdir@:/:/g
36690s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036691s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036692x
36693s/\(=[ ]*\).*/\1/
36694G
36695s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036696s/^[^=]*=[ ]*$//
36697}'
36698fi
36699
36700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36701fi # test -n "$CONFIG_FILES"
36702
36703# Set up the scripts for CONFIG_HEADERS section.
36704# No need to generate them if there are no CONFIG_HEADERS.
36705# This happens for instance with `./config.status Makefile'.
36706if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036707cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036708BEGIN {
36709_ACEOF
36710
36711# Transform confdefs.h into an awk script `defines.awk', embedded as
36712# here-document in config.status, that substitutes the proper values into
36713# config.h.in to produce config.h.
36714
36715# Create a delimiter string that does not exist in confdefs.h, to ease
36716# handling of long lines.
36717ac_delim='%!_!# '
36718for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036719 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36720 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036721 break
36722 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036723 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036724 else
36725 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36726 fi
36727done
36728
36729# For the awk script, D is an array of macro values keyed by name,
36730# likewise P contains macro parameters if any. Preserve backslash
36731# newline sequences.
36732
36733ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36734sed -n '
36735s/.\{148\}/&'"$ac_delim"'/g
36736t rset
36737:rset
36738s/^[ ]*#[ ]*define[ ][ ]*/ /
36739t def
36740d
36741:def
36742s/\\$//
36743t bsnl
36744s/["\\]/\\&/g
36745s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36746D["\1"]=" \3"/p
36747s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36748d
36749:bsnl
36750s/["\\]/\\&/g
36751s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36752D["\1"]=" \3\\\\\\n"\\/p
36753t cont
36754s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36755t cont
36756d
36757:cont
36758n
36759s/.\{148\}/&'"$ac_delim"'/g
36760t clear
36761:clear
36762s/\\$//
36763t bsnlc
36764s/["\\]/\\&/g; s/^/"/; s/$/"/p
36765d
36766:bsnlc
36767s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36768b cont
36769' <confdefs.h | sed '
36770s/'"$ac_delim"'/"\\\
36771"/g' >>$CONFIG_STATUS || ac_write_fail=1
36772
36773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36774 for (key in D) D_is_set[key] = 1
36775 FS = ""
36776}
36777/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36778 line = \$ 0
36779 split(line, arg, " ")
36780 if (arg[1] == "#") {
36781 defundef = arg[2]
36782 mac1 = arg[3]
36783 } else {
36784 defundef = substr(arg[1], 2)
36785 mac1 = arg[2]
36786 }
36787 split(mac1, mac2, "(") #)
36788 macro = mac2[1]
36789 prefix = substr(line, 1, index(line, defundef) - 1)
36790 if (D_is_set[macro]) {
36791 # Preserve the white space surrounding the "#".
36792 print prefix "define", macro P[macro] D[macro]
36793 next
36794 } else {
36795 # Replace #undef with comments. This is necessary, for example,
36796 # in the case of _POSIX_SOURCE, which is predefined and required
36797 # on some systems where configure will not decide to define it.
36798 if (defundef == "undef") {
36799 print "/*", prefix defundef, macro, "*/"
36800 next
36801 }
36802 }
36803}
36804{ print }
36805_ACAWK
36806_ACEOF
36807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036808 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036809fi # test -n "$CONFIG_HEADERS"
36810
36811
36812eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36813shift
36814for ac_tag
36815do
36816 case $ac_tag in
36817 :[FHLC]) ac_mode=$ac_tag; continue;;
36818 esac
36819 case $ac_mode$ac_tag in
36820 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036821 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036822 :[FH]-) ac_tag=-:-;;
36823 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36824 esac
36825 ac_save_IFS=$IFS
36826 IFS=:
36827 set x $ac_tag
36828 IFS=$ac_save_IFS
36829 shift
36830 ac_file=$1
36831 shift
36832
36833 case $ac_mode in
36834 :L) ac_source=$1;;
36835 :[FH])
36836 ac_file_inputs=
36837 for ac_f
36838 do
36839 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036840 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036841 *) # Look for the file first in the build tree, then in the source tree
36842 # (if the path is not absolute). The absolute path cannot be DOS-style,
36843 # because $ac_f cannot contain `:'.
36844 test -f "$ac_f" ||
36845 case $ac_f in
36846 [\\/$]*) false;;
36847 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36848 esac ||
cristy98dddb52010-11-04 00:30:15 +000036849 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036850 esac
36851 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036852 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036853 done
36854
36855 # Let's still pretend it is `configure' which instantiates (i.e., don't
36856 # use $as_me), people would be surprised to read:
36857 # /* config.h. Generated by config.status. */
36858 configure_input='Generated from '`
36859 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36860 `' by configure.'
36861 if test x"$ac_file" != x-; then
36862 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036863 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036864$as_echo "$as_me: creating $ac_file" >&6;}
36865 fi
36866 # Neutralize special characters interpreted by sed in replacement strings.
36867 case $configure_input in #(
36868 *\&* | *\|* | *\\* )
36869 ac_sed_conf_input=`$as_echo "$configure_input" |
36870 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36871 *) ac_sed_conf_input=$configure_input;;
36872 esac
36873
36874 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036875 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036876 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036877 esac
36878 ;;
36879 esac
36880
36881 ac_dir=`$as_dirname -- "$ac_file" ||
36882$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36883 X"$ac_file" : 'X\(//\)[^/]' \| \
36884 X"$ac_file" : 'X\(//\)$' \| \
36885 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36886$as_echo X"$ac_file" |
36887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36888 s//\1/
36889 q
36890 }
36891 /^X\(\/\/\)[^/].*/{
36892 s//\1/
36893 q
36894 }
36895 /^X\(\/\/\)$/{
36896 s//\1/
36897 q
36898 }
36899 /^X\(\/\).*/{
36900 s//\1/
36901 q
36902 }
36903 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036904 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036905 ac_builddir=.
36906
36907case "$ac_dir" in
36908.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36909*)
36910 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36911 # A ".." for each directory in $ac_dir_suffix.
36912 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36913 case $ac_top_builddir_sub in
36914 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36915 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36916 esac ;;
36917esac
36918ac_abs_top_builddir=$ac_pwd
36919ac_abs_builddir=$ac_pwd$ac_dir_suffix
36920# for backward compatibility:
36921ac_top_builddir=$ac_top_build_prefix
36922
36923case $srcdir in
36924 .) # We are building in place.
36925 ac_srcdir=.
36926 ac_top_srcdir=$ac_top_builddir_sub
36927 ac_abs_top_srcdir=$ac_pwd ;;
36928 [\\/]* | ?:[\\/]* ) # Absolute name.
36929 ac_srcdir=$srcdir$ac_dir_suffix;
36930 ac_top_srcdir=$srcdir
36931 ac_abs_top_srcdir=$srcdir ;;
36932 *) # Relative name.
36933 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36934 ac_top_srcdir=$ac_top_build_prefix$srcdir
36935 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36936esac
36937ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36938
36939
36940 case $ac_mode in
36941 :F)
36942 #
36943 # CONFIG_FILE
36944 #
36945
36946 case $INSTALL in
36947 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36948 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36949 esac
cristy73bd4a52010-10-05 11:24:23 +000036950 ac_MKDIR_P=$MKDIR_P
36951 case $MKDIR_P in
36952 [\\/$]* | ?:[\\/]* ) ;;
36953 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36954 esac
cristy3ed852e2009-09-05 21:47:34 +000036955_ACEOF
36956
36957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36958# If the template does not know about datarootdir, expand it.
36959# FIXME: This hack should be removed a few years after 2.60.
36960ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036961ac_sed_dataroot='
36962/datarootdir/ {
36963 p
36964 q
36965}
36966/@datadir@/p
36967/@docdir@/p
36968/@infodir@/p
36969/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036970/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036971case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36972*datarootdir*) ac_datarootdir_seen=yes;;
36973*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036975$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36976_ACEOF
36977cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36978 ac_datarootdir_hack='
36979 s&@datadir@&$datadir&g
36980 s&@docdir@&$docdir&g
36981 s&@infodir@&$infodir&g
36982 s&@localedir@&$localedir&g
36983 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036984 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036985esac
36986_ACEOF
36987
36988# Neutralize VPATH when `$srcdir' = `.'.
36989# Shell code in configure.ac might set extrasub.
36990# FIXME: do we really want to maintain this feature?
36991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36992ac_sed_extra="$ac_vpsub
36993$extrasub
36994_ACEOF
36995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36996:t
36997/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36998s|@configure_input@|$ac_sed_conf_input|;t t
36999s&@top_builddir@&$ac_top_builddir_sub&;t t
37000s&@top_build_prefix@&$ac_top_build_prefix&;t t
37001s&@srcdir@&$ac_srcdir&;t t
37002s&@abs_srcdir@&$ac_abs_srcdir&;t t
37003s&@top_srcdir@&$ac_top_srcdir&;t t
37004s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37005s&@builddir@&$ac_builddir&;t t
37006s&@abs_builddir@&$ac_abs_builddir&;t t
37007s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37008s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037009s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037010$ac_datarootdir_hack
37011"
cristyda16f162011-02-19 23:52:17 +000037012eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37013 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037014
37015test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037016 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37017 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37018 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037020which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037021$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037022which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037023
cristyda16f162011-02-19 23:52:17 +000037024 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037025 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037026 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37027 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037028 esac \
cristy98dddb52010-11-04 00:30:15 +000037029 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037030 ;;
37031 :H)
37032 #
37033 # CONFIG_HEADER
37034 #
37035 if test x"$ac_file" != x-; then
37036 {
37037 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037038 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37039 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037040 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037041 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037042 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037043$as_echo "$as_me: $ac_file is unchanged" >&6;}
37044 else
37045 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037046 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037047 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037048 fi
37049 else
37050 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037051 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037052 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037053 fi
cristy73bd4a52010-10-05 11:24:23 +000037054# Compute "$ac_file"'s index in $config_headers.
37055_am_arg="$ac_file"
37056_am_stamp_count=1
37057for _am_header in $config_headers :; do
37058 case $_am_header in
37059 $_am_arg | $_am_arg:* )
37060 break ;;
37061 * )
37062 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37063 esac
37064done
37065echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37066$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37067 X"$_am_arg" : 'X\(//\)[^/]' \| \
37068 X"$_am_arg" : 'X\(//\)$' \| \
37069 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37070$as_echo X"$_am_arg" |
37071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37072 s//\1/
37073 q
37074 }
37075 /^X\(\/\/\)[^/].*/{
37076 s//\1/
37077 q
37078 }
37079 /^X\(\/\/\)$/{
37080 s//\1/
37081 q
37082 }
37083 /^X\(\/\).*/{
37084 s//\1/
37085 q
37086 }
37087 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037088 ;;
37089
cristy8b350f62009-11-15 23:12:43 +000037090 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037091$as_echo "$as_me: executing $ac_file commands" >&6;}
37092 ;;
37093 esac
37094
37095
37096 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037097 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037098ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37099ac_prefix_conf_PKG=`echo MagickCore`
37100ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37101ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37102ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37103if test ".$ac_prefix_conf_INP" = "."; then
37104 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37105 case "$ac_file" in
37106 *.h) ac_prefix_conf_INP=$ac_file ;;
37107 *)
37108 esac
37109 test ".$ac_prefix_conf_INP" != "." && break
37110 done
37111fi
37112if test ".$ac_prefix_conf_INP" = "."; then
37113 case "$ac_prefix_conf_OUT" in
37114 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37115 ;;
37116 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37117 ;;
37118 *) ac_prefix_conf_INP=config.h
37119 ;;
37120 esac
37121fi
37122if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037123 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037124else
37125 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37126 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37127 fi fi
37128 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37129$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37130 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037131 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37132 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37133 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37134 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37135 $as_echo "#endif/" >> conftest.prefix
37136 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37137 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37138 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037139 # now executing _script on _DEF input to create _OUT output file
37140 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37141 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37142 echo ' ' >>$tmp/pconfig.h
37143 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37144
37145 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37146 echo ' ' >>$tmp/pconfig.h
37147 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37148 echo "#endif" >>$tmp/pconfig.h
37149 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37150 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37151$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37152 else
37153 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37154$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37155 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37156 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37157 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37158$as_echo X"$ac_prefix_conf_OUT" |
37159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37160 s//\1/
37161 q
37162 }
37163 /^X\(\/\/\)[^/].*/{
37164 s//\1/
37165 q
37166 }
37167 /^X\(\/\/\)$/{
37168 s//\1/
37169 q
37170 }
37171 /^X\(\/\).*/{
37172 s//\1/
37173 q
37174 }
37175 s/.*/./; q'`
37176 as_dir="$ac_dir"; as_fn_mkdir_p
37177 rm -f "$ac_prefix_conf_OUT"
37178 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37179 fi
37180 cp conftest.prefix _configs.sed
37181 else
cristy98dddb52010-11-04 00:30:15 +000037182 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 +000037183 fi
37184 rm -f conftest.*
37185fi
37186 ;;
37187 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37188 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37189 # are listed without --file. Let's play safe and only enable the eval
37190 # if we detect the quoting.
37191 case $CONFIG_FILES in
37192 *\'*) eval set x "$CONFIG_FILES" ;;
37193 *) set x $CONFIG_FILES ;;
37194 esac
37195 shift
37196 for mf
37197 do
37198 # Strip MF so we end up with the name of the file.
37199 mf=`echo "$mf" | sed -e 's/:.*$//'`
37200 # Check whether this is an Automake generated Makefile or not.
37201 # We used to match only the files named `Makefile.in', but
37202 # some people rename them; so instead we look at the file content.
37203 # Grep'ing the first line is not enough: some people post-process
37204 # each Makefile.in and add a new line on top of each file to say so.
37205 # Grep'ing the whole file is not good either: AIX grep has a line
37206 # limit of 2048, but all sed's we know have understand at least 4000.
37207 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37208 dirpart=`$as_dirname -- "$mf" ||
37209$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37210 X"$mf" : 'X\(//\)[^/]' \| \
37211 X"$mf" : 'X\(//\)$' \| \
37212 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37213$as_echo X"$mf" |
37214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37215 s//\1/
37216 q
37217 }
37218 /^X\(\/\/\)[^/].*/{
37219 s//\1/
37220 q
37221 }
37222 /^X\(\/\/\)$/{
37223 s//\1/
37224 q
37225 }
37226 /^X\(\/\).*/{
37227 s//\1/
37228 q
37229 }
37230 s/.*/./; q'`
37231 else
37232 continue
37233 fi
37234 # Extract the definition of DEPDIR, am__include, and am__quote
37235 # from the Makefile without running `make'.
37236 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37237 test -z "$DEPDIR" && continue
37238 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37239 test -z "am__include" && continue
37240 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37241 # When using ansi2knr, U may be empty or an underscore; expand it
37242 U=`sed -n 's/^U = //p' < "$mf"`
37243 # Find all dependency output files, they are included files with
37244 # $(DEPDIR) in their names. We invoke sed twice because it is the
37245 # simplest approach to changing $(DEPDIR) to its actual value in the
37246 # expansion.
37247 for file in `sed -n "
37248 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37249 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37250 # Make sure the directory exists.
37251 test -f "$dirpart/$file" && continue
37252 fdir=`$as_dirname -- "$file" ||
37253$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37254 X"$file" : 'X\(//\)[^/]' \| \
37255 X"$file" : 'X\(//\)$' \| \
37256 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37257$as_echo X"$file" |
37258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37259 s//\1/
37260 q
37261 }
37262 /^X\(\/\/\)[^/].*/{
37263 s//\1/
37264 q
37265 }
37266 /^X\(\/\/\)$/{
37267 s//\1/
37268 q
37269 }
37270 /^X\(\/\).*/{
37271 s//\1/
37272 q
37273 }
37274 s/.*/./; q'`
37275 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37276 # echo "creating $dirpart/$file"
37277 echo '# dummy' > "$dirpart/$file"
37278 done
37279 done
37280}
37281 ;;
37282 "libtool":C)
37283
37284 # See if we are running on zsh, and set the options which allow our
37285 # commands through without removal of \ escapes.
37286 if test -n "${ZSH_VERSION+set}" ; then
37287 setopt NO_GLOB_SUBST
37288 fi
37289
37290 cfgfile="${ofile}T"
37291 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37292 $RM "$cfgfile"
37293
37294 cat <<_LT_EOF >> "$cfgfile"
37295#! $SHELL
37296
37297# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37298# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37299# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37300# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37301#
37302# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037303# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37304# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037305# Written by Gordon Matzigkeit, 1996
37306#
37307# This file is part of GNU Libtool.
37308#
37309# GNU Libtool is free software; you can redistribute it and/or
37310# modify it under the terms of the GNU General Public License as
37311# published by the Free Software Foundation; either version 2 of
37312# the License, or (at your option) any later version.
37313#
37314# As a special exception to the GNU General Public License,
37315# if you distribute this file as part of a program or library that
37316# is built using GNU Libtool, you may include this file under the
37317# same distribution terms that you use for the rest of that program.
37318#
37319# GNU Libtool is distributed in the hope that it will be useful,
37320# but WITHOUT ANY WARRANTY; without even the implied warranty of
37321# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37322# GNU General Public License for more details.
37323#
37324# You should have received a copy of the GNU General Public License
37325# along with GNU Libtool; see the file COPYING. If not, a copy
37326# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37327# obtained by writing to the Free Software Foundation, Inc.,
37328# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37329
37330
37331# The names of the tagged configurations supported by this script.
37332available_tags="CXX "
37333
37334# ### BEGIN LIBTOOL CONFIG
37335
37336# A sed program that does not truncate output.
37337SED=$lt_SED
37338
37339# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37340Xsed="\$SED -e 1s/^X//"
37341
37342# A grep program that handles long lines.
37343GREP=$lt_GREP
37344
37345# An ERE matcher.
37346EGREP=$lt_EGREP
37347
37348# A literal string matcher.
37349FGREP=$lt_FGREP
37350
cristy0c60a692010-11-04 01:09:47 +000037351# Shell to use when invoking shell scripts.
37352SHELL=$lt_SHELL
37353
37354# An echo program that protects backslashes.
37355ECHO=$lt_ECHO
37356
cristy73bd4a52010-10-05 11:24:23 +000037357# Which release of libtool.m4 was used?
37358macro_version=$macro_version
37359macro_revision=$macro_revision
37360
37361# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037362AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037363
37364# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037365DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037366
37367# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037368OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037369
37370# Whether or not to build shared libraries.
37371build_libtool_libs=$enable_shared
37372
37373# Whether or not to build static libraries.
37374build_old_libs=$enable_static
37375
37376# What type of objects to build.
37377pic_mode=$pic_mode
37378
37379# Whether or not to optimize for fast installation.
37380fast_install=$enable_fast_install
37381
cristy99bd5232011-12-07 14:38:20 +000037382# The PATH separator for the build system.
37383PATH_SEPARATOR=$lt_PATH_SEPARATOR
37384
cristy73bd4a52010-10-05 11:24:23 +000037385# The host system.
37386host_alias=$host_alias
37387host=$host
37388host_os=$host_os
37389
37390# The build system.
37391build_alias=$build_alias
37392build=$build
37393build_os=$build_os
37394
37395# A BSD- or MS-compatible name lister.
37396NM=$lt_NM
37397
37398# Whether we need soft or hard links.
37399LN_S=$lt_LN_S
37400
37401# What is the maximum length of a command?
37402max_cmd_len=$max_cmd_len
37403
37404# Object file suffix (normally "o").
37405objext=$ac_objext
37406
37407# Executable file suffix (normally "").
37408exeext=$exeext
37409
37410# whether the shell understands "unset".
37411lt_unset=$lt_unset
37412
37413# turn spaces into newlines.
37414SP2NL=$lt_lt_SP2NL
37415
37416# turn newlines into spaces.
37417NL2SP=$lt_lt_NL2SP
37418
cristyda16f162011-02-19 23:52:17 +000037419# convert \$build file names to \$host format.
37420to_host_file_cmd=$lt_cv_to_host_file_cmd
37421
37422# convert \$build files to toolchain format.
37423to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37424
cristy73bd4a52010-10-05 11:24:23 +000037425# Method to check whether dependent libraries are shared objects.
37426deplibs_check_method=$lt_deplibs_check_method
37427
cristyda16f162011-02-19 23:52:17 +000037428# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037429file_magic_cmd=$lt_file_magic_cmd
37430
cristyda16f162011-02-19 23:52:17 +000037431# How to find potential files when deplibs_check_method = "file_magic".
37432file_magic_glob=$lt_file_magic_glob
37433
37434# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37435want_nocaseglob=$lt_want_nocaseglob
37436
37437# Command to associate shared and link libraries.
37438sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37439
cristy73bd4a52010-10-05 11:24:23 +000037440# The archiver.
37441AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037442
37443# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037444AR_FLAGS=$lt_AR_FLAGS
37445
cristyda16f162011-02-19 23:52:17 +000037446# How to feed a file listing to the archiver.
37447archiver_list_spec=$lt_archiver_list_spec
37448
cristy73bd4a52010-10-05 11:24:23 +000037449# A symbol stripping program.
37450STRIP=$lt_STRIP
37451
37452# Commands used to install an old-style archive.
37453RANLIB=$lt_RANLIB
37454old_postinstall_cmds=$lt_old_postinstall_cmds
37455old_postuninstall_cmds=$lt_old_postuninstall_cmds
37456
cristy0c60a692010-11-04 01:09:47 +000037457# Whether to use a lock for old archive extraction.
37458lock_old_archive_extraction=$lock_old_archive_extraction
37459
cristy73bd4a52010-10-05 11:24:23 +000037460# A C compiler.
37461LTCC=$lt_CC
37462
37463# LTCC compiler flags.
37464LTCFLAGS=$lt_CFLAGS
37465
37466# Take the output of nm and produce a listing of raw symbols and C names.
37467global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37468
37469# Transform the output of nm in a proper C declaration.
37470global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37471
37472# Transform the output of nm in a C name address pair.
37473global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37474
37475# Transform the output of nm in a C name address pair when lib prefix is needed.
37476global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37477
cristyda16f162011-02-19 23:52:17 +000037478# Specify filename containing input files for \$NM.
37479nm_file_list_spec=$lt_nm_file_list_spec
37480
37481# The root where to search for dependent libraries,and in which our libraries should be installed.
37482lt_sysroot=$lt_sysroot
37483
cristy73bd4a52010-10-05 11:24:23 +000037484# The name of the directory that contains temporary libtool files.
37485objdir=$objdir
37486
cristy73bd4a52010-10-05 11:24:23 +000037487# Used to examine libraries when file_magic_cmd begins with "file".
37488MAGIC_CMD=$MAGIC_CMD
37489
37490# Must we lock files when doing compilation?
37491need_locks=$lt_need_locks
37492
cristyda16f162011-02-19 23:52:17 +000037493# Manifest tool.
37494MANIFEST_TOOL=$lt_MANIFEST_TOOL
37495
cristy73bd4a52010-10-05 11:24:23 +000037496# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37497DSYMUTIL=$lt_DSYMUTIL
37498
37499# Tool to change global to local symbols on Mac OS X.
37500NMEDIT=$lt_NMEDIT
37501
37502# Tool to manipulate fat objects and archives on Mac OS X.
37503LIPO=$lt_LIPO
37504
37505# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37506OTOOL=$lt_OTOOL
37507
37508# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37509OTOOL64=$lt_OTOOL64
37510
37511# Old archive suffix (normally "a").
37512libext=$libext
37513
37514# Shared library suffix (normally ".so").
37515shrext_cmds=$lt_shrext_cmds
37516
37517# The commands to extract the exported symbol list from a shared archive.
37518extract_expsyms_cmds=$lt_extract_expsyms_cmds
37519
37520# Variables whose values should be saved in libtool wrapper scripts and
37521# restored at link time.
37522variables_saved_for_relink=$lt_variables_saved_for_relink
37523
37524# Do we need the "lib" prefix for modules?
37525need_lib_prefix=$need_lib_prefix
37526
37527# Do we need a version for libraries?
37528need_version=$need_version
37529
37530# Library versioning type.
37531version_type=$version_type
37532
37533# Shared library runtime path variable.
37534runpath_var=$runpath_var
37535
37536# Shared library path variable.
37537shlibpath_var=$shlibpath_var
37538
37539# Is shlibpath searched before the hard-coded library search path?
37540shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37541
37542# Format of library name prefix.
37543libname_spec=$lt_libname_spec
37544
37545# List of archive names. First name is the real one, the rest are links.
37546# The last name is the one that the linker finds with -lNAME
37547library_names_spec=$lt_library_names_spec
37548
37549# The coded name of the library, if different from the real name.
37550soname_spec=$lt_soname_spec
37551
cristy0c60a692010-11-04 01:09:47 +000037552# Permission mode override for installation of shared libraries.
37553install_override_mode=$lt_install_override_mode
37554
cristy73bd4a52010-10-05 11:24:23 +000037555# Command to use after installation of a shared archive.
37556postinstall_cmds=$lt_postinstall_cmds
37557
37558# Command to use after uninstallation of a shared archive.
37559postuninstall_cmds=$lt_postuninstall_cmds
37560
37561# Commands used to finish a libtool library installation in a directory.
37562finish_cmds=$lt_finish_cmds
37563
37564# As "finish_cmds", except a single script fragment to be evaled but
37565# not shown.
37566finish_eval=$lt_finish_eval
37567
37568# Whether we should hardcode library paths into libraries.
37569hardcode_into_libs=$hardcode_into_libs
37570
37571# Compile-time system search path for libraries.
37572sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37573
37574# Run-time system search path for libraries.
37575sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37576
37577# Whether dlopen is supported.
37578dlopen_support=$enable_dlopen
37579
37580# Whether dlopen of programs is supported.
37581dlopen_self=$enable_dlopen_self
37582
37583# Whether dlopen of statically linked programs is supported.
37584dlopen_self_static=$enable_dlopen_self_static
37585
37586# Commands to strip libraries.
37587old_striplib=$lt_old_striplib
37588striplib=$lt_striplib
37589
37590
37591# The linker used to build libraries.
37592LD=$lt_LD
37593
cristy0c60a692010-11-04 01:09:47 +000037594# How to create reloadable object files.
37595reload_flag=$lt_reload_flag
37596reload_cmds=$lt_reload_cmds
37597
cristy73bd4a52010-10-05 11:24:23 +000037598# Commands used to build an old-style archive.
37599old_archive_cmds=$lt_old_archive_cmds
37600
37601# A language specific compiler.
37602CC=$lt_compiler
37603
37604# Is the compiler the GNU compiler?
37605with_gcc=$GCC
37606
37607# Compiler flag to turn off builtin functions.
37608no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37609
cristy73bd4a52010-10-05 11:24:23 +000037610# Additional compiler flags for building library objects.
37611pic_flag=$lt_lt_prog_compiler_pic
37612
cristyda16f162011-02-19 23:52:17 +000037613# How to pass a linker flag through the compiler.
37614wl=$lt_lt_prog_compiler_wl
37615
cristy73bd4a52010-10-05 11:24:23 +000037616# Compiler flag to prevent dynamic linking.
37617link_static_flag=$lt_lt_prog_compiler_static
37618
37619# Does compiler simultaneously support -c and -o options?
37620compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37621
37622# Whether or not to add -lc for building shared libraries.
37623build_libtool_need_lc=$archive_cmds_need_lc
37624
37625# Whether or not to disallow shared libs when runtime libs are static.
37626allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37627
37628# Compiler flag to allow reflexive dlopens.
37629export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37630
37631# Compiler flag to generate shared objects directly from archives.
37632whole_archive_flag_spec=$lt_whole_archive_flag_spec
37633
37634# Whether the compiler copes with passing no objects directly.
37635compiler_needs_object=$lt_compiler_needs_object
37636
37637# Create an old-style archive from a shared archive.
37638old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37639
37640# Create a temporary old-style archive to link instead of a shared archive.
37641old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37642
37643# Commands used to build a shared archive.
37644archive_cmds=$lt_archive_cmds
37645archive_expsym_cmds=$lt_archive_expsym_cmds
37646
37647# Commands used to build a loadable module if different from building
37648# a shared archive.
37649module_cmds=$lt_module_cmds
37650module_expsym_cmds=$lt_module_expsym_cmds
37651
37652# Whether we are building with GNU ld or not.
37653with_gnu_ld=$lt_with_gnu_ld
37654
37655# Flag that allows shared libraries with undefined symbols to be built.
37656allow_undefined_flag=$lt_allow_undefined_flag
37657
37658# Flag that enforces no undefined symbols.
37659no_undefined_flag=$lt_no_undefined_flag
37660
37661# Flag to hardcode \$libdir into a binary during linking.
37662# This must work even if \$libdir does not exist
37663hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37664
cristy73bd4a52010-10-05 11:24:23 +000037665# Whether we need a single "-rpath" flag with a separated argument.
37666hardcode_libdir_separator=$lt_hardcode_libdir_separator
37667
37668# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37669# DIR into the resulting binary.
37670hardcode_direct=$hardcode_direct
37671
37672# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37673# DIR into the resulting binary and the resulting library dependency is
37674# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37675# library is relocated.
37676hardcode_direct_absolute=$hardcode_direct_absolute
37677
37678# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37679# into the resulting binary.
37680hardcode_minus_L=$hardcode_minus_L
37681
37682# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37683# into the resulting binary.
37684hardcode_shlibpath_var=$hardcode_shlibpath_var
37685
37686# Set to "yes" if building a shared library automatically hardcodes DIR
37687# into the library and all subsequent libraries and executables linked
37688# against it.
37689hardcode_automatic=$hardcode_automatic
37690
37691# Set to yes if linker adds runtime paths of dependent libraries
37692# to runtime path list.
37693inherit_rpath=$inherit_rpath
37694
37695# Whether libtool must link a program against all its dependency libraries.
37696link_all_deplibs=$link_all_deplibs
37697
cristy73bd4a52010-10-05 11:24:23 +000037698# Set to "yes" if exported symbols are required.
37699always_export_symbols=$always_export_symbols
37700
37701# The commands to list exported symbols.
37702export_symbols_cmds=$lt_export_symbols_cmds
37703
37704# Symbols that should not be listed in the preloaded symbols.
37705exclude_expsyms=$lt_exclude_expsyms
37706
37707# Symbols that must always be exported.
37708include_expsyms=$lt_include_expsyms
37709
37710# Commands necessary for linking programs (against libraries) with templates.
37711prelink_cmds=$lt_prelink_cmds
37712
cristyda16f162011-02-19 23:52:17 +000037713# Commands necessary for finishing linking programs.
37714postlink_cmds=$lt_postlink_cmds
37715
cristy73bd4a52010-10-05 11:24:23 +000037716# Specify filename containing input files.
37717file_list_spec=$lt_file_list_spec
37718
37719# How to hardcode a shared library path into an executable.
37720hardcode_action=$hardcode_action
37721
37722# The directories searched by this compiler when creating a shared library.
37723compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37724
37725# Dependencies to place before and after the objects being linked to
37726# create a shared library.
37727predep_objects=$lt_predep_objects
37728postdep_objects=$lt_postdep_objects
37729predeps=$lt_predeps
37730postdeps=$lt_postdeps
37731
37732# The library search path used internally by the compiler when linking
37733# a shared library.
37734compiler_lib_search_path=$lt_compiler_lib_search_path
37735
37736# ### END LIBTOOL CONFIG
37737
37738_LT_EOF
37739
37740 case $host_os in
37741 aix3*)
37742 cat <<\_LT_EOF >> "$cfgfile"
37743# AIX sometimes has problems with the GCC collect2 program. For some
37744# reason, if we set the COLLECT_NAMES environment variable, the problems
37745# vanish in a puff of smoke.
37746if test "X${COLLECT_NAMES+set}" != Xset; then
37747 COLLECT_NAMES=
37748 export COLLECT_NAMES
37749fi
37750_LT_EOF
37751 ;;
37752 esac
37753
37754
37755ltmain="$ac_aux_dir/ltmain.sh"
37756
37757
37758 # We use sed instead of cat because bash on DJGPP gets confused if
37759 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37760 # text mode, it properly converts lines to CR/LF. This bash problem
37761 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037762 sed '$q' "$ltmain" >> "$cfgfile" \
37763 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037764
cristyda16f162011-02-19 23:52:17 +000037765 if test x"$xsi_shell" = xyes; then
37766 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37767func_dirname ()\
37768{\
37769\ case ${1} in\
37770\ */*) func_dirname_result="${1%/*}${2}" ;;\
37771\ * ) func_dirname_result="${3}" ;;\
37772\ esac\
37773} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37774 && mv -f "$cfgfile.tmp" "$cfgfile" \
37775 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37776test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037777
37778
cristyda16f162011-02-19 23:52:17 +000037779 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37780func_basename ()\
37781{\
37782\ func_basename_result="${1##*/}"\
37783} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37784 && mv -f "$cfgfile.tmp" "$cfgfile" \
37785 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37786test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037787
37788
cristyda16f162011-02-19 23:52:17 +000037789 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37790func_dirname_and_basename ()\
37791{\
37792\ case ${1} in\
37793\ */*) func_dirname_result="${1%/*}${2}" ;;\
37794\ * ) func_dirname_result="${3}" ;;\
37795\ esac\
37796\ func_basename_result="${1##*/}"\
37797} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37798 && mv -f "$cfgfile.tmp" "$cfgfile" \
37799 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37800test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037801
cristyda16f162011-02-19 23:52:17 +000037802
37803 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37804func_stripname ()\
37805{\
37806\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37807\ # positional parameters, so assign one to ordinary parameter first.\
37808\ func_stripname_result=${3}\
37809\ func_stripname_result=${func_stripname_result#"${1}"}\
37810\ func_stripname_result=${func_stripname_result%"${2}"}\
37811} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37812 && mv -f "$cfgfile.tmp" "$cfgfile" \
37813 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37814test 0 -eq $? || _lt_function_replace_fail=:
37815
37816
37817 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37818func_split_long_opt ()\
37819{\
37820\ func_split_long_opt_name=${1%%=*}\
37821\ func_split_long_opt_arg=${1#*=}\
37822} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37823 && mv -f "$cfgfile.tmp" "$cfgfile" \
37824 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37825test 0 -eq $? || _lt_function_replace_fail=:
37826
37827
37828 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37829func_split_short_opt ()\
37830{\
37831\ func_split_short_opt_arg=${1#??}\
37832\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37833} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37834 && mv -f "$cfgfile.tmp" "$cfgfile" \
37835 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37836test 0 -eq $? || _lt_function_replace_fail=:
37837
37838
37839 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37840func_lo2o ()\
37841{\
37842\ case ${1} in\
37843\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37844\ *) func_lo2o_result=${1} ;;\
37845\ esac\
37846} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37847 && mv -f "$cfgfile.tmp" "$cfgfile" \
37848 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37849test 0 -eq $? || _lt_function_replace_fail=:
37850
37851
37852 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37853func_xform ()\
37854{\
37855 func_xform_result=${1%.*}.lo\
37856} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37857 && mv -f "$cfgfile.tmp" "$cfgfile" \
37858 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37859test 0 -eq $? || _lt_function_replace_fail=:
37860
37861
37862 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37863func_arith ()\
37864{\
37865 func_arith_result=$(( $* ))\
37866} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37867 && mv -f "$cfgfile.tmp" "$cfgfile" \
37868 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37869test 0 -eq $? || _lt_function_replace_fail=:
37870
37871
37872 sed -e '/^func_len ()$/,/^} # func_len /c\
37873func_len ()\
37874{\
37875 func_len_result=${#1}\
37876} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37877 && mv -f "$cfgfile.tmp" "$cfgfile" \
37878 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37879test 0 -eq $? || _lt_function_replace_fail=:
37880
37881fi
37882
37883if test x"$lt_shell_append" = xyes; then
37884 sed -e '/^func_append ()$/,/^} # func_append /c\
37885func_append ()\
37886{\
37887 eval "${1}+=\\${2}"\
37888} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37889 && mv -f "$cfgfile.tmp" "$cfgfile" \
37890 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37891test 0 -eq $? || _lt_function_replace_fail=:
37892
37893
37894 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37895func_append_quoted ()\
37896{\
37897\ func_quote_for_eval "${2}"\
37898\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37899} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37900 && mv -f "$cfgfile.tmp" "$cfgfile" \
37901 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37902test 0 -eq $? || _lt_function_replace_fail=:
37903
37904
37905 # Save a `func_append' function call where possible by direct use of '+='
37906 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37907 && mv -f "$cfgfile.tmp" "$cfgfile" \
37908 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37909 test 0 -eq $? || _lt_function_replace_fail=:
37910else
37911 # Save a `func_append' function call even when '+=' is not available
37912 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37913 && mv -f "$cfgfile.tmp" "$cfgfile" \
37914 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37915 test 0 -eq $? || _lt_function_replace_fail=:
37916fi
37917
37918if test x"$_lt_function_replace_fail" = x":"; then
37919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37920$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37921fi
37922
37923
37924 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037925 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37926 chmod +x "$ofile"
37927
37928
37929 cat <<_LT_EOF >> "$ofile"
37930
37931# ### BEGIN LIBTOOL TAG CONFIG: CXX
37932
37933# The linker used to build libraries.
37934LD=$lt_LD_CXX
37935
cristy0c60a692010-11-04 01:09:47 +000037936# How to create reloadable object files.
37937reload_flag=$lt_reload_flag_CXX
37938reload_cmds=$lt_reload_cmds_CXX
37939
cristy73bd4a52010-10-05 11:24:23 +000037940# Commands used to build an old-style archive.
37941old_archive_cmds=$lt_old_archive_cmds_CXX
37942
37943# A language specific compiler.
37944CC=$lt_compiler_CXX
37945
37946# Is the compiler the GNU compiler?
37947with_gcc=$GCC_CXX
37948
37949# Compiler flag to turn off builtin functions.
37950no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37951
cristy73bd4a52010-10-05 11:24:23 +000037952# Additional compiler flags for building library objects.
37953pic_flag=$lt_lt_prog_compiler_pic_CXX
37954
cristyda16f162011-02-19 23:52:17 +000037955# How to pass a linker flag through the compiler.
37956wl=$lt_lt_prog_compiler_wl_CXX
37957
cristy73bd4a52010-10-05 11:24:23 +000037958# Compiler flag to prevent dynamic linking.
37959link_static_flag=$lt_lt_prog_compiler_static_CXX
37960
37961# Does compiler simultaneously support -c and -o options?
37962compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37963
37964# Whether or not to add -lc for building shared libraries.
37965build_libtool_need_lc=$archive_cmds_need_lc_CXX
37966
37967# Whether or not to disallow shared libs when runtime libs are static.
37968allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37969
37970# Compiler flag to allow reflexive dlopens.
37971export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37972
37973# Compiler flag to generate shared objects directly from archives.
37974whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37975
37976# Whether the compiler copes with passing no objects directly.
37977compiler_needs_object=$lt_compiler_needs_object_CXX
37978
37979# Create an old-style archive from a shared archive.
37980old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37981
37982# Create a temporary old-style archive to link instead of a shared archive.
37983old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37984
37985# Commands used to build a shared archive.
37986archive_cmds=$lt_archive_cmds_CXX
37987archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37988
37989# Commands used to build a loadable module if different from building
37990# a shared archive.
37991module_cmds=$lt_module_cmds_CXX
37992module_expsym_cmds=$lt_module_expsym_cmds_CXX
37993
37994# Whether we are building with GNU ld or not.
37995with_gnu_ld=$lt_with_gnu_ld_CXX
37996
37997# Flag that allows shared libraries with undefined symbols to be built.
37998allow_undefined_flag=$lt_allow_undefined_flag_CXX
37999
38000# Flag that enforces no undefined symbols.
38001no_undefined_flag=$lt_no_undefined_flag_CXX
38002
38003# Flag to hardcode \$libdir into a binary during linking.
38004# This must work even if \$libdir does not exist
38005hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38006
cristy73bd4a52010-10-05 11:24:23 +000038007# Whether we need a single "-rpath" flag with a separated argument.
38008hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38009
38010# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38011# DIR into the resulting binary.
38012hardcode_direct=$hardcode_direct_CXX
38013
38014# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38015# DIR into the resulting binary and the resulting library dependency is
38016# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38017# library is relocated.
38018hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38019
38020# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38021# into the resulting binary.
38022hardcode_minus_L=$hardcode_minus_L_CXX
38023
38024# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38025# into the resulting binary.
38026hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38027
38028# Set to "yes" if building a shared library automatically hardcodes DIR
38029# into the library and all subsequent libraries and executables linked
38030# against it.
38031hardcode_automatic=$hardcode_automatic_CXX
38032
38033# Set to yes if linker adds runtime paths of dependent libraries
38034# to runtime path list.
38035inherit_rpath=$inherit_rpath_CXX
38036
38037# Whether libtool must link a program against all its dependency libraries.
38038link_all_deplibs=$link_all_deplibs_CXX
38039
cristy73bd4a52010-10-05 11:24:23 +000038040# Set to "yes" if exported symbols are required.
38041always_export_symbols=$always_export_symbols_CXX
38042
38043# The commands to list exported symbols.
38044export_symbols_cmds=$lt_export_symbols_cmds_CXX
38045
38046# Symbols that should not be listed in the preloaded symbols.
38047exclude_expsyms=$lt_exclude_expsyms_CXX
38048
38049# Symbols that must always be exported.
38050include_expsyms=$lt_include_expsyms_CXX
38051
38052# Commands necessary for linking programs (against libraries) with templates.
38053prelink_cmds=$lt_prelink_cmds_CXX
38054
cristyda16f162011-02-19 23:52:17 +000038055# Commands necessary for finishing linking programs.
38056postlink_cmds=$lt_postlink_cmds_CXX
38057
cristy73bd4a52010-10-05 11:24:23 +000038058# Specify filename containing input files.
38059file_list_spec=$lt_file_list_spec_CXX
38060
38061# How to hardcode a shared library path into an executable.
38062hardcode_action=$hardcode_action_CXX
38063
38064# The directories searched by this compiler when creating a shared library.
38065compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38066
38067# Dependencies to place before and after the objects being linked to
38068# create a shared library.
38069predep_objects=$lt_predep_objects_CXX
38070postdep_objects=$lt_postdep_objects_CXX
38071predeps=$lt_predeps_CXX
38072postdeps=$lt_postdeps_CXX
38073
38074# The library search path used internally by the compiler when linking
38075# a shared library.
38076compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38077
38078# ### END LIBTOOL TAG CONFIG: CXX
38079_LT_EOF
38080
38081 ;;
cristy4c08aed2011-07-01 19:47:50 +000038082 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038083 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038084 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38085 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38086
38087 esac
38088done # for ac_tag
38089
38090
cristy8b350f62009-11-15 23:12:43 +000038091as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038092_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038093ac_clean_files=$ac_clean_files_save
38094
38095test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038096 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038097
38098
38099# configure is writing to config.log, and then calls config.status.
38100# config.status does its own redirection, appending to config.log.
38101# Unfortunately, on DOS this fails, as config.log is still kept open
38102# by configure, so config.status won't be able to write to it; its
38103# output is simply discarded. So we exec the FD to /dev/null,
38104# effectively closing config.log, so it can be properly (re)opened and
38105# appended to by config.status. When coming back to configure, we
38106# need to make the FD available again.
38107if test "$no_create" != yes; then
38108 ac_cs_success=:
38109 ac_config_status_args=
38110 test "$silent" = yes &&
38111 ac_config_status_args="$ac_config_status_args --quiet"
38112 exec 5>/dev/null
38113 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38114 exec 5>>config.log
38115 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38116 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038117 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038118fi
38119if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038121$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38122fi
38123
38124
38125rm -f magick-version
38126
cristy430a7312010-01-21 20:44:04 +000038127result_dejavu_font_dir='none'
38128if test "${dejavu_font_dir}x" != 'x'; then
38129 result_dejavu_font_dir=$dejavu_font_dir
38130fi
38131
cristy3ed852e2009-09-05 21:47:34 +000038132result_ghostscript_font_dir='none'
38133if test "${ghostscript_font_dir}x" != 'x'; then
38134 result_ghostscript_font_dir=$ghostscript_font_dir
38135fi
38136
38137result_windows_font_dir='none'
38138if test "${windows_font_dir}x" != 'x'; then
38139 result_windows_font_dir=${windows_font_dir}
38140fi
38141
cristy09b53e12011-10-14 12:47:22 +000038142{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038143ImageMagick is configured as follows. Please verify that this configuration
38144matches your expectations.
38145
38146Host system type: $host
38147Build system type: $build
38148
38149 Option Value
38150-------------------------------------------------------------------------------
38151Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38152Static libraries --enable-static=$enable_static $libtool_build_static_libs
38153Module support --with-modules=$with_modules $with_modules
38154GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38155Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38156High Dynamic Range Imagery
38157 --enable-hdri=$enable_hdri $enable_hdri
38158
38159Delegate Configuration:
38160BZLIB --with-bzlib=$with_bzlib $have_bzlib
38161Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038162Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038163DJVU --with-djvu=$with_djvu $have_djvu
38164DPS --with-dps=$with_dps $have_dps
38165FFTW --with-fftw=$with_fftw $have_fftw
38166FlashPIX --with-fpx=$with_fpx $have_fpx
38167FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38168FreeType --with-freetype=$with_freetype $have_freetype
38169GhostPCL None $PCLDelegate ($PCLVersion)
38170GhostXPS None $XPSDelegate ($XPSVersion)
38171Ghostscript None $PSDelegate ($GSVersion)
38172Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38173Ghostscript lib --with-gslib=$with_gslib $have_gslib
38174Graphviz --with-gvc=$with_gvc $have_gvc
38175JBIG --with-jbig=$with_jbig $have_jbig
38176JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38177JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038178LCMS v1 --with-lcms=$with_lcms $have_lcms
38179LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038180LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038181LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038182Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38183OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038184PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038185PERL --with-perl=$with_perl $have_perl
38186PNG --with-png=$with_png $have_png
38187RSVG --with-rsvg=$with_rsvg $have_rsvg
38188TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038189WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038190Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38191WMF --with-wmf=$with_wmf $have_wmf
38192X11 --with-x=$with_x $have_x
38193XML --with-xml=$with_xml $have_xml
38194ZLIB --with-zlib=$with_zlib $have_zlib
38195
38196X11 Configuration:
38197 X_CFLAGS = $X_CFLAGS
38198 X_PRE_LIBS = $X_PRE_LIBS
38199 X_LIBS = $X_LIBS
38200 X_EXTRA_LIBS = $X_EXTRA_LIBS
38201
38202Options used to compile and link:
38203 PREFIX = $PREFIX_DIR
38204 EXEC-PREFIX = $EXEC_PREFIX_DIR
38205 VERSION = $PACKAGE_VERSION
38206 CC = $CC
38207 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038208 CPPFLAGS = $MAGICK_CPPFLAGS
38209 PCFLAGS = $MAGICK_PCFLAGS
38210 DEFS = $DEFS
38211 LDFLAGS = $LDFLAGS
38212 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38213 LIBS = $MAGICK_LIBS
38214 CXX = $CXX
38215 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038216 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038217" >&5
cristy09b53e12011-10-14 12:47:22 +000038218$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038219ImageMagick is configured as follows. Please verify that this configuration
38220matches your expectations.
38221
38222Host system type: $host
38223Build system type: $build
38224
38225 Option Value
38226-------------------------------------------------------------------------------
38227Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38228Static libraries --enable-static=$enable_static $libtool_build_static_libs
38229Module support --with-modules=$with_modules $with_modules
38230GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38231Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38232High Dynamic Range Imagery
38233 --enable-hdri=$enable_hdri $enable_hdri
38234
38235Delegate Configuration:
38236BZLIB --with-bzlib=$with_bzlib $have_bzlib
38237Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038238Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038239DJVU --with-djvu=$with_djvu $have_djvu
38240DPS --with-dps=$with_dps $have_dps
38241FFTW --with-fftw=$with_fftw $have_fftw
38242FlashPIX --with-fpx=$with_fpx $have_fpx
38243FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38244FreeType --with-freetype=$with_freetype $have_freetype
38245GhostPCL None $PCLDelegate ($PCLVersion)
38246GhostXPS None $XPSDelegate ($XPSVersion)
38247Ghostscript None $PSDelegate ($GSVersion)
38248Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38249Ghostscript lib --with-gslib=$with_gslib $have_gslib
38250Graphviz --with-gvc=$with_gvc $have_gvc
38251JBIG --with-jbig=$with_jbig $have_jbig
38252JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38253JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038254LCMS v1 --with-lcms=$with_lcms $have_lcms
38255LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038256LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038257LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038258Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38259OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038260PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038261PERL --with-perl=$with_perl $have_perl
38262PNG --with-png=$with_png $have_png
38263RSVG --with-rsvg=$with_rsvg $have_rsvg
38264TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038265WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038266Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38267WMF --with-wmf=$with_wmf $have_wmf
38268X11 --with-x=$with_x $have_x
38269XML --with-xml=$with_xml $have_xml
38270ZLIB --with-zlib=$with_zlib $have_zlib
38271
38272X11 Configuration:
38273 X_CFLAGS = $X_CFLAGS
38274 X_PRE_LIBS = $X_PRE_LIBS
38275 X_LIBS = $X_LIBS
38276 X_EXTRA_LIBS = $X_EXTRA_LIBS
38277
38278Options used to compile and link:
38279 PREFIX = $PREFIX_DIR
38280 EXEC-PREFIX = $EXEC_PREFIX_DIR
38281 VERSION = $PACKAGE_VERSION
38282 CC = $CC
38283 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038284 CPPFLAGS = $MAGICK_CPPFLAGS
38285 PCFLAGS = $MAGICK_PCFLAGS
38286 DEFS = $DEFS
38287 LDFLAGS = $LDFLAGS
38288 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38289 LIBS = $MAGICK_LIBS
38290 CXX = $CXX
38291 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038292 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038293" >&6;}