blob: fdc482f844165d1aa10d5fb3e6b0106c40d359f0 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy4c08aed2011-07-01 19:47:50 +00003# Generated by GNU Autoconf 2.68 for ImageMagick 7.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'
cristy4c08aed2011-07-01 19:47:50 +0000576PACKAGE_TARNAME='ImageMagick-7.0.0'
577PACKAGE_VERSION='7.0.0'
578PACKAGE_STRING='ImageMagick 7.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
cristy3ed852e2009-09-05 21:47:34 +0000724SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000725CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000726DOCUMENTATION_PATH
727FILTER_PATH
728CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000729LIBRARY_PATH
730EXECUTABLE_PATH
731PERLMAINCC
732XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000733XML_DELEGATE_FALSE
734XML_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000735xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000736WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000737WMF_DELEGATE_FALSE
738WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000739WEBP_LIBS
740WEBP_DELEGATE_FALSE
741WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000742TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000743TIFF_DELEGATE_FALSE
744TIFF_DELEGATE_TRUE
745CAIRO_DELEGATE_FALSE
746CAIRO_DELEGATE_TRUE
747RSVG_DELEGATE_FALSE
748RSVG_DELEGATE_TRUE
749CAIRO_SVG_LIBS
750CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000751RSVG_LIBS
752RSVG_CFLAGS
753PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000754PNG_DELEGATE_FALSE
755PNG_DELEGATE_TRUE
756OPENEXR_DELEGATE_FALSE
757OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000758OPENEXR_LIBS
759OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000760LZMA_LIBS
761LZMA_DELEGATE_FALSE
762LZMA_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000763LQR_DELEGATE_FALSE
764LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000765LQR_LIBS
766LQR_CFLAGS
767LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000768LCMS_DELEGATE_FALSE
769LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000770JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000771JP2_DELEGATE_FALSE
772JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000773JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000774JPEG_DELEGATE_FALSE
775JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000776JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777JBIG_DELEGATE_FALSE
778JBIG_DELEGATE_TRUE
779GVC_DELEGATE_FALSE
780GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000781GVC_LIBS
782GVC_CFLAGS
783GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000784GS_DELEGATE_FALSE
785GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000786FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000787FREETYPE_DELEGATE_FALSE
788FREETYPE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000789freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000790FONTCONFIG_DELEGATE_FALSE
791FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000792FONTCONFIG_LIBS
793FONTCONFIG_CFLAGS
794FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000795FPX_DELEGATE_FALSE
796FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000797FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000798FFTW_DELEGATE_FALSE
799FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000801DJVU_DELEGATE_FALSE
802DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804DPS_DELEGATE_FALSE
805DPS_DELEGATE_TRUE
806AUTOTRACE_DELEGATE_FALSE
807AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000808AUTOTRACE_LIBS
809AUTOTRACE_CFLAGS
810LIB_DL
811ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000812ZLIB_DELEGATE_FALSE
813ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000814XEXT_LIBS
815X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000816X11_DELEGATE_FALSE
817X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000818X_EXTRA_LIBS
819X_LIBS
820X_PRE_LIBS
821X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000822XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000823BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824BZLIB_DELEGATE_FALSE
825BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000826CCMALLOCDelegate
827UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000828HasUMEM_FALSE
829HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000830THREAD_LIBS
831GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000832WITH_MAGICK_PLUS_PLUS_FALSE
833WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000834OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000835MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000836POW_LIB
837LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000838UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000839UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000840UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000841UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000842UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000843UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000844INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000845INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000846UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000847UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000848INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000849INT32_T
850UINT16_T
851INT16_T
852UINT8_T
853INT8_T
854LIBRARY_EXTRA_CPPFLAGS
855MODULE_EXTRA_CPPFLAGS
856LIBSTDCLDFLAGS
857PERL_MAKE_OPTIONS
858QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000859MAINT
860MAINTAINER_MODE_FALSE
861MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000862MAGICK_HDRI
863DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000864WITH_LTDL_FALSE
865WITH_LTDL_TRUE
866WITH_MODULES_FALSE
867WITH_MODULES_TRUE
868WITH_SHARED_LIBS_FALSE
869WITH_SHARED_LIBS_TRUE
870LTDLOPEN
871LT_CONFIG_H
872CONVENIENCE_LTDL_FALSE
873CONVENIENCE_LTDL_TRUE
874INSTALL_LTDL_FALSE
875INSTALL_LTDL_TRUE
876ARGZ_H
877sys_symbol_underscore
878LIBADD_DL
879LT_DLPREOPEN
880LIBADD_DLD_LINK
881LIBADD_SHL_LOAD
882LIBADD_DLOPEN
883LT_DLLOADERS
884INCLTDL
885LTDLINCL
886LTDLDEPS
887LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000888LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000889CXXCPP
890OTOOL64
891OTOOL
892LIPO
893NMEDIT
894DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000895MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000896RANLIB
cristyda16f162011-02-19 23:52:17 +0000897ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000898AR
899NM
900ac_ct_DUMPBIN
901DUMPBIN
902LIBTOOL
903OBJDUMP
904DLLTOOL
905AS
cristy3ed852e2009-09-05 21:47:34 +0000906LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000907CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000908CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000909OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000910PTHREAD_CFLAGS
911PTHREAD_LIBS
912PTHREAD_CC
913ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000914WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000915USING_CL_FALSE
916USING_CL_TRUE
917CYGWIN_BUILD_FALSE
918CYGWIN_BUILD_TRUE
919WIN32_NATIVE_BUILD_FALSE
920WIN32_NATIVE_BUILD_TRUE
921WINGDI32_DELEGATE_FALSE
922WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000923GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000924PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000925LN_S
cristy3ed852e2009-09-05 21:47:34 +0000926LD
cristy73bd4a52010-10-05 11:24:23 +0000927FGREP
928SED
929am__fastdepCXX_FALSE
930am__fastdepCXX_TRUE
931CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000932ac_ct_CXX
933CXXFLAGS
934CXX
cristya0b81c32010-01-22 02:54:33 +0000935EGREP
936GREP
937CPP
cristy73bd4a52010-10-05 11:24:23 +0000938am__fastdepCC_FALSE
939am__fastdepCC_TRUE
940CCDEPMODE
941AMDEPBACKSLASH
942AMDEP_FALSE
943AMDEP_TRUE
944am__quote
945am__include
946DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000947OBJEXT
948EXEEXT
949ac_ct_CC
950CPPFLAGS
951LDFLAGS
952CFLAGS
953CC
954DIRSEP
955MAGICK_FILTER_MODULE_PATH
956MAGICK_CONFIGURE_BUILD_PATH
957MAGICK_CONFIGURE_SRC_PATH
958MAGICK_CODER_MODULE_PATH
959MAN_DIR
960INFO_DIR
961PERSISTINCLUDE_DIR
962INCLUDE_DIR
963LIB_DIR
964LOCALSTATE_DIR
965SHAREDSTATE_DIR
966SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000967DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000968DATA_DIR
969LIBEXEC_DIR
970SBIN_DIR
971BIN_DIR
972EXEC_PREFIX_DIR
973PREFIX_DIR
974CONFIG_STATUS_DEPENDENCIES
975MAGICK_LIB_VERSION_NUMBER
976MAGICK_LIB_VERSION_TEXT
977MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000978AM_BACKSLASH
979AM_DEFAULT_VERBOSITY
980am__untar
981am__tar
982AMTAR
983am__leading_dot
984SET_MAKE
985AWK
986mkdir_p
987MKDIR_P
988INSTALL_STRIP_PROGRAM
989STRIP
990install_sh
991MAKEINFO
992AUTOHEADER
993AUTOMAKE
994AUTOCONF
995ACLOCAL
996VERSION
997PACKAGE
998CYGPATH_W
999am__isrc
1000INSTALL_DATA
1001INSTALL_SCRIPT
1002INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001003PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001004PACKAGE_RELEASE_DATE
1005PACKAGE_LIB_VERSION_NUMBER
1006PACKAGE_LIB_VERSION
1007PACKAGE_CHANGE_DATE
1008PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001009PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001010MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001011MAGICK_LIBRARY_VERSION_INFO
1012MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001013MAGICK_LIBRARY_AGE
1014MAGICK_LIBRARY_REVISION
1015MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001016MAGICK_TARGET_OS
1017MAGICK_TARGET_VENDOR
1018MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001019target_os
1020target_vendor
1021target_cpu
1022target
1023host_os
1024host_vendor
1025host_cpu
1026host
1027build_os
1028build_vendor
1029build_cpu
1030build
1031CONFIGURE_ARGS
1032DISTCHECK_CONFIG_FLAGS
1033target_alias
1034host_alias
1035build_alias
1036LIBS
1037ECHO_T
1038ECHO_N
1039ECHO_C
1040DEFS
1041mandir
1042localedir
1043libdir
1044psdir
1045pdfdir
1046dvidir
1047htmldir
1048infodir
1049docdir
1050oldincludedir
1051includedir
1052localstatedir
1053sharedstatedir
1054sysconfdir
1055datadir
1056datarootdir
1057libexecdir
1058sbindir
1059bindir
1060program_transform_name
1061prefix
1062exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001063PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001064PACKAGE_BUGREPORT
1065PACKAGE_STRING
1066PACKAGE_VERSION
1067PACKAGE_TARNAME
1068PACKAGE_NAME
1069PATH_SEPARATOR
1070SHELL'
1071ac_subst_files=''
1072ac_user_opts='
1073enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001074enable_silent_rules
1075enable_dependency_tracking
1076with_gnu_ld
1077with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001078enable_bounds_checking
1079enable_osx_universal_binary
1080with_threads
1081enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001082enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001083enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001084enable_shared
1085enable_static
1086with_pic
1087enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001088with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001089enable_libtool_lock
1090with_included_ltdl
1091with_ltdl_include
1092with_ltdl_lib
1093enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001094with_modules
1095enable_delegate_build
1096enable_deprecated
1097enable_installed
1098enable_cipher
1099enable_embeddable
1100enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001101enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001102enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001103enable_ccmalloc
1104enable_efence
1105enable_prof
1106enable_gprof
1107enable_gcov
1108with_method_prefix
1109with_quantum_depth
1110with_cache
1111with_frozenpaths
1112with_magick_plus_plus
1113with_perl
1114with_perl_options
1115with_umem
1116with_libstdc
1117with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001118with_x
cristy3ed852e2009-09-05 21:47:34 +00001119with_zlib
1120with_autotrace
1121with_dps
1122with_djvu
cristy430a7312010-01-21 20:44:04 +00001123with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001124with_fftw
1125with_fpx
1126with_fontconfig
1127with_freetype
1128with_gslib
1129with_fontpath
1130with_gs_font_dir
1131with_gvc
1132with_jbig
1133with_jpeg
1134with_jp2
1135with_lcms
cristy71203402010-06-18 13:12:03 +00001136with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001137with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001138with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001139with_openexr
1140with_png
1141with_rsvg
1142with_tiff
cristyb1860752011-03-14 00:27:46 +00001143with_webp
cristy3ed852e2009-09-05 21:47:34 +00001144with_windows_font_dir
1145with_wmf
1146with_xml
1147'
1148 ac_precious_vars='build_alias
1149host_alias
1150target_alias
1151CC
1152CFLAGS
1153LDFLAGS
1154LIBS
1155CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001156CPP
cristy3ed852e2009-09-05 21:47:34 +00001157CXX
1158CXXFLAGS
1159CCC
cristy73bd4a52010-10-05 11:24:23 +00001160PKG_CONFIG
1161CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001162XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001163AUTOTRACE_CFLAGS
1164AUTOTRACE_LIBS
1165FONTCONFIG_CFLAGS
1166FONTCONFIG_LIBS
1167GVC_CFLAGS
1168GVC_LIBS
1169LQR_CFLAGS
1170LQR_LIBS
1171OPENEXR_CFLAGS
1172OPENEXR_LIBS
1173RSVG_CFLAGS
1174RSVG_LIBS
1175CAIRO_SVG_CFLAGS
1176CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001177
1178
1179# Initialize some variables set by options.
1180ac_init_help=
1181ac_init_version=false
1182ac_unrecognized_opts=
1183ac_unrecognized_sep=
1184# The variables have the same names as the options, with
1185# dashes changed to underlines.
1186cache_file=/dev/null
1187exec_prefix=NONE
1188no_create=
1189no_recursion=
1190prefix=NONE
1191program_prefix=NONE
1192program_suffix=NONE
1193program_transform_name=s,x,x,
1194silent=
1195site=
1196srcdir=
1197verbose=
1198x_includes=NONE
1199x_libraries=NONE
1200
1201# Installation directory options.
1202# These are left unexpanded so users can "make install exec_prefix=/foo"
1203# and all the variables that are supposed to be based on exec_prefix
1204# by default will actually change.
1205# Use braces instead of parens because sh, perl, etc. also accept them.
1206# (The list follows the same order as the GNU Coding Standards.)
1207bindir='${exec_prefix}/bin'
1208sbindir='${exec_prefix}/sbin'
1209libexecdir='${exec_prefix}/libexec'
1210datarootdir='${prefix}/share'
1211datadir='${datarootdir}'
1212sysconfdir='${prefix}/etc'
1213sharedstatedir='${prefix}/com'
1214localstatedir='${prefix}/var'
1215includedir='${prefix}/include'
1216oldincludedir='/usr/include'
1217docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1218infodir='${datarootdir}/info'
1219htmldir='${docdir}'
1220dvidir='${docdir}'
1221pdfdir='${docdir}'
1222psdir='${docdir}'
1223libdir='${exec_prefix}/lib'
1224localedir='${datarootdir}/locale'
1225mandir='${datarootdir}/man'
1226
1227ac_prev=
1228ac_dashdash=
1229for ac_option
1230do
1231 # If the previous option needs an argument, assign it.
1232 if test -n "$ac_prev"; then
1233 eval $ac_prev=\$ac_option
1234 ac_prev=
1235 continue
1236 fi
1237
1238 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001239 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1240 *=) ac_optarg= ;;
1241 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001242 esac
1243
1244 # Accept the important Cygnus configure options, so we can diagnose typos.
1245
1246 case $ac_dashdash$ac_option in
1247 --)
1248 ac_dashdash=yes ;;
1249
1250 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1251 ac_prev=bindir ;;
1252 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1253 bindir=$ac_optarg ;;
1254
1255 -build | --build | --buil | --bui | --bu)
1256 ac_prev=build_alias ;;
1257 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1258 build_alias=$ac_optarg ;;
1259
1260 -cache-file | --cache-file | --cache-fil | --cache-fi \
1261 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1262 ac_prev=cache_file ;;
1263 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1264 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1265 cache_file=$ac_optarg ;;
1266
1267 --config-cache | -C)
1268 cache_file=config.cache ;;
1269
1270 -datadir | --datadir | --datadi | --datad)
1271 ac_prev=datadir ;;
1272 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1273 datadir=$ac_optarg ;;
1274
1275 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1276 | --dataroo | --dataro | --datar)
1277 ac_prev=datarootdir ;;
1278 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1279 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1280 datarootdir=$ac_optarg ;;
1281
1282 -disable-* | --disable-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001286 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1290 *"
1291"enable_$ac_useropt"
1292"*) ;;
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1295 esac
1296 eval enable_$ac_useropt=no ;;
1297
1298 -docdir | --docdir | --docdi | --doc | --do)
1299 ac_prev=docdir ;;
1300 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1301 docdir=$ac_optarg ;;
1302
1303 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1304 ac_prev=dvidir ;;
1305 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1306 dvidir=$ac_optarg ;;
1307
1308 -enable-* | --enable-*)
1309 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001312 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1316 *"
1317"enable_$ac_useropt"
1318"*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval enable_$ac_useropt=\$ac_optarg ;;
1323
1324 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1325 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1326 | --exec | --exe | --ex)
1327 ac_prev=exec_prefix ;;
1328 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1329 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1330 | --exec=* | --exe=* | --ex=*)
1331 exec_prefix=$ac_optarg ;;
1332
1333 -gas | --gas | --ga | --g)
1334 # Obsolete; use --with-gas.
1335 with_gas=yes ;;
1336
1337 -help | --help | --hel | --he | -h)
1338 ac_init_help=long ;;
1339 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1340 ac_init_help=recursive ;;
1341 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1342 ac_init_help=short ;;
1343
1344 -host | --host | --hos | --ho)
1345 ac_prev=host_alias ;;
1346 -host=* | --host=* | --hos=* | --ho=*)
1347 host_alias=$ac_optarg ;;
1348
1349 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1350 ac_prev=htmldir ;;
1351 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1352 | --ht=*)
1353 htmldir=$ac_optarg ;;
1354
1355 -includedir | --includedir | --includedi | --included | --include \
1356 | --includ | --inclu | --incl | --inc)
1357 ac_prev=includedir ;;
1358 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1359 | --includ=* | --inclu=* | --incl=* | --inc=*)
1360 includedir=$ac_optarg ;;
1361
1362 -infodir | --infodir | --infodi | --infod | --info | --inf)
1363 ac_prev=infodir ;;
1364 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1365 infodir=$ac_optarg ;;
1366
1367 -libdir | --libdir | --libdi | --libd)
1368 ac_prev=libdir ;;
1369 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1370 libdir=$ac_optarg ;;
1371
1372 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1373 | --libexe | --libex | --libe)
1374 ac_prev=libexecdir ;;
1375 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1376 | --libexe=* | --libex=* | --libe=*)
1377 libexecdir=$ac_optarg ;;
1378
1379 -localedir | --localedir | --localedi | --localed | --locale)
1380 ac_prev=localedir ;;
1381 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1382 localedir=$ac_optarg ;;
1383
1384 -localstatedir | --localstatedir | --localstatedi | --localstated \
1385 | --localstate | --localstat | --localsta | --localst | --locals)
1386 ac_prev=localstatedir ;;
1387 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1388 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1389 localstatedir=$ac_optarg ;;
1390
1391 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1392 ac_prev=mandir ;;
1393 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1394 mandir=$ac_optarg ;;
1395
1396 -nfp | --nfp | --nf)
1397 # Obsolete; use --without-fp.
1398 with_fp=no ;;
1399
1400 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1401 | --no-cr | --no-c | -n)
1402 no_create=yes ;;
1403
1404 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1405 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1406 no_recursion=yes ;;
1407
1408 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1409 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1410 | --oldin | --oldi | --old | --ol | --o)
1411 ac_prev=oldincludedir ;;
1412 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1413 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1414 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1415 oldincludedir=$ac_optarg ;;
1416
1417 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1418 ac_prev=prefix ;;
1419 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1420 prefix=$ac_optarg ;;
1421
1422 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1423 | --program-pre | --program-pr | --program-p)
1424 ac_prev=program_prefix ;;
1425 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1426 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1427 program_prefix=$ac_optarg ;;
1428
1429 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1430 | --program-suf | --program-su | --program-s)
1431 ac_prev=program_suffix ;;
1432 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1433 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1434 program_suffix=$ac_optarg ;;
1435
1436 -program-transform-name | --program-transform-name \
1437 | --program-transform-nam | --program-transform-na \
1438 | --program-transform-n | --program-transform- \
1439 | --program-transform | --program-transfor \
1440 | --program-transfo | --program-transf \
1441 | --program-trans | --program-tran \
1442 | --progr-tra | --program-tr | --program-t)
1443 ac_prev=program_transform_name ;;
1444 -program-transform-name=* | --program-transform-name=* \
1445 | --program-transform-nam=* | --program-transform-na=* \
1446 | --program-transform-n=* | --program-transform-=* \
1447 | --program-transform=* | --program-transfor=* \
1448 | --program-transfo=* | --program-transf=* \
1449 | --program-trans=* | --program-tran=* \
1450 | --progr-tra=* | --program-tr=* | --program-t=*)
1451 program_transform_name=$ac_optarg ;;
1452
1453 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1454 ac_prev=pdfdir ;;
1455 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1456 pdfdir=$ac_optarg ;;
1457
1458 -psdir | --psdir | --psdi | --psd | --ps)
1459 ac_prev=psdir ;;
1460 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1461 psdir=$ac_optarg ;;
1462
1463 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1464 | -silent | --silent | --silen | --sile | --sil)
1465 silent=yes ;;
1466
1467 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1468 ac_prev=sbindir ;;
1469 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1470 | --sbi=* | --sb=*)
1471 sbindir=$ac_optarg ;;
1472
1473 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1474 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1475 | --sharedst | --shareds | --shared | --share | --shar \
1476 | --sha | --sh)
1477 ac_prev=sharedstatedir ;;
1478 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1479 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1480 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1481 | --sha=* | --sh=*)
1482 sharedstatedir=$ac_optarg ;;
1483
1484 -site | --site | --sit)
1485 ac_prev=site ;;
1486 -site=* | --site=* | --sit=*)
1487 site=$ac_optarg ;;
1488
1489 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1490 ac_prev=srcdir ;;
1491 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1492 srcdir=$ac_optarg ;;
1493
1494 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1495 | --syscon | --sysco | --sysc | --sys | --sy)
1496 ac_prev=sysconfdir ;;
1497 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1498 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1499 sysconfdir=$ac_optarg ;;
1500
1501 -target | --target | --targe | --targ | --tar | --ta | --t)
1502 ac_prev=target_alias ;;
1503 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1504 target_alias=$ac_optarg ;;
1505
1506 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1507 verbose=yes ;;
1508
1509 -version | --version | --versio | --versi | --vers | -V)
1510 ac_init_version=: ;;
1511
1512 -with-* | --with-*)
1513 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1514 # Reject names that are not valid shell variable names.
1515 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001516 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001517 ac_useropt_orig=$ac_useropt
1518 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1519 case $ac_user_opts in
1520 *"
1521"with_$ac_useropt"
1522"*) ;;
1523 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1524 ac_unrecognized_sep=', ';;
1525 esac
1526 eval with_$ac_useropt=\$ac_optarg ;;
1527
1528 -without-* | --without-*)
1529 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1530 # Reject names that are not valid shell variable names.
1531 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001532 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001533 ac_useropt_orig=$ac_useropt
1534 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1535 case $ac_user_opts in
1536 *"
1537"with_$ac_useropt"
1538"*) ;;
1539 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1540 ac_unrecognized_sep=', ';;
1541 esac
1542 eval with_$ac_useropt=no ;;
1543
1544 --x)
1545 # Obsolete; use --with-x.
1546 with_x=yes ;;
1547
1548 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1549 | --x-incl | --x-inc | --x-in | --x-i)
1550 ac_prev=x_includes ;;
1551 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1552 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1553 x_includes=$ac_optarg ;;
1554
1555 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1556 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1557 ac_prev=x_libraries ;;
1558 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1559 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1560 x_libraries=$ac_optarg ;;
1561
cristy98dddb52010-11-04 00:30:15 +00001562 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1563Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001564 ;;
1565
1566 *=*)
1567 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1568 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001569 case $ac_envvar in #(
1570 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001571 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001572 esac
cristy3ed852e2009-09-05 21:47:34 +00001573 eval $ac_envvar=\$ac_optarg
1574 export $ac_envvar ;;
1575
1576 *)
1577 # FIXME: should be removed in autoconf 3.0.
1578 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1579 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1580 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001581 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001582 ;;
1583
1584 esac
1585done
1586
1587if test -n "$ac_prev"; then
1588 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001589 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001590fi
1591
1592if test -n "$ac_unrecognized_opts"; then
1593 case $enable_option_checking in
1594 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001595 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001596 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1597 esac
1598fi
1599
1600# Check all directory arguments for consistency.
1601for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1602 datadir sysconfdir sharedstatedir localstatedir includedir \
1603 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1604 libdir localedir mandir
1605do
1606 eval ac_val=\$$ac_var
1607 # Remove trailing slashes.
1608 case $ac_val in
1609 */ )
1610 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1611 eval $ac_var=\$ac_val;;
1612 esac
1613 # Be sure to have absolute directory names.
1614 case $ac_val in
1615 [\\/$]* | ?:[\\/]* ) continue;;
1616 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1617 esac
cristy98dddb52010-11-04 00:30:15 +00001618 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001619done
1620
1621# There might be people who depend on the old broken behavior: `$host'
1622# used to hold the argument of --host etc.
1623# FIXME: To remove some day.
1624build=$build_alias
1625host=$host_alias
1626target=$target_alias
1627
1628# FIXME: To remove some day.
1629if test "x$host_alias" != x; then
1630 if test "x$build_alias" = x; then
1631 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001632 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1633 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001634 elif test "x$build_alias" != "x$host_alias"; then
1635 cross_compiling=yes
1636 fi
1637fi
1638
1639ac_tool_prefix=
1640test -n "$host_alias" && ac_tool_prefix=$host_alias-
1641
1642test "$silent" = yes && exec 6>/dev/null
1643
1644
1645ac_pwd=`pwd` && test -n "$ac_pwd" &&
1646ac_ls_di=`ls -di .` &&
1647ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001648 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001649test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001650 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001651
1652
1653# Find the source files, if location was not specified.
1654if test -z "$srcdir"; then
1655 ac_srcdir_defaulted=yes
1656 # Try the directory containing this script, then the parent directory.
1657 ac_confdir=`$as_dirname -- "$as_myself" ||
1658$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1659 X"$as_myself" : 'X\(//\)[^/]' \| \
1660 X"$as_myself" : 'X\(//\)$' \| \
1661 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1662$as_echo X"$as_myself" |
1663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1664 s//\1/
1665 q
1666 }
1667 /^X\(\/\/\)[^/].*/{
1668 s//\1/
1669 q
1670 }
1671 /^X\(\/\/\)$/{
1672 s//\1/
1673 q
1674 }
1675 /^X\(\/\).*/{
1676 s//\1/
1677 q
1678 }
1679 s/.*/./; q'`
1680 srcdir=$ac_confdir
1681 if test ! -r "$srcdir/$ac_unique_file"; then
1682 srcdir=..
1683 fi
1684else
1685 ac_srcdir_defaulted=no
1686fi
1687if test ! -r "$srcdir/$ac_unique_file"; then
1688 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001689 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001690fi
1691ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1692ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001693 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001694 pwd)`
1695# When building in place, set srcdir=.
1696if test "$ac_abs_confdir" = "$ac_pwd"; then
1697 srcdir=.
1698fi
1699# Remove unnecessary trailing slashes from srcdir.
1700# Double slashes in file names in object file debugging info
1701# mess up M-x gdb in Emacs.
1702case $srcdir in
1703*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1704esac
1705for ac_var in $ac_precious_vars; do
1706 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1707 eval ac_env_${ac_var}_value=\$${ac_var}
1708 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1709 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1710done
1711
1712#
1713# Report the --help message.
1714#
1715if test "$ac_init_help" = "long"; then
1716 # Omit some internal or obsolete options to make the list less imposing.
1717 # This message is too long to be a string in the A/UX 3.1 sh.
1718 cat <<_ACEOF
cristy4c08aed2011-07-01 19:47:50 +00001719\`configure' configures ImageMagick 7.0.0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001720
1721Usage: $0 [OPTION]... [VAR=VALUE]...
1722
1723To assign environment variables (e.g., CC, CFLAGS...), specify them as
1724VAR=VALUE. See below for descriptions of some of the useful variables.
1725
1726Defaults for the options are specified in brackets.
1727
1728Configuration:
1729 -h, --help display this help and exit
1730 --help=short display options specific to this package
1731 --help=recursive display the short help of all the included packages
1732 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001733 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001734 --cache-file=FILE cache test results in FILE [disabled]
1735 -C, --config-cache alias for \`--cache-file=config.cache'
1736 -n, --no-create do not create output files
1737 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1738
1739Installation directories:
1740 --prefix=PREFIX install architecture-independent files in PREFIX
1741 [$ac_default_prefix]
1742 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1743 [PREFIX]
1744
1745By default, \`make install' will install all the files in
1746\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1747an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1748for instance \`--prefix=\$HOME'.
1749
1750For better control, use the options below.
1751
1752Fine tuning of the installation directories:
1753 --bindir=DIR user executables [EPREFIX/bin]
1754 --sbindir=DIR system admin executables [EPREFIX/sbin]
1755 --libexecdir=DIR program executables [EPREFIX/libexec]
1756 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1757 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1758 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1759 --libdir=DIR object code libraries [EPREFIX/lib]
1760 --includedir=DIR C header files [PREFIX/include]
1761 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1762 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1763 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1764 --infodir=DIR info documentation [DATAROOTDIR/info]
1765 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1766 --mandir=DIR man documentation [DATAROOTDIR/man]
cristyd55889c2011-03-27 00:50:24 +00001767 --docdir=DIR documentation root
cristy4c08aed2011-07-01 19:47:50 +00001768 [DATAROOTDIR/doc/ImageMagick-7.0.0]
cristy3ed852e2009-09-05 21:47:34 +00001769 --htmldir=DIR html documentation [DOCDIR]
1770 --dvidir=DIR dvi documentation [DOCDIR]
1771 --pdfdir=DIR pdf documentation [DOCDIR]
1772 --psdir=DIR ps documentation [DOCDIR]
1773_ACEOF
1774
1775 cat <<\_ACEOF
1776
cristy73bd4a52010-10-05 11:24:23 +00001777Program names:
1778 --program-prefix=PREFIX prepend PREFIX to installed program names
1779 --program-suffix=SUFFIX append SUFFIX to installed program names
1780 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1781
cristy3ed852e2009-09-05 21:47:34 +00001782X features:
1783 --x-includes=DIR X include files are in DIR
1784 --x-libraries=DIR X library files are in DIR
1785
1786System types:
1787 --build=BUILD configure for building on BUILD [guessed]
1788 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1789 --target=TARGET configure for building compilers for TARGET [HOST]
1790_ACEOF
1791fi
1792
1793if test -n "$ac_init_help"; then
1794 case $ac_init_help in
cristy4c08aed2011-07-01 19:47:50 +00001795 short | recursive ) echo "Configuration of ImageMagick 7.0.0:";;
cristy3ed852e2009-09-05 21:47:34 +00001796 esac
1797 cat <<\_ACEOF
1798
1799Optional Features:
1800 --disable-option-checking ignore unrecognized --enable/--with options
1801 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1802 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001803 --enable-silent-rules less verbose build output (undo: `make V=1')
1804 --disable-silent-rules verbose build output (undo: `make V=0')
1805 --disable-dependency-tracking speeds up one-time build
1806 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001807 --bounds-checking enable run-time bounds-checking
1808 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001809 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001810 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001811 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001812 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001813 --enable-shared[=PKGS] build shared libraries [default=yes]
1814 --enable-static[=PKGS] build static libraries [default=yes]
1815 --enable-fast-install[=PKGS]
1816 optimize for fast installation [default=yes]
1817 --disable-libtool-lock avoid locking (might break parallel builds)
1818 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001819 --enable-delegate-build look for delegate libraries in build directory
1820 --disable-deprecated exclude deprecated methods in MagickCore and
1821 MagickWand API's
1822 --disable-installed Formally install ImageMagick under PREFIX
1823 --disable-cipher disable enciphering and deciphering image pixels
1824 --enable-embeddable enable self-contained, embeddable,
1825 zero-configuration ImageMagick
1826 --enable-hdri accurately represent the wide range of intensity
1827 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001828 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001829 --enable-maintainer-mode enable make rules and dependencies not useful
1830 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001831 --enable-ccmalloc enable 'ccmalloc' memory debug support
1832 --enable-efence enable 'efence' memory debug support
1833 --enable-prof enable 'prof' profiling support
1834 --enable-gprof enable 'gprof' profiling support
1835 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001836 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001837
1838Optional Packages:
1839 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1840 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001841 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1842 --with-dmalloc use dmalloc, as in
1843 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001844 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001845 --with-pic try to use only PIC/non-PIC objects [default=use
1846 both]
cristyda16f162011-02-19 23:52:17 +00001847 --with-sysroot=DIR Search for dependent libraries within DIR
1848 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001849 --with-included-ltdl use the GNU ltdl sources included here
1850 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1851 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001852 --with-modules enable building dynamically loadable modules
1853 --with-method-prefix=PREFIX
1854 prefix MagickCore API methods
1855 --with-quantum-depth=DEPTH
1856 number of bits in a pixel quantum (default 16)
1857 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1858 memory)
1859 --with-frozenpaths freeze delegate paths
1860 --without-magick-plus-plus
1861 disable build/install of Magick++
1862 --with-perl enable build/install of PerlMagick
1863 --with-perl-options=OPTIONS
1864 options to pass on command-line when generating
1865 PerlMagick's build file
1866 --with-umem enable umem memory allocation library support
1867 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1868 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001869 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001870 --without-zlib disable ZLIB support
1871 --with-autotrace enable autotrace support
1872 --without-dps disable Display Postscript support
1873 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001874 --with-dejavu-font-dir=DIR
1875 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001876 --without-fftw disable FFTW support
1877 --without-fpx disable FlashPIX support
1878 --without-fontconfig disable fontconfig support
1879 --without-freetype disable Freetype support
1880 --without-gslib enable Ghostscript library support
1881 --with-fontpath=DIR prepend to default font search path
1882 --with-gs-font-dir=DIR Ghostscript font directory
1883 --without-gvc disable GVC support
1884 --without-jbig disable JBIG support
1885 --without-jpeg disable JPEG support
1886 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001887 --without-lcms disable lcms (v1.1X) support
1888 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001889 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001890 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001891 --without-openexr disable OpenEXR support
1892 --without-png disable PNG support
1893 --without-rsvg disable RSVG support
1894 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001895 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001896 --with-windows-font-dir=DIR
1897 directory containing MS-Windows fonts
1898 --without-wmf disable WMF support
1899 --without-xml disable XML support
1900
1901Some influential environment variables:
1902 CC C compiler command
1903 CFLAGS C compiler flags
1904 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1905 nonstandard directory <lib dir>
1906 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001907 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001908 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001909 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001910 CXX C++ compiler command
1911 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001912 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001913 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001914 XMKMF Path to xmkmf, Makefile generator for X Window System
1915 AUTOTRACE_CFLAGS
1916 C compiler flags for AUTOTRACE, overriding pkg-config
1917 AUTOTRACE_LIBS
1918 linker flags for AUTOTRACE, overriding pkg-config
1919 FONTCONFIG_CFLAGS
1920 C compiler flags for FONTCONFIG, overriding pkg-config
1921 FONTCONFIG_LIBS
1922 linker flags for FONTCONFIG, overriding pkg-config
1923 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1924 GVC_LIBS linker flags for GVC, overriding pkg-config
1925 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1926 LQR_LIBS linker flags for LQR, overriding pkg-config
1927 OPENEXR_CFLAGS
1928 C compiler flags for OPENEXR, overriding pkg-config
1929 OPENEXR_LIBS
1930 linker flags for OPENEXR, overriding pkg-config
1931 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1932 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1933 CAIRO_SVG_CFLAGS
1934 C compiler flags for CAIRO_SVG, overriding pkg-config
1935 CAIRO_SVG_LIBS
1936 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001937
1938Use these variables to override the choices made by `configure' or to help
1939it to find libraries and programs with nonstandard names/locations.
1940
1941Report bugs to <http://www.imagemagick.org>.
1942_ACEOF
1943ac_status=$?
1944fi
1945
1946if test "$ac_init_help" = "recursive"; then
1947 # If there are subdirs, report their specific --help.
1948 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1949 test -d "$ac_dir" ||
1950 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1951 continue
1952 ac_builddir=.
1953
1954case "$ac_dir" in
1955.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1956*)
1957 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1958 # A ".." for each directory in $ac_dir_suffix.
1959 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1960 case $ac_top_builddir_sub in
1961 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1962 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1963 esac ;;
1964esac
1965ac_abs_top_builddir=$ac_pwd
1966ac_abs_builddir=$ac_pwd$ac_dir_suffix
1967# for backward compatibility:
1968ac_top_builddir=$ac_top_build_prefix
1969
1970case $srcdir in
1971 .) # We are building in place.
1972 ac_srcdir=.
1973 ac_top_srcdir=$ac_top_builddir_sub
1974 ac_abs_top_srcdir=$ac_pwd ;;
1975 [\\/]* | ?:[\\/]* ) # Absolute name.
1976 ac_srcdir=$srcdir$ac_dir_suffix;
1977 ac_top_srcdir=$srcdir
1978 ac_abs_top_srcdir=$srcdir ;;
1979 *) # Relative name.
1980 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1981 ac_top_srcdir=$ac_top_build_prefix$srcdir
1982 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1983esac
1984ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1985
1986 cd "$ac_dir" || { ac_status=$?; continue; }
1987 # Check for guested configure.
1988 if test -f "$ac_srcdir/configure.gnu"; then
1989 echo &&
1990 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1991 elif test -f "$ac_srcdir/configure"; then
1992 echo &&
1993 $SHELL "$ac_srcdir/configure" --help=recursive
1994 else
1995 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1996 fi || ac_status=$?
1997 cd "$ac_pwd" || { ac_status=$?; break; }
1998 done
1999fi
2000
2001test -n "$ac_init_help" && exit $ac_status
2002if $ac_init_version; then
2003 cat <<\_ACEOF
cristy4c08aed2011-07-01 19:47:50 +00002004ImageMagick configure 7.0.0
cristyda16f162011-02-19 23:52:17 +00002005generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002006
cristy98dddb52010-11-04 00:30:15 +00002007Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002008This configure script is free software; the Free Software Foundation
2009gives unlimited permission to copy, distribute and modify it.
2010_ACEOF
2011 exit
2012fi
cristy8b350f62009-11-15 23:12:43 +00002013
2014## ------------------------ ##
2015## Autoconf initialization. ##
2016## ------------------------ ##
2017
2018# ac_fn_c_try_compile LINENO
2019# --------------------------
2020# Try to compile conftest.$ac_ext, and return whether this succeeded.
2021ac_fn_c_try_compile ()
2022{
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 rm -f conftest.$ac_objext
2025 if { { ac_try="$ac_compile"
2026case "(($ac_try" in
2027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2028 *) ac_try_echo=$ac_try;;
2029esac
2030eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2031$as_echo "$ac_try_echo"; } >&5
2032 (eval "$ac_compile") 2>conftest.err
2033 ac_status=$?
2034 if test -s conftest.err; then
2035 grep -v '^ *+' conftest.err >conftest.er1
2036 cat conftest.er1 >&5
2037 mv -f conftest.er1 conftest.err
2038 fi
2039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2040 test $ac_status = 0; } && {
2041 test -z "$ac_c_werror_flag" ||
2042 test ! -s conftest.err
2043 } && test -s conftest.$ac_objext; then :
2044 ac_retval=0
2045else
2046 $as_echo "$as_me: failed program was:" >&5
2047sed 's/^/| /' conftest.$ac_ext >&5
2048
2049 ac_retval=1
2050fi
cristyda16f162011-02-19 23:52:17 +00002051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002052 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002053
2054} # ac_fn_c_try_compile
2055
cristy95646052009-11-28 23:05:30 +00002056# ac_fn_c_try_cpp LINENO
2057# ----------------------
2058# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2059ac_fn_c_try_cpp ()
2060{
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 if { { ac_try="$ac_cpp conftest.$ac_ext"
2063case "(($ac_try" in
2064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065 *) ac_try_echo=$ac_try;;
2066esac
2067eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068$as_echo "$ac_try_echo"; } >&5
2069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2070 ac_status=$?
2071 if test -s conftest.err; then
2072 grep -v '^ *+' conftest.err >conftest.er1
2073 cat conftest.er1 >&5
2074 mv -f conftest.er1 conftest.err
2075 fi
2076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002077 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2079 test ! -s conftest.err
2080 }; then :
2081 ac_retval=0
2082else
2083 $as_echo "$as_me: failed program was:" >&5
2084sed 's/^/| /' conftest.$ac_ext >&5
2085
2086 ac_retval=1
2087fi
cristyda16f162011-02-19 23:52:17 +00002088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002089 as_fn_set_status $ac_retval
2090
2091} # ac_fn_c_try_cpp
2092
cristy8b350f62009-11-15 23:12:43 +00002093# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2094# -------------------------------------------------------
2095# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2096# the include files in INCLUDES and setting the cache variable VAR
2097# accordingly.
2098ac_fn_c_check_header_mongrel ()
2099{
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002101 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2103$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002104if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002105 $as_echo_n "(cached) " >&6
2106fi
2107eval ac_res=\$$3
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109$as_echo "$ac_res" >&6; }
2110else
2111 # Is the header compilable?
2112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2113$as_echo_n "checking $2 usability... " >&6; }
2114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115/* end confdefs.h. */
2116$4
2117#include <$2>
2118_ACEOF
2119if ac_fn_c_try_compile "$LINENO"; then :
2120 ac_header_compiler=yes
2121else
2122 ac_header_compiler=no
2123fi
2124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2126$as_echo "$ac_header_compiler" >&6; }
2127
2128# Is the header present?
2129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2130$as_echo_n "checking $2 presence... " >&6; }
2131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132/* end confdefs.h. */
2133#include <$2>
2134_ACEOF
2135if ac_fn_c_try_cpp "$LINENO"; then :
2136 ac_header_preproc=yes
2137else
2138 ac_header_preproc=no
2139fi
cristyda16f162011-02-19 23:52:17 +00002140rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2142$as_echo "$ac_header_preproc" >&6; }
2143
2144# So? What about this header?
2145case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2146 yes:no: )
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2148$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2150$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2151 ;;
2152 no:yes:* )
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2154$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2156$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2158$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2160$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2162$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002163( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002164## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002165## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002166 ) | sed "s/^/$as_me: WARNING: /" >&2
2167 ;;
2168esac
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2170$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002171if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002172 $as_echo_n "(cached) " >&6
2173else
2174 eval "$3=\$ac_header_compiler"
2175fi
2176eval ac_res=\$$3
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178$as_echo "$ac_res" >&6; }
2179fi
cristyda16f162011-02-19 23:52:17 +00002180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002181
2182} # ac_fn_c_check_header_mongrel
2183
2184# ac_fn_c_try_run LINENO
2185# ----------------------
2186# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2187# that executables *can* be run.
2188ac_fn_c_try_run ()
2189{
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 if { { ac_try="$ac_link"
2192case "(($ac_try" in
2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194 *) ac_try_echo=$ac_try;;
2195esac
2196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197$as_echo "$ac_try_echo"; } >&5
2198 (eval "$ac_link") 2>&5
2199 ac_status=$?
2200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2202 { { case "(($ac_try" in
2203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2204 *) ac_try_echo=$ac_try;;
2205esac
2206eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2207$as_echo "$ac_try_echo"; } >&5
2208 (eval "$ac_try") 2>&5
2209 ac_status=$?
2210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2211 test $ac_status = 0; }; }; then :
2212 ac_retval=0
2213else
2214 $as_echo "$as_me: program exited with status $ac_status" >&5
2215 $as_echo "$as_me: failed program was:" >&5
2216sed 's/^/| /' conftest.$ac_ext >&5
2217
2218 ac_retval=$ac_status
2219fi
2220 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002221 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002222 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002223
2224} # ac_fn_c_try_run
2225
2226# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2227# -------------------------------------------------------
2228# Tests whether HEADER exists and can be compiled using the include files in
2229# INCLUDES, setting the cache variable VAR accordingly.
2230ac_fn_c_check_header_compile ()
2231{
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002235if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002236 $as_echo_n "(cached) " >&6
2237else
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239/* end confdefs.h. */
2240$4
2241#include <$2>
2242_ACEOF
2243if ac_fn_c_try_compile "$LINENO"; then :
2244 eval "$3=yes"
2245else
2246 eval "$3=no"
2247fi
2248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249fi
2250eval ac_res=\$$3
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002254
2255} # ac_fn_c_check_header_compile
2256
cristya0b81c32010-01-22 02:54:33 +00002257# ac_fn_cxx_try_compile LINENO
2258# ----------------------------
2259# Try to compile conftest.$ac_ext, and return whether this succeeded.
2260ac_fn_cxx_try_compile ()
2261{
2262 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263 rm -f conftest.$ac_objext
2264 if { { ac_try="$ac_compile"
2265case "(($ac_try" in
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2268esac
2269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270$as_echo "$ac_try_echo"; } >&5
2271 (eval "$ac_compile") 2>conftest.err
2272 ac_status=$?
2273 if test -s conftest.err; then
2274 grep -v '^ *+' conftest.err >conftest.er1
2275 cat conftest.er1 >&5
2276 mv -f conftest.er1 conftest.err
2277 fi
2278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279 test $ac_status = 0; } && {
2280 test -z "$ac_cxx_werror_flag" ||
2281 test ! -s conftest.err
2282 } && test -s conftest.$ac_objext; then :
2283 ac_retval=0
2284else
2285 $as_echo "$as_me: failed program was:" >&5
2286sed 's/^/| /' conftest.$ac_ext >&5
2287
2288 ac_retval=1
2289fi
cristyda16f162011-02-19 23:52:17 +00002290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002291 as_fn_set_status $ac_retval
2292
2293} # ac_fn_cxx_try_compile
2294
cristy8b350f62009-11-15 23:12:43 +00002295# ac_fn_c_try_link LINENO
2296# -----------------------
2297# Try to link conftest.$ac_ext, and return whether this succeeded.
2298ac_fn_c_try_link ()
2299{
2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301 rm -f conftest.$ac_objext conftest$ac_exeext
2302 if { { ac_try="$ac_link"
2303case "(($ac_try" in
2304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2305 *) ac_try_echo=$ac_try;;
2306esac
2307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2308$as_echo "$ac_try_echo"; } >&5
2309 (eval "$ac_link") 2>conftest.err
2310 ac_status=$?
2311 if test -s conftest.err; then
2312 grep -v '^ *+' conftest.err >conftest.er1
2313 cat conftest.er1 >&5
2314 mv -f conftest.er1 conftest.err
2315 fi
2316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317 test $ac_status = 0; } && {
2318 test -z "$ac_c_werror_flag" ||
2319 test ! -s conftest.err
2320 } && test -s conftest$ac_exeext && {
2321 test "$cross_compiling" = yes ||
2322 $as_test_x conftest$ac_exeext
2323 }; then :
2324 ac_retval=0
2325else
2326 $as_echo "$as_me: failed program was:" >&5
2327sed 's/^/| /' conftest.$ac_ext >&5
2328
2329 ac_retval=1
2330fi
2331 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2332 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2333 # interfere with the next link command; also delete a directory that is
2334 # left behind by Apple's compiler. We do this before executing the actions.
2335 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002336 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002337 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002338
2339} # ac_fn_c_try_link
2340
cristy73bd4a52010-10-05 11:24:23 +00002341# ac_fn_c_check_func LINENO FUNC VAR
2342# ----------------------------------
2343# Tests whether FUNC exists, setting the cache variable VAR accordingly
2344ac_fn_c_check_func ()
2345{
2346 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2348$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002349if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002350 $as_echo_n "(cached) " >&6
2351else
2352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353/* end confdefs.h. */
2354/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2356#define $2 innocuous_$2
2357
2358/* System header to define __stub macros and hopefully few prototypes,
2359 which can conflict with char $2 (); below.
2360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2361 <limits.h> exists even on freestanding compilers. */
2362
2363#ifdef __STDC__
2364# include <limits.h>
2365#else
2366# include <assert.h>
2367#endif
2368
2369#undef $2
2370
2371/* Override any GCC internal prototype to avoid an error.
2372 Use char because int might match the return type of a GCC
2373 builtin and then its argument prototype would still apply. */
2374#ifdef __cplusplus
2375extern "C"
2376#endif
2377char $2 ();
2378/* The GNU C library defines this for functions which it implements
2379 to always fail with ENOSYS. Some functions are actually named
2380 something starting with __ and the normal name is an alias. */
2381#if defined __stub_$2 || defined __stub___$2
2382choke me
2383#endif
2384
2385int
2386main ()
2387{
2388return $2 ();
2389 ;
2390 return 0;
2391}
2392_ACEOF
2393if ac_fn_c_try_link "$LINENO"; then :
2394 eval "$3=yes"
2395else
2396 eval "$3=no"
2397fi
2398rm -f core conftest.err conftest.$ac_objext \
2399 conftest$ac_exeext conftest.$ac_ext
2400fi
2401eval ac_res=\$$3
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2403$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002404 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002405
2406} # ac_fn_c_check_func
2407
2408# ac_fn_cxx_try_cpp LINENO
2409# ------------------------
2410# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2411ac_fn_cxx_try_cpp ()
2412{
2413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2414 if { { ac_try="$ac_cpp conftest.$ac_ext"
2415case "(($ac_try" in
2416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417 *) ac_try_echo=$ac_try;;
2418esac
2419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2420$as_echo "$ac_try_echo"; } >&5
2421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2422 ac_status=$?
2423 if test -s conftest.err; then
2424 grep -v '^ *+' conftest.err >conftest.er1
2425 cat conftest.er1 >&5
2426 mv -f conftest.er1 conftest.err
2427 fi
2428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002429 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002430 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2431 test ! -s conftest.err
2432 }; then :
2433 ac_retval=0
2434else
2435 $as_echo "$as_me: failed program was:" >&5
2436sed 's/^/| /' conftest.$ac_ext >&5
2437
2438 ac_retval=1
2439fi
cristyda16f162011-02-19 23:52:17 +00002440 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002441 as_fn_set_status $ac_retval
2442
2443} # ac_fn_cxx_try_cpp
2444
2445# ac_fn_cxx_try_link LINENO
2446# -------------------------
2447# Try to link conftest.$ac_ext, and return whether this succeeded.
2448ac_fn_cxx_try_link ()
2449{
2450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2451 rm -f conftest.$ac_objext conftest$ac_exeext
2452 if { { ac_try="$ac_link"
2453case "(($ac_try" in
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2456esac
2457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2458$as_echo "$ac_try_echo"; } >&5
2459 (eval "$ac_link") 2>conftest.err
2460 ac_status=$?
2461 if test -s conftest.err; then
2462 grep -v '^ *+' conftest.err >conftest.er1
2463 cat conftest.er1 >&5
2464 mv -f conftest.er1 conftest.err
2465 fi
2466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2467 test $ac_status = 0; } && {
2468 test -z "$ac_cxx_werror_flag" ||
2469 test ! -s conftest.err
2470 } && test -s conftest$ac_exeext && {
2471 test "$cross_compiling" = yes ||
2472 $as_test_x conftest$ac_exeext
2473 }; then :
2474 ac_retval=0
2475else
2476 $as_echo "$as_me: failed program was:" >&5
2477sed 's/^/| /' conftest.$ac_ext >&5
2478
2479 ac_retval=1
2480fi
2481 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2482 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2483 # interfere with the next link command; also delete a directory that is
2484 # left behind by Apple's compiler. We do this before executing the actions.
2485 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002486 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002487 as_fn_set_status $ac_retval
2488
2489} # ac_fn_cxx_try_link
2490
cristy98dddb52010-11-04 00:30:15 +00002491# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2492# ---------------------------------------------
2493# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2494# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002495ac_fn_c_check_decl ()
2496{
2497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002498 as_decl_name=`echo $2|sed 's/ *(.*//'`
2499 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2501$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002502if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002503 $as_echo_n "(cached) " >&6
2504else
2505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2506/* end confdefs.h. */
2507$4
2508int
2509main ()
2510{
cristy98dddb52010-11-04 00:30:15 +00002511#ifndef $as_decl_name
2512#ifdef __cplusplus
2513 (void) $as_decl_use;
2514#else
2515 (void) $as_decl_name;
2516#endif
cristy73bd4a52010-10-05 11:24:23 +00002517#endif
2518
2519 ;
2520 return 0;
2521}
2522_ACEOF
2523if ac_fn_c_try_compile "$LINENO"; then :
2524 eval "$3=yes"
2525else
2526 eval "$3=no"
2527fi
2528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2529fi
2530eval ac_res=\$$3
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2532$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002534
2535} # ac_fn_c_check_decl
2536
cristy8b350f62009-11-15 23:12:43 +00002537# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2538# -------------------------------------------
2539# Tests whether TYPE exists after having included INCLUDES, setting cache
2540# variable VAR accordingly.
2541ac_fn_c_check_type ()
2542{
2543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2545$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002546if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002547 $as_echo_n "(cached) " >&6
2548else
2549 eval "$3=no"
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551/* end confdefs.h. */
2552$4
2553int
2554main ()
2555{
2556if (sizeof ($2))
2557 return 0;
2558 ;
2559 return 0;
2560}
2561_ACEOF
2562if ac_fn_c_try_compile "$LINENO"; then :
2563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2564/* end confdefs.h. */
2565$4
2566int
2567main ()
2568{
2569if (sizeof (($2)))
2570 return 0;
2571 ;
2572 return 0;
2573}
2574_ACEOF
2575if ac_fn_c_try_compile "$LINENO"; then :
2576
2577else
2578 eval "$3=yes"
2579fi
2580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581fi
2582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583fi
2584eval ac_res=\$$3
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2586$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002588
2589} # ac_fn_c_check_type
2590
cristy92703d82010-04-26 00:18:18 +00002591# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2592# ----------------------------------------------------
2593# Tries to find if the field MEMBER exists in type AGGR, after including
2594# INCLUDES, setting cache variable VAR accordingly.
2595ac_fn_c_check_member ()
2596{
2597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2599$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002600if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002601 $as_echo_n "(cached) " >&6
2602else
2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604/* end confdefs.h. */
2605$5
2606int
2607main ()
2608{
2609static $2 ac_aggr;
2610if (ac_aggr.$3)
2611return 0;
2612 ;
2613 return 0;
2614}
2615_ACEOF
2616if ac_fn_c_try_compile "$LINENO"; then :
2617 eval "$4=yes"
2618else
2619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620/* end confdefs.h. */
2621$5
2622int
2623main ()
2624{
2625static $2 ac_aggr;
2626if (sizeof ac_aggr.$3)
2627return 0;
2628 ;
2629 return 0;
2630}
2631_ACEOF
2632if ac_fn_c_try_compile "$LINENO"; then :
2633 eval "$4=yes"
2634else
2635 eval "$4=no"
2636fi
2637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638fi
2639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640fi
2641eval ac_res=\$$4
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2643$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002645
2646} # ac_fn_c_check_member
2647
cristy501c8042011-05-26 17:46:28 +00002648# ac_fn_c_find_intX_t LINENO BITS VAR
2649# -----------------------------------
2650# Finds a signed integer type with width BITS, setting cache variable VAR
2651# accordingly.
2652ac_fn_c_find_intX_t ()
2653{
2654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2656$as_echo_n "checking for int$2_t... " >&6; }
2657if eval \${$3+:} false; then :
2658 $as_echo_n "(cached) " >&6
2659else
2660 eval "$3=no"
2661 # Order is important - never check a type that is potentially smaller
2662 # than half of the expected target width.
2663 for ac_type in int$2_t 'int' 'long int' \
2664 'long long int' 'short int' 'signed char'; do
2665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666/* end confdefs.h. */
2667$ac_includes_default
2668 enum { N = $2 / 2 - 1 };
2669int
2670main ()
2671{
2672static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2673test_array [0] = 0
2674
2675 ;
2676 return 0;
2677}
2678_ACEOF
2679if ac_fn_c_try_compile "$LINENO"; then :
2680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681/* end confdefs.h. */
2682$ac_includes_default
2683 enum { N = $2 / 2 - 1 };
2684int
2685main ()
2686{
2687static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2688 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2689test_array [0] = 0
2690
2691 ;
2692 return 0;
2693}
2694_ACEOF
2695if ac_fn_c_try_compile "$LINENO"; then :
2696
2697else
2698 case $ac_type in #(
2699 int$2_t) :
2700 eval "$3=yes" ;; #(
2701 *) :
2702 eval "$3=\$ac_type" ;;
2703esac
2704fi
2705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706fi
2707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2708 if eval test \"x\$"$3"\" = x"no"; then :
2709
2710else
2711 break
2712fi
2713 done
2714fi
2715eval ac_res=\$$3
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2717$as_echo "$ac_res" >&6; }
2718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2719
2720} # ac_fn_c_find_intX_t
2721
2722# ac_fn_c_find_uintX_t LINENO BITS VAR
2723# ------------------------------------
2724# Finds an unsigned integer type with width BITS, setting cache variable VAR
2725# accordingly.
2726ac_fn_c_find_uintX_t ()
2727{
2728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2730$as_echo_n "checking for uint$2_t... " >&6; }
2731if eval \${$3+:} false; then :
2732 $as_echo_n "(cached) " >&6
2733else
2734 eval "$3=no"
2735 # Order is important - never check a type that is potentially smaller
2736 # than half of the expected target width.
2737 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2738 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2740/* end confdefs.h. */
2741$ac_includes_default
2742int
2743main ()
2744{
2745static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2746test_array [0] = 0
2747
2748 ;
2749 return 0;
2750}
2751_ACEOF
2752if ac_fn_c_try_compile "$LINENO"; then :
2753 case $ac_type in #(
2754 uint$2_t) :
2755 eval "$3=yes" ;; #(
2756 *) :
2757 eval "$3=\$ac_type" ;;
2758esac
2759fi
2760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2761 if eval test \"x\$"$3"\" = x"no"; then :
2762
2763else
2764 break
2765fi
2766 done
2767fi
2768eval ac_res=\$$3
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2770$as_echo "$ac_res" >&6; }
2771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2772
2773} # ac_fn_c_find_uintX_t
2774
cristy8b350f62009-11-15 23:12:43 +00002775# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2776# --------------------------------------------
2777# Tries to find the compile-time value of EXPR in a program that includes
2778# INCLUDES, setting VAR accordingly. Returns whether the value could be
2779# computed
2780ac_fn_c_compute_int ()
2781{
2782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2783 if test "$cross_compiling" = yes; then
2784 # Depending upon the size, compute the lo and hi bounds.
2785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2786/* end confdefs.h. */
2787$4
2788int
2789main ()
2790{
2791static int test_array [1 - 2 * !(($2) >= 0)];
2792test_array [0] = 0
2793
2794 ;
2795 return 0;
2796}
2797_ACEOF
2798if ac_fn_c_try_compile "$LINENO"; then :
2799 ac_lo=0 ac_mid=0
2800 while :; do
2801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2802/* end confdefs.h. */
2803$4
2804int
2805main ()
2806{
2807static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2808test_array [0] = 0
2809
2810 ;
2811 return 0;
2812}
2813_ACEOF
2814if ac_fn_c_try_compile "$LINENO"; then :
2815 ac_hi=$ac_mid; break
2816else
2817 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2818 if test $ac_lo -le $ac_mid; then
2819 ac_lo= ac_hi=
2820 break
2821 fi
2822 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2823fi
2824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2825 done
2826else
2827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2828/* end confdefs.h. */
2829$4
2830int
2831main ()
2832{
2833static int test_array [1 - 2 * !(($2) < 0)];
2834test_array [0] = 0
2835
2836 ;
2837 return 0;
2838}
2839_ACEOF
2840if ac_fn_c_try_compile "$LINENO"; then :
2841 ac_hi=-1 ac_mid=-1
2842 while :; do
2843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844/* end confdefs.h. */
2845$4
2846int
2847main ()
2848{
2849static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2850test_array [0] = 0
2851
2852 ;
2853 return 0;
2854}
2855_ACEOF
2856if ac_fn_c_try_compile "$LINENO"; then :
2857 ac_lo=$ac_mid; break
2858else
2859 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2860 if test $ac_mid -le $ac_hi; then
2861 ac_lo= ac_hi=
2862 break
2863 fi
2864 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2865fi
2866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867 done
2868else
2869 ac_lo= ac_hi=
2870fi
2871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2872fi
2873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2874# Binary search between lo and hi bounds.
2875while test "x$ac_lo" != "x$ac_hi"; do
2876 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2878/* end confdefs.h. */
2879$4
2880int
2881main ()
2882{
2883static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2884test_array [0] = 0
2885
2886 ;
2887 return 0;
2888}
2889_ACEOF
2890if ac_fn_c_try_compile "$LINENO"; then :
2891 ac_hi=$ac_mid
2892else
2893 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2894fi
2895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896done
2897case $ac_lo in #((
2898?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2899'') ac_retval=1 ;;
2900esac
2901 else
2902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2903/* end confdefs.h. */
2904$4
2905static long int longval () { return $2; }
2906static unsigned long int ulongval () { return $2; }
2907#include <stdio.h>
2908#include <stdlib.h>
2909int
2910main ()
2911{
2912
2913 FILE *f = fopen ("conftest.val", "w");
2914 if (! f)
2915 return 1;
2916 if (($2) < 0)
2917 {
2918 long int i = longval ();
2919 if (i != ($2))
2920 return 1;
2921 fprintf (f, "%ld", i);
2922 }
2923 else
2924 {
2925 unsigned long int i = ulongval ();
2926 if (i != ($2))
2927 return 1;
2928 fprintf (f, "%lu", i);
2929 }
2930 /* Do not output a trailing newline, as this causes \r\n confusion
2931 on some platforms. */
2932 return ferror (f) || fclose (f) != 0;
2933
2934 ;
2935 return 0;
2936}
2937_ACEOF
2938if ac_fn_c_try_run "$LINENO"; then :
2939 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2940else
2941 ac_retval=1
2942fi
2943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2944 conftest.$ac_objext conftest.beam conftest.$ac_ext
2945rm -f conftest.val
2946
2947 fi
cristyda16f162011-02-19 23:52:17 +00002948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002949 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002950
2951} # ac_fn_c_compute_int
2952
2953# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2954# ---------------------------------------------------------
2955# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2956# the include files in INCLUDES and setting the cache variable VAR
2957# accordingly.
2958ac_fn_cxx_check_header_mongrel ()
2959{
2960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002961 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2963$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002964if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002965 $as_echo_n "(cached) " >&6
2966fi
2967eval ac_res=\$$3
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2969$as_echo "$ac_res" >&6; }
2970else
2971 # Is the header compilable?
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2973$as_echo_n "checking $2 usability... " >&6; }
2974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2975/* end confdefs.h. */
2976$4
2977#include <$2>
2978_ACEOF
2979if ac_fn_cxx_try_compile "$LINENO"; then :
2980 ac_header_compiler=yes
2981else
2982 ac_header_compiler=no
2983fi
2984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2986$as_echo "$ac_header_compiler" >&6; }
2987
2988# Is the header present?
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2990$as_echo_n "checking $2 presence... " >&6; }
2991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992/* end confdefs.h. */
2993#include <$2>
2994_ACEOF
2995if ac_fn_cxx_try_cpp "$LINENO"; then :
2996 ac_header_preproc=yes
2997else
2998 ac_header_preproc=no
2999fi
cristyda16f162011-02-19 23:52:17 +00003000rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3002$as_echo "$ac_header_preproc" >&6; }
3003
3004# So? What about this header?
3005case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3006 yes:no: )
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3008$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3010$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3011 ;;
3012 no:yes:* )
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3014$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3016$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3018$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3020$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3022$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003023( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003024## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003025## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003026 ) | sed "s/^/$as_me: WARNING: /" >&2
3027 ;;
3028esac
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3030$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003031if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003032 $as_echo_n "(cached) " >&6
3033else
3034 eval "$3=\$ac_header_compiler"
3035fi
3036eval ac_res=\$$3
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3038$as_echo "$ac_res" >&6; }
3039fi
cristyda16f162011-02-19 23:52:17 +00003040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003041
3042} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003043cat >config.log <<_ACEOF
3044This file contains any messages produced by compilers while
3045running configure, to aid debugging if configure makes a mistake.
3046
cristy4c08aed2011-07-01 19:47:50 +00003047It was created by ImageMagick $as_me 7.0.0, which was
cristyda16f162011-02-19 23:52:17 +00003048generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003049
3050 $ $0 $@
3051
3052_ACEOF
3053exec 5>>config.log
3054{
3055cat <<_ASUNAME
3056## --------- ##
3057## Platform. ##
3058## --------- ##
3059
3060hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3061uname -m = `(uname -m) 2>/dev/null || echo unknown`
3062uname -r = `(uname -r) 2>/dev/null || echo unknown`
3063uname -s = `(uname -s) 2>/dev/null || echo unknown`
3064uname -v = `(uname -v) 2>/dev/null || echo unknown`
3065
3066/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3067/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3068
3069/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3070/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3071/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3072/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3073/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3074/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3075/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3076
3077_ASUNAME
3078
3079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080for as_dir in $PATH
3081do
3082 IFS=$as_save_IFS
3083 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003084 $as_echo "PATH: $as_dir"
3085 done
cristy3ed852e2009-09-05 21:47:34 +00003086IFS=$as_save_IFS
3087
3088} >&5
3089
3090cat >&5 <<_ACEOF
3091
3092
3093## ----------- ##
3094## Core tests. ##
3095## ----------- ##
3096
3097_ACEOF
3098
3099
3100# Keep a trace of the command line.
3101# Strip out --no-create and --no-recursion so they do not pile up.
3102# Strip out --silent because we don't want to record it for future runs.
3103# Also quote any args containing shell meta-characters.
3104# Make two passes to allow for proper duplicate-argument suppression.
3105ac_configure_args=
3106ac_configure_args0=
3107ac_configure_args1=
3108ac_must_keep_next=false
3109for ac_pass in 1 2
3110do
3111 for ac_arg
3112 do
3113 case $ac_arg in
3114 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3116 | -silent | --silent | --silen | --sile | --sil)
3117 continue ;;
3118 *\'*)
3119 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3120 esac
3121 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003122 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003123 2)
cristy8b350f62009-11-15 23:12:43 +00003124 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003125 if test $ac_must_keep_next = true; then
3126 ac_must_keep_next=false # Got value, back to normal.
3127 else
3128 case $ac_arg in
3129 *=* | --config-cache | -C | -disable-* | --disable-* \
3130 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3131 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3132 | -with-* | --with-* | -without-* | --without-* | --x)
3133 case "$ac_configure_args0 " in
3134 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3135 esac
3136 ;;
3137 -* ) ac_must_keep_next=true ;;
3138 esac
3139 fi
cristy8b350f62009-11-15 23:12:43 +00003140 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003141 ;;
3142 esac
3143 done
3144done
cristy8b350f62009-11-15 23:12:43 +00003145{ ac_configure_args0=; unset ac_configure_args0;}
3146{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003147
3148# When interrupted or exit'd, cleanup temporary files, and complete
3149# config.log. We remove comments because anyway the quotes in there
3150# would cause problems or look ugly.
3151# WARNING: Use '\'' to represent an apostrophe within the trap.
3152# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3153trap 'exit_status=$?
3154 # Save into config.log some information that might help in debugging.
3155 {
3156 echo
3157
cristy98dddb52010-11-04 00:30:15 +00003158 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003159## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003160## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003161 echo
3162 # The following way of writing the cache mishandles newlines in values,
3163(
3164 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3165 eval ac_val=\$$ac_var
3166 case $ac_val in #(
3167 *${as_nl}*)
3168 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003169 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003170$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3171 esac
3172 case $ac_var in #(
3173 _ | IFS | as_nl) ;; #(
3174 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003175 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003176 esac ;;
3177 esac
3178 done
3179 (set) 2>&1 |
3180 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3181 *${as_nl}ac_space=\ *)
3182 sed -n \
3183 "s/'\''/'\''\\\\'\'''\''/g;
3184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3185 ;; #(
3186 *)
3187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3188 ;;
3189 esac |
3190 sort
3191)
3192 echo
3193
cristy98dddb52010-11-04 00:30:15 +00003194 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003195## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003196## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003197 echo
3198 for ac_var in $ac_subst_vars
3199 do
3200 eval ac_val=\$$ac_var
3201 case $ac_val in
3202 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3203 esac
3204 $as_echo "$ac_var='\''$ac_val'\''"
3205 done | sort
3206 echo
3207
3208 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003209 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003210## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003211## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003212 echo
3213 for ac_var in $ac_subst_files
3214 do
3215 eval ac_val=\$$ac_var
3216 case $ac_val in
3217 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3218 esac
3219 $as_echo "$ac_var='\''$ac_val'\''"
3220 done | sort
3221 echo
3222 fi
3223
3224 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003225 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003226## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003227## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003228 echo
3229 cat confdefs.h
3230 echo
3231 fi
3232 test "$ac_signal" != 0 &&
3233 $as_echo "$as_me: caught signal $ac_signal"
3234 $as_echo "$as_me: exit $exit_status"
3235 } >&5
3236 rm -f core *.core core.conftest.* &&
3237 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3238 exit $exit_status
3239' 0
3240for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003241 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003242done
3243ac_signal=0
3244
3245# confdefs.h avoids OS command line length limits that DEFS can exceed.
3246rm -f -r conftest* confdefs.h
3247
cristy8b350f62009-11-15 23:12:43 +00003248$as_echo "/* confdefs.h */" > confdefs.h
3249
cristy3ed852e2009-09-05 21:47:34 +00003250# Predefined preprocessor variables.
3251
3252cat >>confdefs.h <<_ACEOF
3253#define PACKAGE_NAME "$PACKAGE_NAME"
3254_ACEOF
3255
cristy3ed852e2009-09-05 21:47:34 +00003256cat >>confdefs.h <<_ACEOF
3257#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3258_ACEOF
3259
cristy3ed852e2009-09-05 21:47:34 +00003260cat >>confdefs.h <<_ACEOF
3261#define PACKAGE_VERSION "$PACKAGE_VERSION"
3262_ACEOF
3263
cristy3ed852e2009-09-05 21:47:34 +00003264cat >>confdefs.h <<_ACEOF
3265#define PACKAGE_STRING "$PACKAGE_STRING"
3266_ACEOF
3267
cristy3ed852e2009-09-05 21:47:34 +00003268cat >>confdefs.h <<_ACEOF
3269#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3270_ACEOF
3271
cristy8b350f62009-11-15 23:12:43 +00003272cat >>confdefs.h <<_ACEOF
3273#define PACKAGE_URL "$PACKAGE_URL"
3274_ACEOF
3275
cristy3ed852e2009-09-05 21:47:34 +00003276
3277# Let the site file select an alternate cache file if it wants to.
3278# Prefer an explicitly selected file to automatically selected ones.
3279ac_site_file1=NONE
3280ac_site_file2=NONE
3281if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003282 # We do not want a PATH search for config.site.
3283 case $CONFIG_SITE in #((
3284 -*) ac_site_file1=./$CONFIG_SITE;;
3285 */*) ac_site_file1=$CONFIG_SITE;;
3286 *) ac_site_file1=./$CONFIG_SITE;;
3287 esac
cristy3ed852e2009-09-05 21:47:34 +00003288elif test "x$prefix" != xNONE; then
3289 ac_site_file1=$prefix/share/config.site
3290 ac_site_file2=$prefix/etc/config.site
3291else
3292 ac_site_file1=$ac_default_prefix/share/config.site
3293 ac_site_file2=$ac_default_prefix/etc/config.site
3294fi
3295for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3296do
3297 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003298 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003299 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003300$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3301 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003302 . "$ac_site_file" \
3303 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3305as_fn_error $? "failed to load site script $ac_site_file
3306See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003307 fi
3308done
3309
3310if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003311 # Some versions of bash will fail to source /dev/null (special files
3312 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3313 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003314 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003315$as_echo "$as_me: loading cache $cache_file" >&6;}
3316 case $cache_file in
3317 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3318 *) . "./$cache_file";;
3319 esac
3320 fi
3321else
cristy8b350f62009-11-15 23:12:43 +00003322 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003323$as_echo "$as_me: creating cache $cache_file" >&6;}
3324 >$cache_file
3325fi
3326
cristycd4c5312009-11-22 01:19:08 +00003327as_fn_append ac_header_list " stdlib.h"
3328as_fn_append ac_header_list " unistd.h"
3329as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003330# Check that the precious variables saved in the cache have kept the same
3331# value.
3332ac_cache_corrupted=false
3333for ac_var in $ac_precious_vars; do
3334 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3335 eval ac_new_set=\$ac_env_${ac_var}_set
3336 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3337 eval ac_new_val=\$ac_env_${ac_var}_value
3338 case $ac_old_set,$ac_new_set in
3339 set,)
cristy8b350f62009-11-15 23:12:43 +00003340 { $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 +00003341$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3342 ac_cache_corrupted=: ;;
3343 ,set)
cristy8b350f62009-11-15 23:12:43 +00003344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003345$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3346 ac_cache_corrupted=: ;;
3347 ,);;
3348 *)
3349 if test "x$ac_old_val" != "x$ac_new_val"; then
3350 # differences in whitespace do not lead to failure.
3351 ac_old_val_w=`echo x $ac_old_val`
3352 ac_new_val_w=`echo x $ac_new_val`
3353 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003355$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3356 ac_cache_corrupted=:
3357 else
cristy8b350f62009-11-15 23:12:43 +00003358 { $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 +00003359$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3360 eval $ac_var=\$ac_old_val
3361 fi
cristy8b350f62009-11-15 23:12:43 +00003362 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003363$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003364 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003365$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3366 fi;;
3367 esac
3368 # Pass precious variables to config.status.
3369 if test "$ac_new_set" = set; then
3370 case $ac_new_val in
3371 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3372 *) ac_arg=$ac_var=$ac_new_val ;;
3373 esac
3374 case " $ac_configure_args " in
3375 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003376 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003377 esac
3378 fi
3379done
3380if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003384$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003385 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003386fi
cristy8b350f62009-11-15 23:12:43 +00003387## -------------------- ##
3388## Main body of script. ##
3389## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003390
3391ac_ext=c
3392ac_cpp='$CPP $CPPFLAGS'
3393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396
3397
3398
3399ac_aux_dir=
3400for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003401 if test -f "$ac_dir/install-sh"; then
3402 ac_aux_dir=$ac_dir
3403 ac_install_sh="$ac_aux_dir/install-sh -c"
3404 break
3405 elif test -f "$ac_dir/install.sh"; then
3406 ac_aux_dir=$ac_dir
3407 ac_install_sh="$ac_aux_dir/install.sh -c"
3408 break
3409 elif test -f "$ac_dir/shtool"; then
3410 ac_aux_dir=$ac_dir
3411 ac_install_sh="$ac_aux_dir/shtool install -c"
3412 break
3413 fi
cristy3ed852e2009-09-05 21:47:34 +00003414done
3415if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003416 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003417fi
3418
3419# These three variables are undocumented and unsupported,
3420# and are intended to be withdrawn in a future Autoconf release.
3421# They can cause serious problems if a builder's source tree is in a directory
3422# whose full name contains unusual characters.
3423ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3424ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3425ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3426
3427
3428
3429
3430ac_config_headers="$ac_config_headers config/config.h"
3431
cristy24fc1fe2010-10-23 21:13:01 +00003432
cristy4c08aed2011-07-01 19:47:50 +00003433ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003434
cristy4c08aed2011-07-01 19:47:50 +00003435ac_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 +00003436
3437
3438#
3439# Save initial user-tunable values
3440#
3441USER_LIBS=$LIBS
3442for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3443 eval isset=\${$var+set}
3444 if test "$isset" = 'set'; then
3445 eval val=$`echo $var`
3446 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3447 fi
3448done
3449
3450
3451CONFIGURE_ARGS="$0 ${ac_configure_args}"
3452
3453
3454# Source file containing package/library versioning information.
3455. ${srcdir}/version.sh
3456
cristy15a88782010-01-31 23:24:49 +00003457echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003458# Make sure we can run config.sub.
3459$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003460 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003461
cristy8b350f62009-11-15 23:12:43 +00003462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003463$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003464if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003465 $as_echo_n "(cached) " >&6
3466else
3467 ac_build_alias=$build_alias
3468test "x$ac_build_alias" = x &&
3469 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3470test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003471 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003472ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003473 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003474
3475fi
cristy8b350f62009-11-15 23:12:43 +00003476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003477$as_echo "$ac_cv_build" >&6; }
3478case $ac_cv_build in
3479*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003480*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003481esac
3482build=$ac_cv_build
3483ac_save_IFS=$IFS; IFS='-'
3484set x $ac_cv_build
3485shift
3486build_cpu=$1
3487build_vendor=$2
3488shift; shift
3489# Remember, the first character of IFS is used to create $*,
3490# except with old shells:
3491build_os=$*
3492IFS=$ac_save_IFS
3493case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3494
3495
cristy8b350f62009-11-15 23:12:43 +00003496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003497$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003498if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003499 $as_echo_n "(cached) " >&6
3500else
3501 if test "x$host_alias" = x; then
3502 ac_cv_host=$ac_cv_build
3503else
3504 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003505 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003506fi
3507
3508fi
cristy8b350f62009-11-15 23:12:43 +00003509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003510$as_echo "$ac_cv_host" >&6; }
3511case $ac_cv_host in
3512*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003513*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003514esac
3515host=$ac_cv_host
3516ac_save_IFS=$IFS; IFS='-'
3517set x $ac_cv_host
3518shift
3519host_cpu=$1
3520host_vendor=$2
3521shift; shift
3522# Remember, the first character of IFS is used to create $*,
3523# except with old shells:
3524host_os=$*
3525IFS=$ac_save_IFS
3526case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3527
3528
cristy8b350f62009-11-15 23:12:43 +00003529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003530$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003531if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003532 $as_echo_n "(cached) " >&6
3533else
3534 if test "x$target_alias" = x; then
3535 ac_cv_target=$ac_cv_host
3536else
3537 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003538 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003539fi
3540
3541fi
cristy8b350f62009-11-15 23:12:43 +00003542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003543$as_echo "$ac_cv_target" >&6; }
3544case $ac_cv_target in
3545*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003546*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003547esac
3548target=$ac_cv_target
3549ac_save_IFS=$IFS; IFS='-'
3550set x $ac_cv_target
3551shift
3552target_cpu=$1
3553target_vendor=$2
3554shift; shift
3555# Remember, the first character of IFS is used to create $*,
3556# except with old shells:
3557target_os=$*
3558IFS=$ac_save_IFS
3559case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3560
3561
3562# The aliases save the names the user supplied, while $host etc.
3563# will get canonicalized.
3564test -n "$target_alias" &&
3565 test "$program_prefix$program_suffix$program_transform_name" = \
3566 NONENONEs,x,x, &&
3567 program_prefix=${target_alias}-
3568
cristy837d6dc2010-02-27 01:16:57 +00003569
3570
3571
cristy19615b82011-04-13 20:02:01 +00003572MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003573
3574
cristy19615b82011-04-13 20:02:01 +00003575MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003576
3577
cristy19615b82011-04-13 20:02:01 +00003578MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003579
3580
cristy3ed852e2009-09-05 21:47:34 +00003581# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003582MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3583
3584MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3585
cristy50d3f5c2011-09-10 20:09:06 +00003586MAGICK_SVN_REVISION=5245
cristyd694ca32011-03-27 21:42:54 +00003587
3588
cristy3ed852e2009-09-05 21:47:34 +00003589
3590
3591# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3593$as_echo_n "checking whether build environment is sane... " >&6; }
3594# Just in case
3595sleep 1
3596echo timestamp > conftest.file
3597# Reject unsafe characters in $srcdir or the absolute working directory
3598# name. Accept space and tab only in the latter.
3599am_lf='
3600'
3601case `pwd` in
3602 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003603 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003604esac
3605case $srcdir in
3606 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003607 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003608esac
cristy3ed852e2009-09-05 21:47:34 +00003609
cristy73bd4a52010-10-05 11:24:23 +00003610# Do `set' in a subshell so we don't clobber the current shell's
3611# arguments. Must try -L first in case configure is actually a
3612# symlink; some systems play weird games with the mod time of symlinks
3613# (eg FreeBSD returns the mod time of the symlink's containing
3614# directory).
3615if (
3616 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3617 if test "$*" = "X"; then
3618 # -L didn't work.
3619 set X `ls -t "$srcdir/configure" conftest.file`
3620 fi
3621 rm -f conftest.file
3622 if test "$*" != "X $srcdir/configure conftest.file" \
3623 && test "$*" != "X conftest.file $srcdir/configure"; then
3624
3625 # If neither matched, then we have a broken ls. This can happen
3626 # if, for instance, CONFIG_SHELL is bash and it inherits a
3627 # broken ls alias from the environment. This has actually
3628 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003629 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003630alias in your environment" "$LINENO" 5
3631 fi
3632
3633 test "$2" = conftest.file
3634 )
3635then
3636 # Ok.
3637 :
3638else
cristy98dddb52010-11-04 00:30:15 +00003639 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003640Check your system clock" "$LINENO" 5
3641fi
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3643$as_echo "yes" >&6; }
3644
3645am__api_version='1.11'
3646
3647# Find a good install program. We prefer a C program (faster),
3648# so one script is as good as another. But avoid the broken or
3649# incompatible versions:
3650# SysV /etc/install, /usr/sbin/install
3651# SunOS /usr/etc/install
3652# IRIX /sbin/install
3653# AIX /bin/install
3654# AmigaOS /C/install, which installs bootblocks on floppy discs
3655# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3656# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3657# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3658# OS/2's system install, which has a completely different semantic
3659# ./install, which can be erroneously created by make from ./install.sh.
3660# Reject install programs that cannot install multiple files.
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3662$as_echo_n "checking for a BSD-compatible install... " >&6; }
3663if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003664if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003665 $as_echo_n "(cached) " >&6
3666else
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668for as_dir in $PATH
3669do
3670 IFS=$as_save_IFS
3671 test -z "$as_dir" && as_dir=.
3672 # Account for people who put trailing slashes in PATH elements.
3673case $as_dir/ in #((
3674 ./ | .// | /[cC]/* | \
3675 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3676 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3677 /usr/ucb/* ) ;;
3678 *)
3679 # OSF1 and SCO ODT 3.0 have their own names for install.
3680 # Don't use installbsd from OSF since it installs stuff as root
3681 # by default.
3682 for ac_prog in ginstall scoinst install; do
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3685 if test $ac_prog = install &&
3686 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3687 # AIX install. It has an incompatible calling convention.
3688 :
3689 elif test $ac_prog = install &&
3690 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3691 # program-specific install script used by HP pwplus--don't use.
3692 :
3693 else
3694 rm -rf conftest.one conftest.two conftest.dir
3695 echo one > conftest.one
3696 echo two > conftest.two
3697 mkdir conftest.dir
3698 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3699 test -s conftest.one && test -s conftest.two &&
3700 test -s conftest.dir/conftest.one &&
3701 test -s conftest.dir/conftest.two
3702 then
3703 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3704 break 3
3705 fi
3706 fi
3707 fi
3708 done
3709 done
3710 ;;
3711esac
3712
3713 done
3714IFS=$as_save_IFS
3715
3716rm -rf conftest.one conftest.two conftest.dir
3717
3718fi
3719 if test "${ac_cv_path_install+set}" = set; then
3720 INSTALL=$ac_cv_path_install
3721 else
3722 # As a last resort, use the slow shell script. Don't cache a
3723 # value for INSTALL within a source directory, because that will
3724 # break other packages using the cache if that directory is
3725 # removed, or if the value is a relative name.
3726 INSTALL=$ac_install_sh
3727 fi
3728fi
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3730$as_echo "$INSTALL" >&6; }
3731
3732# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3733# It thinks the first close brace ends the variable substitution.
3734test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3735
3736test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3737
3738test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3739
3740test "$program_prefix" != NONE &&
3741 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3742# Use a double $ so make ignores it.
3743test "$program_suffix" != NONE &&
3744 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3745# Double any \ or $.
3746# By default was `s,x,x', remove it if useless.
3747ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3748program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3749
3750# expand $ac_aux_dir to an absolute path
3751am_aux_dir=`cd $ac_aux_dir && pwd`
3752
3753if test x"${MISSING+set}" != xset; then
3754 case $am_aux_dir in
3755 *\ * | *\ *)
3756 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3757 *)
3758 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3759 esac
3760fi
3761# Use eval to expand $SHELL
3762if eval "$MISSING --run true"; then
3763 am_missing_run="$MISSING --run "
3764else
3765 am_missing_run=
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3767$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3768fi
3769
3770if test x"${install_sh}" != xset; then
3771 case $am_aux_dir in
3772 *\ * | *\ *)
3773 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3774 *)
3775 install_sh="\${SHELL} $am_aux_dir/install-sh"
3776 esac
3777fi
3778
3779# Installed binaries are usually stripped using `strip' when the user
3780# run `make install-strip'. However `strip' might not be the right
3781# tool to use in cross-compilation environments, therefore Automake
3782# will honor the `STRIP' environment variable to overrule this program.
3783if test "$cross_compiling" != no; then
3784 if test -n "$ac_tool_prefix"; then
3785 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3786set dummy ${ac_tool_prefix}strip; ac_word=$2
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003789if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003790 $as_echo_n "(cached) " >&6
3791else
3792 if test -n "$STRIP"; then
3793 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3794else
3795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
3797do
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3802 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 break 2
3805 fi
3806done
3807 done
3808IFS=$as_save_IFS
3809
3810fi
3811fi
3812STRIP=$ac_cv_prog_STRIP
3813if test -n "$STRIP"; then
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3815$as_echo "$STRIP" >&6; }
3816else
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818$as_echo "no" >&6; }
3819fi
3820
3821
3822fi
3823if test -z "$ac_cv_prog_STRIP"; then
3824 ac_ct_STRIP=$STRIP
3825 # Extract the first word of "strip", so it can be a program name with args.
3826set dummy strip; ac_word=$2
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003829if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003830 $as_echo_n "(cached) " >&6
3831else
3832 if test -n "$ac_ct_STRIP"; then
3833 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3834else
3835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836for as_dir in $PATH
3837do
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3842 ac_cv_prog_ac_ct_STRIP="strip"
3843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 break 2
3845 fi
3846done
3847 done
3848IFS=$as_save_IFS
3849
3850fi
3851fi
3852ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3853if test -n "$ac_ct_STRIP"; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3855$as_echo "$ac_ct_STRIP" >&6; }
3856else
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858$as_echo "no" >&6; }
3859fi
3860
3861 if test "x$ac_ct_STRIP" = x; then
3862 STRIP=":"
3863 else
3864 case $cross_compiling:$ac_tool_warned in
3865yes:)
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3868ac_tool_warned=yes ;;
3869esac
3870 STRIP=$ac_ct_STRIP
3871 fi
3872else
3873 STRIP="$ac_cv_prog_STRIP"
3874fi
3875
3876fi
3877INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3878
3879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3880$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3881if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003882 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003883 $as_echo_n "(cached) " >&6
3884else
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3887do
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
3890 for ac_prog in mkdir gmkdir; do
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3893 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3894 'mkdir (GNU coreutils) '* | \
3895 'mkdir (coreutils) '* | \
3896 'mkdir (fileutils) '4.1*)
3897 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3898 break 3;;
3899 esac
3900 done
3901 done
3902 done
3903IFS=$as_save_IFS
3904
3905fi
3906
3907 test -d ./--version && rmdir ./--version
3908 if test "${ac_cv_path_mkdir+set}" = set; then
3909 MKDIR_P="$ac_cv_path_mkdir -p"
3910 else
3911 # As a last resort, use the slow shell script. Don't cache a
3912 # value for MKDIR_P within a source directory, because that will
3913 # break other packages using the cache if that directory is
3914 # removed, or if the value is a relative name.
3915 MKDIR_P="$ac_install_sh -d"
3916 fi
3917fi
3918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3919$as_echo "$MKDIR_P" >&6; }
3920
3921mkdir_p="$MKDIR_P"
3922case $mkdir_p in
3923 [\\/$]* | ?:[\\/]*) ;;
3924 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3925esac
3926
3927for ac_prog in gawk mawk nawk awk
3928do
3929 # Extract the first word of "$ac_prog", so it can be a program name with args.
3930set dummy $ac_prog; ac_word=$2
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003933if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003934 $as_echo_n "(cached) " >&6
3935else
3936 if test -n "$AWK"; then
3937 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3938else
3939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940for as_dir in $PATH
3941do
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3946 ac_cv_prog_AWK="$ac_prog"
3947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 break 2
3949 fi
3950done
3951 done
3952IFS=$as_save_IFS
3953
3954fi
3955fi
3956AWK=$ac_cv_prog_AWK
3957if test -n "$AWK"; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3959$as_echo "$AWK" >&6; }
3960else
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962$as_echo "no" >&6; }
3963fi
3964
3965
3966 test -n "$AWK" && break
3967done
3968
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3970$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3971set x ${MAKE-make}
3972ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00003973if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003974 $as_echo_n "(cached) " >&6
3975else
3976 cat >conftest.make <<\_ACEOF
3977SHELL = /bin/sh
3978all:
3979 @echo '@@@%%%=$(MAKE)=@@@%%%'
3980_ACEOF
cristy98dddb52010-11-04 00:30:15 +00003981# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00003982case `${MAKE-make} -f conftest.make 2>/dev/null` in
3983 *@@@%%%=?*=@@@%%%*)
3984 eval ac_cv_prog_make_${ac_make}_set=yes;;
3985 *)
3986 eval ac_cv_prog_make_${ac_make}_set=no;;
3987esac
3988rm -f conftest.make
3989fi
3990if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3992$as_echo "yes" >&6; }
3993 SET_MAKE=
3994else
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996$as_echo "no" >&6; }
3997 SET_MAKE="MAKE=${MAKE-make}"
3998fi
3999
4000rm -rf .tst 2>/dev/null
4001mkdir .tst 2>/dev/null
4002if test -d .tst; then
4003 am__leading_dot=.
4004else
4005 am__leading_dot=_
4006fi
4007rmdir .tst 2>/dev/null
4008
4009if test "`cd $srcdir && pwd`" != "`pwd`"; then
4010 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4011 # is not polluted with repeated "-I."
4012 am__isrc=' -I$(srcdir)'
4013 # test to see if srcdir already configured
4014 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004015 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004016 fi
4017fi
4018
4019# test whether we have cygpath
4020if test -z "$CYGPATH_W"; then
4021 if (cygpath --version) >/dev/null 2>/dev/null; then
4022 CYGPATH_W='cygpath -w'
4023 else
4024 CYGPATH_W=echo
4025 fi
4026fi
4027
4028
4029# Define the identity of the package.
4030 PACKAGE=$PACKAGE_NAME
4031 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4032
4033
4034# Some tools Automake needs.
4035
4036ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4037
4038
4039AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4040
4041
4042AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4043
4044
4045AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4046
4047
4048MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4049
4050# We need awk for the "check" target. The system "awk" is bad on
4051# some platforms.
4052# Always define AMTAR for backward compatibility.
4053
4054AMTAR=${AMTAR-"${am_missing_run}tar"}
4055
4056am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4057
4058
4059
4060
4061
cristy3ed852e2009-09-05 21:47:34 +00004062
4063# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004064# Check whether --enable-silent-rules was given.
4065if test "${enable_silent_rules+set}" = set; then :
4066 enableval=$enable_silent_rules;
4067fi
4068
4069case $enable_silent_rules in
4070yes) AM_DEFAULT_VERBOSITY=0;;
4071no) AM_DEFAULT_VERBOSITY=1;;
4072*) AM_DEFAULT_VERBOSITY=0;;
4073esac
4074AM_BACKSLASH='\'
4075
cristy3ed852e2009-09-05 21:47:34 +00004076
4077MAGICK_LIB_VERSION="0x"
4078if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4079 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4080fi
4081MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4082if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4083 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4084fi
4085MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4086if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4087 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4088fi
4089MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4090
4091
4092# Definition used to define MagickLibVersionText in version.h
4093MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4094
4095
4096# Definition used to define MagickLibVersionNumber in version.h
4097MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4098
4099
4100# Regenerate config.status if ChangeLog or version.sh is updated.
4101CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4102
4103
4104PERLMAINCC=$CC
4105
4106MAGICK_CFLAGS=''
4107MAGICK_CPPFLAGS=$CPPFLAGS_USER
4108MAGICK_PCFLAGS=$CPPFLAGS_USER
4109MAGICK_LDFLAGS=''
4110MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004111MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004112
4113#
4114# Evaluate shell variable equivalents to Makefile directory variables
4115#
4116if test "x$prefix" = xNONE; then
4117 prefix=$ac_default_prefix
4118fi
4119# Let make expand exec_prefix.
4120if test "x$exec_prefix" = xNONE; then
4121 exec_prefix='${prefix}'
4122fi
4123
4124#
4125eval "eval PREFIX_DIR=${prefix}"
4126
4127eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4128
4129eval "eval BIN_DIR=$bindir"
4130
4131eval "eval SBIN_DIR=$sbindir"
4132
4133eval "eval LIBEXEC_DIR=$libexecdir"
4134
4135eval "eval DATA_DIR=$datadir"
4136
cristyd55889c2011-03-27 00:50:24 +00004137eval "eval DOC_DIR=$docdir"
4138
cristy3ed852e2009-09-05 21:47:34 +00004139eval "eval SYSCONF_DIR=$sysconfdir"
4140
4141eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4142
4143eval "eval LOCALSTATE_DIR=$localstatedir"
4144
4145eval "eval LIB_DIR=$libdir"
4146
4147eval "eval INCLUDE_DIR=$includedir"
4148
4149eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4150
4151eval "eval INFO_DIR=$infodir"
4152
4153eval "eval MAN_DIR=$mandir"
4154
4155
4156# Get full paths to source and build directories
4157srcdirfull="`cd $srcdir && pwd`"
4158builddir="`pwd`"
4159
4160#
4161# Compute variables useful for running uninstalled software.
4162#
4163MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4164MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4165MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4166MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4167DIRSEP=':'
4168case "${build_os}" in
4169 mingw* )
4170 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4171 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4172 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4173 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4174 DIRSEP=';'
4175 ;;
4176esac
4177case "${host_os}" in
4178 mingw* )
4179 DIRSEP=';'
4180 ;;
4181esac
4182
4183
4184
4185
4186
4187
cristya0b81c32010-01-22 02:54:33 +00004188
4189#
4190# Enable OS features.
4191#
cristy73bd4a52010-10-05 11:24:23 +00004192DEPDIR="${am__leading_dot}deps"
4193
4194ac_config_commands="$ac_config_commands depfiles"
4195
4196
4197am_make=${MAKE-make}
4198cat > confinc << 'END'
4199am__doit:
4200 @echo this is the am__doit target
4201.PHONY: am__doit
4202END
4203# If we don't find an include directive, just comment out the code.
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4205$as_echo_n "checking for style of include used by $am_make... " >&6; }
4206am__include="#"
4207am__quote=
4208_am_result=none
4209# First try GNU make style include.
4210echo "include confinc" > confmf
4211# Ignore all kinds of additional output from `make'.
4212case `$am_make -s -f confmf 2> /dev/null` in #(
4213*the\ am__doit\ target*)
4214 am__include=include
4215 am__quote=
4216 _am_result=GNU
4217 ;;
4218esac
4219# Now try BSD make style include.
4220if test "$am__include" = "#"; then
4221 echo '.include "confinc"' > confmf
4222 case `$am_make -s -f confmf 2> /dev/null` in #(
4223 *the\ am__doit\ target*)
4224 am__include=.include
4225 am__quote="\""
4226 _am_result=BSD
4227 ;;
4228 esac
4229fi
4230
4231
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4233$as_echo "$_am_result" >&6; }
4234rm -f confinc confmf
4235
4236# Check whether --enable-dependency-tracking was given.
4237if test "${enable_dependency_tracking+set}" = set; then :
4238 enableval=$enable_dependency_tracking;
4239fi
4240
4241if test "x$enable_dependency_tracking" != xno; then
4242 am_depcomp="$ac_aux_dir/depcomp"
4243 AMDEPBACKSLASH='\'
4244fi
4245 if test "x$enable_dependency_tracking" != xno; then
4246 AMDEP_TRUE=
4247 AMDEP_FALSE='#'
4248else
4249 AMDEP_TRUE='#'
4250 AMDEP_FALSE=
4251fi
4252
4253
cristy3ed852e2009-09-05 21:47:34 +00004254ac_ext=c
4255ac_cpp='$CPP $CPPFLAGS'
4256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258ac_compiler_gnu=$ac_cv_c_compiler_gnu
4259if test -n "$ac_tool_prefix"; then
4260 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4261set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004263$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004264if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004265 $as_echo_n "(cached) " >&6
4266else
4267 if test -n "$CC"; then
4268 ac_cv_prog_CC="$CC" # Let the user override the test.
4269else
4270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271for as_dir in $PATH
4272do
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004275 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4277 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004279 break 2
4280 fi
4281done
cristy8b350f62009-11-15 23:12:43 +00004282 done
cristy3ed852e2009-09-05 21:47:34 +00004283IFS=$as_save_IFS
4284
4285fi
4286fi
4287CC=$ac_cv_prog_CC
4288if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004290$as_echo "$CC" >&6; }
4291else
cristy8b350f62009-11-15 23:12:43 +00004292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004293$as_echo "no" >&6; }
4294fi
4295
4296
4297fi
4298if test -z "$ac_cv_prog_CC"; then
4299 ac_ct_CC=$CC
4300 # Extract the first word of "gcc", so it can be a program name with args.
4301set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004303$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004304if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004305 $as_echo_n "(cached) " >&6
4306else
4307 if test -n "$ac_ct_CC"; then
4308 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4309else
4310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311for as_dir in $PATH
4312do
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004315 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4317 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004319 break 2
4320 fi
4321done
cristy8b350f62009-11-15 23:12:43 +00004322 done
cristy3ed852e2009-09-05 21:47:34 +00004323IFS=$as_save_IFS
4324
4325fi
4326fi
4327ac_ct_CC=$ac_cv_prog_ac_ct_CC
4328if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004330$as_echo "$ac_ct_CC" >&6; }
4331else
cristy8b350f62009-11-15 23:12:43 +00004332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004333$as_echo "no" >&6; }
4334fi
4335
4336 if test "x$ac_ct_CC" = x; then
4337 CC=""
4338 else
4339 case $cross_compiling:$ac_tool_warned in
4340yes:)
cristy8b350f62009-11-15 23:12:43 +00004341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4343ac_tool_warned=yes ;;
4344esac
4345 CC=$ac_ct_CC
4346 fi
4347else
4348 CC="$ac_cv_prog_CC"
4349fi
4350
4351if test -z "$CC"; then
4352 if test -n "$ac_tool_prefix"; then
4353 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4354set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004356$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004357if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004358 $as_echo_n "(cached) " >&6
4359else
4360 if test -n "$CC"; then
4361 ac_cv_prog_CC="$CC" # Let the user override the test.
4362else
4363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364for as_dir in $PATH
4365do
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004368 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4370 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004372 break 2
4373 fi
4374done
cristy8b350f62009-11-15 23:12:43 +00004375 done
cristy3ed852e2009-09-05 21:47:34 +00004376IFS=$as_save_IFS
4377
4378fi
4379fi
4380CC=$ac_cv_prog_CC
4381if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004383$as_echo "$CC" >&6; }
4384else
cristy8b350f62009-11-15 23:12:43 +00004385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004386$as_echo "no" >&6; }
4387fi
4388
4389
4390 fi
4391fi
4392if test -z "$CC"; then
4393 # Extract the first word of "cc", so it can be a program name with args.
4394set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004396$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004397if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004398 $as_echo_n "(cached) " >&6
4399else
4400 if test -n "$CC"; then
4401 ac_cv_prog_CC="$CC" # Let the user override the test.
4402else
4403 ac_prog_rejected=no
4404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405for as_dir in $PATH
4406do
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004409 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4412 ac_prog_rejected=yes
4413 continue
4414 fi
4415 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004417 break 2
4418 fi
4419done
cristy8b350f62009-11-15 23:12:43 +00004420 done
cristy3ed852e2009-09-05 21:47:34 +00004421IFS=$as_save_IFS
4422
4423if test $ac_prog_rejected = yes; then
4424 # We found a bogon in the path, so make sure we never use it.
4425 set dummy $ac_cv_prog_CC
4426 shift
4427 if test $# != 0; then
4428 # We chose a different compiler from the bogus one.
4429 # However, it has the same basename, so the bogon will be chosen
4430 # first if we set CC to just the basename; use the full file name.
4431 shift
4432 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4433 fi
4434fi
4435fi
4436fi
4437CC=$ac_cv_prog_CC
4438if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004440$as_echo "$CC" >&6; }
4441else
cristy8b350f62009-11-15 23:12:43 +00004442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004443$as_echo "no" >&6; }
4444fi
4445
4446
4447fi
4448if test -z "$CC"; then
4449 if test -n "$ac_tool_prefix"; then
4450 for ac_prog in cl.exe
4451 do
4452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4453set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004455$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004456if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004457 $as_echo_n "(cached) " >&6
4458else
4459 if test -n "$CC"; then
4460 ac_cv_prog_CC="$CC" # Let the user override the test.
4461else
4462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463for as_dir in $PATH
4464do
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004467 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004471 break 2
4472 fi
4473done
cristy8b350f62009-11-15 23:12:43 +00004474 done
cristy3ed852e2009-09-05 21:47:34 +00004475IFS=$as_save_IFS
4476
4477fi
4478fi
4479CC=$ac_cv_prog_CC
4480if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004482$as_echo "$CC" >&6; }
4483else
cristy8b350f62009-11-15 23:12:43 +00004484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004485$as_echo "no" >&6; }
4486fi
4487
4488
4489 test -n "$CC" && break
4490 done
4491fi
4492if test -z "$CC"; then
4493 ac_ct_CC=$CC
4494 for ac_prog in cl.exe
4495do
4496 # Extract the first word of "$ac_prog", so it can be a program name with args.
4497set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004499$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004500if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004501 $as_echo_n "(cached) " >&6
4502else
4503 if test -n "$ac_ct_CC"; then
4504 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4505else
4506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507for as_dir in $PATH
4508do
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004511 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4513 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004515 break 2
4516 fi
4517done
cristy8b350f62009-11-15 23:12:43 +00004518 done
cristy3ed852e2009-09-05 21:47:34 +00004519IFS=$as_save_IFS
4520
4521fi
4522fi
4523ac_ct_CC=$ac_cv_prog_ac_ct_CC
4524if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004526$as_echo "$ac_ct_CC" >&6; }
4527else
cristy8b350f62009-11-15 23:12:43 +00004528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004529$as_echo "no" >&6; }
4530fi
4531
4532
4533 test -n "$ac_ct_CC" && break
4534done
4535
4536 if test "x$ac_ct_CC" = x; then
4537 CC=""
4538 else
4539 case $cross_compiling:$ac_tool_warned in
4540yes:)
cristy8b350f62009-11-15 23:12:43 +00004541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4543ac_tool_warned=yes ;;
4544esac
4545 CC=$ac_ct_CC
4546 fi
4547fi
4548
4549fi
4550
4551
cristy8b350f62009-11-15 23:12:43 +00004552test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004554as_fn_error $? "no acceptable C compiler found in \$PATH
4555See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004556
4557# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004558$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004559set X $ac_compile
4560ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004561for ac_option in --version -v -V -qversion; do
4562 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004563case "(($ac_try" in
4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4566esac
cristy8b350f62009-11-15 23:12:43 +00004567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4568$as_echo "$ac_try_echo"; } >&5
4569 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004570 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004571 if test -s conftest.err; then
4572 sed '10a\
4573... rest of stderr output deleted ...
4574 10q' conftest.err >conftest.er1
4575 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004576 fi
cristycd4c5312009-11-22 01:19:08 +00004577 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4579 test $ac_status = 0; }
4580done
cristy3ed852e2009-09-05 21:47:34 +00004581
cristy8b350f62009-11-15 23:12:43 +00004582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004583/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004584
cristy3ed852e2009-09-05 21:47:34 +00004585int
4586main ()
4587{
4588
4589 ;
4590 return 0;
4591}
4592_ACEOF
4593ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004594ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004595# Try to create an executable without -o first, disregard a.out.
4596# It will help us diagnose broken compilers, and finding out an intuition
4597# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4599$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004600ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4601
4602# The possible output files:
4603ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4604
4605ac_rmfiles=
4606for ac_file in $ac_files
4607do
4608 case $ac_file in
4609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4610 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4611 esac
4612done
4613rm -f $ac_rmfiles
4614
cristy8b350f62009-11-15 23:12:43 +00004615if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004616case "(($ac_try" in
4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618 *) ac_try_echo=$ac_try;;
4619esac
cristy8b350f62009-11-15 23:12:43 +00004620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4621$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004622 (eval "$ac_link_default") 2>&5
4623 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4625 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004626 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4627# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4628# in a Makefile. We should not override ac_cv_exeext if it was cached,
4629# so that the user can short-circuit this test for compilers unknown to
4630# Autoconf.
4631for ac_file in $ac_files ''
4632do
4633 test -f "$ac_file" || continue
4634 case $ac_file in
4635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4636 ;;
4637 [ab].out )
4638 # We found the default executable, but exeext='' is most
4639 # certainly right.
4640 break;;
4641 *.* )
cristy8b350f62009-11-15 23:12:43 +00004642 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004643 then :; else
4644 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4645 fi
4646 # We set ac_cv_exeext here because the later test for it is not
4647 # safe: cross compilers may not add the suffix if given an `-o'
4648 # argument, so we may need to know it at that point already.
4649 # Even if this section looks crufty: it has the advantage of
4650 # actually working.
4651 break;;
4652 * )
4653 break;;
4654 esac
4655done
4656test "$ac_cv_exeext" = no && ac_cv_exeext=
4657
4658else
4659 ac_file=''
4660fi
cristy8b350f62009-11-15 23:12:43 +00004661if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663$as_echo "no" >&6; }
4664$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004665sed 's/^/| /' conftest.$ac_ext >&5
4666
cristy8b350f62009-11-15 23:12:43 +00004667{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004668$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004669as_fn_error 77 "C compiler cannot create executables
4670See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004671else
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4673$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004674fi
cristycd4c5312009-11-22 01:19:08 +00004675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4676$as_echo_n "checking for C compiler default output file name... " >&6; }
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4678$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004679ac_exeext=$ac_cv_exeext
4680
cristycd4c5312009-11-22 01:19:08 +00004681rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004682ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004684$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004685if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004686case "(($ac_try" in
4687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688 *) ac_try_echo=$ac_try;;
4689esac
cristy8b350f62009-11-15 23:12:43 +00004690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4691$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004692 (eval "$ac_link") 2>&5
4693 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4695 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004696 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4697# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4698# work properly (i.e., refer to `conftest.exe'), while it won't with
4699# `rm'.
4700for ac_file in conftest.exe conftest conftest.*; do
4701 test -f "$ac_file" || continue
4702 case $ac_file in
4703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4704 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4705 break;;
4706 * ) break;;
4707 esac
4708done
4709else
cristy8b350f62009-11-15 23:12:43 +00004710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004712as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4713See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004714fi
cristycd4c5312009-11-22 01:19:08 +00004715rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004717$as_echo "$ac_cv_exeext" >&6; }
4718
4719rm -f conftest.$ac_ext
4720EXEEXT=$ac_cv_exeext
4721ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723/* end confdefs.h. */
4724#include <stdio.h>
4725int
4726main ()
4727{
4728FILE *f = fopen ("conftest.out", "w");
4729 return ferror (f) || fclose (f) != 0;
4730
4731 ;
4732 return 0;
4733}
4734_ACEOF
4735ac_clean_files="$ac_clean_files conftest.out"
4736# Check that the compiler produces executables we can run. If not, either
4737# the compiler is broken, or we cross compile.
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4739$as_echo_n "checking whether we are cross compiling... " >&6; }
4740if test "$cross_compiling" != yes; then
4741 { { ac_try="$ac_link"
4742case "(($ac_try" in
4743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4744 *) ac_try_echo=$ac_try;;
4745esac
4746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4747$as_echo "$ac_try_echo"; } >&5
4748 (eval "$ac_link") 2>&5
4749 ac_status=$?
4750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4751 test $ac_status = 0; }
4752 if { ac_try='./conftest$ac_cv_exeext'
4753 { { case "(($ac_try" in
4754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755 *) ac_try_echo=$ac_try;;
4756esac
4757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4758$as_echo "$ac_try_echo"; } >&5
4759 (eval "$ac_try") 2>&5
4760 ac_status=$?
4761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4762 test $ac_status = 0; }; }; then
4763 cross_compiling=no
4764 else
4765 if test "$cross_compiling" = maybe; then
4766 cross_compiling=yes
4767 else
4768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004770as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004771If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004772See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004773 fi
4774 fi
4775fi
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4777$as_echo "$cross_compiling" >&6; }
4778
4779rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4780ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004782$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004783if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004784 $as_echo_n "(cached) " >&6
4785else
cristy8b350f62009-11-15 23:12:43 +00004786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004787/* end confdefs.h. */
4788
4789int
4790main ()
4791{
4792
4793 ;
4794 return 0;
4795}
4796_ACEOF
4797rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004798if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004799case "(($ac_try" in
4800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801 *) ac_try_echo=$ac_try;;
4802esac
cristy8b350f62009-11-15 23:12:43 +00004803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4804$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004805 (eval "$ac_compile") 2>&5
4806 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4808 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004809 for ac_file in conftest.o conftest.obj conftest.*; do
4810 test -f "$ac_file" || continue;
4811 case $ac_file in
4812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4813 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4814 break;;
4815 esac
4816done
4817else
4818 $as_echo "$as_me: failed program was:" >&5
4819sed 's/^/| /' conftest.$ac_ext >&5
4820
cristy8b350f62009-11-15 23:12:43 +00004821{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004823as_fn_error $? "cannot compute suffix of object files: cannot compile
4824See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004825fi
cristy3ed852e2009-09-05 21:47:34 +00004826rm -f conftest.$ac_cv_objext conftest.$ac_ext
4827fi
cristy8b350f62009-11-15 23:12:43 +00004828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004829$as_echo "$ac_cv_objext" >&6; }
4830OBJEXT=$ac_cv_objext
4831ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004833$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004834if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004835 $as_echo_n "(cached) " >&6
4836else
cristy8b350f62009-11-15 23:12:43 +00004837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004838/* end confdefs.h. */
4839
4840int
4841main ()
4842{
4843#ifndef __GNUC__
4844 choke me
4845#endif
4846
4847 ;
4848 return 0;
4849}
4850_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004851if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004852 ac_compiler_gnu=yes
4853else
cristy8b350f62009-11-15 23:12:43 +00004854 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004855fi
cristy3ed852e2009-09-05 21:47:34 +00004856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857ac_cv_c_compiler_gnu=$ac_compiler_gnu
4858
4859fi
cristy8b350f62009-11-15 23:12:43 +00004860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004861$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4862if test $ac_compiler_gnu = yes; then
4863 GCC=yes
4864else
4865 GCC=
4866fi
4867ac_test_CFLAGS=${CFLAGS+set}
4868ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004870$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004871if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004872 $as_echo_n "(cached) " >&6
4873else
4874 ac_save_c_werror_flag=$ac_c_werror_flag
4875 ac_c_werror_flag=yes
4876 ac_cv_prog_cc_g=no
4877 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004879/* end confdefs.h. */
4880
4881int
4882main ()
4883{
4884
4885 ;
4886 return 0;
4887}
4888_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004889if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004890 ac_cv_prog_cc_g=yes
4891else
cristy8b350f62009-11-15 23:12:43 +00004892 CFLAGS=""
4893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004894/* end confdefs.h. */
4895
4896int
4897main ()
4898{
4899
4900 ;
4901 return 0;
4902}
4903_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004904if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004905
cristy8b350f62009-11-15 23:12:43 +00004906else
4907 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004908 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004910/* end confdefs.h. */
4911
4912int
4913main ()
4914{
4915
4916 ;
4917 return 0;
4918}
4919_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004920if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004921 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004922fi
cristy3ed852e2009-09-05 21:47:34 +00004923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924fi
cristy3ed852e2009-09-05 21:47:34 +00004925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926fi
cristy3ed852e2009-09-05 21:47:34 +00004927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928 ac_c_werror_flag=$ac_save_c_werror_flag
4929fi
cristy8b350f62009-11-15 23:12:43 +00004930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004931$as_echo "$ac_cv_prog_cc_g" >&6; }
4932if test "$ac_test_CFLAGS" = set; then
4933 CFLAGS=$ac_save_CFLAGS
4934elif test $ac_cv_prog_cc_g = yes; then
4935 if test "$GCC" = yes; then
4936 CFLAGS="-g -O2"
4937 else
4938 CFLAGS="-g"
4939 fi
4940else
4941 if test "$GCC" = yes; then
4942 CFLAGS="-O2"
4943 else
4944 CFLAGS=
4945 fi
4946fi
cristy8b350f62009-11-15 23:12:43 +00004947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004948$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004949if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004950 $as_echo_n "(cached) " >&6
4951else
4952 ac_cv_prog_cc_c89=no
4953ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004955/* end confdefs.h. */
4956#include <stdarg.h>
4957#include <stdio.h>
4958#include <sys/types.h>
4959#include <sys/stat.h>
4960/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4961struct buf { int x; };
4962FILE * (*rcsopen) (struct buf *, struct stat *, int);
4963static char *e (p, i)
4964 char **p;
4965 int i;
4966{
4967 return p[i];
4968}
4969static char *f (char * (*g) (char **, int), char **p, ...)
4970{
4971 char *s;
4972 va_list v;
4973 va_start (v,p);
4974 s = g (p, va_arg (v,int));
4975 va_end (v);
4976 return s;
4977}
4978
4979/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4980 function prototypes and stuff, but not '\xHH' hex character constants.
4981 These don't provoke an error unfortunately, instead are silently treated
4982 as 'x'. The following induces an error, until -std is added to get
4983 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4984 array size at least. It's necessary to write '\x00'==0 to get something
4985 that's true only with -std. */
4986int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4987
4988/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4989 inside strings and character constants. */
4990#define FOO(x) 'x'
4991int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4992
4993int test (int i, double x);
4994struct s1 {int (*f) (int a);};
4995struct s2 {int (*f) (double a);};
4996int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4997int argc;
4998char **argv;
4999int
5000main ()
5001{
5002return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5003 ;
5004 return 0;
5005}
5006_ACEOF
5007for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5008 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5009do
5010 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005011 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005012 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005013fi
cristy3ed852e2009-09-05 21:47:34 +00005014rm -f core conftest.err conftest.$ac_objext
5015 test "x$ac_cv_prog_cc_c89" != "xno" && break
5016done
5017rm -f conftest.$ac_ext
5018CC=$ac_save_CC
5019
5020fi
5021# AC_CACHE_VAL
5022case "x$ac_cv_prog_cc_c89" in
5023 x)
cristy8b350f62009-11-15 23:12:43 +00005024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005025$as_echo "none needed" >&6; } ;;
5026 xno)
cristy8b350f62009-11-15 23:12:43 +00005027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005028$as_echo "unsupported" >&6; } ;;
5029 *)
5030 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005032$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5033esac
cristy8b350f62009-11-15 23:12:43 +00005034if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005035
cristy8b350f62009-11-15 23:12:43 +00005036fi
cristy3ed852e2009-09-05 21:47:34 +00005037
5038ac_ext=c
5039ac_cpp='$CPP $CPPFLAGS'
5040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5042ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005043
cristy73bd4a52010-10-05 11:24:23 +00005044depcc="$CC" am_compiler_list=
5045
5046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5047$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005048if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005049 $as_echo_n "(cached) " >&6
5050else
5051 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5052 # We make a subdir and do the tests there. Otherwise we can end up
5053 # making bogus files that we don't know about and never remove. For
5054 # instance it was reported that on HP-UX the gcc test will end up
5055 # making a dummy file named `D' -- because `-MD' means `put the output
5056 # in D'.
5057 mkdir conftest.dir
5058 # Copy depcomp to subdir because otherwise we won't find it if we're
5059 # using a relative directory.
5060 cp "$am_depcomp" conftest.dir
5061 cd conftest.dir
5062 # We will build objects and dependencies in a subdirectory because
5063 # it helps to detect inapplicable dependency modes. For instance
5064 # both Tru64's cc and ICC support -MD to output dependencies as a
5065 # side effect of compilation, but ICC will put the dependencies in
5066 # the current directory while Tru64 will put them in the object
5067 # directory.
5068 mkdir sub
5069
5070 am_cv_CC_dependencies_compiler_type=none
5071 if test "$am_compiler_list" = ""; then
5072 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5073 fi
5074 am__universal=false
5075 case " $depcc " in #(
5076 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5077 esac
5078
5079 for depmode in $am_compiler_list; do
5080 # Setup a source with many dependencies, because some compilers
5081 # like to wrap large dependency lists on column 80 (with \), and
5082 # we should not choose a depcomp mode which is confused by this.
5083 #
5084 # We need to recreate these files for each test, as the compiler may
5085 # overwrite some of them when testing with obscure command lines.
5086 # This happens at least with the AIX C compiler.
5087 : > sub/conftest.c
5088 for i in 1 2 3 4 5 6; do
5089 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5090 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5091 # Solaris 8's {/usr,}/bin/sh.
5092 touch sub/conftst$i.h
5093 done
5094 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5095
5096 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5097 # mode. It turns out that the SunPro C++ compiler does not properly
5098 # handle `-M -o', and we need to detect this. Also, some Intel
5099 # versions had trouble with output in subdirs
5100 am__obj=sub/conftest.${OBJEXT-o}
5101 am__minus_obj="-o $am__obj"
5102 case $depmode in
5103 gcc)
5104 # This depmode causes a compiler race in universal mode.
5105 test "$am__universal" = false || continue
5106 ;;
5107 nosideeffect)
5108 # after this tag, mechanisms are not by side-effect, so they'll
5109 # only be used when explicitly requested
5110 if test "x$enable_dependency_tracking" = xyes; then
5111 continue
5112 else
5113 break
5114 fi
5115 ;;
5116 msvisualcpp | msvcmsys)
5117 # This compiler won't grok `-c -o', but also, the minuso test has
5118 # not run yet. These depmodes are late enough in the game, and
5119 # so weak that their functioning should not be impacted.
5120 am__obj=conftest.${OBJEXT-o}
5121 am__minus_obj=
5122 ;;
5123 none) break ;;
5124 esac
5125 if depmode=$depmode \
5126 source=sub/conftest.c object=$am__obj \
5127 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5128 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5129 >/dev/null 2>conftest.err &&
5130 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5131 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5132 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5133 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5134 # icc doesn't choke on unknown options, it will just issue warnings
5135 # or remarks (even with -Werror). So we grep stderr for any message
5136 # that says an option was ignored or not supported.
5137 # When given -MP, icc 7.0 and 7.1 complain thusly:
5138 # icc: Command line warning: ignoring option '-M'; no argument required
5139 # The diagnosis changed in icc 8.0:
5140 # icc: Command line remark: option '-MP' not supported
5141 if (grep 'ignoring option' conftest.err ||
5142 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5143 am_cv_CC_dependencies_compiler_type=$depmode
5144 break
5145 fi
5146 fi
5147 done
5148
5149 cd ..
5150 rm -rf conftest.dir
5151else
5152 am_cv_CC_dependencies_compiler_type=none
5153fi
5154
5155fi
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5157$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5158CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5159
5160 if
5161 test "x$enable_dependency_tracking" != xno \
5162 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5163 am__fastdepCC_TRUE=
5164 am__fastdepCC_FALSE='#'
5165else
5166 am__fastdepCC_TRUE='#'
5167 am__fastdepCC_FALSE=
5168fi
5169
5170
cristy3ed852e2009-09-05 21:47:34 +00005171
cristya0b81c32010-01-22 02:54:33 +00005172ac_ext=c
5173ac_cpp='$CPP $CPPFLAGS'
5174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5176ac_compiler_gnu=$ac_cv_c_compiler_gnu
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5178$as_echo_n "checking how to run the C preprocessor... " >&6; }
5179# On Suns, sometimes $CPP names a directory.
5180if test -n "$CPP" && test -d "$CPP"; then
5181 CPP=
5182fi
5183if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005184 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005185 $as_echo_n "(cached) " >&6
5186else
5187 # Double quotes because CPP needs to be expanded
5188 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5189 do
5190 ac_preproc_ok=false
5191for ac_c_preproc_warn_flag in '' yes
5192do
5193 # Use a header file that comes with gcc, so configuring glibc
5194 # with a fresh cross-compiler works.
5195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5196 # <limits.h> exists even on freestanding compilers.
5197 # On the NeXT, cc -E runs the code through the compiler's parser,
5198 # not just through cpp. "Syntax error" is here to catch this case.
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200/* end confdefs.h. */
5201#ifdef __STDC__
5202# include <limits.h>
5203#else
5204# include <assert.h>
5205#endif
5206 Syntax error
5207_ACEOF
5208if ac_fn_c_try_cpp "$LINENO"; then :
5209
5210else
5211 # Broken: fails on valid input.
5212continue
5213fi
cristyda16f162011-02-19 23:52:17 +00005214rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005215
5216 # OK, works on sane cases. Now check whether nonexistent headers
5217 # can be detected and how.
5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219/* end confdefs.h. */
5220#include <ac_nonexistent.h>
5221_ACEOF
5222if ac_fn_c_try_cpp "$LINENO"; then :
5223 # Broken: success on invalid input.
5224continue
5225else
5226 # Passes both tests.
5227ac_preproc_ok=:
5228break
5229fi
cristyda16f162011-02-19 23:52:17 +00005230rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005231
5232done
5233# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005234rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005235if $ac_preproc_ok; then :
5236 break
5237fi
5238
5239 done
5240 ac_cv_prog_CPP=$CPP
5241
5242fi
5243 CPP=$ac_cv_prog_CPP
5244else
5245 ac_cv_prog_CPP=$CPP
5246fi
5247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5248$as_echo "$CPP" >&6; }
5249ac_preproc_ok=false
5250for ac_c_preproc_warn_flag in '' yes
5251do
5252 # Use a header file that comes with gcc, so configuring glibc
5253 # with a fresh cross-compiler works.
5254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5255 # <limits.h> exists even on freestanding compilers.
5256 # On the NeXT, cc -E runs the code through the compiler's parser,
5257 # not just through cpp. "Syntax error" is here to catch this case.
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259/* end confdefs.h. */
5260#ifdef __STDC__
5261# include <limits.h>
5262#else
5263# include <assert.h>
5264#endif
5265 Syntax error
5266_ACEOF
5267if ac_fn_c_try_cpp "$LINENO"; then :
5268
5269else
5270 # Broken: fails on valid input.
5271continue
5272fi
cristyda16f162011-02-19 23:52:17 +00005273rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005274
5275 # OK, works on sane cases. Now check whether nonexistent headers
5276 # can be detected and how.
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278/* end confdefs.h. */
5279#include <ac_nonexistent.h>
5280_ACEOF
5281if ac_fn_c_try_cpp "$LINENO"; then :
5282 # Broken: success on invalid input.
5283continue
5284else
5285 # Passes both tests.
5286ac_preproc_ok=:
5287break
5288fi
cristyda16f162011-02-19 23:52:17 +00005289rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005290
5291done
5292# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005293rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005294if $ac_preproc_ok; then :
5295
5296else
5297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005299as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5300See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005301fi
5302
5303ac_ext=c
5304ac_cpp='$CPP $CPPFLAGS'
5305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5307ac_compiler_gnu=$ac_cv_c_compiler_gnu
5308
5309
5310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5311$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005312if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005313 $as_echo_n "(cached) " >&6
5314else
5315 if test -z "$GREP"; then
5316 ac_path_GREP_found=false
5317 # Loop through the user's path and test for each of PROGNAME-LIST
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5320do
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_prog in grep ggrep; do
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5326 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5327# Check for GNU ac_path_GREP and select it if it is found.
5328 # Check for GNU $ac_path_GREP
5329case `"$ac_path_GREP" --version 2>&1` in
5330*GNU*)
5331 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5332*)
5333 ac_count=0
5334 $as_echo_n 0123456789 >"conftest.in"
5335 while :
5336 do
5337 cat "conftest.in" "conftest.in" >"conftest.tmp"
5338 mv "conftest.tmp" "conftest.in"
5339 cp "conftest.in" "conftest.nl"
5340 $as_echo 'GREP' >> "conftest.nl"
5341 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5342 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5343 as_fn_arith $ac_count + 1 && ac_count=$as_val
5344 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5345 # Best one so far, save it but keep looking for a better one
5346 ac_cv_path_GREP="$ac_path_GREP"
5347 ac_path_GREP_max=$ac_count
5348 fi
5349 # 10*(2^10) chars as input seems more than enough
5350 test $ac_count -gt 10 && break
5351 done
5352 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5353esac
5354
5355 $ac_path_GREP_found && break 3
5356 done
5357 done
5358 done
5359IFS=$as_save_IFS
5360 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005361 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005362 fi
5363else
5364 ac_cv_path_GREP=$GREP
5365fi
5366
5367fi
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5369$as_echo "$ac_cv_path_GREP" >&6; }
5370 GREP="$ac_cv_path_GREP"
5371
5372
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5374$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005375if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005376 $as_echo_n "(cached) " >&6
5377else
5378 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5379 then ac_cv_path_EGREP="$GREP -E"
5380 else
5381 if test -z "$EGREP"; then
5382 ac_path_EGREP_found=false
5383 # Loop through the user's path and test for each of PROGNAME-LIST
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5386do
5387 IFS=$as_save_IFS
5388 test -z "$as_dir" && as_dir=.
5389 for ac_prog in egrep; do
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5392 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5393# Check for GNU ac_path_EGREP and select it if it is found.
5394 # Check for GNU $ac_path_EGREP
5395case `"$ac_path_EGREP" --version 2>&1` in
5396*GNU*)
5397 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5398*)
5399 ac_count=0
5400 $as_echo_n 0123456789 >"conftest.in"
5401 while :
5402 do
5403 cat "conftest.in" "conftest.in" >"conftest.tmp"
5404 mv "conftest.tmp" "conftest.in"
5405 cp "conftest.in" "conftest.nl"
5406 $as_echo 'EGREP' >> "conftest.nl"
5407 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5408 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5409 as_fn_arith $ac_count + 1 && ac_count=$as_val
5410 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5411 # Best one so far, save it but keep looking for a better one
5412 ac_cv_path_EGREP="$ac_path_EGREP"
5413 ac_path_EGREP_max=$ac_count
5414 fi
5415 # 10*(2^10) chars as input seems more than enough
5416 test $ac_count -gt 10 && break
5417 done
5418 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5419esac
5420
5421 $ac_path_EGREP_found && break 3
5422 done
5423 done
5424 done
5425IFS=$as_save_IFS
5426 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005427 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005428 fi
5429else
5430 ac_cv_path_EGREP=$EGREP
5431fi
5432
5433 fi
5434fi
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5436$as_echo "$ac_cv_path_EGREP" >&6; }
5437 EGREP="$ac_cv_path_EGREP"
5438
5439
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5441$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005442if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005443 $as_echo_n "(cached) " >&6
5444else
5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446/* end confdefs.h. */
5447#include <stdlib.h>
5448#include <stdarg.h>
5449#include <string.h>
5450#include <float.h>
5451
5452int
5453main ()
5454{
5455
5456 ;
5457 return 0;
5458}
5459_ACEOF
5460if ac_fn_c_try_compile "$LINENO"; then :
5461 ac_cv_header_stdc=yes
5462else
5463 ac_cv_header_stdc=no
5464fi
5465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466
5467if test $ac_cv_header_stdc = yes; then
5468 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470/* end confdefs.h. */
5471#include <string.h>
5472
5473_ACEOF
5474if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5475 $EGREP "memchr" >/dev/null 2>&1; then :
5476
5477else
5478 ac_cv_header_stdc=no
5479fi
5480rm -f conftest*
5481
5482fi
5483
5484if test $ac_cv_header_stdc = yes; then
5485 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487/* end confdefs.h. */
5488#include <stdlib.h>
5489
5490_ACEOF
5491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5492 $EGREP "free" >/dev/null 2>&1; then :
5493
5494else
5495 ac_cv_header_stdc=no
5496fi
5497rm -f conftest*
5498
5499fi
5500
5501if test $ac_cv_header_stdc = yes; then
5502 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5503 if test "$cross_compiling" = yes; then :
5504 :
5505else
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507/* end confdefs.h. */
5508#include <ctype.h>
5509#include <stdlib.h>
5510#if ((' ' & 0x0FF) == 0x020)
5511# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5512# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5513#else
5514# define ISLOWER(c) \
5515 (('a' <= (c) && (c) <= 'i') \
5516 || ('j' <= (c) && (c) <= 'r') \
5517 || ('s' <= (c) && (c) <= 'z'))
5518# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5519#endif
5520
5521#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5522int
5523main ()
5524{
5525 int i;
5526 for (i = 0; i < 256; i++)
5527 if (XOR (islower (i), ISLOWER (i))
5528 || toupper (i) != TOUPPER (i))
5529 return 2;
5530 return 0;
5531}
5532_ACEOF
5533if ac_fn_c_try_run "$LINENO"; then :
5534
5535else
5536 ac_cv_header_stdc=no
5537fi
5538rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5539 conftest.$ac_objext conftest.beam conftest.$ac_ext
5540fi
5541
5542fi
5543fi
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5545$as_echo "$ac_cv_header_stdc" >&6; }
5546if test $ac_cv_header_stdc = yes; then
5547
5548$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5549
5550fi
5551
5552# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5553for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5554 inttypes.h stdint.h unistd.h
5555do :
5556 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5557ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5558"
cristy98dddb52010-11-04 00:30:15 +00005559if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005560 cat >>confdefs.h <<_ACEOF
5561#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5562_ACEOF
5563
5564fi
5565
5566done
5567
5568
5569
5570 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 +00005571if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005572 MINIX=yes
5573else
5574 MINIX=
5575fi
5576
5577
5578 if test "$MINIX" = yes; then
5579
5580$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5581
5582
5583$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5584
5585
5586$as_echo "#define _MINIX 1" >>confdefs.h
5587
5588 fi
5589
5590
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5592$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005593if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005594 $as_echo_n "(cached) " >&6
5595else
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597/* end confdefs.h. */
5598
5599# define __EXTENSIONS__ 1
5600 $ac_includes_default
5601int
5602main ()
5603{
5604
5605 ;
5606 return 0;
5607}
5608_ACEOF
5609if ac_fn_c_try_compile "$LINENO"; then :
5610 ac_cv_safe_to_define___extensions__=yes
5611else
5612 ac_cv_safe_to_define___extensions__=no
5613fi
5614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615fi
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5617$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5618 test $ac_cv_safe_to_define___extensions__ = yes &&
5619 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5620
5621 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5622
5623 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5624
5625 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5626
5627 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5628
5629
5630
5631# Check for programs
5632ac_ext=c
5633ac_cpp='$CPP $CPPFLAGS'
5634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5636ac_compiler_gnu=$ac_cv_c_compiler_gnu
5637if test -n "$ac_tool_prefix"; then
5638 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5639set dummy ${ac_tool_prefix}gcc; ac_word=$2
5640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005642if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005643 $as_echo_n "(cached) " >&6
5644else
5645 if test -n "$CC"; then
5646 ac_cv_prog_CC="$CC" # Let the user override the test.
5647else
5648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649for as_dir in $PATH
5650do
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 break 2
5658 fi
5659done
5660 done
5661IFS=$as_save_IFS
5662
5663fi
5664fi
5665CC=$ac_cv_prog_CC
5666if test -n "$CC"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5668$as_echo "$CC" >&6; }
5669else
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671$as_echo "no" >&6; }
5672fi
5673
5674
5675fi
5676if test -z "$ac_cv_prog_CC"; then
5677 ac_ct_CC=$CC
5678 # Extract the first word of "gcc", so it can be a program name with args.
5679set dummy gcc; ac_word=$2
5680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005682if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005683 $as_echo_n "(cached) " >&6
5684else
5685 if test -n "$ac_ct_CC"; then
5686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5687else
5688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689for as_dir in $PATH
5690do
5691 IFS=$as_save_IFS
5692 test -z "$as_dir" && as_dir=.
5693 for ac_exec_ext in '' $ac_executable_extensions; do
5694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5695 ac_cv_prog_ac_ct_CC="gcc"
5696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 break 2
5698 fi
5699done
5700 done
5701IFS=$as_save_IFS
5702
5703fi
5704fi
5705ac_ct_CC=$ac_cv_prog_ac_ct_CC
5706if test -n "$ac_ct_CC"; then
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5708$as_echo "$ac_ct_CC" >&6; }
5709else
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711$as_echo "no" >&6; }
5712fi
5713
5714 if test "x$ac_ct_CC" = x; then
5715 CC=""
5716 else
5717 case $cross_compiling:$ac_tool_warned in
5718yes:)
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5721ac_tool_warned=yes ;;
5722esac
5723 CC=$ac_ct_CC
5724 fi
5725else
5726 CC="$ac_cv_prog_CC"
5727fi
5728
5729if test -z "$CC"; then
5730 if test -n "$ac_tool_prefix"; then
5731 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5732set dummy ${ac_tool_prefix}cc; ac_word=$2
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005735if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005736 $as_echo_n "(cached) " >&6
5737else
5738 if test -n "$CC"; then
5739 ac_cv_prog_CC="$CC" # Let the user override the test.
5740else
5741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742for as_dir in $PATH
5743do
5744 IFS=$as_save_IFS
5745 test -z "$as_dir" && as_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5748 ac_cv_prog_CC="${ac_tool_prefix}cc"
5749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750 break 2
5751 fi
5752done
5753 done
5754IFS=$as_save_IFS
5755
5756fi
5757fi
5758CC=$ac_cv_prog_CC
5759if test -n "$CC"; then
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5761$as_echo "$CC" >&6; }
5762else
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764$as_echo "no" >&6; }
5765fi
5766
5767
5768 fi
5769fi
5770if test -z "$CC"; then
5771 # Extract the first word of "cc", so it can be a program name with args.
5772set dummy cc; ac_word=$2
5773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5774$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005775if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005776 $as_echo_n "(cached) " >&6
5777else
5778 if test -n "$CC"; then
5779 ac_cv_prog_CC="$CC" # Let the user override the test.
5780else
5781 ac_prog_rejected=no
5782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783for as_dir in $PATH
5784do
5785 IFS=$as_save_IFS
5786 test -z "$as_dir" && as_dir=.
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5789 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5790 ac_prog_rejected=yes
5791 continue
5792 fi
5793 ac_cv_prog_CC="cc"
5794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 break 2
5796 fi
5797done
5798 done
5799IFS=$as_save_IFS
5800
5801if test $ac_prog_rejected = yes; then
5802 # We found a bogon in the path, so make sure we never use it.
5803 set dummy $ac_cv_prog_CC
5804 shift
5805 if test $# != 0; then
5806 # We chose a different compiler from the bogus one.
5807 # However, it has the same basename, so the bogon will be chosen
5808 # first if we set CC to just the basename; use the full file name.
5809 shift
5810 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5811 fi
5812fi
5813fi
5814fi
5815CC=$ac_cv_prog_CC
5816if test -n "$CC"; then
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5818$as_echo "$CC" >&6; }
5819else
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5821$as_echo "no" >&6; }
5822fi
5823
5824
5825fi
5826if test -z "$CC"; then
5827 if test -n "$ac_tool_prefix"; then
5828 for ac_prog in cl.exe
5829 do
5830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5831set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005834if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005835 $as_echo_n "(cached) " >&6
5836else
5837 if test -n "$CC"; then
5838 ac_cv_prog_CC="$CC" # Let the user override the test.
5839else
5840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841for as_dir in $PATH
5842do
5843 IFS=$as_save_IFS
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5847 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 break 2
5850 fi
5851done
5852 done
5853IFS=$as_save_IFS
5854
5855fi
5856fi
5857CC=$ac_cv_prog_CC
5858if test -n "$CC"; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5860$as_echo "$CC" >&6; }
5861else
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863$as_echo "no" >&6; }
5864fi
5865
5866
5867 test -n "$CC" && break
5868 done
5869fi
5870if test -z "$CC"; then
5871 ac_ct_CC=$CC
5872 for ac_prog in cl.exe
5873do
5874 # Extract the first word of "$ac_prog", so it can be a program name with args.
5875set dummy $ac_prog; ac_word=$2
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005878if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005879 $as_echo_n "(cached) " >&6
5880else
5881 if test -n "$ac_ct_CC"; then
5882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5883else
5884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885for as_dir in $PATH
5886do
5887 IFS=$as_save_IFS
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5891 ac_cv_prog_ac_ct_CC="$ac_prog"
5892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5893 break 2
5894 fi
5895done
5896 done
5897IFS=$as_save_IFS
5898
5899fi
5900fi
5901ac_ct_CC=$ac_cv_prog_ac_ct_CC
5902if test -n "$ac_ct_CC"; then
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5904$as_echo "$ac_ct_CC" >&6; }
5905else
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907$as_echo "no" >&6; }
5908fi
5909
5910
5911 test -n "$ac_ct_CC" && break
5912done
5913
5914 if test "x$ac_ct_CC" = x; then
5915 CC=""
5916 else
5917 case $cross_compiling:$ac_tool_warned in
5918yes:)
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5921ac_tool_warned=yes ;;
5922esac
5923 CC=$ac_ct_CC
5924 fi
5925fi
5926
5927fi
5928
5929
5930test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005932as_fn_error $? "no acceptable C compiler found in \$PATH
5933See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005934
5935# Provide some information about the compiler.
5936$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5937set X $ac_compile
5938ac_compiler=$2
5939for ac_option in --version -v -V -qversion; do
5940 { { ac_try="$ac_compiler $ac_option >&5"
5941case "(($ac_try" in
5942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5944esac
5945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5946$as_echo "$ac_try_echo"; } >&5
5947 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5948 ac_status=$?
5949 if test -s conftest.err; then
5950 sed '10a\
5951... rest of stderr output deleted ...
5952 10q' conftest.err >conftest.er1
5953 cat conftest.er1 >&5
5954 fi
5955 rm -f conftest.er1 conftest.err
5956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5957 test $ac_status = 0; }
5958done
5959
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5961$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005962if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005963 $as_echo_n "(cached) " >&6
5964else
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966/* end confdefs.h. */
5967
5968int
5969main ()
5970{
5971#ifndef __GNUC__
5972 choke me
5973#endif
5974
5975 ;
5976 return 0;
5977}
5978_ACEOF
5979if ac_fn_c_try_compile "$LINENO"; then :
5980 ac_compiler_gnu=yes
5981else
5982 ac_compiler_gnu=no
5983fi
5984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5985ac_cv_c_compiler_gnu=$ac_compiler_gnu
5986
5987fi
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5989$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5990if test $ac_compiler_gnu = yes; then
5991 GCC=yes
5992else
5993 GCC=
5994fi
5995ac_test_CFLAGS=${CFLAGS+set}
5996ac_save_CFLAGS=$CFLAGS
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5998$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005999if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006000 $as_echo_n "(cached) " >&6
6001else
6002 ac_save_c_werror_flag=$ac_c_werror_flag
6003 ac_c_werror_flag=yes
6004 ac_cv_prog_cc_g=no
6005 CFLAGS="-g"
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007/* end confdefs.h. */
6008
6009int
6010main ()
6011{
6012
6013 ;
6014 return 0;
6015}
6016_ACEOF
6017if ac_fn_c_try_compile "$LINENO"; then :
6018 ac_cv_prog_cc_g=yes
6019else
6020 CFLAGS=""
6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022/* end confdefs.h. */
6023
6024int
6025main ()
6026{
6027
6028 ;
6029 return 0;
6030}
6031_ACEOF
6032if ac_fn_c_try_compile "$LINENO"; then :
6033
6034else
6035 ac_c_werror_flag=$ac_save_c_werror_flag
6036 CFLAGS="-g"
6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038/* end confdefs.h. */
6039
6040int
6041main ()
6042{
6043
6044 ;
6045 return 0;
6046}
6047_ACEOF
6048if ac_fn_c_try_compile "$LINENO"; then :
6049 ac_cv_prog_cc_g=yes
6050fi
6051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052fi
6053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054fi
6055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056 ac_c_werror_flag=$ac_save_c_werror_flag
6057fi
6058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6059$as_echo "$ac_cv_prog_cc_g" >&6; }
6060if test "$ac_test_CFLAGS" = set; then
6061 CFLAGS=$ac_save_CFLAGS
6062elif test $ac_cv_prog_cc_g = yes; then
6063 if test "$GCC" = yes; then
6064 CFLAGS="-g -O2"
6065 else
6066 CFLAGS="-g"
6067 fi
6068else
6069 if test "$GCC" = yes; then
6070 CFLAGS="-O2"
6071 else
6072 CFLAGS=
6073 fi
6074fi
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6076$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006077if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006078 $as_echo_n "(cached) " >&6
6079else
6080 ac_cv_prog_cc_c89=no
6081ac_save_CC=$CC
6082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083/* end confdefs.h. */
6084#include <stdarg.h>
6085#include <stdio.h>
6086#include <sys/types.h>
6087#include <sys/stat.h>
6088/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6089struct buf { int x; };
6090FILE * (*rcsopen) (struct buf *, struct stat *, int);
6091static char *e (p, i)
6092 char **p;
6093 int i;
6094{
6095 return p[i];
6096}
6097static char *f (char * (*g) (char **, int), char **p, ...)
6098{
6099 char *s;
6100 va_list v;
6101 va_start (v,p);
6102 s = g (p, va_arg (v,int));
6103 va_end (v);
6104 return s;
6105}
6106
6107/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6108 function prototypes and stuff, but not '\xHH' hex character constants.
6109 These don't provoke an error unfortunately, instead are silently treated
6110 as 'x'. The following induces an error, until -std is added to get
6111 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6112 array size at least. It's necessary to write '\x00'==0 to get something
6113 that's true only with -std. */
6114int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6115
6116/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6117 inside strings and character constants. */
6118#define FOO(x) 'x'
6119int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6120
6121int test (int i, double x);
6122struct s1 {int (*f) (int a);};
6123struct s2 {int (*f) (double a);};
6124int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6125int argc;
6126char **argv;
6127int
6128main ()
6129{
6130return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6131 ;
6132 return 0;
6133}
6134_ACEOF
6135for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6136 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6137do
6138 CC="$ac_save_CC $ac_arg"
6139 if ac_fn_c_try_compile "$LINENO"; then :
6140 ac_cv_prog_cc_c89=$ac_arg
6141fi
6142rm -f core conftest.err conftest.$ac_objext
6143 test "x$ac_cv_prog_cc_c89" != "xno" && break
6144done
6145rm -f conftest.$ac_ext
6146CC=$ac_save_CC
6147
6148fi
6149# AC_CACHE_VAL
6150case "x$ac_cv_prog_cc_c89" in
6151 x)
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6153$as_echo "none needed" >&6; } ;;
6154 xno)
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6156$as_echo "unsupported" >&6; } ;;
6157 *)
6158 CC="$CC $ac_cv_prog_cc_c89"
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6160$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6161esac
6162if test "x$ac_cv_prog_cc_c89" != xno; then :
6163
6164fi
6165
6166ac_ext=c
6167ac_cpp='$CPP $CPPFLAGS'
6168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6170ac_compiler_gnu=$ac_cv_c_compiler_gnu
6171
cristy73bd4a52010-10-05 11:24:23 +00006172depcc="$CC" am_compiler_list=
6173
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6175$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006176if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006177 $as_echo_n "(cached) " >&6
6178else
6179 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6180 # We make a subdir and do the tests there. Otherwise we can end up
6181 # making bogus files that we don't know about and never remove. For
6182 # instance it was reported that on HP-UX the gcc test will end up
6183 # making a dummy file named `D' -- because `-MD' means `put the output
6184 # in D'.
6185 mkdir conftest.dir
6186 # Copy depcomp to subdir because otherwise we won't find it if we're
6187 # using a relative directory.
6188 cp "$am_depcomp" conftest.dir
6189 cd conftest.dir
6190 # We will build objects and dependencies in a subdirectory because
6191 # it helps to detect inapplicable dependency modes. For instance
6192 # both Tru64's cc and ICC support -MD to output dependencies as a
6193 # side effect of compilation, but ICC will put the dependencies in
6194 # the current directory while Tru64 will put them in the object
6195 # directory.
6196 mkdir sub
6197
6198 am_cv_CC_dependencies_compiler_type=none
6199 if test "$am_compiler_list" = ""; then
6200 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6201 fi
6202 am__universal=false
6203 case " $depcc " in #(
6204 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6205 esac
6206
6207 for depmode in $am_compiler_list; do
6208 # Setup a source with many dependencies, because some compilers
6209 # like to wrap large dependency lists on column 80 (with \), and
6210 # we should not choose a depcomp mode which is confused by this.
6211 #
6212 # We need to recreate these files for each test, as the compiler may
6213 # overwrite some of them when testing with obscure command lines.
6214 # This happens at least with the AIX C compiler.
6215 : > sub/conftest.c
6216 for i in 1 2 3 4 5 6; do
6217 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6218 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6219 # Solaris 8's {/usr,}/bin/sh.
6220 touch sub/conftst$i.h
6221 done
6222 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6223
6224 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6225 # mode. It turns out that the SunPro C++ compiler does not properly
6226 # handle `-M -o', and we need to detect this. Also, some Intel
6227 # versions had trouble with output in subdirs
6228 am__obj=sub/conftest.${OBJEXT-o}
6229 am__minus_obj="-o $am__obj"
6230 case $depmode in
6231 gcc)
6232 # This depmode causes a compiler race in universal mode.
6233 test "$am__universal" = false || continue
6234 ;;
6235 nosideeffect)
6236 # after this tag, mechanisms are not by side-effect, so they'll
6237 # only be used when explicitly requested
6238 if test "x$enable_dependency_tracking" = xyes; then
6239 continue
6240 else
6241 break
6242 fi
6243 ;;
6244 msvisualcpp | msvcmsys)
6245 # This compiler won't grok `-c -o', but also, the minuso test has
6246 # not run yet. These depmodes are late enough in the game, and
6247 # so weak that their functioning should not be impacted.
6248 am__obj=conftest.${OBJEXT-o}
6249 am__minus_obj=
6250 ;;
6251 none) break ;;
6252 esac
6253 if depmode=$depmode \
6254 source=sub/conftest.c object=$am__obj \
6255 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6256 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6257 >/dev/null 2>conftest.err &&
6258 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6259 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6260 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6261 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6262 # icc doesn't choke on unknown options, it will just issue warnings
6263 # or remarks (even with -Werror). So we grep stderr for any message
6264 # that says an option was ignored or not supported.
6265 # When given -MP, icc 7.0 and 7.1 complain thusly:
6266 # icc: Command line warning: ignoring option '-M'; no argument required
6267 # The diagnosis changed in icc 8.0:
6268 # icc: Command line remark: option '-MP' not supported
6269 if (grep 'ignoring option' conftest.err ||
6270 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6271 am_cv_CC_dependencies_compiler_type=$depmode
6272 break
6273 fi
6274 fi
6275 done
6276
6277 cd ..
6278 rm -rf conftest.dir
6279else
6280 am_cv_CC_dependencies_compiler_type=none
6281fi
6282
6283fi
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6285$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6286CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6287
6288 if
6289 test "x$enable_dependency_tracking" != xno \
6290 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6291 am__fastdepCC_TRUE=
6292 am__fastdepCC_FALSE='#'
6293else
6294 am__fastdepCC_TRUE='#'
6295 am__fastdepCC_FALSE=
6296fi
6297
6298
cristy95646052009-11-28 23:05:30 +00006299ac_ext=cpp
6300ac_cpp='$CXXCPP $CPPFLAGS'
6301ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6302ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6303ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6304if test -z "$CXX"; then
6305 if test -n "$CCC"; then
6306 CXX=$CCC
6307 else
6308 if test -n "$ac_tool_prefix"; then
6309 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6310 do
6311 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6312set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6314$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006315if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006316 $as_echo_n "(cached) " >&6
6317else
6318 if test -n "$CXX"; then
6319 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6320else
6321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322for as_dir in $PATH
6323do
6324 IFS=$as_save_IFS
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6328 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 break 2
6331 fi
6332done
6333 done
6334IFS=$as_save_IFS
6335
6336fi
6337fi
6338CXX=$ac_cv_prog_CXX
6339if test -n "$CXX"; then
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6341$as_echo "$CXX" >&6; }
6342else
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344$as_echo "no" >&6; }
6345fi
6346
6347
6348 test -n "$CXX" && break
6349 done
6350fi
6351if test -z "$CXX"; then
6352 ac_ct_CXX=$CXX
6353 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6354do
6355 # Extract the first word of "$ac_prog", so it can be a program name with args.
6356set dummy $ac_prog; ac_word=$2
6357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006359if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006360 $as_echo_n "(cached) " >&6
6361else
6362 if test -n "$ac_ct_CXX"; then
6363 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6364else
6365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366for as_dir in $PATH
6367do
6368 IFS=$as_save_IFS
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6372 ac_cv_prog_ac_ct_CXX="$ac_prog"
6373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 break 2
6375 fi
6376done
6377 done
6378IFS=$as_save_IFS
6379
6380fi
6381fi
6382ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6383if test -n "$ac_ct_CXX"; then
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6385$as_echo "$ac_ct_CXX" >&6; }
6386else
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388$as_echo "no" >&6; }
6389fi
6390
6391
6392 test -n "$ac_ct_CXX" && break
6393done
6394
6395 if test "x$ac_ct_CXX" = x; then
6396 CXX="g++"
6397 else
6398 case $cross_compiling:$ac_tool_warned in
6399yes:)
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6402ac_tool_warned=yes ;;
6403esac
6404 CXX=$ac_ct_CXX
6405 fi
6406fi
6407
6408 fi
6409fi
6410# Provide some information about the compiler.
6411$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6412set X $ac_compile
6413ac_compiler=$2
6414for ac_option in --version -v -V -qversion; do
6415 { { ac_try="$ac_compiler $ac_option >&5"
6416case "(($ac_try" in
6417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6418 *) ac_try_echo=$ac_try;;
6419esac
6420eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6421$as_echo "$ac_try_echo"; } >&5
6422 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6423 ac_status=$?
6424 if test -s conftest.err; then
6425 sed '10a\
6426... rest of stderr output deleted ...
6427 10q' conftest.err >conftest.er1
6428 cat conftest.er1 >&5
6429 fi
6430 rm -f conftest.er1 conftest.err
6431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6432 test $ac_status = 0; }
6433done
6434
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6436$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006437if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006438 $as_echo_n "(cached) " >&6
6439else
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441/* end confdefs.h. */
6442
6443int
6444main ()
6445{
6446#ifndef __GNUC__
6447 choke me
6448#endif
6449
6450 ;
6451 return 0;
6452}
6453_ACEOF
6454if ac_fn_cxx_try_compile "$LINENO"; then :
6455 ac_compiler_gnu=yes
6456else
6457 ac_compiler_gnu=no
6458fi
6459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6460ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6461
6462fi
6463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6464$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6465if test $ac_compiler_gnu = yes; then
6466 GXX=yes
6467else
6468 GXX=
6469fi
6470ac_test_CXXFLAGS=${CXXFLAGS+set}
6471ac_save_CXXFLAGS=$CXXFLAGS
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6473$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006474if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006475 $as_echo_n "(cached) " >&6
6476else
6477 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6478 ac_cxx_werror_flag=yes
6479 ac_cv_prog_cxx_g=no
6480 CXXFLAGS="-g"
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482/* end confdefs.h. */
6483
6484int
6485main ()
6486{
6487
6488 ;
6489 return 0;
6490}
6491_ACEOF
6492if ac_fn_cxx_try_compile "$LINENO"; then :
6493 ac_cv_prog_cxx_g=yes
6494else
6495 CXXFLAGS=""
6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497/* end confdefs.h. */
6498
6499int
6500main ()
6501{
6502
6503 ;
6504 return 0;
6505}
6506_ACEOF
6507if ac_fn_cxx_try_compile "$LINENO"; then :
6508
6509else
6510 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6511 CXXFLAGS="-g"
6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513/* end confdefs.h. */
6514
6515int
6516main ()
6517{
6518
6519 ;
6520 return 0;
6521}
6522_ACEOF
6523if ac_fn_cxx_try_compile "$LINENO"; then :
6524 ac_cv_prog_cxx_g=yes
6525fi
6526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6527fi
6528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6529fi
6530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6532fi
6533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6534$as_echo "$ac_cv_prog_cxx_g" >&6; }
6535if test "$ac_test_CXXFLAGS" = set; then
6536 CXXFLAGS=$ac_save_CXXFLAGS
6537elif test $ac_cv_prog_cxx_g = yes; then
6538 if test "$GXX" = yes; then
6539 CXXFLAGS="-g -O2"
6540 else
6541 CXXFLAGS="-g"
6542 fi
6543else
6544 if test "$GXX" = yes; then
6545 CXXFLAGS="-O2"
6546 else
6547 CXXFLAGS=
6548 fi
6549fi
6550ac_ext=c
6551ac_cpp='$CPP $CPPFLAGS'
6552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6554ac_compiler_gnu=$ac_cv_c_compiler_gnu
6555
cristy73bd4a52010-10-05 11:24:23 +00006556depcc="$CXX" am_compiler_list=
6557
6558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6559$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006560if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006561 $as_echo_n "(cached) " >&6
6562else
6563 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6564 # We make a subdir and do the tests there. Otherwise we can end up
6565 # making bogus files that we don't know about and never remove. For
6566 # instance it was reported that on HP-UX the gcc test will end up
6567 # making a dummy file named `D' -- because `-MD' means `put the output
6568 # in D'.
6569 mkdir conftest.dir
6570 # Copy depcomp to subdir because otherwise we won't find it if we're
6571 # using a relative directory.
6572 cp "$am_depcomp" conftest.dir
6573 cd conftest.dir
6574 # We will build objects and dependencies in a subdirectory because
6575 # it helps to detect inapplicable dependency modes. For instance
6576 # both Tru64's cc and ICC support -MD to output dependencies as a
6577 # side effect of compilation, but ICC will put the dependencies in
6578 # the current directory while Tru64 will put them in the object
6579 # directory.
6580 mkdir sub
6581
6582 am_cv_CXX_dependencies_compiler_type=none
6583 if test "$am_compiler_list" = ""; then
6584 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6585 fi
6586 am__universal=false
6587 case " $depcc " in #(
6588 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6589 esac
6590
6591 for depmode in $am_compiler_list; do
6592 # Setup a source with many dependencies, because some compilers
6593 # like to wrap large dependency lists on column 80 (with \), and
6594 # we should not choose a depcomp mode which is confused by this.
6595 #
6596 # We need to recreate these files for each test, as the compiler may
6597 # overwrite some of them when testing with obscure command lines.
6598 # This happens at least with the AIX C compiler.
6599 : > sub/conftest.c
6600 for i in 1 2 3 4 5 6; do
6601 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6602 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6603 # Solaris 8's {/usr,}/bin/sh.
6604 touch sub/conftst$i.h
6605 done
6606 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6607
6608 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6609 # mode. It turns out that the SunPro C++ compiler does not properly
6610 # handle `-M -o', and we need to detect this. Also, some Intel
6611 # versions had trouble with output in subdirs
6612 am__obj=sub/conftest.${OBJEXT-o}
6613 am__minus_obj="-o $am__obj"
6614 case $depmode in
6615 gcc)
6616 # This depmode causes a compiler race in universal mode.
6617 test "$am__universal" = false || continue
6618 ;;
6619 nosideeffect)
6620 # after this tag, mechanisms are not by side-effect, so they'll
6621 # only be used when explicitly requested
6622 if test "x$enable_dependency_tracking" = xyes; then
6623 continue
6624 else
6625 break
6626 fi
6627 ;;
6628 msvisualcpp | msvcmsys)
6629 # This compiler won't grok `-c -o', but also, the minuso test has
6630 # not run yet. These depmodes are late enough in the game, and
6631 # so weak that their functioning should not be impacted.
6632 am__obj=conftest.${OBJEXT-o}
6633 am__minus_obj=
6634 ;;
6635 none) break ;;
6636 esac
6637 if depmode=$depmode \
6638 source=sub/conftest.c object=$am__obj \
6639 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6640 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6641 >/dev/null 2>conftest.err &&
6642 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6643 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6644 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6645 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6646 # icc doesn't choke on unknown options, it will just issue warnings
6647 # or remarks (even with -Werror). So we grep stderr for any message
6648 # that says an option was ignored or not supported.
6649 # When given -MP, icc 7.0 and 7.1 complain thusly:
6650 # icc: Command line warning: ignoring option '-M'; no argument required
6651 # The diagnosis changed in icc 8.0:
6652 # icc: Command line remark: option '-MP' not supported
6653 if (grep 'ignoring option' conftest.err ||
6654 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6655 am_cv_CXX_dependencies_compiler_type=$depmode
6656 break
6657 fi
6658 fi
6659 done
6660
6661 cd ..
6662 rm -rf conftest.dir
6663else
6664 am_cv_CXX_dependencies_compiler_type=none
6665fi
6666
6667fi
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6669$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6670CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6671
6672 if
6673 test "x$enable_dependency_tracking" != xno \
6674 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6675 am__fastdepCXX_TRUE=
6676 am__fastdepCXX_FALSE='#'
6677else
6678 am__fastdepCXX_TRUE='#'
6679 am__fastdepCXX_FALSE=
6680fi
6681
6682
cristy8b350f62009-11-15 23:12:43 +00006683 case $ac_cv_prog_cc_stdc in #(
6684 no) :
6685 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6686 *) :
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006688$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006689if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006690 $as_echo_n "(cached) " >&6
6691else
6692 ac_cv_prog_cc_c99=no
6693ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006695/* end confdefs.h. */
6696#include <stdarg.h>
6697#include <stdbool.h>
6698#include <stdlib.h>
6699#include <wchar.h>
6700#include <stdio.h>
6701
6702// Check varargs macros. These examples are taken from C99 6.10.3.5.
6703#define debug(...) fprintf (stderr, __VA_ARGS__)
6704#define showlist(...) puts (#__VA_ARGS__)
6705#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6706static void
6707test_varargs_macros (void)
6708{
6709 int x = 1234;
6710 int y = 5678;
6711 debug ("Flag");
6712 debug ("X = %d\n", x);
6713 showlist (The first, second, and third items.);
6714 report (x>y, "x is %d but y is %d", x, y);
6715}
6716
6717// Check long long types.
6718#define BIG64 18446744073709551615ull
6719#define BIG32 4294967295ul
6720#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6721#if !BIG_OK
6722 your preprocessor is broken;
6723#endif
6724#if BIG_OK
6725#else
6726 your preprocessor is broken;
6727#endif
6728static long long int bignum = -9223372036854775807LL;
6729static unsigned long long int ubignum = BIG64;
6730
6731struct incomplete_array
6732{
6733 int datasize;
6734 double data[];
6735};
6736
6737struct named_init {
6738 int number;
6739 const wchar_t *name;
6740 double average;
6741};
6742
6743typedef const char *ccp;
6744
6745static inline int
6746test_restrict (ccp restrict text)
6747{
6748 // See if C++-style comments work.
6749 // Iterate through items via the restricted pointer.
6750 // Also check for declarations in for loops.
6751 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6752 continue;
6753 return 0;
6754}
6755
6756// Check varargs and va_copy.
6757static void
6758test_varargs (const char *format, ...)
6759{
6760 va_list args;
6761 va_start (args, format);
6762 va_list args_copy;
6763 va_copy (args_copy, args);
6764
6765 const char *str;
6766 int number;
6767 float fnumber;
6768
6769 while (*format)
6770 {
6771 switch (*format++)
6772 {
6773 case 's': // string
6774 str = va_arg (args_copy, const char *);
6775 break;
6776 case 'd': // int
6777 number = va_arg (args_copy, int);
6778 break;
6779 case 'f': // float
6780 fnumber = va_arg (args_copy, double);
6781 break;
6782 default:
6783 break;
6784 }
6785 }
6786 va_end (args_copy);
6787 va_end (args);
6788}
6789
6790int
6791main ()
6792{
6793
6794 // Check bool.
6795 _Bool success = false;
6796
6797 // Check restrict.
6798 if (test_restrict ("String literal") == 0)
6799 success = true;
6800 char *restrict newvar = "Another string";
6801
6802 // Check varargs.
6803 test_varargs ("s, d' f .", "string", 65, 34.234);
6804 test_varargs_macros ();
6805
6806 // Check flexible array members.
6807 struct incomplete_array *ia =
6808 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6809 ia->datasize = 10;
6810 for (int i = 0; i < ia->datasize; ++i)
6811 ia->data[i] = i * 1.234;
6812
6813 // Check named initializers.
6814 struct named_init ni = {
6815 .number = 34,
6816 .name = L"Test wide string",
6817 .average = 543.34343,
6818 };
6819
6820 ni.number = 58;
6821
6822 int dynamic_array[ni.number];
6823 dynamic_array[ni.number - 1] = 543;
6824
6825 // work around unused variable warnings
6826 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6827 || dynamic_array[ni.number - 1] != 543);
6828
6829 ;
6830 return 0;
6831}
6832_ACEOF
6833for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6834do
6835 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006836 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006837 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006838fi
cristy3ed852e2009-09-05 21:47:34 +00006839rm -f core conftest.err conftest.$ac_objext
6840 test "x$ac_cv_prog_cc_c99" != "xno" && break
6841done
6842rm -f conftest.$ac_ext
6843CC=$ac_save_CC
6844
6845fi
6846# AC_CACHE_VAL
6847case "x$ac_cv_prog_cc_c99" in
6848 x)
cristy8b350f62009-11-15 23:12:43 +00006849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006850$as_echo "none needed" >&6; } ;;
6851 xno)
cristy8b350f62009-11-15 23:12:43 +00006852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006853$as_echo "unsupported" >&6; } ;;
6854 *)
6855 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006857$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6858esac
cristy8b350f62009-11-15 23:12:43 +00006859if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006860 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6861else
cristy8b350f62009-11-15 23:12:43 +00006862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006863$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006864if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006865 $as_echo_n "(cached) " >&6
6866else
6867 ac_cv_prog_cc_c89=no
6868ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006870/* end confdefs.h. */
6871#include <stdarg.h>
6872#include <stdio.h>
6873#include <sys/types.h>
6874#include <sys/stat.h>
6875/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6876struct buf { int x; };
6877FILE * (*rcsopen) (struct buf *, struct stat *, int);
6878static char *e (p, i)
6879 char **p;
6880 int i;
6881{
6882 return p[i];
6883}
6884static char *f (char * (*g) (char **, int), char **p, ...)
6885{
6886 char *s;
6887 va_list v;
6888 va_start (v,p);
6889 s = g (p, va_arg (v,int));
6890 va_end (v);
6891 return s;
6892}
6893
6894/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6895 function prototypes and stuff, but not '\xHH' hex character constants.
6896 These don't provoke an error unfortunately, instead are silently treated
6897 as 'x'. The following induces an error, until -std is added to get
6898 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6899 array size at least. It's necessary to write '\x00'==0 to get something
6900 that's true only with -std. */
6901int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6902
6903/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6904 inside strings and character constants. */
6905#define FOO(x) 'x'
6906int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6907
6908int test (int i, double x);
6909struct s1 {int (*f) (int a);};
6910struct s2 {int (*f) (double a);};
6911int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6912int argc;
6913char **argv;
6914int
6915main ()
6916{
6917return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6918 ;
6919 return 0;
6920}
6921_ACEOF
6922for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6923 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6924do
6925 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006926 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006927 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006928fi
cristy3ed852e2009-09-05 21:47:34 +00006929rm -f core conftest.err conftest.$ac_objext
6930 test "x$ac_cv_prog_cc_c89" != "xno" && break
6931done
6932rm -f conftest.$ac_ext
6933CC=$ac_save_CC
6934
6935fi
6936# AC_CACHE_VAL
6937case "x$ac_cv_prog_cc_c89" in
6938 x)
cristy8b350f62009-11-15 23:12:43 +00006939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006940$as_echo "none needed" >&6; } ;;
6941 xno)
cristy8b350f62009-11-15 23:12:43 +00006942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006943$as_echo "unsupported" >&6; } ;;
6944 *)
6945 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006947$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6948esac
cristy8b350f62009-11-15 23:12:43 +00006949if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006950 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6951else
6952 ac_cv_prog_cc_stdc=no
6953fi
6954
cristy3ed852e2009-09-05 21:47:34 +00006955fi
cristy3ed852e2009-09-05 21:47:34 +00006956 ;;
6957esac
cristy8b350f62009-11-15 23:12:43 +00006958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006959$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006960 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006961 $as_echo_n "(cached) " >&6
6962fi
6963
cristy8b350f62009-11-15 23:12:43 +00006964 case $ac_cv_prog_cc_stdc in #(
6965 no) :
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6967$as_echo "unsupported" >&6; } ;; #(
6968 '') :
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6970$as_echo "none needed" >&6; } ;; #(
6971 *) :
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006973$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6974esac
6975
cristy3ed852e2009-09-05 21:47:34 +00006976ac_ext=c
6977ac_cpp='$CPP $CPPFLAGS'
6978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6980ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006982$as_echo_n "checking how to run the C preprocessor... " >&6; }
6983# On Suns, sometimes $CPP names a directory.
6984if test -n "$CPP" && test -d "$CPP"; then
6985 CPP=
6986fi
6987if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00006988 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006989 $as_echo_n "(cached) " >&6
6990else
6991 # Double quotes because CPP needs to be expanded
6992 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6993 do
6994 ac_preproc_ok=false
6995for ac_c_preproc_warn_flag in '' yes
6996do
6997 # Use a header file that comes with gcc, so configuring glibc
6998 # with a fresh cross-compiler works.
6999 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7000 # <limits.h> exists even on freestanding compilers.
7001 # On the NeXT, cc -E runs the code through the compiler's parser,
7002 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007004/* end confdefs.h. */
7005#ifdef __STDC__
7006# include <limits.h>
7007#else
7008# include <assert.h>
7009#endif
7010 Syntax error
7011_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007012if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007013
cristy8b350f62009-11-15 23:12:43 +00007014else
cristy3ed852e2009-09-05 21:47:34 +00007015 # Broken: fails on valid input.
7016continue
7017fi
cristyda16f162011-02-19 23:52:17 +00007018rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007019
7020 # OK, works on sane cases. Now check whether nonexistent headers
7021 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007023/* end confdefs.h. */
7024#include <ac_nonexistent.h>
7025_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007026if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007027 # Broken: success on invalid input.
7028continue
7029else
cristy3ed852e2009-09-05 21:47:34 +00007030 # Passes both tests.
7031ac_preproc_ok=:
7032break
7033fi
cristyda16f162011-02-19 23:52:17 +00007034rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007035
7036done
7037# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007038rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007039if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007040 break
7041fi
7042
7043 done
7044 ac_cv_prog_CPP=$CPP
7045
7046fi
7047 CPP=$ac_cv_prog_CPP
7048else
7049 ac_cv_prog_CPP=$CPP
7050fi
cristy8b350f62009-11-15 23:12:43 +00007051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007052$as_echo "$CPP" >&6; }
7053ac_preproc_ok=false
7054for ac_c_preproc_warn_flag in '' yes
7055do
7056 # Use a header file that comes with gcc, so configuring glibc
7057 # with a fresh cross-compiler works.
7058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7059 # <limits.h> exists even on freestanding compilers.
7060 # On the NeXT, cc -E runs the code through the compiler's parser,
7061 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007063/* end confdefs.h. */
7064#ifdef __STDC__
7065# include <limits.h>
7066#else
7067# include <assert.h>
7068#endif
7069 Syntax error
7070_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007071if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007072
cristy8b350f62009-11-15 23:12:43 +00007073else
cristy3ed852e2009-09-05 21:47:34 +00007074 # Broken: fails on valid input.
7075continue
7076fi
cristyda16f162011-02-19 23:52:17 +00007077rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007078
7079 # OK, works on sane cases. Now check whether nonexistent headers
7080 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007082/* end confdefs.h. */
7083#include <ac_nonexistent.h>
7084_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007085if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007086 # Broken: success on invalid input.
7087continue
7088else
cristy3ed852e2009-09-05 21:47:34 +00007089 # Passes both tests.
7090ac_preproc_ok=:
7091break
7092fi
cristyda16f162011-02-19 23:52:17 +00007093rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007094
7095done
7096# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007097rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007098if $ac_preproc_ok; then :
7099
cristy3ed852e2009-09-05 21:47:34 +00007100else
cristy8b350f62009-11-15 23:12:43 +00007101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007103as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7104See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007105fi
7106
7107ac_ext=c
7108ac_cpp='$CPP $CPPFLAGS'
7109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7111ac_compiler_gnu=$ac_cv_c_compiler_gnu
7112
cristy73bd4a52010-10-05 11:24:23 +00007113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7114$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007115if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007116 $as_echo_n "(cached) " >&6
7117else
7118 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7119 for ac_i in 1 2 3 4 5 6 7; do
7120 ac_script="$ac_script$as_nl$ac_script"
7121 done
7122 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7123 { ac_script=; unset ac_script;}
7124 if test -z "$SED"; then
7125 ac_path_SED_found=false
7126 # Loop through the user's path and test for each of PROGNAME-LIST
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128for as_dir in $PATH
7129do
7130 IFS=$as_save_IFS
7131 test -z "$as_dir" && as_dir=.
7132 for ac_prog in sed gsed; do
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7135 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7136# Check for GNU ac_path_SED and select it if it is found.
7137 # Check for GNU $ac_path_SED
7138case `"$ac_path_SED" --version 2>&1` in
7139*GNU*)
7140 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7141*)
7142 ac_count=0
7143 $as_echo_n 0123456789 >"conftest.in"
7144 while :
7145 do
7146 cat "conftest.in" "conftest.in" >"conftest.tmp"
7147 mv "conftest.tmp" "conftest.in"
7148 cp "conftest.in" "conftest.nl"
7149 $as_echo '' >> "conftest.nl"
7150 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7151 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7152 as_fn_arith $ac_count + 1 && ac_count=$as_val
7153 if test $ac_count -gt ${ac_path_SED_max-0}; then
7154 # Best one so far, save it but keep looking for a better one
7155 ac_cv_path_SED="$ac_path_SED"
7156 ac_path_SED_max=$ac_count
7157 fi
7158 # 10*(2^10) chars as input seems more than enough
7159 test $ac_count -gt 10 && break
7160 done
7161 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7162esac
7163
7164 $ac_path_SED_found && break 3
7165 done
7166 done
7167 done
7168IFS=$as_save_IFS
7169 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007170 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007171 fi
7172else
7173 ac_cv_path_SED=$SED
7174fi
7175
7176fi
7177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7178$as_echo "$ac_cv_path_SED" >&6; }
7179 SED="$ac_cv_path_SED"
7180 rm -f conftest.sed
7181
7182test -z "$SED" && SED=sed
7183Xsed="$SED -e 1s/^X//"
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7196$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007197if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007198 $as_echo_n "(cached) " >&6
7199else
7200 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7201 then ac_cv_path_FGREP="$GREP -F"
7202 else
7203 if test -z "$FGREP"; then
7204 ac_path_FGREP_found=false
7205 # Loop through the user's path and test for each of PROGNAME-LIST
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7208do
7209 IFS=$as_save_IFS
7210 test -z "$as_dir" && as_dir=.
7211 for ac_prog in fgrep; do
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7214 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7215# Check for GNU ac_path_FGREP and select it if it is found.
7216 # Check for GNU $ac_path_FGREP
7217case `"$ac_path_FGREP" --version 2>&1` in
7218*GNU*)
7219 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7220*)
7221 ac_count=0
7222 $as_echo_n 0123456789 >"conftest.in"
7223 while :
7224 do
7225 cat "conftest.in" "conftest.in" >"conftest.tmp"
7226 mv "conftest.tmp" "conftest.in"
7227 cp "conftest.in" "conftest.nl"
7228 $as_echo 'FGREP' >> "conftest.nl"
7229 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7231 as_fn_arith $ac_count + 1 && ac_count=$as_val
7232 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7233 # Best one so far, save it but keep looking for a better one
7234 ac_cv_path_FGREP="$ac_path_FGREP"
7235 ac_path_FGREP_max=$ac_count
7236 fi
7237 # 10*(2^10) chars as input seems more than enough
7238 test $ac_count -gt 10 && break
7239 done
7240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7241esac
7242
7243 $ac_path_FGREP_found && break 3
7244 done
7245 done
7246 done
7247IFS=$as_save_IFS
7248 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007249 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007250 fi
7251else
7252 ac_cv_path_FGREP=$FGREP
7253fi
7254
7255 fi
7256fi
7257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7258$as_echo "$ac_cv_path_FGREP" >&6; }
7259 FGREP="$ac_cv_path_FGREP"
7260
7261
7262test -z "$GREP" && GREP=grep
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
cristy0c60a692010-11-04 01:09:47 +00007280ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7281ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7282ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7283
7284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7285$as_echo_n "checking how to print strings... " >&6; }
7286# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007287if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007288 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7289 ECHO='print -r --'
7290elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7291 ECHO='printf %s\n'
7292else
7293 # Use this function as a fallback that always works.
7294 func_fallback_echo ()
7295 {
7296 eval 'cat <<_LTECHO_EOF
7297$1
7298_LTECHO_EOF'
7299 }
7300 ECHO='func_fallback_echo'
7301fi
7302
7303# func_echo_all arg...
7304# Invoke $ECHO with all args, space-separated.
7305func_echo_all ()
7306{
7307 $ECHO ""
7308}
7309
7310case "$ECHO" in
7311 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7312$as_echo "printf" >&6; } ;;
7313 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7314$as_echo "print -r" >&6; } ;;
7315 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7316$as_echo "cat" >&6; } ;;
7317esac
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
cristy73bd4a52010-10-05 11:24:23 +00007332
7333
7334# Check whether --with-gnu-ld was given.
7335if test "${with_gnu_ld+set}" = set; then :
7336 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7337else
7338 with_gnu_ld=no
7339fi
7340
7341ac_prog=ld
7342if test "$GCC" = yes; then
7343 # Check if gcc -print-prog-name=ld gives a path.
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7345$as_echo_n "checking for ld used by $CC... " >&6; }
7346 case $host in
7347 *-*-mingw*)
7348 # gcc leaves a trailing carriage return which upsets mingw
7349 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7350 *)
7351 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7352 esac
7353 case $ac_prog in
7354 # Accept absolute paths.
7355 [\\/]* | ?:[\\/]*)
7356 re_direlt='/[^/][^/]*/\.\./'
7357 # Canonicalize the pathname of ld
7358 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7359 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7360 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7361 done
7362 test -z "$LD" && LD="$ac_prog"
7363 ;;
7364 "")
7365 # If it fails, then pretend we aren't using GCC.
7366 ac_prog=ld
7367 ;;
7368 *)
7369 # If it is relative, then search for the first ld in PATH.
7370 with_gnu_ld=unknown
7371 ;;
7372 esac
7373elif test "$with_gnu_ld" = yes; then
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7375$as_echo_n "checking for GNU ld... " >&6; }
7376else
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7378$as_echo_n "checking for non-GNU ld... " >&6; }
7379fi
cristyda16f162011-02-19 23:52:17 +00007380if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007381 $as_echo_n "(cached) " >&6
7382else
7383 if test -z "$LD"; then
7384 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7385 for ac_dir in $PATH; do
7386 IFS="$lt_save_ifs"
7387 test -z "$ac_dir" && ac_dir=.
7388 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7389 lt_cv_path_LD="$ac_dir/$ac_prog"
7390 # Check to see if the program is GNU ld. I'd rather use --version,
7391 # but apparently some variants of GNU ld only accept -v.
7392 # Break only if it was the GNU/non-GNU ld that we prefer.
7393 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7394 *GNU* | *'with BFD'*)
7395 test "$with_gnu_ld" != no && break
7396 ;;
7397 *)
7398 test "$with_gnu_ld" != yes && break
7399 ;;
7400 esac
7401 fi
7402 done
7403 IFS="$lt_save_ifs"
7404else
7405 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7406fi
7407fi
7408
7409LD="$lt_cv_path_LD"
7410if test -n "$LD"; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7412$as_echo "$LD" >&6; }
7413else
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415$as_echo "no" >&6; }
7416fi
cristy98dddb52010-11-04 00:30:15 +00007417test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7419$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007420if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007421 $as_echo_n "(cached) " >&6
7422else
7423 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7424case `$LD -v 2>&1 </dev/null` in
7425*GNU* | *'with BFD'*)
7426 lt_cv_prog_gnu_ld=yes
7427 ;;
7428*)
7429 lt_cv_prog_gnu_ld=no
7430 ;;
7431esac
7432fi
7433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7434$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7435with_gnu_ld=$lt_cv_prog_gnu_ld
7436
7437
7438
7439
7440
7441
7442
7443
7444
cristy3ed852e2009-09-05 21:47:34 +00007445
cristy837d6dc2010-02-27 01:16:57 +00007446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7447$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007448if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007449 $as_echo_n "(cached) " >&6
7450else
7451 ac_cv_prog_cc_c99=no
7452ac_save_CC=$CC
7453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454/* end confdefs.h. */
7455#include <stdarg.h>
7456#include <stdbool.h>
7457#include <stdlib.h>
7458#include <wchar.h>
7459#include <stdio.h>
7460
7461// Check varargs macros. These examples are taken from C99 6.10.3.5.
7462#define debug(...) fprintf (stderr, __VA_ARGS__)
7463#define showlist(...) puts (#__VA_ARGS__)
7464#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7465static void
7466test_varargs_macros (void)
7467{
7468 int x = 1234;
7469 int y = 5678;
7470 debug ("Flag");
7471 debug ("X = %d\n", x);
7472 showlist (The first, second, and third items.);
7473 report (x>y, "x is %d but y is %d", x, y);
7474}
7475
7476// Check long long types.
7477#define BIG64 18446744073709551615ull
7478#define BIG32 4294967295ul
7479#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7480#if !BIG_OK
7481 your preprocessor is broken;
7482#endif
7483#if BIG_OK
7484#else
7485 your preprocessor is broken;
7486#endif
7487static long long int bignum = -9223372036854775807LL;
7488static unsigned long long int ubignum = BIG64;
7489
7490struct incomplete_array
7491{
7492 int datasize;
7493 double data[];
7494};
7495
7496struct named_init {
7497 int number;
7498 const wchar_t *name;
7499 double average;
7500};
7501
7502typedef const char *ccp;
7503
7504static inline int
7505test_restrict (ccp restrict text)
7506{
7507 // See if C++-style comments work.
7508 // Iterate through items via the restricted pointer.
7509 // Also check for declarations in for loops.
7510 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7511 continue;
7512 return 0;
7513}
7514
7515// Check varargs and va_copy.
7516static void
7517test_varargs (const char *format, ...)
7518{
7519 va_list args;
7520 va_start (args, format);
7521 va_list args_copy;
7522 va_copy (args_copy, args);
7523
7524 const char *str;
7525 int number;
7526 float fnumber;
7527
7528 while (*format)
7529 {
7530 switch (*format++)
7531 {
7532 case 's': // string
7533 str = va_arg (args_copy, const char *);
7534 break;
7535 case 'd': // int
7536 number = va_arg (args_copy, int);
7537 break;
7538 case 'f': // float
7539 fnumber = va_arg (args_copy, double);
7540 break;
7541 default:
7542 break;
7543 }
7544 }
7545 va_end (args_copy);
7546 va_end (args);
7547}
7548
7549int
7550main ()
7551{
7552
7553 // Check bool.
7554 _Bool success = false;
7555
7556 // Check restrict.
7557 if (test_restrict ("String literal") == 0)
7558 success = true;
7559 char *restrict newvar = "Another string";
7560
7561 // Check varargs.
7562 test_varargs ("s, d' f .", "string", 65, 34.234);
7563 test_varargs_macros ();
7564
7565 // Check flexible array members.
7566 struct incomplete_array *ia =
7567 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7568 ia->datasize = 10;
7569 for (int i = 0; i < ia->datasize; ++i)
7570 ia->data[i] = i * 1.234;
7571
7572 // Check named initializers.
7573 struct named_init ni = {
7574 .number = 34,
7575 .name = L"Test wide string",
7576 .average = 543.34343,
7577 };
7578
7579 ni.number = 58;
7580
7581 int dynamic_array[ni.number];
7582 dynamic_array[ni.number - 1] = 543;
7583
7584 // work around unused variable warnings
7585 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7586 || dynamic_array[ni.number - 1] != 543);
7587
7588 ;
7589 return 0;
7590}
7591_ACEOF
7592for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7593do
7594 CC="$ac_save_CC $ac_arg"
7595 if ac_fn_c_try_compile "$LINENO"; then :
7596 ac_cv_prog_cc_c99=$ac_arg
7597fi
7598rm -f core conftest.err conftest.$ac_objext
7599 test "x$ac_cv_prog_cc_c99" != "xno" && break
7600done
7601rm -f conftest.$ac_ext
7602CC=$ac_save_CC
7603
7604fi
7605# AC_CACHE_VAL
7606case "x$ac_cv_prog_cc_c99" in
7607 x)
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7609$as_echo "none needed" >&6; } ;;
7610 xno)
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7612$as_echo "unsupported" >&6; } ;;
7613 *)
7614 CC="$CC $ac_cv_prog_cc_c99"
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7616$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7617esac
7618if test "x$ac_cv_prog_cc_c99" != xno; then :
7619
7620fi
7621
7622
cristy73bd4a52010-10-05 11:24:23 +00007623if test "x$CC" != xcc; then
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7625$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7626else
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7628$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7629fi
7630set dummy $CC; ac_cc=`$as_echo "$2" |
7631 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007632if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007633 $as_echo_n "(cached) " >&6
7634else
cristy73bd4a52010-10-05 11:24:23 +00007635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636/* end confdefs.h. */
7637
7638int
7639main ()
7640{
7641
7642 ;
7643 return 0;
7644}
7645_ACEOF
7646# Make sure it works both with $CC and with simple cc.
7647# We do the test twice because some compilers refuse to overwrite an
7648# existing .o file with -o, though they will create one.
7649ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7650rm -f conftest2.*
7651if { { case "(($ac_try" in
7652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653 *) ac_try_echo=$ac_try;;
7654esac
7655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7656$as_echo "$ac_try_echo"; } >&5
7657 (eval "$ac_try") 2>&5
7658 ac_status=$?
7659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7660 test $ac_status = 0; } &&
7661 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663 *) ac_try_echo=$ac_try;;
7664esac
7665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7666$as_echo "$ac_try_echo"; } >&5
7667 (eval "$ac_try") 2>&5
7668 ac_status=$?
7669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7670 test $ac_status = 0; };
7671then
7672 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7673 if test "x$CC" != xcc; then
7674 # Test first that cc exists at all.
7675 if { ac_try='cc -c conftest.$ac_ext >&5'
7676 { { case "(($ac_try" in
7677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7678 *) ac_try_echo=$ac_try;;
7679esac
7680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7681$as_echo "$ac_try_echo"; } >&5
7682 (eval "$ac_try") 2>&5
7683 ac_status=$?
7684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7685 test $ac_status = 0; }; }; then
7686 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7687 rm -f conftest2.*
7688 if { { case "(($ac_try" in
7689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7690 *) ac_try_echo=$ac_try;;
7691esac
7692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7693$as_echo "$ac_try_echo"; } >&5
7694 (eval "$ac_try") 2>&5
7695 ac_status=$?
7696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7697 test $ac_status = 0; } &&
7698 test -f conftest2.$ac_objext && { { 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 then
7709 # cc works too.
7710 :
7711 else
7712 # cc exists but doesn't like -o.
7713 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7714 fi
7715 fi
7716 fi
7717else
7718 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7719fi
7720rm -f core conftest*
7721
7722fi
7723if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7725$as_echo "yes" >&6; }
7726else
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728$as_echo "no" >&6; }
7729
7730$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7731
7732fi
7733
7734# FIXME: we rely on the cache variable name because
7735# there is no other way.
7736set dummy $CC
7737am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7738eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7739if test "$am_t" != yes; then
7740 # Losing compiler, so override with the script.
7741 # FIXME: It is wrong to rewrite CC.
7742 # But if we don't then we get into trouble of one sort or another.
7743 # A longer-term fix would be to have automake use am__CC in this case,
7744 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7745 CC="$am_aux_dir/compile $CC"
7746fi
7747
7748
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7750$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007751if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007752 $as_echo_n "(cached) " >&6
7753else
7754 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007755 ac_ext=c
7756ac_cpp='$CPP $CPPFLAGS'
7757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7759ac_compiler_gnu=$ac_cv_c_compiler_gnu
7760
7761 ac_save_CFLAGS="$CFLAGS"
7762for 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" #
7763do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765/* end confdefs.h. */
7766
7767int
7768main ()
7769{
cristy24fc1fe2010-10-23 21:13:01 +00007770
cristy73bd4a52010-10-05 11:24:23 +00007771 ;
7772 return 0;
7773}
7774_ACEOF
7775if ac_fn_c_try_compile "$LINENO"; then :
7776 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7777fi
7778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779done
7780 CFLAGS="$ac_save_CFLAGS"
7781 ac_ext=c
7782ac_cpp='$CPP $CPPFLAGS'
7783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7785ac_compiler_gnu=$ac_cv_c_compiler_gnu
7786
7787
7788fi
7789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7790$as_echo "$ac_cv_cflags_warn_all" >&6; }
7791case ".$ac_cv_cflags_warn_all" in
7792 .ok|.ok,*) ;;
7793 .|.no|.no,*)
7794 ;;
7795 *)
7796 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7797 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7798 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7799 ac_status=$?
7800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7801 test $ac_status = 0; }
7802 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7803 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7804 ac_status=$?
7805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7806 test $ac_status = 0; }
7807 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7808 fi
7809 ;;
nicolas6237c462010-10-05 06:11:49 +00007810esac
cristy3ed852e2009-09-05 21:47:34 +00007811
cristya0b81c32010-01-22 02:54:33 +00007812
7813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7814$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7815set x ${MAKE-make}
7816ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007817if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007818 $as_echo_n "(cached) " >&6
7819else
7820 cat >conftest.make <<\_ACEOF
7821SHELL = /bin/sh
7822all:
7823 @echo '@@@%%%=$(MAKE)=@@@%%%'
7824_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007825# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007826case `${MAKE-make} -f conftest.make 2>/dev/null` in
7827 *@@@%%%=?*=@@@%%%*)
7828 eval ac_cv_prog_make_${ac_make}_set=yes;;
7829 *)
7830 eval ac_cv_prog_make_${ac_make}_set=no;;
7831esac
7832rm -f conftest.make
7833fi
7834if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7836$as_echo "yes" >&6; }
7837 SET_MAKE=
7838else
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840$as_echo "no" >&6; }
7841 SET_MAKE="MAKE=${MAKE-make}"
7842fi
7843
cristy8b350f62009-11-15 23:12:43 +00007844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007845$as_echo_n "checking whether ln -s works... " >&6; }
7846LN_S=$as_ln_s
7847if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007849$as_echo "yes" >&6; }
7850else
cristy8b350f62009-11-15 23:12:43 +00007851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007852$as_echo "no, using $LN_S" >&6; }
7853fi
7854
cristy73bd4a52010-10-05 11:24:23 +00007855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7856$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7857
7858# Check whether --with-dmalloc was given.
7859if test "${with_dmalloc+set}" = set; then :
7860 withval=$with_dmalloc; if test "$withval" = yes; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7862$as_echo "yes" >&6; }
7863
7864$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7865
7866 LIBS="$LIBS -ldmalloc"
7867 LDFLAGS="$LDFLAGS -g"
7868else
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870$as_echo "no" >&6; }
7871fi
7872else
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874$as_echo "no" >&6; }
7875fi
7876
7877
7878
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7880$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007881if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007882 $as_echo_n "(cached) " >&6
7883else
7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885/* end confdefs.h. */
7886#include <stdlib.h>
7887 static void foo(void) __attribute__ ((unused));
7888 static void
7889 foo(void) {
7890 exit(1);
7891 }
7892
7893int
7894main ()
7895{
7896
7897 ;
7898 return 0;
7899}
7900_ACEOF
7901if ac_fn_c_try_compile "$LINENO"; then :
7902 ax_cv___attribute__=yes
7903else
7904 ax_cv___attribute__=no
7905
7906fi
7907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908
7909fi
7910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7911$as_echo "$ax_cv___attribute__" >&6; }
7912 if test "$ax_cv___attribute__" = "yes"; then
7913
7914$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7915
7916 fi
7917
7918
7919
7920if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7921 if test -n "$ac_tool_prefix"; then
7922 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7923set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007926if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007927 $as_echo_n "(cached) " >&6
7928else
7929 case $PKG_CONFIG in
7930 [\\/]* | ?:[\\/]*)
7931 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7932 ;;
7933 *)
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935for as_dir in $PATH
7936do
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7941 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 break 2
7944 fi
7945done
7946 done
7947IFS=$as_save_IFS
7948
7949 ;;
7950esac
7951fi
7952PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7953if test -n "$PKG_CONFIG"; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7955$as_echo "$PKG_CONFIG" >&6; }
7956else
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958$as_echo "no" >&6; }
7959fi
7960
7961
7962fi
7963if test -z "$ac_cv_path_PKG_CONFIG"; then
7964 ac_pt_PKG_CONFIG=$PKG_CONFIG
7965 # Extract the first word of "pkg-config", so it can be a program name with args.
7966set dummy pkg-config; ac_word=$2
7967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7968$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007969if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007970 $as_echo_n "(cached) " >&6
7971else
7972 case $ac_pt_PKG_CONFIG in
7973 [\\/]* | ?:[\\/]*)
7974 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7975 ;;
7976 *)
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978for as_dir in $PATH
7979do
7980 IFS=$as_save_IFS
7981 test -z "$as_dir" && as_dir=.
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7984 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7986 break 2
7987 fi
7988done
7989 done
7990IFS=$as_save_IFS
7991
7992 ;;
7993esac
7994fi
7995ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7996if test -n "$ac_pt_PKG_CONFIG"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7998$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7999else
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001$as_echo "no" >&6; }
8002fi
8003
8004 if test "x$ac_pt_PKG_CONFIG" = x; then
8005 PKG_CONFIG=""
8006 else
8007 case $cross_compiling:$ac_tool_warned in
8008yes:)
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8011ac_tool_warned=yes ;;
8012esac
8013 PKG_CONFIG=$ac_pt_PKG_CONFIG
8014 fi
8015else
8016 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8017fi
8018
8019fi
8020if test -n "$PKG_CONFIG"; then
8021 _pkg_min_version=0.9.0
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8023$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8024 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8026$as_echo "yes" >&6; }
8027 else
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029$as_echo "no" >&6; }
8030 PKG_CONFIG=""
8031 fi
8032
8033fi
cristy3ed852e2009-09-05 21:47:34 +00008034
8035#
cristy3ed852e2009-09-05 21:47:34 +00008036# Enable run-time checking.
8037#
8038# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008039if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008040 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8041else
8042 enable_bounds_checking='no'
8043fi
8044
8045
8046if test "$enable_bounds_checking" = yes; then
8047
cristy8b350f62009-11-15 23:12:43 +00008048$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008049
8050fi
8051
8052#
8053# Tests for Windows
8054#
8055
8056
cristy73bd4a52010-10-05 11:24:23 +00008057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8058$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008059if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008060 $as_echo_n "(cached) " >&6
8061else
8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063/* end confdefs.h. */
8064
8065int
8066main ()
8067{
8068#ifndef _MSC_VER
8069 choke me
8070#endif
8071
8072 ;
8073 return 0;
8074}
8075_ACEOF
8076if ac_fn_c_try_compile "$LINENO"; then :
8077 ax_compiler_ms=yes
8078else
8079 ax_compiler_ms=no
8080fi
8081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8082ax_cv_c_compiler_ms=$ax_compiler_ms
8083
8084fi
8085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8086$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008087
8088GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008089native_win32_build='no'
8090cygwin_build='no'
8091case "${host_os}" in
8092 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008093 cygwin_build='yes'
8094 GDI32_LIBS='-lgdi32'
8095 ;;
8096 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008097 native_win32_build='yes'
8098 GDI32_LIBS='-lgdi32'
8099 ;;
8100esac
8101if test "${GDI32_LIBS}x" != 'x'; then
8102
cristy8b350f62009-11-15 23:12:43 +00008103$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008104
8105fi
8106
cristy73bd4a52010-10-05 11:24:23 +00008107 if test "${GDI32_LIBS}x" != 'x' ; then
8108 WINGDI32_DELEGATE_TRUE=
8109 WINGDI32_DELEGATE_FALSE='#'
8110else
8111 WINGDI32_DELEGATE_TRUE='#'
8112 WINGDI32_DELEGATE_FALSE=
8113fi
8114
8115 if test "${native_win32_build}" = 'yes' ; then
8116 WIN32_NATIVE_BUILD_TRUE=
8117 WIN32_NATIVE_BUILD_FALSE='#'
8118else
8119 WIN32_NATIVE_BUILD_TRUE='#'
8120 WIN32_NATIVE_BUILD_FALSE=
8121fi
8122
8123 if test "${cygwin_build}" = 'yes' ; then
8124 CYGWIN_BUILD_TRUE=
8125 CYGWIN_BUILD_FALSE='#'
8126else
8127 CYGWIN_BUILD_TRUE='#'
8128 CYGWIN_BUILD_FALSE=
8129fi
8130
8131 if test "x${CC}" = 'xcl.exe' ; then
8132 USING_CL_TRUE=
8133 USING_CL_FALSE='#'
8134else
8135 USING_CL_TRUE='#'
8136 USING_CL_FALSE=
8137fi
8138
cristy3ed852e2009-09-05 21:47:34 +00008139
8140WinPathScript="${srcdirfull}/winpath.sh"
8141
8142
8143#
8144# Compiler flags tweaks
8145#
8146if test "${GCC}" != "yes"; then
8147 case "${host}" in
8148 *-*-hpux* )
8149 # aCC: HP ANSI C++ B3910B A.03.34
8150 CFLAGS="${CFLAGS} -Wp,-H30000"
8151 if test -n "${CXXFLAGS}"; then
8152 CXXFLAGS='-AA'
8153 else
8154 CXXFLAGS="${CXXFLAGS} -AA"
8155 fi
8156 ;;
8157 *-dec-osf5.* )
8158 # Compaq alphaev68-dec-osf5.1 compiler
8159 if test -n "${CXXFLAGS}"; then
8160 CXXFLAGS='-std strict_ansi -noimplicit_include'
8161 else
8162 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8163 fi
8164 esac
8165fi
8166
8167# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008169$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008170if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008171 $as_echo_n "(cached) " >&6
8172else
8173
8174im_cv_ld_lazyload='none'
8175case "${host}" in
8176 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8177 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8178 im_cv_ld_lazyload='-Wl,-zlazyload'
8179 fi
8180 ;;
8181esac
8182
8183fi
cristy8b350f62009-11-15 23:12:43 +00008184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008185$as_echo "$im_cv_ld_lazyload" >&6; }
8186if test "${im_cv_ld_lazyload}" != 'none' ; then
8187 if test -z "${LDFLAGS}" ; then
8188 LDFLAGS="${im_cv_ld_lazyload}"
8189 else
8190 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8191 fi
8192fi
8193
8194case "$host" in
8195*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008196 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008197if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008198 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8199else
8200 build_osxuniversal=no
8201fi
8202
8203
8204 if test "${build_osxuniversal}" != no ; then
8205 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008206 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008207Please re-run configure with these options:
8208 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008209 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008210 fi
8211 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8212 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8213 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8214 fi
8215 ;;
8216esac
8217
8218# Enable support for threads
8219
8220# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008221if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008222 withval=$with_threads; with_threads=$withval
8223else
8224 with_threads='yes'
8225fi
8226
8227
8228have_threads=no
8229if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008230
8231
8232
8233ac_ext=c
8234ac_cpp='$CPP $CPPFLAGS'
8235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8237ac_compiler_gnu=$ac_cv_c_compiler_gnu
8238
8239ax_pthread_ok=no
8240
8241# We used to check for pthread.h first, but this fails if pthread.h
8242# requires special compiler flags (e.g. on True64 or Sequent).
8243# It gets checked for in the link test anyway.
8244
8245# First of all, check if the user has set any of the PTHREAD_LIBS,
8246# etcetera environment variables, and if threads linking works using
8247# them:
8248if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8249 save_CFLAGS="$CFLAGS"
8250 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8251 save_LIBS="$LIBS"
8252 LIBS="$PTHREAD_LIBS $LIBS"
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8254$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256/* end confdefs.h. */
8257
8258/* Override any GCC internal prototype to avoid an error.
8259 Use char because int might match the return type of a GCC
8260 builtin and then its argument prototype would still apply. */
8261#ifdef __cplusplus
8262extern "C"
8263#endif
8264char pthread_join ();
8265int
8266main ()
8267{
8268return pthread_join ();
8269 ;
8270 return 0;
8271}
8272_ACEOF
8273if ac_fn_c_try_link "$LINENO"; then :
8274 ax_pthread_ok=yes
8275fi
8276rm -f core conftest.err conftest.$ac_objext \
8277 conftest$ac_exeext conftest.$ac_ext
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8279$as_echo "$ax_pthread_ok" >&6; }
8280 if test x"$ax_pthread_ok" = xno; then
8281 PTHREAD_LIBS=""
8282 PTHREAD_CFLAGS=""
8283 fi
8284 LIBS="$save_LIBS"
8285 CFLAGS="$save_CFLAGS"
8286fi
8287
8288# We must check for the threads library under a number of different
8289# names; the ordering is very important because some systems
8290# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8291# libraries is broken (non-POSIX).
8292
8293# Create a list of thread flags to try. Items starting with a "-" are
8294# C compiler flags, and other items are library names, except for "none"
8295# which indicates that we try without any flags at all, and "pthread-config"
8296# which is a program returning the flags for the Pth emulation library.
8297
8298ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8299
8300# The ordering *is* (sometimes) important. Some notes on the
8301# individual items follow:
8302
8303# pthreads: AIX (must check this before -lpthread)
8304# none: in case threads are in libc; should be tried before -Kthread and
8305# other compiler flags to prevent continual compiler warnings
8306# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8307# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8308# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8309# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8310# -pthreads: Solaris/gcc
8311# -mthreads: Mingw32/gcc, Lynx/gcc
8312# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8313# doesn't hurt to check since this sometimes defines pthreads too;
8314# also defines -D_REENTRANT)
8315# ... -mt is also the pthreads flag for HP/aCC
8316# pthread: Linux, etcetera
8317# --thread-safe: KAI C++
8318# pthread-config: use pthread-config program (for GNU Pth library)
8319
8320case "${host_cpu}-${host_os}" in
8321 *solaris*)
8322
8323 # On Solaris (at least, for some versions), libc contains stubbed
8324 # (non-functional) versions of the pthreads routines, so link-based
8325 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8326 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8327 # a function called by this macro, so we could check for that, but
8328 # who knows whether they'll stub that too in a future libc.) So,
8329 # we'll just look for -pthreads and -lpthread first:
8330
8331 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8332 ;;
8333
8334 *-darwin*)
8335 ax_pthread_flags="-pthread $ax_pthread_flags"
8336 ;;
8337esac
8338
8339if test x"$ax_pthread_ok" = xno; then
8340for flag in $ax_pthread_flags; do
8341
8342 case $flag in
8343 none)
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8345$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8346 ;;
8347
8348 -*)
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8350$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8351 PTHREAD_CFLAGS="$flag"
8352 ;;
8353
8354 pthread-config)
8355 # Extract the first word of "pthread-config", so it can be a program name with args.
8356set dummy pthread-config; ac_word=$2
8357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008359if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008360 $as_echo_n "(cached) " >&6
8361else
8362 if test -n "$ax_pthread_config"; then
8363 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8364else
8365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366for as_dir in $PATH
8367do
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8372 ac_cv_prog_ax_pthread_config="yes"
8373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 break 2
8375 fi
8376done
8377 done
8378IFS=$as_save_IFS
8379
8380 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8381fi
8382fi
8383ax_pthread_config=$ac_cv_prog_ax_pthread_config
8384if test -n "$ax_pthread_config"; then
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8386$as_echo "$ax_pthread_config" >&6; }
8387else
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389$as_echo "no" >&6; }
8390fi
8391
8392
8393 if test x"$ax_pthread_config" = xno; then continue; fi
8394 PTHREAD_CFLAGS="`pthread-config --cflags`"
8395 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8396 ;;
8397
8398 *)
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8400$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8401 PTHREAD_LIBS="-l$flag"
8402 ;;
8403 esac
8404
8405 save_LIBS="$LIBS"
8406 save_CFLAGS="$CFLAGS"
8407 LIBS="$PTHREAD_LIBS $LIBS"
8408 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8409
8410 # Check for various functions. We must include pthread.h,
8411 # since some functions may be macros. (On the Sequent, we
8412 # need a special flag -Kthread to make this header compile.)
8413 # We check for pthread_join because it is in -lpthread on IRIX
8414 # while pthread_create is in libc. We check for pthread_attr_init
8415 # due to DEC craziness with -lpthreads. We check for
8416 # pthread_cleanup_push because it is one of the few pthread
8417 # functions on Solaris that doesn't have a non-functional libc stub.
8418 # We try pthread_create on general principles.
8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420/* end confdefs.h. */
8421#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008422 static void routine(void* a) {a=0;}
8423 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008424int
8425main ()
8426{
8427pthread_t th; pthread_attr_t attr;
8428 pthread_create(&th,0,start_routine,0);
8429 pthread_join(th, 0);
8430 pthread_attr_init(&attr);
8431 pthread_cleanup_push(routine, 0);
8432 pthread_cleanup_pop(0);
8433 ;
8434 return 0;
8435}
8436_ACEOF
8437if ac_fn_c_try_link "$LINENO"; then :
8438 ax_pthread_ok=yes
8439fi
8440rm -f core conftest.err conftest.$ac_objext \
8441 conftest$ac_exeext conftest.$ac_ext
8442
8443 LIBS="$save_LIBS"
8444 CFLAGS="$save_CFLAGS"
8445
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8447$as_echo "$ax_pthread_ok" >&6; }
8448 if test "x$ax_pthread_ok" = xyes; then
8449 break;
8450 fi
8451
8452 PTHREAD_LIBS=""
8453 PTHREAD_CFLAGS=""
8454done
8455fi
8456
8457# Various other checks:
8458if test "x$ax_pthread_ok" = xyes; then
8459 save_LIBS="$LIBS"
8460 LIBS="$PTHREAD_LIBS $LIBS"
8461 save_CFLAGS="$CFLAGS"
8462 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8463
8464 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8466$as_echo_n "checking for joinable pthread attribute... " >&6; }
8467 attr_name=unknown
8468 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470/* end confdefs.h. */
8471#include <pthread.h>
8472int
8473main ()
8474{
8475int attr=$attr; return attr;
8476 ;
8477 return 0;
8478}
8479_ACEOF
8480if ac_fn_c_try_link "$LINENO"; then :
8481 attr_name=$attr; break
8482fi
8483rm -f core conftest.err conftest.$ac_objext \
8484 conftest$ac_exeext conftest.$ac_ext
8485 done
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8487$as_echo "$attr_name" >&6; }
8488 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8489
8490cat >>confdefs.h <<_ACEOF
8491#define PTHREAD_CREATE_JOINABLE $attr_name
8492_ACEOF
8493
8494 fi
8495
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8497$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8498 flag=no
8499 case "${host_cpu}-${host_os}" in
8500 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8501 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8502 esac
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8504$as_echo "${flag}" >&6; }
8505 if test "x$flag" != xno; then
8506 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8507 fi
8508
8509 LIBS="$save_LIBS"
8510 CFLAGS="$save_CFLAGS"
8511
8512 # More AIX lossage: must compile with xlc_r or cc_r
8513 if test x"$GCC" != xyes; then
8514 for ac_prog in xlc_r cc_r
8515do
8516 # Extract the first word of "$ac_prog", so it can be a program name with args.
8517set dummy $ac_prog; ac_word=$2
8518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8519$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008520if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008521 $as_echo_n "(cached) " >&6
8522else
8523 if test -n "$PTHREAD_CC"; then
8524 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8525else
8526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8527for as_dir in $PATH
8528do
8529 IFS=$as_save_IFS
8530 test -z "$as_dir" && as_dir=.
8531 for ac_exec_ext in '' $ac_executable_extensions; do
8532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8533 ac_cv_prog_PTHREAD_CC="$ac_prog"
8534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8535 break 2
8536 fi
8537done
8538 done
8539IFS=$as_save_IFS
8540
8541fi
8542fi
8543PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8544if test -n "$PTHREAD_CC"; then
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8546$as_echo "$PTHREAD_CC" >&6; }
8547else
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8549$as_echo "no" >&6; }
8550fi
8551
8552
8553 test -n "$PTHREAD_CC" && break
8554done
8555test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8556
8557 else
8558 PTHREAD_CC=$CC
8559 fi
8560else
8561 PTHREAD_CC="$CC"
8562fi
8563
8564
8565
8566
8567
8568# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8569if test x"$ax_pthread_ok" = xyes; then
8570
8571$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8572
8573 :
8574else
8575 ax_pthread_ok=no
8576
8577fi
8578ac_ext=c
8579ac_cpp='$CPP $CPPFLAGS'
8580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8582ac_compiler_gnu=$ac_cv_c_compiler_gnu
8583
8584
cristy7acf8fb2010-09-23 19:58:53 +00008585 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008586 have_threads=yes
8587 DEF_THREAD="$PTHREAD_CFLAGS"
8588 CFLAGS="$CFLAGS $DEF_THREAD"
8589 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8590 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008591 { $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 +00008592$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8593 CC="$PTHREAD_CC"
8594 fi
cristy55bf91c2010-09-24 00:29:41 +00008595
8596$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8597
cristy3ed852e2009-09-05 21:47:34 +00008598 fi
8599fi
8600
8601# Enable support for OpenMP
8602if test "$have_threads" != 'yes'; then
8603 ac_cv_prog_c_openmp=unsupported
8604fi
8605
8606 OPENMP_CFLAGS=
8607 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008608if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008609 enableval=$enable_openmp;
8610fi
8611
8612 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008614$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008615if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008616 $as_echo_n "(cached) " >&6
8617else
cristy8b350f62009-11-15 23:12:43 +00008618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008620
8621#ifndef _OPENMP
8622 choke me
8623#endif
8624#include <omp.h>
8625int main () { return omp_get_num_threads (); }
8626
8627_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008628if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008629 ac_cv_prog_c_openmp='none needed'
8630else
cristy8b350f62009-11-15 23:12:43 +00008631 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008632 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8633 ac_save_CFLAGS=$CFLAGS
8634 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008637
8638#ifndef _OPENMP
8639 choke me
8640#endif
8641#include <omp.h>
8642int main () { return omp_get_num_threads (); }
8643
8644_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008645if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008646 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008647fi
cristy8b350f62009-11-15 23:12:43 +00008648rm -f core conftest.err conftest.$ac_objext \
8649 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008650 CFLAGS=$ac_save_CFLAGS
8651 if test "$ac_cv_prog_c_openmp" != unsupported; then
8652 break
8653 fi
8654 done
8655fi
cristy8b350f62009-11-15 23:12:43 +00008656rm -f core conftest.err conftest.$ac_objext \
8657 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008658fi
cristy8b350f62009-11-15 23:12:43 +00008659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008660$as_echo "$ac_cv_prog_c_openmp" >&6; }
8661 case $ac_cv_prog_c_openmp in #(
8662 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008663 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008664 *)
cristy8b350f62009-11-15 23:12:43 +00008665 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008666 esac
8667 fi
8668
8669
8670CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8671MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8672
cristy391f1ce2010-09-09 17:23:28 +00008673if test "$enable_openmp" != no; then
8674 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8675 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8676 fi
8677fi
cristy3ed852e2009-09-05 21:47:34 +00008678
cristy736173a2009-09-20 21:18:22 +00008679# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008680
8681
8682
8683ac_ext=c
8684ac_cpp='$CPP $CPPFLAGS'
8685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8687ac_compiler_gnu=$ac_cv_c_compiler_gnu
8688
8689ax_pthread_ok=no
8690
8691# We used to check for pthread.h first, but this fails if pthread.h
8692# requires special compiler flags (e.g. on True64 or Sequent).
8693# It gets checked for in the link test anyway.
8694
8695# First of all, check if the user has set any of the PTHREAD_LIBS,
8696# etcetera environment variables, and if threads linking works using
8697# them:
8698if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8699 save_CFLAGS="$CFLAGS"
8700 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8701 save_LIBS="$LIBS"
8702 LIBS="$PTHREAD_LIBS $LIBS"
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8704$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706/* end confdefs.h. */
8707
8708/* Override any GCC internal prototype to avoid an error.
8709 Use char because int might match the return type of a GCC
8710 builtin and then its argument prototype would still apply. */
8711#ifdef __cplusplus
8712extern "C"
8713#endif
8714char pthread_join ();
8715int
8716main ()
8717{
8718return pthread_join ();
8719 ;
8720 return 0;
8721}
8722_ACEOF
8723if ac_fn_c_try_link "$LINENO"; then :
8724 ax_pthread_ok=yes
8725fi
8726rm -f core conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8729$as_echo "$ax_pthread_ok" >&6; }
8730 if test x"$ax_pthread_ok" = xno; then
8731 PTHREAD_LIBS=""
8732 PTHREAD_CFLAGS=""
8733 fi
8734 LIBS="$save_LIBS"
8735 CFLAGS="$save_CFLAGS"
8736fi
8737
8738# We must check for the threads library under a number of different
8739# names; the ordering is very important because some systems
8740# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8741# libraries is broken (non-POSIX).
8742
8743# Create a list of thread flags to try. Items starting with a "-" are
8744# C compiler flags, and other items are library names, except for "none"
8745# which indicates that we try without any flags at all, and "pthread-config"
8746# which is a program returning the flags for the Pth emulation library.
8747
8748ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8749
8750# The ordering *is* (sometimes) important. Some notes on the
8751# individual items follow:
8752
8753# pthreads: AIX (must check this before -lpthread)
8754# none: in case threads are in libc; should be tried before -Kthread and
8755# other compiler flags to prevent continual compiler warnings
8756# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8757# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8758# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8759# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8760# -pthreads: Solaris/gcc
8761# -mthreads: Mingw32/gcc, Lynx/gcc
8762# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8763# doesn't hurt to check since this sometimes defines pthreads too;
8764# also defines -D_REENTRANT)
8765# ... -mt is also the pthreads flag for HP/aCC
8766# pthread: Linux, etcetera
8767# --thread-safe: KAI C++
8768# pthread-config: use pthread-config program (for GNU Pth library)
8769
8770case "${host_cpu}-${host_os}" in
8771 *solaris*)
8772
8773 # On Solaris (at least, for some versions), libc contains stubbed
8774 # (non-functional) versions of the pthreads routines, so link-based
8775 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8776 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8777 # a function called by this macro, so we could check for that, but
8778 # who knows whether they'll stub that too in a future libc.) So,
8779 # we'll just look for -pthreads and -lpthread first:
8780
8781 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8782 ;;
8783
8784 *-darwin*)
8785 ax_pthread_flags="-pthread $ax_pthread_flags"
8786 ;;
8787esac
8788
8789if test x"$ax_pthread_ok" = xno; then
8790for flag in $ax_pthread_flags; do
8791
8792 case $flag in
8793 none)
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8795$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8796 ;;
8797
8798 -*)
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8800$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8801 PTHREAD_CFLAGS="$flag"
8802 ;;
8803
8804 pthread-config)
8805 # Extract the first word of "pthread-config", so it can be a program name with args.
8806set dummy pthread-config; ac_word=$2
8807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8808$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008809if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008810 $as_echo_n "(cached) " >&6
8811else
8812 if test -n "$ax_pthread_config"; then
8813 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8814else
8815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8816for as_dir in $PATH
8817do
8818 IFS=$as_save_IFS
8819 test -z "$as_dir" && as_dir=.
8820 for ac_exec_ext in '' $ac_executable_extensions; do
8821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8822 ac_cv_prog_ax_pthread_config="yes"
8823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8824 break 2
8825 fi
8826done
8827 done
8828IFS=$as_save_IFS
8829
8830 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8831fi
8832fi
8833ax_pthread_config=$ac_cv_prog_ax_pthread_config
8834if test -n "$ax_pthread_config"; then
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8836$as_echo "$ax_pthread_config" >&6; }
8837else
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839$as_echo "no" >&6; }
8840fi
8841
8842
8843 if test x"$ax_pthread_config" = xno; then continue; fi
8844 PTHREAD_CFLAGS="`pthread-config --cflags`"
8845 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8846 ;;
8847
8848 *)
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8850$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8851 PTHREAD_LIBS="-l$flag"
8852 ;;
8853 esac
8854
8855 save_LIBS="$LIBS"
8856 save_CFLAGS="$CFLAGS"
8857 LIBS="$PTHREAD_LIBS $LIBS"
8858 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8859
8860 # Check for various functions. We must include pthread.h,
8861 # since some functions may be macros. (On the Sequent, we
8862 # need a special flag -Kthread to make this header compile.)
8863 # We check for pthread_join because it is in -lpthread on IRIX
8864 # while pthread_create is in libc. We check for pthread_attr_init
8865 # due to DEC craziness with -lpthreads. We check for
8866 # pthread_cleanup_push because it is one of the few pthread
8867 # functions on Solaris that doesn't have a non-functional libc stub.
8868 # We try pthread_create on general principles.
8869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870/* end confdefs.h. */
8871#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008872 static void routine(void* a) {a=0;}
8873 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008874int
8875main ()
8876{
8877pthread_t th; pthread_attr_t attr;
8878 pthread_create(&th,0,start_routine,0);
8879 pthread_join(th, 0);
8880 pthread_attr_init(&attr);
8881 pthread_cleanup_push(routine, 0);
8882 pthread_cleanup_pop(0);
8883 ;
8884 return 0;
8885}
8886_ACEOF
8887if ac_fn_c_try_link "$LINENO"; then :
8888 ax_pthread_ok=yes
8889fi
8890rm -f core conftest.err conftest.$ac_objext \
8891 conftest$ac_exeext conftest.$ac_ext
8892
8893 LIBS="$save_LIBS"
8894 CFLAGS="$save_CFLAGS"
8895
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8897$as_echo "$ax_pthread_ok" >&6; }
8898 if test "x$ax_pthread_ok" = xyes; then
8899 break;
8900 fi
8901
8902 PTHREAD_LIBS=""
8903 PTHREAD_CFLAGS=""
8904done
8905fi
8906
8907# Various other checks:
8908if test "x$ax_pthread_ok" = xyes; then
8909 save_LIBS="$LIBS"
8910 LIBS="$PTHREAD_LIBS $LIBS"
8911 save_CFLAGS="$CFLAGS"
8912 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8913
8914 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8916$as_echo_n "checking for joinable pthread attribute... " >&6; }
8917 attr_name=unknown
8918 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920/* end confdefs.h. */
8921#include <pthread.h>
8922int
8923main ()
8924{
8925int attr=$attr; return attr;
8926 ;
8927 return 0;
8928}
8929_ACEOF
8930if ac_fn_c_try_link "$LINENO"; then :
8931 attr_name=$attr; break
8932fi
8933rm -f core conftest.err conftest.$ac_objext \
8934 conftest$ac_exeext conftest.$ac_ext
8935 done
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8937$as_echo "$attr_name" >&6; }
8938 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8939
8940cat >>confdefs.h <<_ACEOF
8941#define PTHREAD_CREATE_JOINABLE $attr_name
8942_ACEOF
8943
8944 fi
8945
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8947$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8948 flag=no
8949 case "${host_cpu}-${host_os}" in
8950 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8951 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8952 esac
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8954$as_echo "${flag}" >&6; }
8955 if test "x$flag" != xno; then
8956 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8957 fi
8958
8959 LIBS="$save_LIBS"
8960 CFLAGS="$save_CFLAGS"
8961
8962 # More AIX lossage: must compile with xlc_r or cc_r
8963 if test x"$GCC" != xyes; then
8964 for ac_prog in xlc_r cc_r
8965do
8966 # Extract the first word of "$ac_prog", so it can be a program name with args.
8967set dummy $ac_prog; ac_word=$2
8968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8969$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008970if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008971 $as_echo_n "(cached) " >&6
8972else
8973 if test -n "$PTHREAD_CC"; then
8974 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8975else
8976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8977for as_dir in $PATH
8978do
8979 IFS=$as_save_IFS
8980 test -z "$as_dir" && as_dir=.
8981 for ac_exec_ext in '' $ac_executable_extensions; do
8982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8983 ac_cv_prog_PTHREAD_CC="$ac_prog"
8984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8985 break 2
8986 fi
8987done
8988 done
8989IFS=$as_save_IFS
8990
8991fi
8992fi
8993PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8994if test -n "$PTHREAD_CC"; then
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8996$as_echo "$PTHREAD_CC" >&6; }
8997else
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999$as_echo "no" >&6; }
9000fi
9001
9002
9003 test -n "$PTHREAD_CC" && break
9004done
9005test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9006
9007 else
9008 PTHREAD_CC=$CC
9009 fi
9010else
9011 PTHREAD_CC="$CC"
9012fi
9013
9014
9015
9016
9017
9018# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9019if test x"$ax_pthread_ok" = xyes; then
9020
9021$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9022
9023 :
9024else
9025 ax_pthread_ok=no
9026
9027fi
9028ac_ext=c
9029ac_cpp='$CPP $CPPFLAGS'
9030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9032ac_compiler_gnu=$ac_cv_c_compiler_gnu
9033
9034
9035
9036# Check whether --enable-opencl was given.
9037if test "${enable_opencl+set}" = set; then :
9038 enableval=$enable_opencl; disable_opencl=$enableval
9039else
9040 disable_opencl='yes'
9041fi
9042
9043
9044if test "$disable_opencl" = 'yes'; then
9045 ac_ext=c
9046ac_cpp='$CPP $CPPFLAGS'
9047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9049ac_compiler_gnu=$ac_cv_c_compiler_gnu
9050
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9052$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009053if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009054 $as_echo_n "(cached) " >&6
9055else
9056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057/* end confdefs.h. */
9058
9059int
9060main ()
9061{
9062#ifndef _MSC_VER
9063 choke me
9064#endif
9065
9066 ;
9067 return 0;
9068}
9069_ACEOF
9070if ac_fn_c_try_compile "$LINENO"; then :
9071 ax_compiler_ms=yes
9072else
9073 ax_compiler_ms=no
9074fi
9075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9076ax_cv_c_compiler_ms=$ax_compiler_ms
9077
9078fi
9079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9080$as_echo "$ax_cv_c_compiler_ms" >&6; }
9081 if test X$ax_compiler_ms = Xno; then :
9082 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9083fi
9084
9085 ax_save_CPPFLAGS=$CPPFLAGS
9086 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9087 for ac_header in CL/cl.h OpenCL/cl.h
9088do :
9089 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9090ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009091if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009092 cat >>confdefs.h <<_ACEOF
9093#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9094_ACEOF
9095
9096fi
9097
9098done
9099
9100 CPPFLAGS=$ax_save_CPPFLAGS
9101
9102 for ac_header in windows.h
9103do :
9104 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009105if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009106 cat >>confdefs.h <<_ACEOF
9107#define HAVE_WINDOWS_H 1
9108_ACEOF
9109
9110fi
9111
9112done
9113
9114
9115
9116
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9118$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009119if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009120 $as_echo_n "(cached) " >&6
9121else
9122 ax_cv_check_cl_libcl=no
9123 case $host_cpu in
9124 x86_64) ax_check_cl_libdir=lib64 ;;
9125 *) ax_check_cl_libdir=lib ;;
9126 esac
9127 ax_save_CPPFLAGS=$CPPFLAGS
9128 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9129 ax_save_LIBS=$LIBS
9130 LIBS=""
9131 ax_check_libs="-lOpenCL -lCL -lclparser"
9132 for ax_lib in $ax_check_libs; do
9133 if test X$ax_compiler_ms = Xyes; then :
9134 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9135else
9136 ax_try_lib=$ax_lib
9137fi
9138 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140/* end confdefs.h. */
9141
9142 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9143 # include <windows.h>
9144 # endif
9145 # ifdef HAVE_CL_CL_H
9146 # include <CL/cl.h>
9147 # elif defined(HAVE_OPENCL_CL_H)
9148 # include <OpenCL/cl.h>
9149 # else
9150 # error no CL.h
9151 # endif
9152int
9153main ()
9154{
9155clCreateContextFromType(0,0,0,0,0)
9156 ;
9157 return 0;
9158}
9159_ACEOF
9160if ac_fn_c_try_link "$LINENO"; then :
9161 ax_cv_check_cl_libcl=$ax_try_lib; break
9162else
9163 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"
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165/* end confdefs.h. */
9166
9167 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9168 # include <windows.h>
9169 # endif
9170 # ifdef HAVE_CL_CL_H
9171 # include <CL/cl.h>
9172 # elif defined(HAVE_OPENCL_CL_H)
9173 # include <OpenCL/cl.h>
9174 # else
9175 # error no CL.h
9176 # endif
9177int
9178main ()
9179{
9180clCreateContextFromType(0,0,0,0,0)
9181 ;
9182 return 0;
9183}
9184_ACEOF
9185if ac_fn_c_try_link "$LINENO"; then :
9186 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9187else
cristy78c5a0c2010-12-04 20:00:59 +00009188 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 +00009189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190/* end confdefs.h. */
9191
9192 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9193 # include <windows.h>
9194 # endif
9195 # ifdef HAVE_CL_CL_H
9196 # include <CL/cl.h>
9197 # elif defined(HAVE_OPENCL_CL_H)
9198 # include <OpenCL/cl.h>
9199 # else
9200 # error no CL.h
9201 # endif
9202int
9203main ()
9204{
9205clCreateContextFromType(0,0,0,0,0)
9206 ;
9207 return 0;
9208}
9209_ACEOF
9210if ac_fn_c_try_link "$LINENO"; then :
9211 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9212fi
9213rm -f core conftest.err conftest.$ac_objext \
9214 conftest$ac_exeext conftest.$ac_ext
9215fi
9216rm -f core conftest.err conftest.$ac_objext \
9217 conftest$ac_exeext conftest.$ac_ext
9218fi
9219rm -f core conftest.err conftest.$ac_objext \
9220 conftest$ac_exeext conftest.$ac_ext
9221 done
9222
9223 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009224 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226/* end confdefs.h. */
9227
9228 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9229 # include <windows.h>
9230 # endif
9231 # ifdef HAVE_CL_CL_H
9232 # include <CL/cl.h>
9233 # elif defined(HAVE_OPENCL_CL_H)
9234 # include <OpenCL/cl.h>
9235 # else
9236 # error no CL.h
9237 # endif
9238int
9239main ()
9240{
9241clCreateContextFromType(0,0,0,0,0)
9242 ;
9243 return 0;
9244}
9245_ACEOF
9246if ac_fn_c_try_link "$LINENO"; then :
9247 ax_cv_check_cl_libcl=$LIBS
9248fi
9249rm -f core conftest.err conftest.$ac_objext \
9250 conftest$ac_exeext conftest.$ac_ext
9251fi
9252
9253 LIBS=$ax_save_LIBS
9254 CPPFLAGS=$ax_save_CPPFLAGS
9255fi
9256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9257$as_echo "$ax_cv_check_cl_libcl" >&6; }
9258
9259 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9260 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9261else
9262 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9263$as_echo "#define _OPENCL 1" >>confdefs.h
9264
9265fi
9266 ac_ext=c
9267ac_cpp='$CPP $CPPFLAGS'
9268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9270ac_compiler_gnu=$ac_cv_c_compiler_gnu
9271
9272fi
9273
9274
9275
9276
cristyc7083c12009-10-14 03:16:55 +00009277CFLAGS="$CL_CFLAGS $CFLAGS"
9278LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009279
cristy391f1ce2010-09-09 17:23:28 +00009280if test "$enable_opencl" != no; then
9281 if test "_OPENCL" = '1'; then
9282 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9283 fi
cristyfd9dcd42010-08-08 18:07:02 +00009284fi
cristy2e8b51d2009-10-17 18:26:15 +00009285
cristy3ed852e2009-09-05 21:47:34 +00009286########
9287#
9288# Check for large file support
9289#
9290########
9291# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009292if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009293 enableval=$enable_largefile;
9294fi
9295
9296if test "$enable_largefile" != no; then
9297
cristy8b350f62009-11-15 23:12:43 +00009298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009299$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009300if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009301 $as_echo_n "(cached) " >&6
9302else
9303 ac_cv_sys_largefile_CC=no
9304 if test "$GCC" != yes; then
9305 ac_save_CC=$CC
9306 while :; do
9307 # IRIX 6.2 and later do not support large files by default,
9308 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009310/* end confdefs.h. */
9311#include <sys/types.h>
9312 /* Check that off_t can represent 2**63 - 1 correctly.
9313 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9314 since some C++ compilers masquerading as C compilers
9315 incorrectly reject 9223372036854775807. */
9316#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9317 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9318 && LARGE_OFF_T % 2147483647 == 1)
9319 ? 1 : -1];
9320int
9321main ()
9322{
9323
9324 ;
9325 return 0;
9326}
9327_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009328 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009329 break
cristy3ed852e2009-09-05 21:47:34 +00009330fi
cristy3ed852e2009-09-05 21:47:34 +00009331rm -f core conftest.err conftest.$ac_objext
9332 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009333 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009334 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009335fi
cristy3ed852e2009-09-05 21:47:34 +00009336rm -f core conftest.err conftest.$ac_objext
9337 break
9338 done
9339 CC=$ac_save_CC
9340 rm -f conftest.$ac_ext
9341 fi
9342fi
cristy8b350f62009-11-15 23:12:43 +00009343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009344$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9345 if test "$ac_cv_sys_largefile_CC" != no; then
9346 CC=$CC$ac_cv_sys_largefile_CC
9347 fi
9348
cristy8b350f62009-11-15 23:12:43 +00009349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009350$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009351if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009352 $as_echo_n "(cached) " >&6
9353else
9354 while :; do
cristy8b350f62009-11-15 23:12:43 +00009355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009356/* end confdefs.h. */
9357#include <sys/types.h>
9358 /* Check that off_t can represent 2**63 - 1 correctly.
9359 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9360 since some C++ compilers masquerading as C compilers
9361 incorrectly reject 9223372036854775807. */
9362#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9363 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9364 && LARGE_OFF_T % 2147483647 == 1)
9365 ? 1 : -1];
9366int
9367main ()
9368{
9369
9370 ;
9371 return 0;
9372}
9373_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009374if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009375 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009376fi
cristy3ed852e2009-09-05 21:47:34 +00009377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009379/* end confdefs.h. */
9380#define _FILE_OFFSET_BITS 64
9381#include <sys/types.h>
9382 /* Check that off_t can represent 2**63 - 1 correctly.
9383 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9384 since some C++ compilers masquerading as C compilers
9385 incorrectly reject 9223372036854775807. */
9386#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9387 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9388 && LARGE_OFF_T % 2147483647 == 1)
9389 ? 1 : -1];
9390int
9391main ()
9392{
9393
9394 ;
9395 return 0;
9396}
9397_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009398if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009399 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009400fi
cristy3ed852e2009-09-05 21:47:34 +00009401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9402 ac_cv_sys_file_offset_bits=unknown
9403 break
9404done
9405fi
cristy8b350f62009-11-15 23:12:43 +00009406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009407$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9408case $ac_cv_sys_file_offset_bits in #(
9409 no | unknown) ;;
9410 *)
9411cat >>confdefs.h <<_ACEOF
9412#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9413_ACEOF
9414;;
9415esac
9416rm -rf conftest*
9417 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009419$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009420if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009421 $as_echo_n "(cached) " >&6
9422else
9423 while :; do
cristy8b350f62009-11-15 23:12:43 +00009424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009425/* end confdefs.h. */
9426#include <sys/types.h>
9427 /* Check that off_t can represent 2**63 - 1 correctly.
9428 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9429 since some C++ compilers masquerading as C compilers
9430 incorrectly reject 9223372036854775807. */
9431#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9432 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9433 && LARGE_OFF_T % 2147483647 == 1)
9434 ? 1 : -1];
9435int
9436main ()
9437{
9438
9439 ;
9440 return 0;
9441}
9442_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009443if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009444 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009445fi
cristy3ed852e2009-09-05 21:47:34 +00009446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009448/* end confdefs.h. */
9449#define _LARGE_FILES 1
9450#include <sys/types.h>
9451 /* Check that off_t can represent 2**63 - 1 correctly.
9452 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9453 since some C++ compilers masquerading as C compilers
9454 incorrectly reject 9223372036854775807. */
9455#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9456 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9457 && LARGE_OFF_T % 2147483647 == 1)
9458 ? 1 : -1];
9459int
9460main ()
9461{
9462
9463 ;
9464 return 0;
9465}
9466_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009467if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009468 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009469fi
cristy3ed852e2009-09-05 21:47:34 +00009470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9471 ac_cv_sys_large_files=unknown
9472 break
9473done
9474fi
cristy8b350f62009-11-15 23:12:43 +00009475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009476$as_echo "$ac_cv_sys_large_files" >&6; }
9477case $ac_cv_sys_large_files in #(
9478 no | unknown) ;;
9479 *)
9480cat >>confdefs.h <<_ACEOF
9481#define _LARGE_FILES $ac_cv_sys_large_files
9482_ACEOF
9483;;
9484esac
9485rm -rf conftest*
9486 fi
9487fi
9488
cristy8b350f62009-11-15 23:12:43 +00009489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009490$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009491if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009492 $as_echo_n "(cached) " >&6
9493else
9494 while :; do
cristy8b350f62009-11-15 23:12:43 +00009495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009496/* end confdefs.h. */
9497#include <sys/types.h> /* for off_t */
9498 #include <stdio.h>
9499int
9500main ()
9501{
9502int (*fp) (FILE *, off_t, int) = fseeko;
9503 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9504 ;
9505 return 0;
9506}
9507_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009508if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009509 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009510fi
cristy8b350f62009-11-15 23:12:43 +00009511rm -f core conftest.err conftest.$ac_objext \
9512 conftest$ac_exeext conftest.$ac_ext
9513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009514/* end confdefs.h. */
9515#define _LARGEFILE_SOURCE 1
9516#include <sys/types.h> /* for off_t */
9517 #include <stdio.h>
9518int
9519main ()
9520{
9521int (*fp) (FILE *, off_t, int) = fseeko;
9522 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9523 ;
9524 return 0;
9525}
9526_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009527if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009528 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009529fi
cristy8b350f62009-11-15 23:12:43 +00009530rm -f core conftest.err conftest.$ac_objext \
9531 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009532 ac_cv_sys_largefile_source=unknown
9533 break
9534done
9535fi
cristy8b350f62009-11-15 23:12:43 +00009536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009537$as_echo "$ac_cv_sys_largefile_source" >&6; }
9538case $ac_cv_sys_largefile_source in #(
9539 no | unknown) ;;
9540 *)
9541cat >>confdefs.h <<_ACEOF
9542#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9543_ACEOF
9544;;
9545esac
9546rm -rf conftest*
9547
9548# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9549# in glibc 2.1.3, but that breaks too many other things.
9550# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9551if test $ac_cv_sys_largefile_source != unknown; then
9552
cristy8b350f62009-11-15 23:12:43 +00009553$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009554
9555fi
9556
9557LFS_CPPFLAGS=''
9558if test "$enable_largefile" != no; then
9559 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9560 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9561 else
cristy8b350f62009-11-15 23:12:43 +00009562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009563$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009564 if test "$cross_compiling" = yes; then :
9565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009566$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009567as_fn_error $? "cannot run test program while cross compiling
9568See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009569else
cristy8b350f62009-11-15 23:12:43 +00009570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009572#include <unistd.h>
9573 main () {
9574 exit(!(sizeof(off_t) == 8));
9575 }
cristyda16f162011-02-19 23:52:17 +00009576int
9577main ()
9578{
9579
9580 ;
9581 return 0;
9582}
cristy3ed852e2009-09-05 21:47:34 +00009583_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009584if ac_fn_c_try_run "$LINENO"; then :
9585 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009586
cristy8b350f62009-11-15 23:12:43 +00009587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009588$as_echo "yes" >&6; }
9589else
cristy8b350f62009-11-15 23:12:43 +00009590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009591$as_echo "no" >&6; }
9592fi
cristy8b350f62009-11-15 23:12:43 +00009593rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9594 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009595fi
9596
cristy3ed852e2009-09-05 21:47:34 +00009597 fi
9598 if test "$ac_cv_sys_large_files" != 'no'; then
9599 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9600 fi
9601 if test "$ac_cv_sys_largefile_source" != 'no'; then
9602 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9603 fi
9604fi
9605
9606
9607#
9608# Configure libtool & libltdl
9609#
9610# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009611enable_dlopen=yes
9612
9613
9614
9615case `pwd` in
9616 *\ * | *\ *)
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9618$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9619esac
9620
9621
9622
cristyda16f162011-02-19 23:52:17 +00009623macro_version='2.4'
9624macro_revision='1.3293'
cristy73bd4a52010-10-05 11:24:23 +00009625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638ltmain="$ac_aux_dir/ltmain.sh"
9639
cristy0c60a692010-11-04 01:09:47 +00009640# Backslashify metacharacters that are still active within
9641# double-quoted strings.
9642sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9643
9644# Same as above, but do not quote variable references.
9645double_quote_subst='s/\(["`\\]\)/\\\1/g'
9646
9647# Sed substitution to delay expansion of an escaped shell variable in a
9648# double_quote_subst'ed string.
9649delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9650
9651# Sed substitution to delay expansion of an escaped single quote.
9652delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9653
9654# Sed substitution to avoid accidental globbing in evaled expressions
9655no_glob_subst='s/\*/\\\*/g'
9656
cristy73bd4a52010-10-05 11:24:23 +00009657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9658$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009659if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009660 $as_echo_n "(cached) " >&6
9661else
9662 if test -n "$NM"; then
9663 # Let the user override the test.
9664 lt_cv_path_NM="$NM"
9665else
9666 lt_nm_to_check="${ac_tool_prefix}nm"
9667 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9668 lt_nm_to_check="$lt_nm_to_check nm"
9669 fi
9670 for lt_tmp_nm in $lt_nm_to_check; do
9671 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9672 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9673 IFS="$lt_save_ifs"
9674 test -z "$ac_dir" && ac_dir=.
9675 tmp_nm="$ac_dir/$lt_tmp_nm"
9676 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9677 # Check to see if the nm accepts a BSD-compat flag.
9678 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9679 # nm: unknown option "B" ignored
9680 # Tru64's nm complains that /dev/null is an invalid object file
9681 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9682 */dev/null* | *'Invalid file or object type'*)
9683 lt_cv_path_NM="$tmp_nm -B"
9684 break
9685 ;;
9686 *)
9687 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9688 */dev/null*)
9689 lt_cv_path_NM="$tmp_nm -p"
9690 break
9691 ;;
9692 *)
9693 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9694 continue # so that we can try to find one that supports BSD flags
9695 ;;
9696 esac
9697 ;;
9698 esac
9699 fi
9700 done
9701 IFS="$lt_save_ifs"
9702 done
9703 : ${lt_cv_path_NM=no}
9704fi
9705fi
9706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9707$as_echo "$lt_cv_path_NM" >&6; }
9708if test "$lt_cv_path_NM" != "no"; then
9709 NM="$lt_cv_path_NM"
9710else
9711 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009712 if test -n "$DUMPBIN"; then :
9713 # Let the user override the test.
9714 else
9715 if test -n "$ac_tool_prefix"; then
9716 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009717 do
9718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9719set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9721$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009722if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009723 $as_echo_n "(cached) " >&6
9724else
9725 if test -n "$DUMPBIN"; then
9726 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9727else
9728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9729for as_dir in $PATH
9730do
9731 IFS=$as_save_IFS
9732 test -z "$as_dir" && as_dir=.
9733 for ac_exec_ext in '' $ac_executable_extensions; do
9734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9735 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9737 break 2
9738 fi
9739done
9740 done
9741IFS=$as_save_IFS
9742
9743fi
9744fi
9745DUMPBIN=$ac_cv_prog_DUMPBIN
9746if test -n "$DUMPBIN"; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9748$as_echo "$DUMPBIN" >&6; }
9749else
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9751$as_echo "no" >&6; }
9752fi
9753
9754
9755 test -n "$DUMPBIN" && break
9756 done
9757fi
9758if test -z "$DUMPBIN"; then
9759 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009760 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009761do
9762 # Extract the first word of "$ac_prog", so it can be a program name with args.
9763set dummy $ac_prog; ac_word=$2
9764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9765$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009766if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009767 $as_echo_n "(cached) " >&6
9768else
9769 if test -n "$ac_ct_DUMPBIN"; then
9770 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9771else
9772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9773for as_dir in $PATH
9774do
9775 IFS=$as_save_IFS
9776 test -z "$as_dir" && as_dir=.
9777 for ac_exec_ext in '' $ac_executable_extensions; do
9778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9779 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9781 break 2
9782 fi
9783done
9784 done
9785IFS=$as_save_IFS
9786
9787fi
9788fi
9789ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9790if test -n "$ac_ct_DUMPBIN"; then
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9792$as_echo "$ac_ct_DUMPBIN" >&6; }
9793else
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9795$as_echo "no" >&6; }
9796fi
9797
9798
9799 test -n "$ac_ct_DUMPBIN" && break
9800done
9801
9802 if test "x$ac_ct_DUMPBIN" = x; then
9803 DUMPBIN=":"
9804 else
9805 case $cross_compiling:$ac_tool_warned in
9806yes:)
9807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9809ac_tool_warned=yes ;;
9810esac
9811 DUMPBIN=$ac_ct_DUMPBIN
9812 fi
9813fi
9814
cristy0c60a692010-11-04 01:09:47 +00009815 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9816 *COFF*)
9817 DUMPBIN="$DUMPBIN -symbols"
9818 ;;
9819 *)
9820 DUMPBIN=:
9821 ;;
9822 esac
9823 fi
cristy73bd4a52010-10-05 11:24:23 +00009824
9825 if test "$DUMPBIN" != ":"; then
9826 NM="$DUMPBIN"
9827 fi
9828fi
9829test -z "$NM" && NM=nm
9830
9831
9832
9833
9834
9835
9836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9837$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009838if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009839 $as_echo_n "(cached) " >&6
9840else
9841 lt_cv_nm_interface="BSD nm"
9842 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009843 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009844 (eval "$ac_compile" 2>conftest.err)
9845 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009846 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009847 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9848 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009849 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009850 cat conftest.out >&5
9851 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9852 lt_cv_nm_interface="MS dumpbin"
9853 fi
9854 rm -f conftest*
9855fi
9856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9857$as_echo "$lt_cv_nm_interface" >&6; }
9858
9859# find the maximum length of command line arguments
9860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9861$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009862if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009863 $as_echo_n "(cached) " >&6
9864else
9865 i=0
9866 teststring="ABCD"
9867
9868 case $build_os in
9869 msdosdjgpp*)
9870 # On DJGPP, this test can blow up pretty badly due to problems in libc
9871 # (any single argument exceeding 2000 bytes causes a buffer overrun
9872 # during glob expansion). Even if it were fixed, the result of this
9873 # check would be larger than it should be.
9874 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9875 ;;
9876
9877 gnu*)
9878 # Under GNU Hurd, this test is not required because there is
9879 # no limit to the length of command line arguments.
9880 # Libtool will interpret -1 as no limit whatsoever
9881 lt_cv_sys_max_cmd_len=-1;
9882 ;;
9883
9884 cygwin* | mingw* | cegcc*)
9885 # On Win9x/ME, this test blows up -- it succeeds, but takes
9886 # about 5 minutes as the teststring grows exponentially.
9887 # Worse, since 9x/ME are not pre-emptively multitasking,
9888 # you end up with a "frozen" computer, even though with patience
9889 # the test eventually succeeds (with a max line length of 256k).
9890 # Instead, let's just punt: use the minimum linelength reported by
9891 # all of the supported platforms: 8192 (on NT/2K/XP).
9892 lt_cv_sys_max_cmd_len=8192;
9893 ;;
9894
cristy0c60a692010-11-04 01:09:47 +00009895 mint*)
9896 # On MiNT this can take a long time and run out of memory.
9897 lt_cv_sys_max_cmd_len=8192;
9898 ;;
9899
cristy73bd4a52010-10-05 11:24:23 +00009900 amigaos*)
9901 # On AmigaOS with pdksh, this test takes hours, literally.
9902 # So we just punt and use a minimum line length of 8192.
9903 lt_cv_sys_max_cmd_len=8192;
9904 ;;
9905
9906 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9907 # This has been around since 386BSD, at least. Likely further.
9908 if test -x /sbin/sysctl; then
9909 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9910 elif test -x /usr/sbin/sysctl; then
9911 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9912 else
9913 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9914 fi
9915 # And add a safety zone
9916 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9917 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9918 ;;
9919
9920 interix*)
9921 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9922 lt_cv_sys_max_cmd_len=196608
9923 ;;
9924
9925 osf*)
9926 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9927 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9928 # nice to cause kernel panics so lets avoid the loop below.
9929 # First set a reasonable default.
9930 lt_cv_sys_max_cmd_len=16384
9931 #
9932 if test -x /sbin/sysconfig; then
9933 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9934 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9935 esac
9936 fi
9937 ;;
9938 sco3.2v5*)
9939 lt_cv_sys_max_cmd_len=102400
9940 ;;
9941 sysv5* | sco5v6* | sysv4.2uw2*)
9942 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9943 if test -n "$kargmax"; then
9944 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9945 else
9946 lt_cv_sys_max_cmd_len=32768
9947 fi
9948 ;;
9949 *)
9950 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9951 if test -n "$lt_cv_sys_max_cmd_len"; then
9952 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9954 else
9955 # Make teststring a little bigger before we do anything with it.
9956 # a 1K string should be a reasonable start.
9957 for i in 1 2 3 4 5 6 7 8 ; do
9958 teststring=$teststring$teststring
9959 done
9960 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9961 # If test is not a shell built-in, we'll probably end up computing a
9962 # maximum length that is only half of the actual maximum length, but
9963 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +00009964 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9965 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +00009966 test $i != 17 # 1/2 MB should be enough
9967 do
9968 i=`expr $i + 1`
9969 teststring=$teststring$teststring
9970 done
9971 # Only check the string length outside the loop.
9972 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9973 teststring=
9974 # Add a significant safety factor because C++ compilers can tack on
9975 # massive amounts of additional arguments before passing them to the
9976 # linker. It appears as though 1/2 is a usable value.
9977 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9978 fi
9979 ;;
9980 esac
9981
9982fi
9983
9984if test -n $lt_cv_sys_max_cmd_len ; then
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9986$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9987else
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9989$as_echo "none" >&6; }
9990fi
9991max_cmd_len=$lt_cv_sys_max_cmd_len
9992
9993
9994
9995
9996
9997
9998: ${CP="cp -f"}
9999: ${MV="mv -f"}
10000: ${RM="rm -f"}
10001
10002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10003$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10004# Try some XSI features
10005xsi_shell=no
10006( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010007 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10008 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010009 && eval 'test $(( 1 + 1 )) -eq 2 \
10010 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10011 && xsi_shell=yes
10012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10013$as_echo "$xsi_shell" >&6; }
10014
10015
10016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10017$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10018lt_shell_append=no
10019( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10020 >/dev/null 2>&1 \
10021 && lt_shell_append=yes
10022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10023$as_echo "$lt_shell_append" >&6; }
10024
10025
10026if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10027 lt_unset=unset
10028else
10029 lt_unset=false
10030fi
10031
10032
10033
10034
10035
10036# test EBCDIC or ASCII
10037case `echo X|tr X '\101'` in
10038 A) # ASCII based system
10039 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10040 lt_SP2NL='tr \040 \012'
10041 lt_NL2SP='tr \015\012 \040\040'
10042 ;;
10043 *) # EBCDIC based system
10044 lt_SP2NL='tr \100 \n'
10045 lt_NL2SP='tr \r\n \100\100'
10046 ;;
10047esac
10048
10049
10050
10051
10052
10053
10054
10055
10056
cristyda16f162011-02-19 23:52:17 +000010057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10058$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10059if ${lt_cv_to_host_file_cmd+:} false; then :
10060 $as_echo_n "(cached) " >&6
10061else
10062 case $host in
10063 *-*-mingw* )
10064 case $build in
10065 *-*-mingw* ) # actually msys
10066 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10067 ;;
10068 *-*-cygwin* )
10069 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10070 ;;
10071 * ) # otherwise, assume *nix
10072 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10073 ;;
10074 esac
10075 ;;
10076 *-*-cygwin* )
10077 case $build in
10078 *-*-mingw* ) # actually msys
10079 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10080 ;;
10081 *-*-cygwin* )
10082 lt_cv_to_host_file_cmd=func_convert_file_noop
10083 ;;
10084 * ) # otherwise, assume *nix
10085 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10086 ;;
10087 esac
10088 ;;
10089 * ) # unhandled hosts (and "normal" native builds)
10090 lt_cv_to_host_file_cmd=func_convert_file_noop
10091 ;;
10092esac
10093
10094fi
10095
10096to_host_file_cmd=$lt_cv_to_host_file_cmd
10097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10098$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10099
10100
10101
10102
10103
10104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10105$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10106if ${lt_cv_to_tool_file_cmd+:} false; then :
10107 $as_echo_n "(cached) " >&6
10108else
10109 #assume ordinary cross tools, or native build.
10110lt_cv_to_tool_file_cmd=func_convert_file_noop
10111case $host in
10112 *-*-mingw* )
10113 case $build in
10114 *-*-mingw* ) # actually msys
10115 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10116 ;;
10117 esac
10118 ;;
10119esac
10120
10121fi
10122
10123to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10125$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10126
10127
10128
10129
10130
cristy73bd4a52010-10-05 11:24:23 +000010131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10132$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010133if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010134 $as_echo_n "(cached) " >&6
10135else
10136 lt_cv_ld_reload_flag='-r'
10137fi
10138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10139$as_echo "$lt_cv_ld_reload_flag" >&6; }
10140reload_flag=$lt_cv_ld_reload_flag
10141case $reload_flag in
10142"" | " "*) ;;
10143*) reload_flag=" $reload_flag" ;;
10144esac
10145reload_cmds='$LD$reload_flag -o $output$reload_objs'
10146case $host_os in
cristyda16f162011-02-19 23:52:17 +000010147 cygwin* | mingw* | pw32* | cegcc*)
10148 if test "$GCC" != yes; then
10149 reload_cmds=false
10150 fi
10151 ;;
cristy73bd4a52010-10-05 11:24:23 +000010152 darwin*)
10153 if test "$GCC" = yes; then
10154 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10155 else
10156 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10157 fi
10158 ;;
10159esac
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169if test -n "$ac_tool_prefix"; then
10170 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10171set dummy ${ac_tool_prefix}objdump; ac_word=$2
10172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10173$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010174if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010175 $as_echo_n "(cached) " >&6
10176else
10177 if test -n "$OBJDUMP"; then
10178 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10179else
10180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181for as_dir in $PATH
10182do
10183 IFS=$as_save_IFS
10184 test -z "$as_dir" && as_dir=.
10185 for ac_exec_ext in '' $ac_executable_extensions; do
10186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10187 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10189 break 2
10190 fi
10191done
10192 done
10193IFS=$as_save_IFS
10194
10195fi
10196fi
10197OBJDUMP=$ac_cv_prog_OBJDUMP
10198if test -n "$OBJDUMP"; then
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10200$as_echo "$OBJDUMP" >&6; }
10201else
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10203$as_echo "no" >&6; }
10204fi
10205
10206
10207fi
10208if test -z "$ac_cv_prog_OBJDUMP"; then
10209 ac_ct_OBJDUMP=$OBJDUMP
10210 # Extract the first word of "objdump", so it can be a program name with args.
10211set dummy objdump; ac_word=$2
10212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010214if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010215 $as_echo_n "(cached) " >&6
10216else
10217 if test -n "$ac_ct_OBJDUMP"; then
10218 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10219else
10220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10221for as_dir in $PATH
10222do
10223 IFS=$as_save_IFS
10224 test -z "$as_dir" && as_dir=.
10225 for ac_exec_ext in '' $ac_executable_extensions; do
10226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10227 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10229 break 2
10230 fi
10231done
10232 done
10233IFS=$as_save_IFS
10234
10235fi
10236fi
10237ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10238if test -n "$ac_ct_OBJDUMP"; then
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10240$as_echo "$ac_ct_OBJDUMP" >&6; }
10241else
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243$as_echo "no" >&6; }
10244fi
10245
10246 if test "x$ac_ct_OBJDUMP" = x; then
10247 OBJDUMP="false"
10248 else
10249 case $cross_compiling:$ac_tool_warned in
10250yes:)
10251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10253ac_tool_warned=yes ;;
10254esac
10255 OBJDUMP=$ac_ct_OBJDUMP
10256 fi
10257else
10258 OBJDUMP="$ac_cv_prog_OBJDUMP"
10259fi
10260
10261test -z "$OBJDUMP" && OBJDUMP=objdump
10262
10263
10264
10265
10266
10267
10268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10269$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010270if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010271 $as_echo_n "(cached) " >&6
10272else
10273 lt_cv_file_magic_cmd='$MAGIC_CMD'
10274lt_cv_file_magic_test_file=
10275lt_cv_deplibs_check_method='unknown'
10276# Need to set the preceding variable on all platforms that support
10277# interlibrary dependencies.
10278# 'none' -- dependencies not supported.
10279# `unknown' -- same as none, but documents that we really don't know.
10280# 'pass_all' -- all dependencies passed with no checks.
10281# 'test_compile' -- check by making test program.
10282# 'file_magic [[regex]]' -- check by looking for files in library path
10283# which responds to the $file_magic_cmd with a given extended regex.
10284# If you have `file' or equivalent on your system and you're not sure
10285# whether `pass_all' will *always* work, you probably want this one.
10286
10287case $host_os in
10288aix[4-9]*)
10289 lt_cv_deplibs_check_method=pass_all
10290 ;;
10291
10292beos*)
10293 lt_cv_deplibs_check_method=pass_all
10294 ;;
10295
10296bsdi[45]*)
10297 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10298 lt_cv_file_magic_cmd='/usr/bin/file -L'
10299 lt_cv_file_magic_test_file=/shlib/libc.so
10300 ;;
10301
10302cygwin*)
10303 # func_win32_libid is a shell function defined in ltmain.sh
10304 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10305 lt_cv_file_magic_cmd='func_win32_libid'
10306 ;;
10307
10308mingw* | pw32*)
10309 # Base MSYS/MinGW do not provide the 'file' command needed by
10310 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10311 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010312 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10313 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010314 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10315 lt_cv_file_magic_cmd='func_win32_libid'
10316 else
cristy0c60a692010-11-04 01:09:47 +000010317 # Keep this pattern in sync with the one in func_win32_libid.
10318 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 +000010319 lt_cv_file_magic_cmd='$OBJDUMP -f'
10320 fi
10321 ;;
10322
cristy0c60a692010-11-04 01:09:47 +000010323cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010324 # use the weaker test based on 'objdump'. See mingw*.
10325 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10326 lt_cv_file_magic_cmd='$OBJDUMP -f'
10327 ;;
10328
10329darwin* | rhapsody*)
10330 lt_cv_deplibs_check_method=pass_all
10331 ;;
10332
10333freebsd* | dragonfly*)
10334 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10335 case $host_cpu in
10336 i*86 )
10337 # Not sure whether the presence of OpenBSD here was a mistake.
10338 # Let's accept both of them until this is cleared up.
10339 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10340 lt_cv_file_magic_cmd=/usr/bin/file
10341 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10342 ;;
10343 esac
10344 else
10345 lt_cv_deplibs_check_method=pass_all
10346 fi
10347 ;;
10348
10349gnu*)
10350 lt_cv_deplibs_check_method=pass_all
10351 ;;
10352
cristy0c60a692010-11-04 01:09:47 +000010353haiku*)
10354 lt_cv_deplibs_check_method=pass_all
10355 ;;
10356
cristy73bd4a52010-10-05 11:24:23 +000010357hpux10.20* | hpux11*)
10358 lt_cv_file_magic_cmd=/usr/bin/file
10359 case $host_cpu in
10360 ia64*)
10361 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10362 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10363 ;;
10364 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010365 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 +000010366 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10367 ;;
10368 *)
cristy0c60a692010-11-04 01:09:47 +000010369 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 +000010370 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10371 ;;
10372 esac
10373 ;;
10374
10375interix[3-9]*)
10376 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10377 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10378 ;;
10379
10380irix5* | irix6* | nonstopux*)
10381 case $LD in
10382 *-32|*"-32 ") libmagic=32-bit;;
10383 *-n32|*"-n32 ") libmagic=N32;;
10384 *-64|*"-64 ") libmagic=64-bit;;
10385 *) libmagic=never-match;;
10386 esac
10387 lt_cv_deplibs_check_method=pass_all
10388 ;;
10389
10390# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010391linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010392 lt_cv_deplibs_check_method=pass_all
10393 ;;
10394
10395netbsd*)
10396 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10397 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10398 else
10399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10400 fi
10401 ;;
10402
10403newos6*)
10404 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10405 lt_cv_file_magic_cmd=/usr/bin/file
10406 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10407 ;;
10408
10409*nto* | *qnx*)
10410 lt_cv_deplibs_check_method=pass_all
10411 ;;
10412
10413openbsd*)
10414 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10416 else
10417 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10418 fi
10419 ;;
10420
10421osf3* | osf4* | osf5*)
10422 lt_cv_deplibs_check_method=pass_all
10423 ;;
10424
10425rdos*)
10426 lt_cv_deplibs_check_method=pass_all
10427 ;;
10428
10429solaris*)
10430 lt_cv_deplibs_check_method=pass_all
10431 ;;
10432
10433sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10434 lt_cv_deplibs_check_method=pass_all
10435 ;;
10436
10437sysv4 | sysv4.3*)
10438 case $host_vendor in
10439 motorola)
10440 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]'
10441 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10442 ;;
10443 ncr)
10444 lt_cv_deplibs_check_method=pass_all
10445 ;;
10446 sequent)
10447 lt_cv_file_magic_cmd='/bin/file'
10448 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10449 ;;
10450 sni)
10451 lt_cv_file_magic_cmd='/bin/file'
10452 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10453 lt_cv_file_magic_test_file=/lib/libc.so
10454 ;;
10455 siemens)
10456 lt_cv_deplibs_check_method=pass_all
10457 ;;
10458 pc)
10459 lt_cv_deplibs_check_method=pass_all
10460 ;;
10461 esac
10462 ;;
10463
10464tpf*)
10465 lt_cv_deplibs_check_method=pass_all
10466 ;;
10467esac
10468
10469fi
10470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10471$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010472
10473file_magic_glob=
10474want_nocaseglob=no
10475if test "$build" = "$host"; then
10476 case $host_os in
10477 mingw* | pw32*)
10478 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10479 want_nocaseglob=yes
10480 else
10481 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10482 fi
10483 ;;
10484 esac
10485fi
10486
cristy73bd4a52010-10-05 11:24:23 +000010487file_magic_cmd=$lt_cv_file_magic_cmd
10488deplibs_check_method=$lt_cv_deplibs_check_method
10489test -z "$deplibs_check_method" && deplibs_check_method=unknown
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
cristyda16f162011-02-19 23:52:17 +000010502
10503
10504
10505
10506
10507
10508
10509
10510
10511
cristy73bd4a52010-10-05 11:24:23 +000010512if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010513 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10514set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10516$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010517if ${ac_cv_prog_DLLTOOL+:} false; then :
10518 $as_echo_n "(cached) " >&6
10519else
10520 if test -n "$DLLTOOL"; then
10521 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10522else
10523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10524for as_dir in $PATH
10525do
10526 IFS=$as_save_IFS
10527 test -z "$as_dir" && as_dir=.
10528 for ac_exec_ext in '' $ac_executable_extensions; do
10529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10530 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10532 break 2
10533 fi
10534done
10535 done
10536IFS=$as_save_IFS
10537
10538fi
10539fi
10540DLLTOOL=$ac_cv_prog_DLLTOOL
10541if test -n "$DLLTOOL"; then
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10543$as_echo "$DLLTOOL" >&6; }
10544else
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546$as_echo "no" >&6; }
10547fi
10548
10549
10550fi
10551if test -z "$ac_cv_prog_DLLTOOL"; then
10552 ac_ct_DLLTOOL=$DLLTOOL
10553 # Extract the first word of "dlltool", so it can be a program name with args.
10554set dummy dlltool; ac_word=$2
10555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10556$as_echo_n "checking for $ac_word... " >&6; }
10557if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10558 $as_echo_n "(cached) " >&6
10559else
10560 if test -n "$ac_ct_DLLTOOL"; then
10561 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10562else
10563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10564for as_dir in $PATH
10565do
10566 IFS=$as_save_IFS
10567 test -z "$as_dir" && as_dir=.
10568 for ac_exec_ext in '' $ac_executable_extensions; do
10569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10570 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10572 break 2
10573 fi
10574done
10575 done
10576IFS=$as_save_IFS
10577
10578fi
10579fi
10580ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10581if test -n "$ac_ct_DLLTOOL"; then
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10583$as_echo "$ac_ct_DLLTOOL" >&6; }
10584else
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10586$as_echo "no" >&6; }
10587fi
10588
10589 if test "x$ac_ct_DLLTOOL" = x; then
10590 DLLTOOL="false"
10591 else
10592 case $cross_compiling:$ac_tool_warned in
10593yes:)
10594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10596ac_tool_warned=yes ;;
10597esac
10598 DLLTOOL=$ac_ct_DLLTOOL
10599 fi
10600else
10601 DLLTOOL="$ac_cv_prog_DLLTOOL"
10602fi
10603
10604test -z "$DLLTOOL" && DLLTOOL=dlltool
10605
10606
10607
10608
10609
10610
10611
10612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10613$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10614if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10615 $as_echo_n "(cached) " >&6
10616else
10617 lt_cv_sharedlib_from_linklib_cmd='unknown'
10618
10619case $host_os in
10620cygwin* | mingw* | pw32* | cegcc*)
10621 # two different shell functions defined in ltmain.sh
10622 # decide which to use based on capabilities of $DLLTOOL
10623 case `$DLLTOOL --help 2>&1` in
10624 *--identify-strict*)
10625 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10626 ;;
10627 *)
10628 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10629 ;;
10630 esac
10631 ;;
10632*)
10633 # fallback: assume linklib IS sharedlib
10634 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10635 ;;
10636esac
10637
10638fi
10639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10640$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10641sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10642test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10643
10644
10645
10646
10647
10648
10649
10650if test -n "$ac_tool_prefix"; then
10651 for ac_prog in ar
10652 do
10653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10654set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10656$as_echo_n "checking for $ac_word... " >&6; }
10657if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010658 $as_echo_n "(cached) " >&6
10659else
10660 if test -n "$AR"; then
10661 ac_cv_prog_AR="$AR" # Let the user override the test.
10662else
10663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664for as_dir in $PATH
10665do
10666 IFS=$as_save_IFS
10667 test -z "$as_dir" && as_dir=.
10668 for ac_exec_ext in '' $ac_executable_extensions; do
10669 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 +000010670 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10672 break 2
10673 fi
10674done
10675 done
10676IFS=$as_save_IFS
10677
10678fi
10679fi
10680AR=$ac_cv_prog_AR
10681if test -n "$AR"; then
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10683$as_echo "$AR" >&6; }
10684else
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686$as_echo "no" >&6; }
10687fi
10688
10689
cristyda16f162011-02-19 23:52:17 +000010690 test -n "$AR" && break
10691 done
cristy73bd4a52010-10-05 11:24:23 +000010692fi
cristyda16f162011-02-19 23:52:17 +000010693if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010694 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010695 for ac_prog in ar
10696do
10697 # Extract the first word of "$ac_prog", so it can be a program name with args.
10698set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10700$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010701if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010702 $as_echo_n "(cached) " >&6
10703else
10704 if test -n "$ac_ct_AR"; then
10705 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10706else
10707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10708for as_dir in $PATH
10709do
10710 IFS=$as_save_IFS
10711 test -z "$as_dir" && as_dir=.
10712 for ac_exec_ext in '' $ac_executable_extensions; do
10713 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 +000010714 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10716 break 2
10717 fi
10718done
10719 done
10720IFS=$as_save_IFS
10721
10722fi
10723fi
10724ac_ct_AR=$ac_cv_prog_ac_ct_AR
10725if test -n "$ac_ct_AR"; then
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10727$as_echo "$ac_ct_AR" >&6; }
10728else
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10730$as_echo "no" >&6; }
10731fi
10732
cristyda16f162011-02-19 23:52:17 +000010733
10734 test -n "$ac_ct_AR" && break
10735done
10736
cristy73bd4a52010-10-05 11:24:23 +000010737 if test "x$ac_ct_AR" = x; then
10738 AR="false"
10739 else
10740 case $cross_compiling:$ac_tool_warned in
10741yes:)
10742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10744ac_tool_warned=yes ;;
10745esac
10746 AR=$ac_ct_AR
10747 fi
cristy73bd4a52010-10-05 11:24:23 +000010748fi
10749
cristyda16f162011-02-19 23:52:17 +000010750: ${AR=ar}
10751: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
cristyda16f162011-02-19 23:52:17 +000010763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10764$as_echo_n "checking for archiver @FILE support... " >&6; }
10765if ${lt_cv_ar_at_file+:} false; then :
10766 $as_echo_n "(cached) " >&6
10767else
10768 lt_cv_ar_at_file=no
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770/* end confdefs.h. */
10771
10772int
10773main ()
10774{
10775
10776 ;
10777 return 0;
10778}
10779_ACEOF
10780if ac_fn_c_try_compile "$LINENO"; then :
10781 echo conftest.$ac_objext > conftest.lst
10782 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10784 (eval $lt_ar_try) 2>&5
10785 ac_status=$?
10786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10787 test $ac_status = 0; }
10788 if test "$ac_status" -eq 0; then
10789 # Ensure the archiver fails upon bogus file names.
10790 rm -f conftest.$ac_objext libconftest.a
10791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10792 (eval $lt_ar_try) 2>&5
10793 ac_status=$?
10794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10795 test $ac_status = 0; }
10796 if test "$ac_status" -ne 0; then
10797 lt_cv_ar_at_file=@
10798 fi
10799 fi
10800 rm -f conftest.* libconftest.a
10801
10802fi
10803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804
10805fi
10806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10807$as_echo "$lt_cv_ar_at_file" >&6; }
10808
10809if test "x$lt_cv_ar_at_file" = xno; then
10810 archiver_list_spec=
10811else
10812 archiver_list_spec=$lt_cv_ar_at_file
10813fi
10814
10815
10816
10817
10818
10819
10820
cristy73bd4a52010-10-05 11:24:23 +000010821if test -n "$ac_tool_prefix"; then
10822 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10823set dummy ${ac_tool_prefix}strip; ac_word=$2
10824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10825$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010826if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010827 $as_echo_n "(cached) " >&6
10828else
10829 if test -n "$STRIP"; then
10830 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10831else
10832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10833for as_dir in $PATH
10834do
10835 IFS=$as_save_IFS
10836 test -z "$as_dir" && as_dir=.
10837 for ac_exec_ext in '' $ac_executable_extensions; do
10838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10839 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10841 break 2
10842 fi
10843done
10844 done
10845IFS=$as_save_IFS
10846
10847fi
10848fi
10849STRIP=$ac_cv_prog_STRIP
10850if test -n "$STRIP"; then
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10852$as_echo "$STRIP" >&6; }
10853else
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10855$as_echo "no" >&6; }
10856fi
10857
10858
10859fi
10860if test -z "$ac_cv_prog_STRIP"; then
10861 ac_ct_STRIP=$STRIP
10862 # Extract the first word of "strip", so it can be a program name with args.
10863set dummy strip; ac_word=$2
10864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10865$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010866if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010867 $as_echo_n "(cached) " >&6
10868else
10869 if test -n "$ac_ct_STRIP"; then
10870 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10871else
10872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10873for as_dir in $PATH
10874do
10875 IFS=$as_save_IFS
10876 test -z "$as_dir" && as_dir=.
10877 for ac_exec_ext in '' $ac_executable_extensions; do
10878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10879 ac_cv_prog_ac_ct_STRIP="strip"
10880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10881 break 2
10882 fi
10883done
10884 done
10885IFS=$as_save_IFS
10886
10887fi
10888fi
10889ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10890if test -n "$ac_ct_STRIP"; then
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10892$as_echo "$ac_ct_STRIP" >&6; }
10893else
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10895$as_echo "no" >&6; }
10896fi
10897
10898 if test "x$ac_ct_STRIP" = x; then
10899 STRIP=":"
10900 else
10901 case $cross_compiling:$ac_tool_warned in
10902yes:)
10903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10905ac_tool_warned=yes ;;
10906esac
10907 STRIP=$ac_ct_STRIP
10908 fi
10909else
10910 STRIP="$ac_cv_prog_STRIP"
10911fi
10912
10913test -z "$STRIP" && STRIP=:
10914
10915
10916
10917
10918
10919
10920if test -n "$ac_tool_prefix"; then
10921 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10922set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10924$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010925if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010926 $as_echo_n "(cached) " >&6
10927else
10928 if test -n "$RANLIB"; then
10929 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10930else
10931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932for as_dir in $PATH
10933do
10934 IFS=$as_save_IFS
10935 test -z "$as_dir" && as_dir=.
10936 for ac_exec_ext in '' $ac_executable_extensions; do
10937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10938 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10940 break 2
10941 fi
10942done
10943 done
10944IFS=$as_save_IFS
10945
10946fi
10947fi
10948RANLIB=$ac_cv_prog_RANLIB
10949if test -n "$RANLIB"; then
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10951$as_echo "$RANLIB" >&6; }
10952else
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10954$as_echo "no" >&6; }
10955fi
10956
10957
10958fi
10959if test -z "$ac_cv_prog_RANLIB"; then
10960 ac_ct_RANLIB=$RANLIB
10961 # Extract the first word of "ranlib", so it can be a program name with args.
10962set dummy ranlib; ac_word=$2
10963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10964$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010965if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010966 $as_echo_n "(cached) " >&6
10967else
10968 if test -n "$ac_ct_RANLIB"; then
10969 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10970else
10971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972for as_dir in $PATH
10973do
10974 IFS=$as_save_IFS
10975 test -z "$as_dir" && as_dir=.
10976 for ac_exec_ext in '' $ac_executable_extensions; do
10977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10978 ac_cv_prog_ac_ct_RANLIB="ranlib"
10979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10980 break 2
10981 fi
10982done
10983 done
10984IFS=$as_save_IFS
10985
10986fi
10987fi
10988ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10989if test -n "$ac_ct_RANLIB"; then
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10991$as_echo "$ac_ct_RANLIB" >&6; }
10992else
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10994$as_echo "no" >&6; }
10995fi
10996
10997 if test "x$ac_ct_RANLIB" = x; then
10998 RANLIB=":"
10999 else
11000 case $cross_compiling:$ac_tool_warned in
11001yes:)
11002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11004ac_tool_warned=yes ;;
11005esac
11006 RANLIB=$ac_ct_RANLIB
11007 fi
11008else
11009 RANLIB="$ac_cv_prog_RANLIB"
11010fi
11011
11012test -z "$RANLIB" && RANLIB=:
11013
11014
11015
11016
11017
11018
11019# Determine commands to create old-style static archives.
11020old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11021old_postinstall_cmds='chmod 644 $oldlib'
11022old_postuninstall_cmds=
11023
11024if test -n "$RANLIB"; then
11025 case $host_os in
11026 openbsd*)
11027 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11028 ;;
11029 *)
11030 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11031 ;;
11032 esac
11033 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11034fi
11035
cristy0c60a692010-11-04 01:09:47 +000011036case $host_os in
11037 darwin*)
11038 lock_old_archive_extraction=yes ;;
11039 *)
11040 lock_old_archive_extraction=no ;;
11041esac
11042
11043
11044
11045
11046
11047
cristy73bd4a52010-10-05 11:24:23 +000011048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081# If no C compiler was specified, use CC.
11082LTCC=${LTCC-"$CC"}
11083
11084# If no C compiler flags were specified, use CFLAGS.
11085LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11086
11087# Allow CC to be a program name with arguments.
11088compiler=$CC
11089
11090
11091# Check for command to grab the raw symbol name followed by C symbol from nm.
11092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11093$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011094if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011095 $as_echo_n "(cached) " >&6
11096else
11097
11098# These are sane defaults that work on at least a few old systems.
11099# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11100
11101# Character class describing NM global symbol codes.
11102symcode='[BCDEGRST]'
11103
11104# Regexp to match symbols that can be accessed directly from C.
11105sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11106
11107# Define system-specific variables.
11108case $host_os in
11109aix*)
11110 symcode='[BCDT]'
11111 ;;
11112cygwin* | mingw* | pw32* | cegcc*)
11113 symcode='[ABCDGISTW]'
11114 ;;
11115hpux*)
11116 if test "$host_cpu" = ia64; then
11117 symcode='[ABCDEGRST]'
11118 fi
11119 ;;
11120irix* | nonstopux*)
11121 symcode='[BCDEGRST]'
11122 ;;
11123osf*)
11124 symcode='[BCDEGQRST]'
11125 ;;
11126solaris*)
11127 symcode='[BDRT]'
11128 ;;
11129sco3.2v5*)
11130 symcode='[DT]'
11131 ;;
11132sysv4.2uw2*)
11133 symcode='[DT]'
11134 ;;
11135sysv5* | sco5v6* | unixware* | OpenUNIX*)
11136 symcode='[ABDT]'
11137 ;;
11138sysv4)
11139 symcode='[DFNSTU]'
11140 ;;
11141esac
11142
11143# If we're using GNU nm, then use its standard symbol codes.
11144case `$NM -V 2>&1` in
11145*GNU* | *'with BFD'*)
11146 symcode='[ABCDGIRSTW]' ;;
11147esac
11148
11149# Transform an extracted symbol line into a proper C declaration.
11150# Some systems (esp. on ia64) link data and code symbols differently,
11151# so use this general approach.
11152lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11153
11154# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011155lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11156lt_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 +000011157
11158# Handle CRLF in mingw tool chain
11159opt_cr=
11160case $build_os in
11161mingw*)
11162 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11163 ;;
11164esac
11165
11166# Try without a prefix underscore, then with it.
11167for ac_symprfx in "" "_"; do
11168
11169 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11170 symxfrm="\\1 $ac_symprfx\\2 \\2"
11171
11172 # Write the raw and C identifiers.
11173 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11174 # Fake it for dumpbin and say T for any non-static function
11175 # and D for any global variable.
11176 # Also find C++ and __fastcall symbols from MSVC++,
11177 # which start with @ or ?.
11178 lt_cv_sys_global_symbol_pipe="$AWK '"\
11179" {last_section=section; section=\$ 3};"\
11180" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11181" \$ 0!~/External *\|/{next};"\
11182" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11183" {if(hide[section]) next};"\
11184" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11185" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11186" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11187" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11188" ' prfx=^$ac_symprfx"
11189 else
11190 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11191 fi
cristyda16f162011-02-19 23:52:17 +000011192 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011193
11194 # Check to see that the pipe works correctly.
11195 pipe_works=no
11196
11197 rm -f conftest*
11198 cat > conftest.$ac_ext <<_LT_EOF
11199#ifdef __cplusplus
11200extern "C" {
11201#endif
11202char nm_test_var;
11203void nm_test_func(void);
11204void nm_test_func(void){}
11205#ifdef __cplusplus
11206}
11207#endif
11208int main(){nm_test_var='a';nm_test_func();return(0);}
11209_LT_EOF
11210
11211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11212 (eval $ac_compile) 2>&5
11213 ac_status=$?
11214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11215 test $ac_status = 0; }; then
11216 # Now try to grab the symbols.
11217 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11219 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011220 ac_status=$?
11221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11222 test $ac_status = 0; } && test -s "$nlist"; then
11223 # Try sorting and uniquifying the output.
11224 if sort "$nlist" | uniq > "$nlist"T; then
11225 mv -f "$nlist"T "$nlist"
11226 else
11227 rm -f "$nlist"T
11228 fi
11229
11230 # Make sure that we snagged all the symbols we need.
11231 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11232 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11233 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011234/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11235#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11236/* DATA imports from DLLs on WIN32 con't be const, because runtime
11237 relocations are performed -- see ld's documentation on pseudo-relocs. */
11238# define LT_DLSYM_CONST
11239#elif defined(__osf__)
11240/* This system does not cope well with relocations in const data. */
11241# define LT_DLSYM_CONST
11242#else
11243# define LT_DLSYM_CONST const
11244#endif
11245
cristy73bd4a52010-10-05 11:24:23 +000011246#ifdef __cplusplus
11247extern "C" {
11248#endif
11249
11250_LT_EOF
11251 # Now generate the symbol file.
11252 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11253
11254 cat <<_LT_EOF >> conftest.$ac_ext
11255
11256/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011257LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011258 const char *name;
11259 void *address;
11260}
11261lt__PROGRAM__LTX_preloaded_symbols[] =
11262{
11263 { "@PROGRAM@", (void *) 0 },
11264_LT_EOF
11265 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11266 cat <<\_LT_EOF >> conftest.$ac_ext
11267 {0, (void *) 0}
11268};
11269
11270/* This works around a problem in FreeBSD linker */
11271#ifdef FREEBSD_WORKAROUND
11272static const void *lt_preloaded_setup() {
11273 return lt__PROGRAM__LTX_preloaded_symbols;
11274}
11275#endif
11276
11277#ifdef __cplusplus
11278}
11279#endif
11280_LT_EOF
11281 # Now try linking the two files.
11282 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011283 lt_globsym_save_LIBS=$LIBS
11284 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011285 LIBS="conftstm.$ac_objext"
11286 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11288 (eval $ac_link) 2>&5
11289 ac_status=$?
11290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11291 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11292 pipe_works=yes
11293 fi
cristyda16f162011-02-19 23:52:17 +000011294 LIBS=$lt_globsym_save_LIBS
11295 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011296 else
11297 echo "cannot find nm_test_func in $nlist" >&5
11298 fi
11299 else
11300 echo "cannot find nm_test_var in $nlist" >&5
11301 fi
11302 else
11303 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11304 fi
11305 else
11306 echo "$progname: failed program was:" >&5
11307 cat conftest.$ac_ext >&5
11308 fi
11309 rm -rf conftest* conftst*
11310
11311 # Do not use the global_symbol_pipe unless it works.
11312 if test "$pipe_works" = yes; then
11313 break
11314 else
11315 lt_cv_sys_global_symbol_pipe=
11316 fi
11317done
11318
11319fi
11320
11321if test -z "$lt_cv_sys_global_symbol_pipe"; then
11322 lt_cv_sys_global_symbol_to_cdecl=
11323fi
11324if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11326$as_echo "failed" >&6; }
11327else
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11329$as_echo "ok" >&6; }
11330fi
11331
cristyda16f162011-02-19 23:52:17 +000011332# Response file support.
11333if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11334 nm_file_list_spec='@'
11335elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11336 nm_file_list_spec='@'
11337fi
cristy73bd4a52010-10-05 11:24:23 +000011338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
cristyda16f162011-02-19 23:52:17 +000011359
11360
11361
11362
11363
11364
11365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11366$as_echo_n "checking for sysroot... " >&6; }
11367
11368# Check whether --with-sysroot was given.
11369if test "${with_sysroot+set}" = set; then :
11370 withval=$with_sysroot;
11371else
11372 with_sysroot=no
11373fi
11374
11375
11376lt_sysroot=
11377case ${with_sysroot} in #(
11378 yes)
11379 if test "$GCC" = yes; then
11380 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11381 fi
11382 ;; #(
11383 /*)
11384 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11385 ;; #(
11386 no|'')
11387 ;; #(
11388 *)
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11390$as_echo "${with_sysroot}" >&6; }
11391 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11392 ;;
11393esac
11394
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11396$as_echo "${lt_sysroot:-no}" >&6; }
11397
11398
11399
11400
11401
cristy73bd4a52010-10-05 11:24:23 +000011402# Check whether --enable-libtool-lock was given.
11403if test "${enable_libtool_lock+set}" = set; then :
11404 enableval=$enable_libtool_lock;
11405fi
11406
11407test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11408
11409# Some flags need to be propagated to the compiler or linker for good
11410# libtool support.
11411case $host in
11412ia64-*-hpux*)
11413 # Find out which ABI we are using.
11414 echo 'int i;' > conftest.$ac_ext
11415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11416 (eval $ac_compile) 2>&5
11417 ac_status=$?
11418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11419 test $ac_status = 0; }; then
11420 case `/usr/bin/file conftest.$ac_objext` in
11421 *ELF-32*)
11422 HPUX_IA64_MODE="32"
11423 ;;
11424 *ELF-64*)
11425 HPUX_IA64_MODE="64"
11426 ;;
11427 esac
11428 fi
11429 rm -rf conftest*
11430 ;;
11431*-*-irix6*)
11432 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011433 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11435 (eval $ac_compile) 2>&5
11436 ac_status=$?
11437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11438 test $ac_status = 0; }; then
11439 if test "$lt_cv_prog_gnu_ld" = yes; then
11440 case `/usr/bin/file conftest.$ac_objext` in
11441 *32-bit*)
11442 LD="${LD-ld} -melf32bsmip"
11443 ;;
11444 *N32*)
11445 LD="${LD-ld} -melf32bmipn32"
11446 ;;
11447 *64-bit*)
11448 LD="${LD-ld} -melf64bmip"
11449 ;;
11450 esac
11451 else
11452 case `/usr/bin/file conftest.$ac_objext` in
11453 *32-bit*)
11454 LD="${LD-ld} -32"
11455 ;;
11456 *N32*)
11457 LD="${LD-ld} -n32"
11458 ;;
11459 *64-bit*)
11460 LD="${LD-ld} -64"
11461 ;;
11462 esac
11463 fi
11464 fi
11465 rm -rf conftest*
11466 ;;
11467
11468x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11469s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11470 # Find out which ABI we are using.
11471 echo 'int i;' > conftest.$ac_ext
11472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11473 (eval $ac_compile) 2>&5
11474 ac_status=$?
11475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11476 test $ac_status = 0; }; then
11477 case `/usr/bin/file conftest.o` in
11478 *32-bit*)
11479 case $host in
11480 x86_64-*kfreebsd*-gnu)
11481 LD="${LD-ld} -m elf_i386_fbsd"
11482 ;;
11483 x86_64-*linux*)
11484 LD="${LD-ld} -m elf_i386"
11485 ;;
11486 ppc64-*linux*|powerpc64-*linux*)
11487 LD="${LD-ld} -m elf32ppclinux"
11488 ;;
11489 s390x-*linux*)
11490 LD="${LD-ld} -m elf_s390"
11491 ;;
11492 sparc64-*linux*)
11493 LD="${LD-ld} -m elf32_sparc"
11494 ;;
11495 esac
11496 ;;
11497 *64-bit*)
11498 case $host in
11499 x86_64-*kfreebsd*-gnu)
11500 LD="${LD-ld} -m elf_x86_64_fbsd"
11501 ;;
11502 x86_64-*linux*)
11503 LD="${LD-ld} -m elf_x86_64"
11504 ;;
11505 ppc*-*linux*|powerpc*-*linux*)
11506 LD="${LD-ld} -m elf64ppc"
11507 ;;
11508 s390*-*linux*|s390*-*tpf*)
11509 LD="${LD-ld} -m elf64_s390"
11510 ;;
11511 sparc*-*linux*)
11512 LD="${LD-ld} -m elf64_sparc"
11513 ;;
11514 esac
11515 ;;
11516 esac
11517 fi
11518 rm -rf conftest*
11519 ;;
11520
11521*-*-sco3.2v5*)
11522 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11523 SAVE_CFLAGS="$CFLAGS"
11524 CFLAGS="$CFLAGS -belf"
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11526$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011527if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011528 $as_echo_n "(cached) " >&6
11529else
11530 ac_ext=c
11531ac_cpp='$CPP $CPPFLAGS'
11532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11534ac_compiler_gnu=$ac_cv_c_compiler_gnu
11535
11536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11537/* end confdefs.h. */
11538
11539int
11540main ()
11541{
11542
11543 ;
11544 return 0;
11545}
11546_ACEOF
11547if ac_fn_c_try_link "$LINENO"; then :
11548 lt_cv_cc_needs_belf=yes
11549else
11550 lt_cv_cc_needs_belf=no
11551fi
11552rm -f core conftest.err conftest.$ac_objext \
11553 conftest$ac_exeext conftest.$ac_ext
11554 ac_ext=c
11555ac_cpp='$CPP $CPPFLAGS'
11556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11558ac_compiler_gnu=$ac_cv_c_compiler_gnu
11559
11560fi
11561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11562$as_echo "$lt_cv_cc_needs_belf" >&6; }
11563 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11564 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11565 CFLAGS="$SAVE_CFLAGS"
11566 fi
11567 ;;
11568sparc*-*solaris*)
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.o` in
11577 *64-bit*)
11578 case $lt_cv_prog_gnu_ld in
11579 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11580 *)
11581 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11582 LD="${LD-ld} -64"
11583 fi
11584 ;;
11585 esac
11586 ;;
11587 esac
11588 fi
11589 rm -rf conftest*
11590 ;;
11591esac
11592
11593need_locks="$enable_libtool_lock"
11594
cristyda16f162011-02-19 23:52:17 +000011595if test -n "$ac_tool_prefix"; then
11596 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11597set dummy ${ac_tool_prefix}mt; ac_word=$2
11598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11599$as_echo_n "checking for $ac_word... " >&6; }
11600if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11601 $as_echo_n "(cached) " >&6
11602else
11603 if test -n "$MANIFEST_TOOL"; then
11604 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11605else
11606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607for as_dir in $PATH
11608do
11609 IFS=$as_save_IFS
11610 test -z "$as_dir" && as_dir=.
11611 for ac_exec_ext in '' $ac_executable_extensions; do
11612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11613 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11615 break 2
11616 fi
11617done
11618 done
11619IFS=$as_save_IFS
11620
11621fi
11622fi
11623MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11624if test -n "$MANIFEST_TOOL"; then
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11626$as_echo "$MANIFEST_TOOL" >&6; }
11627else
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629$as_echo "no" >&6; }
11630fi
11631
11632
11633fi
11634if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11635 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11636 # Extract the first word of "mt", so it can be a program name with args.
11637set dummy mt; ac_word=$2
11638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11639$as_echo_n "checking for $ac_word... " >&6; }
11640if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11641 $as_echo_n "(cached) " >&6
11642else
11643 if test -n "$ac_ct_MANIFEST_TOOL"; then
11644 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11645else
11646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11647for as_dir in $PATH
11648do
11649 IFS=$as_save_IFS
11650 test -z "$as_dir" && as_dir=.
11651 for ac_exec_ext in '' $ac_executable_extensions; do
11652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11653 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11655 break 2
11656 fi
11657done
11658 done
11659IFS=$as_save_IFS
11660
11661fi
11662fi
11663ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11664if test -n "$ac_ct_MANIFEST_TOOL"; then
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11666$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11667else
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11669$as_echo "no" >&6; }
11670fi
11671
11672 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11673 MANIFEST_TOOL=":"
11674 else
11675 case $cross_compiling:$ac_tool_warned in
11676yes:)
11677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11679ac_tool_warned=yes ;;
11680esac
11681 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11682 fi
11683else
11684 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11685fi
11686
11687test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11689$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11690if ${lt_cv_path_mainfest_tool+:} false; then :
11691 $as_echo_n "(cached) " >&6
11692else
11693 lt_cv_path_mainfest_tool=no
11694 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11695 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11696 cat conftest.err >&5
11697 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11698 lt_cv_path_mainfest_tool=yes
11699 fi
11700 rm -f conftest*
11701fi
11702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11703$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11704if test "x$lt_cv_path_mainfest_tool" != xyes; then
11705 MANIFEST_TOOL=:
11706fi
11707
11708
11709
11710
11711
cristy73bd4a52010-10-05 11:24:23 +000011712
11713 case $host_os in
11714 rhapsody* | darwin*)
11715 if test -n "$ac_tool_prefix"; then
11716 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11717set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11719$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011720if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011721 $as_echo_n "(cached) " >&6
11722else
11723 if test -n "$DSYMUTIL"; then
11724 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11725else
11726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727for as_dir in $PATH
11728do
11729 IFS=$as_save_IFS
11730 test -z "$as_dir" && as_dir=.
11731 for ac_exec_ext in '' $ac_executable_extensions; do
11732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11733 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11735 break 2
11736 fi
11737done
11738 done
11739IFS=$as_save_IFS
11740
11741fi
11742fi
11743DSYMUTIL=$ac_cv_prog_DSYMUTIL
11744if test -n "$DSYMUTIL"; then
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11746$as_echo "$DSYMUTIL" >&6; }
11747else
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749$as_echo "no" >&6; }
11750fi
11751
11752
11753fi
11754if test -z "$ac_cv_prog_DSYMUTIL"; then
11755 ac_ct_DSYMUTIL=$DSYMUTIL
11756 # Extract the first word of "dsymutil", so it can be a program name with args.
11757set dummy dsymutil; ac_word=$2
11758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11759$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011760if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011761 $as_echo_n "(cached) " >&6
11762else
11763 if test -n "$ac_ct_DSYMUTIL"; then
11764 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11765else
11766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11767for as_dir in $PATH
11768do
11769 IFS=$as_save_IFS
11770 test -z "$as_dir" && as_dir=.
11771 for ac_exec_ext in '' $ac_executable_extensions; do
11772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11773 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11775 break 2
11776 fi
11777done
11778 done
11779IFS=$as_save_IFS
11780
11781fi
11782fi
11783ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11784if test -n "$ac_ct_DSYMUTIL"; then
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11786$as_echo "$ac_ct_DSYMUTIL" >&6; }
11787else
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11789$as_echo "no" >&6; }
11790fi
11791
11792 if test "x$ac_ct_DSYMUTIL" = x; then
11793 DSYMUTIL=":"
11794 else
11795 case $cross_compiling:$ac_tool_warned in
11796yes:)
11797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11799ac_tool_warned=yes ;;
11800esac
11801 DSYMUTIL=$ac_ct_DSYMUTIL
11802 fi
11803else
11804 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11805fi
11806
11807 if test -n "$ac_tool_prefix"; then
11808 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11809set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11811$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011812if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011813 $as_echo_n "(cached) " >&6
11814else
11815 if test -n "$NMEDIT"; then
11816 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11817else
11818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819for as_dir in $PATH
11820do
11821 IFS=$as_save_IFS
11822 test -z "$as_dir" && as_dir=.
11823 for ac_exec_ext in '' $ac_executable_extensions; do
11824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11825 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11827 break 2
11828 fi
11829done
11830 done
11831IFS=$as_save_IFS
11832
11833fi
11834fi
11835NMEDIT=$ac_cv_prog_NMEDIT
11836if test -n "$NMEDIT"; then
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11838$as_echo "$NMEDIT" >&6; }
11839else
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841$as_echo "no" >&6; }
11842fi
11843
11844
11845fi
11846if test -z "$ac_cv_prog_NMEDIT"; then
11847 ac_ct_NMEDIT=$NMEDIT
11848 # Extract the first word of "nmedit", so it can be a program name with args.
11849set dummy nmedit; ac_word=$2
11850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011852if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011853 $as_echo_n "(cached) " >&6
11854else
11855 if test -n "$ac_ct_NMEDIT"; then
11856 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11857else
11858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859for as_dir in $PATH
11860do
11861 IFS=$as_save_IFS
11862 test -z "$as_dir" && as_dir=.
11863 for ac_exec_ext in '' $ac_executable_extensions; do
11864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11865 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11867 break 2
11868 fi
11869done
11870 done
11871IFS=$as_save_IFS
11872
11873fi
11874fi
11875ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11876if test -n "$ac_ct_NMEDIT"; then
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11878$as_echo "$ac_ct_NMEDIT" >&6; }
11879else
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881$as_echo "no" >&6; }
11882fi
11883
11884 if test "x$ac_ct_NMEDIT" = x; then
11885 NMEDIT=":"
11886 else
11887 case $cross_compiling:$ac_tool_warned in
11888yes:)
11889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11891ac_tool_warned=yes ;;
11892esac
11893 NMEDIT=$ac_ct_NMEDIT
11894 fi
11895else
11896 NMEDIT="$ac_cv_prog_NMEDIT"
11897fi
11898
11899 if test -n "$ac_tool_prefix"; then
11900 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11901set dummy ${ac_tool_prefix}lipo; ac_word=$2
11902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11903$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011904if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011905 $as_echo_n "(cached) " >&6
11906else
11907 if test -n "$LIPO"; then
11908 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11909else
11910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911for as_dir in $PATH
11912do
11913 IFS=$as_save_IFS
11914 test -z "$as_dir" && as_dir=.
11915 for ac_exec_ext in '' $ac_executable_extensions; do
11916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11917 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11919 break 2
11920 fi
11921done
11922 done
11923IFS=$as_save_IFS
11924
11925fi
11926fi
11927LIPO=$ac_cv_prog_LIPO
11928if test -n "$LIPO"; then
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11930$as_echo "$LIPO" >&6; }
11931else
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933$as_echo "no" >&6; }
11934fi
11935
11936
11937fi
11938if test -z "$ac_cv_prog_LIPO"; then
11939 ac_ct_LIPO=$LIPO
11940 # Extract the first word of "lipo", so it can be a program name with args.
11941set dummy lipo; ac_word=$2
11942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11943$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011944if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011945 $as_echo_n "(cached) " >&6
11946else
11947 if test -n "$ac_ct_LIPO"; then
11948 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11949else
11950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11951for as_dir in $PATH
11952do
11953 IFS=$as_save_IFS
11954 test -z "$as_dir" && as_dir=.
11955 for ac_exec_ext in '' $ac_executable_extensions; do
11956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11957 ac_cv_prog_ac_ct_LIPO="lipo"
11958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11959 break 2
11960 fi
11961done
11962 done
11963IFS=$as_save_IFS
11964
11965fi
11966fi
11967ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11968if test -n "$ac_ct_LIPO"; then
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11970$as_echo "$ac_ct_LIPO" >&6; }
11971else
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973$as_echo "no" >&6; }
11974fi
11975
11976 if test "x$ac_ct_LIPO" = x; then
11977 LIPO=":"
11978 else
11979 case $cross_compiling:$ac_tool_warned in
11980yes:)
11981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11983ac_tool_warned=yes ;;
11984esac
11985 LIPO=$ac_ct_LIPO
11986 fi
11987else
11988 LIPO="$ac_cv_prog_LIPO"
11989fi
11990
11991 if test -n "$ac_tool_prefix"; then
11992 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11993set dummy ${ac_tool_prefix}otool; ac_word=$2
11994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11995$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011996if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011997 $as_echo_n "(cached) " >&6
11998else
11999 if test -n "$OTOOL"; then
12000 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12001else
12002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003for as_dir in $PATH
12004do
12005 IFS=$as_save_IFS
12006 test -z "$as_dir" && as_dir=.
12007 for ac_exec_ext in '' $ac_executable_extensions; do
12008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12009 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12011 break 2
12012 fi
12013done
12014 done
12015IFS=$as_save_IFS
12016
12017fi
12018fi
12019OTOOL=$ac_cv_prog_OTOOL
12020if test -n "$OTOOL"; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12022$as_echo "$OTOOL" >&6; }
12023else
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12025$as_echo "no" >&6; }
12026fi
12027
12028
12029fi
12030if test -z "$ac_cv_prog_OTOOL"; then
12031 ac_ct_OTOOL=$OTOOL
12032 # Extract the first word of "otool", so it can be a program name with args.
12033set dummy otool; ac_word=$2
12034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12035$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012036if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012037 $as_echo_n "(cached) " >&6
12038else
12039 if test -n "$ac_ct_OTOOL"; then
12040 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12041else
12042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043for as_dir in $PATH
12044do
12045 IFS=$as_save_IFS
12046 test -z "$as_dir" && as_dir=.
12047 for ac_exec_ext in '' $ac_executable_extensions; do
12048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12049 ac_cv_prog_ac_ct_OTOOL="otool"
12050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12051 break 2
12052 fi
12053done
12054 done
12055IFS=$as_save_IFS
12056
12057fi
12058fi
12059ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12060if test -n "$ac_ct_OTOOL"; then
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12062$as_echo "$ac_ct_OTOOL" >&6; }
12063else
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065$as_echo "no" >&6; }
12066fi
12067
12068 if test "x$ac_ct_OTOOL" = x; then
12069 OTOOL=":"
12070 else
12071 case $cross_compiling:$ac_tool_warned in
12072yes:)
12073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12075ac_tool_warned=yes ;;
12076esac
12077 OTOOL=$ac_ct_OTOOL
12078 fi
12079else
12080 OTOOL="$ac_cv_prog_OTOOL"
12081fi
12082
12083 if test -n "$ac_tool_prefix"; then
12084 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12085set dummy ${ac_tool_prefix}otool64; ac_word=$2
12086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12087$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012088if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012089 $as_echo_n "(cached) " >&6
12090else
12091 if test -n "$OTOOL64"; then
12092 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12093else
12094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095for as_dir in $PATH
12096do
12097 IFS=$as_save_IFS
12098 test -z "$as_dir" && as_dir=.
12099 for ac_exec_ext in '' $ac_executable_extensions; do
12100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12101 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12103 break 2
12104 fi
12105done
12106 done
12107IFS=$as_save_IFS
12108
12109fi
12110fi
12111OTOOL64=$ac_cv_prog_OTOOL64
12112if test -n "$OTOOL64"; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12114$as_echo "$OTOOL64" >&6; }
12115else
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117$as_echo "no" >&6; }
12118fi
12119
12120
12121fi
12122if test -z "$ac_cv_prog_OTOOL64"; then
12123 ac_ct_OTOOL64=$OTOOL64
12124 # Extract the first word of "otool64", so it can be a program name with args.
12125set dummy otool64; ac_word=$2
12126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12127$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012128if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012129 $as_echo_n "(cached) " >&6
12130else
12131 if test -n "$ac_ct_OTOOL64"; then
12132 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12133else
12134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135for as_dir in $PATH
12136do
12137 IFS=$as_save_IFS
12138 test -z "$as_dir" && as_dir=.
12139 for ac_exec_ext in '' $ac_executable_extensions; do
12140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12141 ac_cv_prog_ac_ct_OTOOL64="otool64"
12142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12143 break 2
12144 fi
12145done
12146 done
12147IFS=$as_save_IFS
12148
12149fi
12150fi
12151ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12152if test -n "$ac_ct_OTOOL64"; then
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12154$as_echo "$ac_ct_OTOOL64" >&6; }
12155else
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157$as_echo "no" >&6; }
12158fi
12159
12160 if test "x$ac_ct_OTOOL64" = x; then
12161 OTOOL64=":"
12162 else
12163 case $cross_compiling:$ac_tool_warned in
12164yes:)
12165{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12167ac_tool_warned=yes ;;
12168esac
12169 OTOOL64=$ac_ct_OTOOL64
12170 fi
12171else
12172 OTOOL64="$ac_cv_prog_OTOOL64"
12173fi
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12202$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012203if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012204 $as_echo_n "(cached) " >&6
12205else
12206 lt_cv_apple_cc_single_mod=no
12207 if test -z "${LT_MULTI_MODULE}"; then
12208 # By default we will add the -single_module flag. You can override
12209 # by either setting the environment variable LT_MULTI_MODULE
12210 # non-empty at configure time, or by adding -multi_module to the
12211 # link flags.
12212 rm -rf libconftest.dylib*
12213 echo "int foo(void){return 1;}" > conftest.c
12214 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12215-dynamiclib -Wl,-single_module conftest.c" >&5
12216 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12217 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12218 _lt_result=$?
12219 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12220 lt_cv_apple_cc_single_mod=yes
12221 else
12222 cat conftest.err >&5
12223 fi
12224 rm -rf libconftest.dylib*
12225 rm -f conftest.*
12226 fi
12227fi
12228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12229$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12231$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012232if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012233 $as_echo_n "(cached) " >&6
12234else
12235 lt_cv_ld_exported_symbols_list=no
12236 save_LDFLAGS=$LDFLAGS
12237 echo "_main" > conftest.sym
12238 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240/* end confdefs.h. */
12241
12242int
12243main ()
12244{
12245
12246 ;
12247 return 0;
12248}
12249_ACEOF
12250if ac_fn_c_try_link "$LINENO"; then :
12251 lt_cv_ld_exported_symbols_list=yes
12252else
12253 lt_cv_ld_exported_symbols_list=no
12254fi
12255rm -f core conftest.err conftest.$ac_objext \
12256 conftest$ac_exeext conftest.$ac_ext
12257 LDFLAGS="$save_LDFLAGS"
12258
12259fi
12260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12261$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000012262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12263$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012264if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012265 $as_echo_n "(cached) " >&6
12266else
12267 lt_cv_ld_force_load=no
12268 cat > conftest.c << _LT_EOF
12269int forced_loaded() { return 2;}
12270_LT_EOF
12271 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12272 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12273 echo "$AR cru libconftest.a conftest.o" >&5
12274 $AR cru libconftest.a conftest.o 2>&5
12275 echo "$RANLIB libconftest.a" >&5
12276 $RANLIB libconftest.a 2>&5
12277 cat > conftest.c << _LT_EOF
12278int main() { return 0;}
12279_LT_EOF
12280 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12281 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12282 _lt_result=$?
12283 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12284 lt_cv_ld_force_load=yes
12285 else
12286 cat conftest.err >&5
12287 fi
12288 rm -f conftest.err libconftest.a conftest conftest.c
12289 rm -rf conftest.dSYM
12290
12291fi
12292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12293$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012294 case $host_os in
12295 rhapsody* | darwin1.[012])
12296 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12297 darwin1.*)
12298 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12299 darwin*) # darwin 5.x on
12300 # if running on 10.5 or later, the deployment target defaults
12301 # to the OS version, if on x86, and 10.4, the deployment
12302 # target defaults to 10.4. Don't you love it?
12303 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12304 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12305 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12306 10.[012]*)
12307 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12308 10.*)
12309 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12310 esac
12311 ;;
12312 esac
12313 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12314 _lt_dar_single_mod='$single_module'
12315 fi
12316 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12317 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12318 else
12319 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12320 fi
cristy0c60a692010-11-04 01:09:47 +000012321 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012322 _lt_dsymutil='~$DSYMUTIL $lib || :'
12323 else
12324 _lt_dsymutil=
12325 fi
12326 ;;
12327 esac
12328
12329for ac_header in dlfcn.h
12330do :
12331 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12332"
cristyda16f162011-02-19 23:52:17 +000012333if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012334 cat >>confdefs.h <<_ACEOF
12335#define HAVE_DLFCN_H 1
12336_ACEOF
12337
12338fi
12339
12340done
12341
12342
12343
cristy73bd4a52010-10-05 11:24:23 +000012344
cristyda16f162011-02-19 23:52:17 +000012345func_stripname_cnf ()
12346{
12347 case ${2} in
12348 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12349 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12350 esac
12351} # func_stripname_cnf
12352
12353
12354
cristy73bd4a52010-10-05 11:24:23 +000012355
12356
12357# Set options
12358enable_win32_dll=yes
12359
12360case $host in
cristy0c60a692010-11-04 01:09:47 +000012361*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012362 if test -n "$ac_tool_prefix"; then
12363 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12364set dummy ${ac_tool_prefix}as; ac_word=$2
12365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12366$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012367if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012368 $as_echo_n "(cached) " >&6
12369else
12370 if test -n "$AS"; then
12371 ac_cv_prog_AS="$AS" # Let the user override the test.
12372else
12373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374for as_dir in $PATH
12375do
12376 IFS=$as_save_IFS
12377 test -z "$as_dir" && as_dir=.
12378 for ac_exec_ext in '' $ac_executable_extensions; do
12379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12380 ac_cv_prog_AS="${ac_tool_prefix}as"
12381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12382 break 2
12383 fi
12384done
12385 done
12386IFS=$as_save_IFS
12387
12388fi
12389fi
12390AS=$ac_cv_prog_AS
12391if test -n "$AS"; then
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12393$as_echo "$AS" >&6; }
12394else
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396$as_echo "no" >&6; }
12397fi
12398
12399
12400fi
12401if test -z "$ac_cv_prog_AS"; then
12402 ac_ct_AS=$AS
12403 # Extract the first word of "as", so it can be a program name with args.
12404set dummy as; ac_word=$2
12405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12406$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012407if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012408 $as_echo_n "(cached) " >&6
12409else
12410 if test -n "$ac_ct_AS"; then
12411 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12412else
12413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414for as_dir in $PATH
12415do
12416 IFS=$as_save_IFS
12417 test -z "$as_dir" && as_dir=.
12418 for ac_exec_ext in '' $ac_executable_extensions; do
12419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12420 ac_cv_prog_ac_ct_AS="as"
12421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12422 break 2
12423 fi
12424done
12425 done
12426IFS=$as_save_IFS
12427
12428fi
12429fi
12430ac_ct_AS=$ac_cv_prog_ac_ct_AS
12431if test -n "$ac_ct_AS"; then
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12433$as_echo "$ac_ct_AS" >&6; }
12434else
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436$as_echo "no" >&6; }
12437fi
12438
12439 if test "x$ac_ct_AS" = x; then
12440 AS="false"
12441 else
12442 case $cross_compiling:$ac_tool_warned in
12443yes:)
12444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12446ac_tool_warned=yes ;;
12447esac
12448 AS=$ac_ct_AS
12449 fi
12450else
12451 AS="$ac_cv_prog_AS"
12452fi
12453
12454 if test -n "$ac_tool_prefix"; then
12455 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12456set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12458$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012459if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012460 $as_echo_n "(cached) " >&6
12461else
12462 if test -n "$DLLTOOL"; then
12463 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12464else
12465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466for as_dir in $PATH
12467do
12468 IFS=$as_save_IFS
12469 test -z "$as_dir" && as_dir=.
12470 for ac_exec_ext in '' $ac_executable_extensions; do
12471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12472 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12474 break 2
12475 fi
12476done
12477 done
12478IFS=$as_save_IFS
12479
12480fi
12481fi
12482DLLTOOL=$ac_cv_prog_DLLTOOL
12483if test -n "$DLLTOOL"; then
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12485$as_echo "$DLLTOOL" >&6; }
12486else
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488$as_echo "no" >&6; }
12489fi
12490
12491
12492fi
12493if test -z "$ac_cv_prog_DLLTOOL"; then
12494 ac_ct_DLLTOOL=$DLLTOOL
12495 # Extract the first word of "dlltool", so it can be a program name with args.
12496set dummy dlltool; ac_word=$2
12497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12498$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012499if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012500 $as_echo_n "(cached) " >&6
12501else
12502 if test -n "$ac_ct_DLLTOOL"; then
12503 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12504else
12505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12506for as_dir in $PATH
12507do
12508 IFS=$as_save_IFS
12509 test -z "$as_dir" && as_dir=.
12510 for ac_exec_ext in '' $ac_executable_extensions; do
12511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12512 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12514 break 2
12515 fi
12516done
12517 done
12518IFS=$as_save_IFS
12519
12520fi
12521fi
12522ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12523if test -n "$ac_ct_DLLTOOL"; then
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12525$as_echo "$ac_ct_DLLTOOL" >&6; }
12526else
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12528$as_echo "no" >&6; }
12529fi
12530
12531 if test "x$ac_ct_DLLTOOL" = x; then
12532 DLLTOOL="false"
12533 else
12534 case $cross_compiling:$ac_tool_warned in
12535yes:)
12536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12538ac_tool_warned=yes ;;
12539esac
12540 DLLTOOL=$ac_ct_DLLTOOL
12541 fi
12542else
12543 DLLTOOL="$ac_cv_prog_DLLTOOL"
12544fi
12545
12546 if test -n "$ac_tool_prefix"; then
12547 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12548set dummy ${ac_tool_prefix}objdump; ac_word=$2
12549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12550$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012551if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012552 $as_echo_n "(cached) " >&6
12553else
12554 if test -n "$OBJDUMP"; then
12555 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12556else
12557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558for as_dir in $PATH
12559do
12560 IFS=$as_save_IFS
12561 test -z "$as_dir" && as_dir=.
12562 for ac_exec_ext in '' $ac_executable_extensions; do
12563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12564 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12566 break 2
12567 fi
12568done
12569 done
12570IFS=$as_save_IFS
12571
12572fi
12573fi
12574OBJDUMP=$ac_cv_prog_OBJDUMP
12575if test -n "$OBJDUMP"; then
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12577$as_echo "$OBJDUMP" >&6; }
12578else
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580$as_echo "no" >&6; }
12581fi
12582
12583
12584fi
12585if test -z "$ac_cv_prog_OBJDUMP"; then
12586 ac_ct_OBJDUMP=$OBJDUMP
12587 # Extract the first word of "objdump", so it can be a program name with args.
12588set dummy objdump; ac_word=$2
12589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12590$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012591if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012592 $as_echo_n "(cached) " >&6
12593else
12594 if test -n "$ac_ct_OBJDUMP"; then
12595 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12596else
12597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598for as_dir in $PATH
12599do
12600 IFS=$as_save_IFS
12601 test -z "$as_dir" && as_dir=.
12602 for ac_exec_ext in '' $ac_executable_extensions; do
12603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12604 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12606 break 2
12607 fi
12608done
12609 done
12610IFS=$as_save_IFS
12611
12612fi
12613fi
12614ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12615if test -n "$ac_ct_OBJDUMP"; then
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12617$as_echo "$ac_ct_OBJDUMP" >&6; }
12618else
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620$as_echo "no" >&6; }
12621fi
12622
12623 if test "x$ac_ct_OBJDUMP" = x; then
12624 OBJDUMP="false"
12625 else
12626 case $cross_compiling:$ac_tool_warned in
12627yes:)
12628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12630ac_tool_warned=yes ;;
12631esac
12632 OBJDUMP=$ac_ct_OBJDUMP
12633 fi
12634else
12635 OBJDUMP="$ac_cv_prog_OBJDUMP"
12636fi
12637
12638 ;;
12639esac
12640
12641test -z "$AS" && AS=as
12642
12643
12644
12645
12646
12647test -z "$DLLTOOL" && DLLTOOL=dlltool
12648
12649
12650
12651
12652
12653test -z "$OBJDUMP" && OBJDUMP=objdump
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663 # Check whether --enable-shared was given.
12664if test "${enable_shared+set}" = set; then :
12665 enableval=$enable_shared; p=${PACKAGE-default}
12666 case $enableval in
12667 yes) enable_shared=yes ;;
12668 no) enable_shared=no ;;
12669 *)
12670 enable_shared=no
12671 # Look at the argument we got. We use all the common list separators.
12672 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12673 for pkg in $enableval; do
12674 IFS="$lt_save_ifs"
12675 if test "X$pkg" = "X$p"; then
12676 enable_shared=yes
12677 fi
12678 done
12679 IFS="$lt_save_ifs"
12680 ;;
12681 esac
12682else
12683 enable_shared=yes
12684fi
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694 # Check whether --enable-static was given.
12695if test "${enable_static+set}" = set; then :
12696 enableval=$enable_static; p=${PACKAGE-default}
12697 case $enableval in
12698 yes) enable_static=yes ;;
12699 no) enable_static=no ;;
12700 *)
12701 enable_static=no
12702 # Look at the argument we got. We use all the common list separators.
12703 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12704 for pkg in $enableval; do
12705 IFS="$lt_save_ifs"
12706 if test "X$pkg" = "X$p"; then
12707 enable_static=yes
12708 fi
12709 done
12710 IFS="$lt_save_ifs"
12711 ;;
12712 esac
12713else
12714 enable_static=yes
12715fi
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726# Check whether --with-pic was given.
12727if test "${with_pic+set}" = set; then :
12728 withval=$with_pic; pic_mode="$withval"
12729else
12730 pic_mode=default
12731fi
12732
12733
12734test -z "$pic_mode" && pic_mode=default
12735
12736
12737
12738
12739
12740
12741
12742 # Check whether --enable-fast-install was given.
12743if test "${enable_fast_install+set}" = set; then :
12744 enableval=$enable_fast_install; p=${PACKAGE-default}
12745 case $enableval in
12746 yes) enable_fast_install=yes ;;
12747 no) enable_fast_install=no ;;
12748 *)
12749 enable_fast_install=no
12750 # Look at the argument we got. We use all the common list separators.
12751 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12752 for pkg in $enableval; do
12753 IFS="$lt_save_ifs"
12754 if test "X$pkg" = "X$p"; then
12755 enable_fast_install=yes
12756 fi
12757 done
12758 IFS="$lt_save_ifs"
12759 ;;
12760 esac
12761else
12762 enable_fast_install=yes
12763fi
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775# This can be used to rebuild libtool when needed
12776LIBTOOL_DEPS="$ltmain"
12777
12778# Always use our own libtool.
12779LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
cristy0c60a692010-11-04 01:09:47 +000012805
cristy73bd4a52010-10-05 11:24:23 +000012806test -z "$LN_S" && LN_S="ln -s"
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821if test -n "${ZSH_VERSION+set}" ; then
12822 setopt NO_GLOB_SUBST
12823fi
12824
12825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12826$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012827if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012828 $as_echo_n "(cached) " >&6
12829else
12830 rm -f .libs 2>/dev/null
12831mkdir .libs 2>/dev/null
12832if test -d .libs; then
12833 lt_cv_objdir=.libs
12834else
12835 # MS-DOS does not allow filenames that begin with a dot.
12836 lt_cv_objdir=_libs
12837fi
12838rmdir .libs 2>/dev/null
12839fi
12840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12841$as_echo "$lt_cv_objdir" >&6; }
12842objdir=$lt_cv_objdir
12843
12844
12845
12846
12847
12848cat >>confdefs.h <<_ACEOF
12849#define LT_OBJDIR "$lt_cv_objdir/"
12850_ACEOF
12851
12852
12853
12854
cristy73bd4a52010-10-05 11:24:23 +000012855case $host_os in
12856aix3*)
12857 # AIX sometimes has problems with the GCC collect2 program. For some
12858 # reason, if we set the COLLECT_NAMES environment variable, the problems
12859 # vanish in a puff of smoke.
12860 if test "X${COLLECT_NAMES+set}" != Xset; then
12861 COLLECT_NAMES=
12862 export COLLECT_NAMES
12863 fi
12864 ;;
12865esac
12866
cristy73bd4a52010-10-05 11:24:23 +000012867# Global variables:
12868ofile=libtool
12869can_build_shared=yes
12870
12871# All known linkers require a `.a' archive for static linking (except MSVC,
12872# which needs '.lib').
12873libext=a
12874
12875with_gnu_ld="$lt_cv_prog_gnu_ld"
12876
12877old_CC="$CC"
12878old_CFLAGS="$CFLAGS"
12879
12880# Set sane defaults for various variables
12881test -z "$CC" && CC=cc
12882test -z "$LTCC" && LTCC=$CC
12883test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12884test -z "$LD" && LD=ld
12885test -z "$ac_objext" && ac_objext=o
12886
12887for cc_temp in $compiler""; do
12888 case $cc_temp in
12889 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12890 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12891 \-*) ;;
12892 *) break;;
12893 esac
12894done
cristy0c60a692010-11-04 01:09:47 +000012895cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000012896
12897
12898# Only perform the check for file, if the check method requires it
12899test -z "$MAGIC_CMD" && MAGIC_CMD=file
12900case $deplibs_check_method in
12901file_magic*)
12902 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12904$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012905if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012906 $as_echo_n "(cached) " >&6
12907else
12908 case $MAGIC_CMD in
12909[\\/*] | ?:[\\/]*)
12910 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12911 ;;
12912*)
12913 lt_save_MAGIC_CMD="$MAGIC_CMD"
12914 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12915 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12916 for ac_dir in $ac_dummy; do
12917 IFS="$lt_save_ifs"
12918 test -z "$ac_dir" && ac_dir=.
12919 if test -f $ac_dir/${ac_tool_prefix}file; then
12920 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12921 if test -n "$file_magic_test_file"; then
12922 case $deplibs_check_method in
12923 "file_magic "*)
12924 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12925 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12926 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12927 $EGREP "$file_magic_regex" > /dev/null; then
12928 :
12929 else
12930 cat <<_LT_EOF 1>&2
12931
12932*** Warning: the command libtool uses to detect shared libraries,
12933*** $file_magic_cmd, produces output that libtool cannot recognize.
12934*** The result is that libtool may fail to recognize shared libraries
12935*** as such. This will affect the creation of libtool libraries that
12936*** depend on shared libraries, but programs linked with such libtool
12937*** libraries will work regardless of this problem. Nevertheless, you
12938*** may want to report the problem to your system manager and/or to
12939*** bug-libtool@gnu.org
12940
12941_LT_EOF
12942 fi ;;
12943 esac
12944 fi
12945 break
12946 fi
12947 done
12948 IFS="$lt_save_ifs"
12949 MAGIC_CMD="$lt_save_MAGIC_CMD"
12950 ;;
12951esac
12952fi
12953
12954MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12955if test -n "$MAGIC_CMD"; then
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12957$as_echo "$MAGIC_CMD" >&6; }
12958else
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12960$as_echo "no" >&6; }
12961fi
12962
12963
12964
12965
12966
12967if test -z "$lt_cv_path_MAGIC_CMD"; then
12968 if test -n "$ac_tool_prefix"; then
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12970$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012971if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012972 $as_echo_n "(cached) " >&6
12973else
12974 case $MAGIC_CMD in
12975[\\/*] | ?:[\\/]*)
12976 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12977 ;;
12978*)
12979 lt_save_MAGIC_CMD="$MAGIC_CMD"
12980 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12981 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12982 for ac_dir in $ac_dummy; do
12983 IFS="$lt_save_ifs"
12984 test -z "$ac_dir" && ac_dir=.
12985 if test -f $ac_dir/file; then
12986 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12987 if test -n "$file_magic_test_file"; then
12988 case $deplibs_check_method in
12989 "file_magic "*)
12990 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12991 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12992 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12993 $EGREP "$file_magic_regex" > /dev/null; then
12994 :
12995 else
12996 cat <<_LT_EOF 1>&2
12997
12998*** Warning: the command libtool uses to detect shared libraries,
12999*** $file_magic_cmd, produces output that libtool cannot recognize.
13000*** The result is that libtool may fail to recognize shared libraries
13001*** as such. This will affect the creation of libtool libraries that
13002*** depend on shared libraries, but programs linked with such libtool
13003*** libraries will work regardless of this problem. Nevertheless, you
13004*** may want to report the problem to your system manager and/or to
13005*** bug-libtool@gnu.org
13006
13007_LT_EOF
13008 fi ;;
13009 esac
13010 fi
13011 break
13012 fi
13013 done
13014 IFS="$lt_save_ifs"
13015 MAGIC_CMD="$lt_save_MAGIC_CMD"
13016 ;;
13017esac
13018fi
13019
13020MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13021if test -n "$MAGIC_CMD"; then
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13023$as_echo "$MAGIC_CMD" >&6; }
13024else
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026$as_echo "no" >&6; }
13027fi
13028
13029
13030 else
13031 MAGIC_CMD=:
13032 fi
13033fi
13034
13035 fi
13036 ;;
13037esac
13038
13039# Use C for the default configuration in the libtool script
13040
13041lt_save_CC="$CC"
13042ac_ext=c
13043ac_cpp='$CPP $CPPFLAGS'
13044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13046ac_compiler_gnu=$ac_cv_c_compiler_gnu
13047
13048
13049# Source file extension for C test sources.
13050ac_ext=c
13051
13052# Object file extension for compiled C test sources.
13053objext=o
13054objext=$objext
13055
13056# Code to be used in simple compile tests
13057lt_simple_compile_test_code="int some_variable = 0;"
13058
13059# Code to be used in simple link tests
13060lt_simple_link_test_code='int main(){return(0);}'
13061
13062
13063
13064
13065
13066
13067
13068# If no C compiler was specified, use CC.
13069LTCC=${LTCC-"$CC"}
13070
13071# If no C compiler flags were specified, use CFLAGS.
13072LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13073
13074# Allow CC to be a program name with arguments.
13075compiler=$CC
13076
13077# Save the default compiler, since it gets overwritten when the other
13078# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13079compiler_DEFAULT=$CC
13080
13081# save warnings/boilerplate of simple test code
13082ac_outfile=conftest.$ac_objext
13083echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13084eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13085_lt_compiler_boilerplate=`cat conftest.err`
13086$RM conftest*
13087
13088ac_outfile=conftest.$ac_objext
13089echo "$lt_simple_link_test_code" >conftest.$ac_ext
13090eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13091_lt_linker_boilerplate=`cat conftest.err`
13092$RM -r conftest*
13093
13094
13095## CAVEAT EMPTOR:
13096## There is no encapsulation within the following macros, do not change
13097## the running order or otherwise move them around unless you know exactly
13098## what you are doing...
13099if test -n "$compiler"; then
13100
13101lt_prog_compiler_no_builtin_flag=
13102
13103if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013104 case $cc_basename in
13105 nvcc*)
13106 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13107 *)
13108 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13109 esac
cristy73bd4a52010-10-05 11:24:23 +000013110
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13112$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013113if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013114 $as_echo_n "(cached) " >&6
13115else
13116 lt_cv_prog_compiler_rtti_exceptions=no
13117 ac_outfile=conftest.$ac_objext
13118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13119 lt_compiler_flag="-fno-rtti -fno-exceptions"
13120 # Insert the option either (1) after the last *FLAGS variable, or
13121 # (2) before a word containing "conftest.", or (3) at the end.
13122 # Note that $ac_compile itself does not contain backslashes and begins
13123 # with a dollar sign (not a hyphen), so the echo should work correctly.
13124 # The option is referenced via a variable to avoid confusing sed.
13125 lt_compile=`echo "$ac_compile" | $SED \
13126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13128 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013129 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013130 (eval "$lt_compile" 2>conftest.err)
13131 ac_status=$?
13132 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013134 if (exit $ac_status) && test -s "$ac_outfile"; then
13135 # The compiler can only warn and ignore the option if not recognized
13136 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013137 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13139 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13140 lt_cv_prog_compiler_rtti_exceptions=yes
13141 fi
13142 fi
13143 $RM conftest*
13144
13145fi
13146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13147$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13148
13149if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13150 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13151else
13152 :
13153fi
13154
13155fi
13156
13157
13158
13159
13160
13161
13162 lt_prog_compiler_wl=
13163lt_prog_compiler_pic=
13164lt_prog_compiler_static=
13165
cristy73bd4a52010-10-05 11:24:23 +000013166
13167 if test "$GCC" = yes; then
13168 lt_prog_compiler_wl='-Wl,'
13169 lt_prog_compiler_static='-static'
13170
13171 case $host_os in
13172 aix*)
13173 # All AIX code is PIC.
13174 if test "$host_cpu" = ia64; then
13175 # AIX 5 now supports IA64 processor
13176 lt_prog_compiler_static='-Bstatic'
13177 fi
13178 ;;
13179
13180 amigaos*)
13181 case $host_cpu in
13182 powerpc)
13183 # see comment about AmigaOS4 .so support
13184 lt_prog_compiler_pic='-fPIC'
13185 ;;
13186 m68k)
13187 # FIXME: we need at least 68020 code to build shared libraries, but
13188 # adding the `-m68020' flag to GCC prevents building anything better,
13189 # like `-m68040'.
13190 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13191 ;;
13192 esac
13193 ;;
13194
13195 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13196 # PIC is the default for these OSes.
13197 ;;
13198
13199 mingw* | cygwin* | pw32* | os2* | cegcc*)
13200 # This hack is so that the source file can tell whether it is being
13201 # built for inclusion in a dll (and should export symbols for example).
13202 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13203 # (--disable-auto-import) libraries
13204 lt_prog_compiler_pic='-DDLL_EXPORT'
13205 ;;
13206
13207 darwin* | rhapsody*)
13208 # PIC is the default on this platform
13209 # Common symbols not allowed in MH_DYLIB files
13210 lt_prog_compiler_pic='-fno-common'
13211 ;;
13212
cristy0c60a692010-11-04 01:09:47 +000013213 haiku*)
13214 # PIC is the default for Haiku.
13215 # The "-static" flag exists, but is broken.
13216 lt_prog_compiler_static=
13217 ;;
13218
cristy73bd4a52010-10-05 11:24:23 +000013219 hpux*)
13220 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13221 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13222 # sets the default TLS model and affects inlining.
13223 case $host_cpu in
13224 hppa*64*)
13225 # +Z the default
13226 ;;
13227 *)
13228 lt_prog_compiler_pic='-fPIC'
13229 ;;
13230 esac
13231 ;;
13232
13233 interix[3-9]*)
13234 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13235 # Instead, we relocate shared libraries at runtime.
13236 ;;
13237
13238 msdosdjgpp*)
13239 # Just because we use GCC doesn't mean we suddenly get shared libraries
13240 # on systems that don't support them.
13241 lt_prog_compiler_can_build_shared=no
13242 enable_shared=no
13243 ;;
13244
13245 *nto* | *qnx*)
13246 # QNX uses GNU C++, but need to define -shared option too, otherwise
13247 # it will coredump.
13248 lt_prog_compiler_pic='-fPIC -shared'
13249 ;;
13250
13251 sysv4*MP*)
13252 if test -d /usr/nec; then
13253 lt_prog_compiler_pic=-Kconform_pic
13254 fi
13255 ;;
13256
13257 *)
13258 lt_prog_compiler_pic='-fPIC'
13259 ;;
13260 esac
cristy0c60a692010-11-04 01:09:47 +000013261
13262 case $cc_basename in
13263 nvcc*) # Cuda Compiler Driver 2.2
13264 lt_prog_compiler_wl='-Xlinker '
13265 lt_prog_compiler_pic='-Xcompiler -fPIC'
13266 ;;
13267 esac
cristy73bd4a52010-10-05 11:24:23 +000013268 else
13269 # PORTME Check for flag to pass linker flags through the system compiler.
13270 case $host_os in
13271 aix*)
13272 lt_prog_compiler_wl='-Wl,'
13273 if test "$host_cpu" = ia64; then
13274 # AIX 5 now supports IA64 processor
13275 lt_prog_compiler_static='-Bstatic'
13276 else
13277 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13278 fi
13279 ;;
13280
13281 mingw* | cygwin* | pw32* | os2* | cegcc*)
13282 # This hack is so that the source file can tell whether it is being
13283 # built for inclusion in a dll (and should export symbols for example).
13284 lt_prog_compiler_pic='-DDLL_EXPORT'
13285 ;;
13286
13287 hpux9* | hpux10* | hpux11*)
13288 lt_prog_compiler_wl='-Wl,'
13289 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13290 # not for PA HP-UX.
13291 case $host_cpu in
13292 hppa*64*|ia64*)
13293 # +Z the default
13294 ;;
13295 *)
13296 lt_prog_compiler_pic='+Z'
13297 ;;
13298 esac
13299 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13300 lt_prog_compiler_static='${wl}-a ${wl}archive'
13301 ;;
13302
13303 irix5* | irix6* | nonstopux*)
13304 lt_prog_compiler_wl='-Wl,'
13305 # PIC (with -KPIC) is the default.
13306 lt_prog_compiler_static='-non_shared'
13307 ;;
13308
cristy0c60a692010-11-04 01:09:47 +000013309 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013310 case $cc_basename in
13311 # old Intel for x86_64 which still supported -KPIC.
13312 ecc*)
13313 lt_prog_compiler_wl='-Wl,'
13314 lt_prog_compiler_pic='-KPIC'
13315 lt_prog_compiler_static='-static'
13316 ;;
13317 # icc used to be incompatible with GCC.
13318 # ICC 10 doesn't accept -KPIC any more.
13319 icc* | ifort*)
13320 lt_prog_compiler_wl='-Wl,'
13321 lt_prog_compiler_pic='-fPIC'
13322 lt_prog_compiler_static='-static'
13323 ;;
13324 # Lahey Fortran 8.1.
13325 lf95*)
13326 lt_prog_compiler_wl='-Wl,'
13327 lt_prog_compiler_pic='--shared'
13328 lt_prog_compiler_static='--static'
13329 ;;
cristyda16f162011-02-19 23:52:17 +000013330 nagfor*)
13331 # NAG Fortran compiler
13332 lt_prog_compiler_wl='-Wl,-Wl,,'
13333 lt_prog_compiler_pic='-PIC'
13334 lt_prog_compiler_static='-Bstatic'
13335 ;;
cristy0c60a692010-11-04 01:09:47 +000013336 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013337 # Portland Group compilers (*not* the Pentium gcc compiler,
13338 # which looks to be a dead project)
13339 lt_prog_compiler_wl='-Wl,'
13340 lt_prog_compiler_pic='-fpic'
13341 lt_prog_compiler_static='-Bstatic'
13342 ;;
13343 ccc*)
13344 lt_prog_compiler_wl='-Wl,'
13345 # All Alpha code is PIC.
13346 lt_prog_compiler_static='-non_shared'
13347 ;;
cristy0c60a692010-11-04 01:09:47 +000013348 xl* | bgxl* | bgf* | mpixl*)
13349 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013350 lt_prog_compiler_wl='-Wl,'
13351 lt_prog_compiler_pic='-qpic'
13352 lt_prog_compiler_static='-qstaticlink'
13353 ;;
13354 *)
13355 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000013356 *Sun\ F* | *Sun*Fortran*)
13357 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13358 lt_prog_compiler_pic='-KPIC'
13359 lt_prog_compiler_static='-Bstatic'
13360 lt_prog_compiler_wl=''
13361 ;;
cristy73bd4a52010-10-05 11:24:23 +000013362 *Sun\ C*)
13363 # Sun C 5.9
13364 lt_prog_compiler_pic='-KPIC'
13365 lt_prog_compiler_static='-Bstatic'
13366 lt_prog_compiler_wl='-Wl,'
13367 ;;
cristy73bd4a52010-10-05 11:24:23 +000013368 esac
13369 ;;
13370 esac
13371 ;;
13372
13373 newsos6)
13374 lt_prog_compiler_pic='-KPIC'
13375 lt_prog_compiler_static='-Bstatic'
13376 ;;
13377
13378 *nto* | *qnx*)
13379 # QNX uses GNU C++, but need to define -shared option too, otherwise
13380 # it will coredump.
13381 lt_prog_compiler_pic='-fPIC -shared'
13382 ;;
13383
13384 osf3* | osf4* | osf5*)
13385 lt_prog_compiler_wl='-Wl,'
13386 # All OSF/1 code is PIC.
13387 lt_prog_compiler_static='-non_shared'
13388 ;;
13389
13390 rdos*)
13391 lt_prog_compiler_static='-non_shared'
13392 ;;
13393
13394 solaris*)
13395 lt_prog_compiler_pic='-KPIC'
13396 lt_prog_compiler_static='-Bstatic'
13397 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013398 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013399 lt_prog_compiler_wl='-Qoption ld ';;
13400 *)
13401 lt_prog_compiler_wl='-Wl,';;
13402 esac
13403 ;;
13404
13405 sunos4*)
13406 lt_prog_compiler_wl='-Qoption ld '
13407 lt_prog_compiler_pic='-PIC'
13408 lt_prog_compiler_static='-Bstatic'
13409 ;;
13410
13411 sysv4 | sysv4.2uw2* | sysv4.3*)
13412 lt_prog_compiler_wl='-Wl,'
13413 lt_prog_compiler_pic='-KPIC'
13414 lt_prog_compiler_static='-Bstatic'
13415 ;;
13416
13417 sysv4*MP*)
13418 if test -d /usr/nec ;then
13419 lt_prog_compiler_pic='-Kconform_pic'
13420 lt_prog_compiler_static='-Bstatic'
13421 fi
13422 ;;
13423
13424 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13425 lt_prog_compiler_wl='-Wl,'
13426 lt_prog_compiler_pic='-KPIC'
13427 lt_prog_compiler_static='-Bstatic'
13428 ;;
13429
13430 unicos*)
13431 lt_prog_compiler_wl='-Wl,'
13432 lt_prog_compiler_can_build_shared=no
13433 ;;
13434
13435 uts4*)
13436 lt_prog_compiler_pic='-pic'
13437 lt_prog_compiler_static='-Bstatic'
13438 ;;
13439
13440 *)
13441 lt_prog_compiler_can_build_shared=no
13442 ;;
13443 esac
13444 fi
13445
13446case $host_os in
13447 # For platforms which do not support PIC, -DPIC is meaningless:
13448 *djgpp*)
13449 lt_prog_compiler_pic=
13450 ;;
13451 *)
13452 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13453 ;;
13454esac
cristy73bd4a52010-10-05 11:24:23 +000013455
cristyda16f162011-02-19 23:52:17 +000013456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13457$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13458if ${lt_cv_prog_compiler_pic+:} false; then :
13459 $as_echo_n "(cached) " >&6
13460else
13461 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13462fi
13463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13464$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13465lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013466
13467#
13468# Check to make sure the PIC flag actually works.
13469#
13470if test -n "$lt_prog_compiler_pic"; then
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13472$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013473if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013474 $as_echo_n "(cached) " >&6
13475else
13476 lt_cv_prog_compiler_pic_works=no
13477 ac_outfile=conftest.$ac_objext
13478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13479 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13480 # Insert the option either (1) after the last *FLAGS variable, or
13481 # (2) before a word containing "conftest.", or (3) at the end.
13482 # Note that $ac_compile itself does not contain backslashes and begins
13483 # with a dollar sign (not a hyphen), so the echo should work correctly.
13484 # The option is referenced via a variable to avoid confusing sed.
13485 lt_compile=`echo "$ac_compile" | $SED \
13486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13488 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013489 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013490 (eval "$lt_compile" 2>conftest.err)
13491 ac_status=$?
13492 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013494 if (exit $ac_status) && test -s "$ac_outfile"; then
13495 # The compiler can only warn and ignore the option if not recognized
13496 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013497 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13499 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13500 lt_cv_prog_compiler_pic_works=yes
13501 fi
13502 fi
13503 $RM conftest*
13504
13505fi
13506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13507$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13508
13509if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13510 case $lt_prog_compiler_pic in
13511 "" | " "*) ;;
13512 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13513 esac
13514else
13515 lt_prog_compiler_pic=
13516 lt_prog_compiler_can_build_shared=no
13517fi
13518
13519fi
13520
13521
13522
13523
13524
13525
cristyda16f162011-02-19 23:52:17 +000013526
13527
13528
13529
13530
cristy73bd4a52010-10-05 11:24:23 +000013531#
13532# Check to make sure the static flag actually works.
13533#
13534wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13536$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013537if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013538 $as_echo_n "(cached) " >&6
13539else
13540 lt_cv_prog_compiler_static_works=no
13541 save_LDFLAGS="$LDFLAGS"
13542 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13543 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13544 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13545 # The linker can only warn and ignore the option if not recognized
13546 # So say no if there are warnings
13547 if test -s conftest.err; then
13548 # Append any errors to the config.log.
13549 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013550 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13552 if diff conftest.exp conftest.er2 >/dev/null; then
13553 lt_cv_prog_compiler_static_works=yes
13554 fi
13555 else
13556 lt_cv_prog_compiler_static_works=yes
13557 fi
13558 fi
13559 $RM -r conftest*
13560 LDFLAGS="$save_LDFLAGS"
13561
13562fi
13563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13564$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13565
13566if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13567 :
13568else
13569 lt_prog_compiler_static=
13570fi
13571
13572
13573
13574
13575
13576
13577
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13579$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013580if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013581 $as_echo_n "(cached) " >&6
13582else
13583 lt_cv_prog_compiler_c_o=no
13584 $RM -r conftest 2>/dev/null
13585 mkdir conftest
13586 cd conftest
13587 mkdir out
13588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13589
13590 lt_compiler_flag="-o out/conftest2.$ac_objext"
13591 # Insert the option either (1) after the last *FLAGS variable, or
13592 # (2) before a word containing "conftest.", or (3) at the end.
13593 # Note that $ac_compile itself does not contain backslashes and begins
13594 # with a dollar sign (not a hyphen), so the echo should work correctly.
13595 lt_compile=`echo "$ac_compile" | $SED \
13596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13598 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013599 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013600 (eval "$lt_compile" 2>out/conftest.err)
13601 ac_status=$?
13602 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013604 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13605 then
13606 # The compiler can only warn and ignore the option if not recognized
13607 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013608 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013609 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13610 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13611 lt_cv_prog_compiler_c_o=yes
13612 fi
13613 fi
13614 chmod u+w . 2>&5
13615 $RM conftest*
13616 # SGI C++ compiler will create directory out/ii_files/ for
13617 # template instantiation
13618 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13619 $RM out/* && rmdir out
13620 cd ..
13621 $RM -r conftest
13622 $RM conftest*
13623
13624fi
13625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13626$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13627
13628
13629
13630
13631
13632
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13634$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013635if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013636 $as_echo_n "(cached) " >&6
13637else
13638 lt_cv_prog_compiler_c_o=no
13639 $RM -r conftest 2>/dev/null
13640 mkdir conftest
13641 cd conftest
13642 mkdir out
13643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13644
13645 lt_compiler_flag="-o out/conftest2.$ac_objext"
13646 # Insert the option either (1) after the last *FLAGS variable, or
13647 # (2) before a word containing "conftest.", or (3) at the end.
13648 # Note that $ac_compile itself does not contain backslashes and begins
13649 # with a dollar sign (not a hyphen), so the echo should work correctly.
13650 lt_compile=`echo "$ac_compile" | $SED \
13651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13653 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013654 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013655 (eval "$lt_compile" 2>out/conftest.err)
13656 ac_status=$?
13657 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013659 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13660 then
13661 # The compiler can only warn and ignore the option if not recognized
13662 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013663 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013664 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13665 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13666 lt_cv_prog_compiler_c_o=yes
13667 fi
13668 fi
13669 chmod u+w . 2>&5
13670 $RM conftest*
13671 # SGI C++ compiler will create directory out/ii_files/ for
13672 # template instantiation
13673 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13674 $RM out/* && rmdir out
13675 cd ..
13676 $RM -r conftest
13677 $RM conftest*
13678
13679fi
13680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13681$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13682
13683
13684
13685
13686hard_links="nottested"
13687if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13688 # do not overwrite the value of need_locks provided by the user
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13690$as_echo_n "checking if we can lock with hard links... " >&6; }
13691 hard_links=yes
13692 $RM conftest*
13693 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13694 touch conftest.a
13695 ln conftest.a conftest.b 2>&5 || hard_links=no
13696 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13698$as_echo "$hard_links" >&6; }
13699 if test "$hard_links" = no; then
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13701$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13702 need_locks=warn
13703 fi
13704else
13705 need_locks=no
13706fi
13707
13708
13709
13710
13711
13712
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13714$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13715
13716 runpath_var=
13717 allow_undefined_flag=
13718 always_export_symbols=no
13719 archive_cmds=
13720 archive_expsym_cmds=
13721 compiler_needs_object=no
13722 enable_shared_with_static_runtimes=no
13723 export_dynamic_flag_spec=
13724 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13725 hardcode_automatic=no
13726 hardcode_direct=no
13727 hardcode_direct_absolute=no
13728 hardcode_libdir_flag_spec=
13729 hardcode_libdir_flag_spec_ld=
13730 hardcode_libdir_separator=
13731 hardcode_minus_L=no
13732 hardcode_shlibpath_var=unsupported
13733 inherit_rpath=no
13734 link_all_deplibs=unknown
13735 module_cmds=
13736 module_expsym_cmds=
13737 old_archive_from_new_cmds=
13738 old_archive_from_expsyms_cmds=
13739 thread_safe_flag_spec=
13740 whole_archive_flag_spec=
13741 # include_expsyms should be a list of space-separated symbols to be *always*
13742 # included in the symbol list
13743 include_expsyms=
13744 # exclude_expsyms can be an extended regexp of symbols to exclude
13745 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13746 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13747 # as well as any symbol that contains `d'.
13748 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13749 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13750 # platforms (ab)use it in PIC code, but their linkers get confused if
13751 # the symbol is explicitly referenced. Since portable code cannot
13752 # rely on this symbol name, it's probably fine to never include it in
13753 # preloaded symbol tables.
13754 # Exclude shared library initialization/finalization symbols.
13755 extract_expsyms_cmds=
13756
13757 case $host_os in
13758 cygwin* | mingw* | pw32* | cegcc*)
13759 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13760 # When not using gcc, we currently assume that we are using
13761 # Microsoft Visual C++.
13762 if test "$GCC" != yes; then
13763 with_gnu_ld=no
13764 fi
13765 ;;
13766 interix*)
13767 # we just hope/assume this is gcc and not c89 (= MSVC++)
13768 with_gnu_ld=yes
13769 ;;
13770 openbsd*)
13771 with_gnu_ld=no
13772 ;;
13773 esac
13774
13775 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013776
13777 # On some targets, GNU ld is compatible enough with the native linker
13778 # that we're better off using the native interface for both.
13779 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013780 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013781 case $host_os in
13782 aix*)
13783 # The AIX port of GNU ld has always aspired to compatibility
13784 # with the native linker. However, as the warning in the GNU ld
13785 # block says, versions before 2.19.5* couldn't really create working
13786 # shared libraries, regardless of the interface used.
13787 case `$LD -v 2>&1` in
13788 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13789 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13790 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13791 *)
13792 lt_use_gnu_ld_interface=yes
13793 ;;
13794 esac
13795 ;;
13796 *)
13797 lt_use_gnu_ld_interface=yes
13798 ;;
13799 esac
13800 fi
13801
13802 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013803 # If archive_cmds runs LD, not CC, wlarc should be empty
13804 wlarc='${wl}'
13805
13806 # Set some defaults for GNU ld with shared library support. These
13807 # are reset later if shared libraries are not supported. Putting them
13808 # here allows them to be overridden if necessary.
13809 runpath_var=LD_RUN_PATH
13810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13811 export_dynamic_flag_spec='${wl}--export-dynamic'
13812 # ancient GNU ld didn't support --whole-archive et. al.
13813 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13814 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13815 else
13816 whole_archive_flag_spec=
13817 fi
13818 supports_anon_versioning=no
13819 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013820 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013821 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13822 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13823 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13824 *\ 2.11.*) ;; # other 2.11 versions
13825 *) supports_anon_versioning=yes ;;
13826 esac
13827
13828 # See if GNU ld supports shared libraries.
13829 case $host_os in
13830 aix[3-9]*)
13831 # On AIX/PPC, the GNU linker is very broken
13832 if test "$host_cpu" != ia64; then
13833 ld_shlibs=no
13834 cat <<_LT_EOF 1>&2
13835
cristy0c60a692010-11-04 01:09:47 +000013836*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013837*** to be unable to reliably create shared libraries on AIX.
13838*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013839*** really care for shared libraries, you may want to install binutils
13840*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13841*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013842
13843_LT_EOF
13844 fi
13845 ;;
13846
13847 amigaos*)
13848 case $host_cpu in
13849 powerpc)
13850 # see comment about AmigaOS4 .so support
13851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13852 archive_expsym_cmds=''
13853 ;;
13854 m68k)
13855 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)'
13856 hardcode_libdir_flag_spec='-L$libdir'
13857 hardcode_minus_L=yes
13858 ;;
13859 esac
13860 ;;
13861
13862 beos*)
13863 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13864 allow_undefined_flag=unsupported
13865 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13866 # support --undefined. This deserves some investigation. FIXME
13867 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13868 else
13869 ld_shlibs=no
13870 fi
13871 ;;
13872
13873 cygwin* | mingw* | pw32* | cegcc*)
13874 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13875 # as there is no search path for DLLs.
13876 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000013877 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000013878 allow_undefined_flag=unsupported
13879 always_export_symbols=no
13880 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000013881 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'
13882 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 +000013883
13884 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13886 # If the export-symbols file already is a .def file (1st line
13887 # is EXPORTS), use it as is; otherwise, prepend...
13888 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13889 cp $export_symbols $output_objdir/$soname.def;
13890 else
13891 echo EXPORTS > $output_objdir/$soname.def;
13892 cat $export_symbols >> $output_objdir/$soname.def;
13893 fi~
13894 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13895 else
13896 ld_shlibs=no
13897 fi
13898 ;;
13899
cristy0c60a692010-11-04 01:09:47 +000013900 haiku*)
13901 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13902 link_all_deplibs=yes
13903 ;;
13904
cristy73bd4a52010-10-05 11:24:23 +000013905 interix[3-9]*)
13906 hardcode_direct=no
13907 hardcode_shlibpath_var=no
13908 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13909 export_dynamic_flag_spec='${wl}-E'
13910 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13911 # Instead, shared libraries are loaded at an image base (0x10000000 by
13912 # default) and relocated if they conflict, which is a slow very memory
13913 # consuming and fragmenting process. To avoid this, we pick a random,
13914 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13915 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13916 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13917 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'
13918 ;;
13919
cristy0c60a692010-11-04 01:09:47 +000013920 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013921 tmp_diet=no
13922 if test "$host_os" = linux-dietlibc; then
13923 case $cc_basename in
13924 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13925 esac
13926 fi
13927 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13928 && test "$tmp_diet" = no
13929 then
cristyda16f162011-02-19 23:52:17 +000013930 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000013931 tmp_sharedflag='-shared'
13932 case $cc_basename,$host_cpu in
13933 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000013934 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 +000013935 tmp_addflag=' $pic_flag'
13936 ;;
cristy0c60a692010-11-04 01:09:47 +000013937 pgf77* | pgf90* | pgf95* | pgfortran*)
13938 # Portland Group f77 and f90 compilers
13939 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 +000013940 tmp_addflag=' $pic_flag -Mnomain' ;;
13941 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13942 tmp_addflag=' -i_dynamic' ;;
13943 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13944 tmp_addflag=' -i_dynamic -nofor_main' ;;
13945 ifc* | ifort*) # Intel Fortran compiler
13946 tmp_addflag=' -nofor_main' ;;
13947 lf95*) # Lahey Fortran 8.1
13948 whole_archive_flag_spec=
13949 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000013950 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000013951 tmp_sharedflag='-qmkshrobj'
13952 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000013953 nvcc*) # Cuda Compiler Driver 2.2
13954 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'
13955 compiler_needs_object=yes
13956 ;;
cristy73bd4a52010-10-05 11:24:23 +000013957 esac
13958 case `$CC -V 2>&1 | sed 5q` in
13959 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000013960 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 +000013961 compiler_needs_object=yes
13962 tmp_sharedflag='-G' ;;
13963 *Sun\ F*) # Sun Fortran 8.3
13964 tmp_sharedflag='-G' ;;
13965 esac
13966 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13967
13968 if test "x$supports_anon_versioning" = xyes; then
13969 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13970 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13971 echo "local: *; };" >> $output_objdir/$libname.ver~
13972 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13973 fi
13974
13975 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013976 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000013977 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13978 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13979 hardcode_libdir_flag_spec=
13980 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000013981 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013982 if test "x$supports_anon_versioning" = xyes; then
13983 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13984 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13985 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000013986 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013987 fi
13988 ;;
13989 esac
13990 else
13991 ld_shlibs=no
13992 fi
13993 ;;
13994
13995 netbsd*)
13996 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13997 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13998 wlarc=
13999 else
cristyda16f162011-02-19 23:52:17 +000014000 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14001 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 +000014002 fi
14003 ;;
14004
14005 solaris*)
14006 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14007 ld_shlibs=no
14008 cat <<_LT_EOF 1>&2
14009
14010*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14011*** create shared libraries on Solaris systems. Therefore, libtool
14012*** is disabling shared libraries support. We urge you to upgrade GNU
14013*** binutils to release 2.9.1 or newer. Another option is to modify
14014*** your PATH or compiler configuration so that the native linker is
14015*** used, and then restart.
14016
14017_LT_EOF
14018 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014019 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14020 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 +000014021 else
14022 ld_shlibs=no
14023 fi
14024 ;;
14025
14026 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14027 case `$LD -v 2>&1` in
14028 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14029 ld_shlibs=no
14030 cat <<_LT_EOF 1>&2
14031
14032*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14033*** reliably create shared libraries on SCO systems. Therefore, libtool
14034*** is disabling shared libraries support. We urge you to upgrade GNU
14035*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14036*** your PATH or compiler configuration so that the native linker is
14037*** used, and then restart.
14038
14039_LT_EOF
14040 ;;
14041 *)
14042 # For security reasons, it is highly recommended that you always
14043 # use absolute paths for naming shared libraries, and exclude the
14044 # DT_RUNPATH tag from executables and libraries. But doing so
14045 # requires that you compile everything twice, which is a pain.
14046 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14047 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14048 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14049 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14050 else
14051 ld_shlibs=no
14052 fi
14053 ;;
14054 esac
14055 ;;
14056
14057 sunos4*)
14058 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14059 wlarc=
14060 hardcode_direct=yes
14061 hardcode_shlibpath_var=no
14062 ;;
14063
14064 *)
14065 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014066 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14067 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 +000014068 else
14069 ld_shlibs=no
14070 fi
14071 ;;
14072 esac
14073
14074 if test "$ld_shlibs" = no; then
14075 runpath_var=
14076 hardcode_libdir_flag_spec=
14077 export_dynamic_flag_spec=
14078 whole_archive_flag_spec=
14079 fi
14080 else
14081 # PORTME fill in a description of your system's linker (not GNU ld)
14082 case $host_os in
14083 aix3*)
14084 allow_undefined_flag=unsupported
14085 always_export_symbols=yes
14086 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'
14087 # Note: this linker hardcodes the directories in LIBPATH if there
14088 # are no directories specified by -L.
14089 hardcode_minus_L=yes
14090 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14091 # Neither direct hardcoding nor static linking is supported with a
14092 # broken collect2.
14093 hardcode_direct=unsupported
14094 fi
14095 ;;
14096
14097 aix[4-9]*)
14098 if test "$host_cpu" = ia64; then
14099 # On IA64, the linker does run time linking by default, so we don't
14100 # have to do anything special.
14101 aix_use_runtimelinking=no
14102 exp_sym_flag='-Bexport'
14103 no_entry_flag=""
14104 else
14105 # If we're using GNU nm, then we don't want the "-C" option.
14106 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014107 # Also, AIX nm treats weak defined symbols like other global
14108 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014109 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014110 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 +000014111 else
14112 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'
14113 fi
14114 aix_use_runtimelinking=no
14115
14116 # Test if we are trying to use run time linking or normal
14117 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14118 # need to do runtime linking.
14119 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14120 for ld_flag in $LDFLAGS; do
14121 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14122 aix_use_runtimelinking=yes
14123 break
14124 fi
14125 done
14126 ;;
14127 esac
14128
14129 exp_sym_flag='-bexport'
14130 no_entry_flag='-bnoentry'
14131 fi
14132
14133 # When large executables or shared objects are built, AIX ld can
14134 # have problems creating the table of contents. If linking a library
14135 # or program results in "error TOC overflow" add -mminimal-toc to
14136 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14137 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14138
14139 archive_cmds=''
14140 hardcode_direct=yes
14141 hardcode_direct_absolute=yes
14142 hardcode_libdir_separator=':'
14143 link_all_deplibs=yes
14144 file_list_spec='${wl}-f,'
14145
14146 if test "$GCC" = yes; then
14147 case $host_os in aix4.[012]|aix4.[012].*)
14148 # We only want to do this on AIX 4.2 and lower, the check
14149 # below for broken collect2 doesn't work under 4.3+
14150 collect2name=`${CC} -print-prog-name=collect2`
14151 if test -f "$collect2name" &&
14152 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14153 then
14154 # We have reworked collect2
14155 :
14156 else
14157 # We have old collect2
14158 hardcode_direct=unsupported
14159 # It fails to find uninstalled libraries when the uninstalled
14160 # path is not listed in the libpath. Setting hardcode_minus_L
14161 # to unsupported forces relinking
14162 hardcode_minus_L=yes
14163 hardcode_libdir_flag_spec='-L$libdir'
14164 hardcode_libdir_separator=
14165 fi
14166 ;;
14167 esac
14168 shared_flag='-shared'
14169 if test "$aix_use_runtimelinking" = yes; then
14170 shared_flag="$shared_flag "'${wl}-G'
14171 fi
14172 else
14173 # not using gcc
14174 if test "$host_cpu" = ia64; then
14175 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14176 # chokes on -Wl,-G. The following line is correct:
14177 shared_flag='-G'
14178 else
14179 if test "$aix_use_runtimelinking" = yes; then
14180 shared_flag='${wl}-G'
14181 else
14182 shared_flag='${wl}-bM:SRE'
14183 fi
14184 fi
14185 fi
14186
14187 export_dynamic_flag_spec='${wl}-bexpall'
14188 # It seems that -bexpall does not export symbols beginning with
14189 # underscore (_), so it is better to generate a list of symbols to export.
14190 always_export_symbols=yes
14191 if test "$aix_use_runtimelinking" = yes; then
14192 # Warning - without using the other runtime loading flags (-brtl),
14193 # -berok will link without error, but may produce a broken library.
14194 allow_undefined_flag='-berok'
14195 # Determine the default libpath from the value encoded in an
14196 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014197 if test "${lt_cv_aix_libpath+set}" = set; then
14198 aix_libpath=$lt_cv_aix_libpath
14199else
14200 if ${lt_cv_aix_libpath_+:} false; then :
14201 $as_echo_n "(cached) " >&6
14202else
14203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014204/* end confdefs.h. */
14205
14206int
14207main ()
14208{
14209
14210 ;
14211 return 0;
14212}
14213_ACEOF
14214if ac_fn_c_try_link "$LINENO"; then :
14215
cristyda16f162011-02-19 23:52:17 +000014216 lt_aix_libpath_sed='
14217 /Import File Strings/,/^$/ {
14218 /^0/ {
14219 s/^0 *\([^ ]*\) *$/\1/
14220 p
14221 }
14222 }'
14223 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14224 # Check for a 64-bit object if we didn't find anything.
14225 if test -z "$lt_cv_aix_libpath_"; then
14226 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14227 fi
cristy73bd4a52010-10-05 11:24:23 +000014228fi
14229rm -f core conftest.err conftest.$ac_objext \
14230 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014231 if test -z "$lt_cv_aix_libpath_"; then
14232 lt_cv_aix_libpath_="/usr/lib:/lib"
14233 fi
14234
14235fi
14236
14237 aix_libpath=$lt_cv_aix_libpath_
14238fi
cristy73bd4a52010-10-05 11:24:23 +000014239
14240 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014241 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 +000014242 else
14243 if test "$host_cpu" = ia64; then
14244 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14245 allow_undefined_flag="-z nodefs"
14246 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"
14247 else
14248 # Determine the default libpath from the value encoded in an
14249 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014250 if test "${lt_cv_aix_libpath+set}" = set; then
14251 aix_libpath=$lt_cv_aix_libpath
14252else
14253 if ${lt_cv_aix_libpath_+:} false; then :
14254 $as_echo_n "(cached) " >&6
14255else
14256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014257/* end confdefs.h. */
14258
14259int
14260main ()
14261{
14262
14263 ;
14264 return 0;
14265}
14266_ACEOF
14267if ac_fn_c_try_link "$LINENO"; then :
14268
cristyda16f162011-02-19 23:52:17 +000014269 lt_aix_libpath_sed='
14270 /Import File Strings/,/^$/ {
14271 /^0/ {
14272 s/^0 *\([^ ]*\) *$/\1/
14273 p
14274 }
14275 }'
14276 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14277 # Check for a 64-bit object if we didn't find anything.
14278 if test -z "$lt_cv_aix_libpath_"; then
14279 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14280 fi
cristy73bd4a52010-10-05 11:24:23 +000014281fi
14282rm -f core conftest.err conftest.$ac_objext \
14283 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014284 if test -z "$lt_cv_aix_libpath_"; then
14285 lt_cv_aix_libpath_="/usr/lib:/lib"
14286 fi
14287
14288fi
14289
14290 aix_libpath=$lt_cv_aix_libpath_
14291fi
cristy73bd4a52010-10-05 11:24:23 +000014292
14293 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14294 # Warning - without using the other run time loading flags,
14295 # -berok will link without error, but may produce a broken library.
14296 no_undefined_flag=' ${wl}-bernotok'
14297 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014298 if test "$with_gnu_ld" = yes; then
14299 # We only use this code for GNU lds that support --whole-archive.
14300 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14301 else
14302 # Exported symbols can be pulled into shared objects from archives
14303 whole_archive_flag_spec='$convenience'
14304 fi
cristy73bd4a52010-10-05 11:24:23 +000014305 archive_cmds_need_lc=yes
14306 # This is similar to how AIX traditionally builds its shared libraries.
14307 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'
14308 fi
14309 fi
14310 ;;
14311
14312 amigaos*)
14313 case $host_cpu in
14314 powerpc)
14315 # see comment about AmigaOS4 .so support
14316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14317 archive_expsym_cmds=''
14318 ;;
14319 m68k)
14320 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)'
14321 hardcode_libdir_flag_spec='-L$libdir'
14322 hardcode_minus_L=yes
14323 ;;
14324 esac
14325 ;;
14326
14327 bsdi[45]*)
14328 export_dynamic_flag_spec=-rdynamic
14329 ;;
14330
14331 cygwin* | mingw* | pw32* | cegcc*)
14332 # When not using gcc, we currently assume that we are using
14333 # Microsoft Visual C++.
14334 # hardcode_libdir_flag_spec is actually meaningless, as there is
14335 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014336 case $cc_basename in
14337 cl*)
14338 # Native MSVC
14339 hardcode_libdir_flag_spec=' '
14340 allow_undefined_flag=unsupported
14341 always_export_symbols=yes
14342 file_list_spec='@'
14343 # Tell ltmain to make .lib files, not .a files.
14344 libext=lib
14345 # Tell ltmain to make .dll files, not .so files.
14346 shrext_cmds=".dll"
14347 # FIXME: Setting linknames here is a bad hack.
14348 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14349 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14350 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14351 else
14352 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14353 fi~
14354 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14355 linknames='
14356 # The linker will not automatically build a static lib if we build a DLL.
14357 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14358 enable_shared_with_static_runtimes=yes
14359 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14360 # Don't use ranlib
14361 old_postinstall_cmds='chmod 644 $oldlib'
14362 postlink_cmds='lt_outputfile="@OUTPUT@"~
14363 lt_tool_outputfile="@TOOL_OUTPUT@"~
14364 case $lt_outputfile in
14365 *.exe|*.EXE) ;;
14366 *)
14367 lt_outputfile="$lt_outputfile.exe"
14368 lt_tool_outputfile="$lt_tool_outputfile.exe"
14369 ;;
14370 esac~
14371 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14372 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14373 $RM "$lt_outputfile.manifest";
14374 fi'
14375 ;;
14376 *)
14377 # Assume MSVC wrapper
14378 hardcode_libdir_flag_spec=' '
14379 allow_undefined_flag=unsupported
14380 # Tell ltmain to make .lib files, not .a files.
14381 libext=lib
14382 # Tell ltmain to make .dll files, not .so files.
14383 shrext_cmds=".dll"
14384 # FIXME: Setting linknames here is a bad hack.
14385 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14386 # The linker will automatically build a .lib file if we build a DLL.
14387 old_archive_from_new_cmds='true'
14388 # FIXME: Should let the user specify the lib program.
14389 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14390 enable_shared_with_static_runtimes=yes
14391 ;;
14392 esac
cristy73bd4a52010-10-05 11:24:23 +000014393 ;;
14394
14395 darwin* | rhapsody*)
14396
14397
14398 archive_cmds_need_lc=no
14399 hardcode_direct=no
14400 hardcode_automatic=yes
14401 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014402 if test "$lt_cv_ld_force_load" = "yes"; then
14403 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\"`'
14404 else
14405 whole_archive_flag_spec=''
14406 fi
cristy73bd4a52010-10-05 11:24:23 +000014407 link_all_deplibs=yes
14408 allow_undefined_flag="$_lt_dar_allow_undefined"
14409 case $cc_basename in
14410 ifort*) _lt_dar_can_shared=yes ;;
14411 *) _lt_dar_can_shared=$GCC ;;
14412 esac
14413 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014414 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014415 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14416 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14417 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}"
14418 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}"
14419
14420 else
14421 ld_shlibs=no
14422 fi
14423
14424 ;;
14425
14426 dgux*)
14427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14428 hardcode_libdir_flag_spec='-L$libdir'
14429 hardcode_shlibpath_var=no
14430 ;;
14431
14432 freebsd1*)
14433 ld_shlibs=no
14434 ;;
14435
14436 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14437 # support. Future versions do this automatically, but an explicit c++rt0.o
14438 # does not break anything, and helps significantly (at the cost of a little
14439 # extra space).
14440 freebsd2.2*)
14441 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14442 hardcode_libdir_flag_spec='-R$libdir'
14443 hardcode_direct=yes
14444 hardcode_shlibpath_var=no
14445 ;;
14446
14447 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14448 freebsd2*)
14449 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14450 hardcode_direct=yes
14451 hardcode_minus_L=yes
14452 hardcode_shlibpath_var=no
14453 ;;
14454
14455 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14456 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014457 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014458 hardcode_libdir_flag_spec='-R$libdir'
14459 hardcode_direct=yes
14460 hardcode_shlibpath_var=no
14461 ;;
14462
14463 hpux9*)
14464 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014465 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 +000014466 else
14467 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'
14468 fi
14469 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14470 hardcode_libdir_separator=:
14471 hardcode_direct=yes
14472
14473 # hardcode_minus_L: Not really in the search PATH,
14474 # but as the default location of the library.
14475 hardcode_minus_L=yes
14476 export_dynamic_flag_spec='${wl}-E'
14477 ;;
14478
14479 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014480 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014481 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 +000014482 else
14483 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14484 fi
14485 if test "$with_gnu_ld" = no; then
14486 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14487 hardcode_libdir_flag_spec_ld='+b $libdir'
14488 hardcode_libdir_separator=:
14489 hardcode_direct=yes
14490 hardcode_direct_absolute=yes
14491 export_dynamic_flag_spec='${wl}-E'
14492 # hardcode_minus_L: Not really in the search PATH,
14493 # but as the default location of the library.
14494 hardcode_minus_L=yes
14495 fi
14496 ;;
14497
14498 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014499 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014500 case $host_cpu in
14501 hppa*64*)
14502 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14503 ;;
14504 ia64*)
cristyda16f162011-02-19 23:52:17 +000014505 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014506 ;;
14507 *)
cristyda16f162011-02-19 23:52:17 +000014508 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 +000014509 ;;
14510 esac
14511 else
14512 case $host_cpu in
14513 hppa*64*)
14514 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14515 ;;
14516 ia64*)
14517 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14518 ;;
14519 *)
cristy0c60a692010-11-04 01:09:47 +000014520
14521 # Older versions of the 11.00 compiler do not understand -b yet
14522 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14524$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014525if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014526 $as_echo_n "(cached) " >&6
14527else
14528 lt_cv_prog_compiler__b=no
14529 save_LDFLAGS="$LDFLAGS"
14530 LDFLAGS="$LDFLAGS -b"
14531 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14532 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14533 # The linker can only warn and ignore the option if not recognized
14534 # So say no if there are warnings
14535 if test -s conftest.err; then
14536 # Append any errors to the config.log.
14537 cat conftest.err 1>&5
14538 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14540 if diff conftest.exp conftest.er2 >/dev/null; then
14541 lt_cv_prog_compiler__b=yes
14542 fi
14543 else
14544 lt_cv_prog_compiler__b=yes
14545 fi
14546 fi
14547 $RM -r conftest*
14548 LDFLAGS="$save_LDFLAGS"
14549
14550fi
14551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14552$as_echo "$lt_cv_prog_compiler__b" >&6; }
14553
14554if test x"$lt_cv_prog_compiler__b" = xyes; then
14555 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14556else
14557 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14558fi
14559
cristy73bd4a52010-10-05 11:24:23 +000014560 ;;
14561 esac
14562 fi
14563 if test "$with_gnu_ld" = no; then
14564 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14565 hardcode_libdir_separator=:
14566
14567 case $host_cpu in
14568 hppa*64*|ia64*)
14569 hardcode_direct=no
14570 hardcode_shlibpath_var=no
14571 ;;
14572 *)
14573 hardcode_direct=yes
14574 hardcode_direct_absolute=yes
14575 export_dynamic_flag_spec='${wl}-E'
14576
14577 # hardcode_minus_L: Not really in the search PATH,
14578 # but as the default location of the library.
14579 hardcode_minus_L=yes
14580 ;;
14581 esac
14582 fi
14583 ;;
14584
14585 irix5* | irix6* | nonstopux*)
14586 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014587 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 +000014588 # Try to use the -exported_symbol ld option, if it does not
14589 # work, assume that -exports_file does not work either and
14590 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014591 # This should be the same for all languages, so no per-tag cache variable.
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14593$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14594if ${lt_cv_irix_exported_symbol+:} false; then :
14595 $as_echo_n "(cached) " >&6
14596else
14597 save_LDFLAGS="$LDFLAGS"
14598 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014600/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014601int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014602_ACEOF
14603if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014604 lt_cv_irix_exported_symbol=yes
14605else
14606 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014607fi
14608rm -f core conftest.err conftest.$ac_objext \
14609 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014610 LDFLAGS="$save_LDFLAGS"
14611fi
14612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14613$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14614 if test "$lt_cv_irix_exported_symbol" = yes; then
14615 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'
14616 fi
cristy73bd4a52010-10-05 11:24:23 +000014617 else
cristy0c60a692010-11-04 01:09:47 +000014618 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'
14619 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 +000014620 fi
14621 archive_cmds_need_lc='no'
14622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14623 hardcode_libdir_separator=:
14624 inherit_rpath=yes
14625 link_all_deplibs=yes
14626 ;;
14627
14628 netbsd*)
14629 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14630 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14631 else
14632 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14633 fi
14634 hardcode_libdir_flag_spec='-R$libdir'
14635 hardcode_direct=yes
14636 hardcode_shlibpath_var=no
14637 ;;
14638
14639 newsos6)
14640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14641 hardcode_direct=yes
14642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14643 hardcode_libdir_separator=:
14644 hardcode_shlibpath_var=no
14645 ;;
14646
14647 *nto* | *qnx*)
14648 ;;
14649
14650 openbsd*)
14651 if test -f /usr/libexec/ld.so; then
14652 hardcode_direct=yes
14653 hardcode_shlibpath_var=no
14654 hardcode_direct_absolute=yes
14655 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14656 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14657 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14658 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14659 export_dynamic_flag_spec='${wl}-E'
14660 else
14661 case $host_os in
14662 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14663 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14664 hardcode_libdir_flag_spec='-R$libdir'
14665 ;;
14666 *)
14667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14668 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14669 ;;
14670 esac
14671 fi
14672 else
14673 ld_shlibs=no
14674 fi
14675 ;;
14676
14677 os2*)
14678 hardcode_libdir_flag_spec='-L$libdir'
14679 hardcode_minus_L=yes
14680 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014681 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 +000014682 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14683 ;;
14684
14685 osf3*)
14686 if test "$GCC" = yes; then
14687 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014688 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 +000014689 else
14690 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014691 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 +000014692 fi
14693 archive_cmds_need_lc='no'
14694 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14695 hardcode_libdir_separator=:
14696 ;;
14697
14698 osf4* | osf5*) # as osf3* with the addition of -msym flag
14699 if test "$GCC" = yes; then
14700 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014701 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 +000014702 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14703 else
14704 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014705 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 +000014706 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 +000014707 $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 +000014708
14709 # Both c and cxx compiler support -rpath directly
14710 hardcode_libdir_flag_spec='-rpath $libdir'
14711 fi
14712 archive_cmds_need_lc='no'
14713 hardcode_libdir_separator=:
14714 ;;
14715
14716 solaris*)
14717 no_undefined_flag=' -z defs'
14718 if test "$GCC" = yes; then
14719 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014720 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 +000014721 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 +000014722 $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 +000014723 else
14724 case `$CC -V 2>&1` in
14725 *"Compilers 5.0"*)
14726 wlarc=''
14727 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14728 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14729 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14730 ;;
14731 *)
14732 wlarc='${wl}'
14733 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14734 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14735 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14736 ;;
14737 esac
14738 fi
14739 hardcode_libdir_flag_spec='-R$libdir'
14740 hardcode_shlibpath_var=no
14741 case $host_os in
14742 solaris2.[0-5] | solaris2.[0-5].*) ;;
14743 *)
14744 # The compiler driver will combine and reorder linker options,
14745 # but understands `-z linker_flag'. GCC discards it without `$wl',
14746 # but is careful enough not to reorder.
14747 # Supported since Solaris 2.6 (maybe 2.5.1?)
14748 if test "$GCC" = yes; then
14749 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14750 else
14751 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14752 fi
14753 ;;
14754 esac
14755 link_all_deplibs=yes
14756 ;;
14757
14758 sunos4*)
14759 if test "x$host_vendor" = xsequent; then
14760 # Use $CC to link under sequent, because it throws in some extra .o
14761 # files that make .init and .fini sections work.
14762 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14763 else
14764 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14765 fi
14766 hardcode_libdir_flag_spec='-L$libdir'
14767 hardcode_direct=yes
14768 hardcode_minus_L=yes
14769 hardcode_shlibpath_var=no
14770 ;;
14771
14772 sysv4)
14773 case $host_vendor in
14774 sni)
14775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14776 hardcode_direct=yes # is this really true???
14777 ;;
14778 siemens)
14779 ## LD is ld it makes a PLAMLIB
14780 ## CC just makes a GrossModule.
14781 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14782 reload_cmds='$CC -r -o $output$reload_objs'
14783 hardcode_direct=no
14784 ;;
14785 motorola)
14786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14787 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14788 ;;
14789 esac
14790 runpath_var='LD_RUN_PATH'
14791 hardcode_shlibpath_var=no
14792 ;;
14793
14794 sysv4.3*)
14795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14796 hardcode_shlibpath_var=no
14797 export_dynamic_flag_spec='-Bexport'
14798 ;;
14799
14800 sysv4*MP*)
14801 if test -d /usr/nec; then
14802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14803 hardcode_shlibpath_var=no
14804 runpath_var=LD_RUN_PATH
14805 hardcode_runpath_var=yes
14806 ld_shlibs=yes
14807 fi
14808 ;;
14809
14810 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14811 no_undefined_flag='${wl}-z,text'
14812 archive_cmds_need_lc=no
14813 hardcode_shlibpath_var=no
14814 runpath_var='LD_RUN_PATH'
14815
14816 if test "$GCC" = yes; then
14817 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14818 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14819 else
14820 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14821 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14822 fi
14823 ;;
14824
14825 sysv5* | sco3.2v5* | sco5v6*)
14826 # Note: We can NOT use -z defs as we might desire, because we do not
14827 # link with -lc, and that would cause any symbols used from libc to
14828 # always be unresolved, which means just about no library would
14829 # ever link correctly. If we're not using GNU ld we use -z text
14830 # though, which does catch some bad symbols but isn't as heavy-handed
14831 # as -z defs.
14832 no_undefined_flag='${wl}-z,text'
14833 allow_undefined_flag='${wl}-z,nodefs'
14834 archive_cmds_need_lc=no
14835 hardcode_shlibpath_var=no
14836 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14837 hardcode_libdir_separator=':'
14838 link_all_deplibs=yes
14839 export_dynamic_flag_spec='${wl}-Bexport'
14840 runpath_var='LD_RUN_PATH'
14841
14842 if test "$GCC" = yes; then
14843 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14844 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14845 else
14846 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14847 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14848 fi
14849 ;;
14850
14851 uts4*)
14852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14853 hardcode_libdir_flag_spec='-L$libdir'
14854 hardcode_shlibpath_var=no
14855 ;;
14856
14857 *)
14858 ld_shlibs=no
14859 ;;
14860 esac
14861
14862 if test x$host_vendor = xsni; then
14863 case $host in
14864 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14865 export_dynamic_flag_spec='${wl}-Blargedynsym'
14866 ;;
14867 esac
14868 fi
14869 fi
14870
14871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14872$as_echo "$ld_shlibs" >&6; }
14873test "$ld_shlibs" = no && can_build_shared=no
14874
14875with_gnu_ld=$with_gnu_ld
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891#
14892# Do we need to explicitly link libc?
14893#
14894case "x$archive_cmds_need_lc" in
14895x|xyes)
14896 # Assume -lc should be added
14897 archive_cmds_need_lc=yes
14898
14899 if test "$enable_shared" = yes && test "$GCC" = yes; then
14900 case $archive_cmds in
14901 *'~'*)
14902 # FIXME: we may have to deal with multi-command sequences.
14903 ;;
14904 '$CC '*)
14905 # Test whether the compiler implicitly links with -lc since on some
14906 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14907 # to ld, don't add -lc before -lgcc.
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14909$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014910if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014911 $as_echo_n "(cached) " >&6
14912else
14913 $RM conftest*
14914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014915
cristy0c60a692010-11-04 01:09:47 +000014916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000014917 (eval $ac_compile) 2>&5
14918 ac_status=$?
14919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14920 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000014921 soname=conftest
14922 lib=conftest
14923 libobjs=conftest.$ac_objext
14924 deplibs=
14925 wl=$lt_prog_compiler_wl
14926 pic_flag=$lt_prog_compiler_pic
14927 compiler_flags=-v
14928 linker_flags=-v
14929 verstring=
14930 output_objdir=.
14931 libname=conftest
14932 lt_save_allow_undefined_flag=$allow_undefined_flag
14933 allow_undefined_flag=
14934 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 +000014935 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14936 ac_status=$?
14937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14938 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000014939 then
14940 lt_cv_archive_cmds_need_lc=no
14941 else
14942 lt_cv_archive_cmds_need_lc=yes
14943 fi
14944 allow_undefined_flag=$lt_save_allow_undefined_flag
14945 else
14946 cat conftest.err 1>&5
14947 fi
14948 $RM conftest*
14949
14950fi
14951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14952$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14953 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000014954 ;;
14955 esac
14956 fi
14957 ;;
14958esac
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15117$as_echo_n "checking dynamic linker characteristics... " >&6; }
15118
15119if test "$GCC" = yes; then
15120 case $host_os in
15121 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15122 *) lt_awk_arg="/^libraries:/" ;;
15123 esac
cristy0c60a692010-11-04 01:09:47 +000015124 case $host_os in
15125 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15126 *) lt_sed_strip_eq="s,=/,/,g" ;;
15127 esac
15128 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15129 case $lt_search_path_spec in
15130 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015131 # if the path contains ";" then we assume it to be the separator
15132 # otherwise default to the standard path separator (i.e. ":") - it is
15133 # assumed that no part of a normal pathname contains ";" but that should
15134 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015135 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15136 ;;
15137 *)
15138 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15139 ;;
15140 esac
cristy73bd4a52010-10-05 11:24:23 +000015141 # Ok, now we have the path, separated by spaces, we can step through it
15142 # and add multilib dir if necessary.
15143 lt_tmp_lt_search_path_spec=
15144 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15145 for lt_sys_path in $lt_search_path_spec; do
15146 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15147 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15148 else
15149 test -d "$lt_sys_path" && \
15150 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15151 fi
15152 done
cristy0c60a692010-11-04 01:09:47 +000015153 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015154BEGIN {RS=" "; FS="/|\n";} {
15155 lt_foo="";
15156 lt_count=0;
15157 for (lt_i = NF; lt_i > 0; lt_i--) {
15158 if ($lt_i != "" && $lt_i != ".") {
15159 if ($lt_i == "..") {
15160 lt_count++;
15161 } else {
15162 if (lt_count == 0) {
15163 lt_foo="/" $lt_i lt_foo;
15164 } else {
15165 lt_count--;
15166 }
15167 }
15168 }
15169 }
15170 if (lt_foo != "") { lt_freq[lt_foo]++; }
15171 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15172}'`
cristy0c60a692010-11-04 01:09:47 +000015173 # AWK program above erroneously prepends '/' to C:/dos/paths
15174 # for these hosts.
15175 case $host_os in
15176 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15177 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15178 esac
15179 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015180else
15181 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15182fi
15183library_names_spec=
15184libname_spec='lib$name'
15185soname_spec=
15186shrext_cmds=".so"
15187postinstall_cmds=
15188postuninstall_cmds=
15189finish_cmds=
15190finish_eval=
15191shlibpath_var=
15192shlibpath_overrides_runpath=unknown
15193version_type=none
15194dynamic_linker="$host_os ld.so"
15195sys_lib_dlsearch_path_spec="/lib /usr/lib"
15196need_lib_prefix=unknown
15197hardcode_into_libs=no
15198
15199# when you set need_version to no, make sure it does not cause -set_version
15200# flags to be left without arguments
15201need_version=unknown
15202
15203case $host_os in
15204aix3*)
15205 version_type=linux
15206 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15207 shlibpath_var=LIBPATH
15208
15209 # AIX 3 has no versioning support, so we append a major version to the name.
15210 soname_spec='${libname}${release}${shared_ext}$major'
15211 ;;
15212
15213aix[4-9]*)
15214 version_type=linux
15215 need_lib_prefix=no
15216 need_version=no
15217 hardcode_into_libs=yes
15218 if test "$host_cpu" = ia64; then
15219 # AIX 5 supports IA64
15220 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15221 shlibpath_var=LD_LIBRARY_PATH
15222 else
15223 # With GCC up to 2.95.x, collect2 would create an import file
15224 # for dependence libraries. The import file would start with
15225 # the line `#! .'. This would cause the generated library to
15226 # depend on `.', always an invalid library. This was fixed in
15227 # development snapshots of GCC prior to 3.0.
15228 case $host_os in
15229 aix4 | aix4.[01] | aix4.[01].*)
15230 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15231 echo ' yes '
15232 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15233 :
15234 else
15235 can_build_shared=no
15236 fi
15237 ;;
15238 esac
15239 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15240 # soname into executable. Probably we can add versioning support to
15241 # collect2, so additional links can be useful in future.
15242 if test "$aix_use_runtimelinking" = yes; then
15243 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15244 # instead of lib<name>.a to let people know that these are not
15245 # typical AIX shared libraries.
15246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15247 else
15248 # We preserve .a as extension for shared libraries through AIX4.2
15249 # and later when we are not doing run time linking.
15250 library_names_spec='${libname}${release}.a $libname.a'
15251 soname_spec='${libname}${release}${shared_ext}$major'
15252 fi
15253 shlibpath_var=LIBPATH
15254 fi
15255 ;;
15256
15257amigaos*)
15258 case $host_cpu in
15259 powerpc)
15260 # Since July 2007 AmigaOS4 officially supports .so libraries.
15261 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15263 ;;
15264 m68k)
15265 library_names_spec='$libname.ixlibrary $libname.a'
15266 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015267 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 +000015268 ;;
15269 esac
15270 ;;
15271
15272beos*)
15273 library_names_spec='${libname}${shared_ext}'
15274 dynamic_linker="$host_os ld.so"
15275 shlibpath_var=LIBRARY_PATH
15276 ;;
15277
15278bsdi[45]*)
15279 version_type=linux
15280 need_version=no
15281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15282 soname_spec='${libname}${release}${shared_ext}$major'
15283 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15284 shlibpath_var=LD_LIBRARY_PATH
15285 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15286 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15287 # the default ld.so.conf also contains /usr/contrib/lib and
15288 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15289 # libtool to hard-code these into programs
15290 ;;
15291
15292cygwin* | mingw* | pw32* | cegcc*)
15293 version_type=windows
15294 shrext_cmds=".dll"
15295 need_version=no
15296 need_lib_prefix=no
15297
cristyda16f162011-02-19 23:52:17 +000015298 case $GCC,$cc_basename in
15299 yes,*)
15300 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015301 library_names_spec='$libname.dll.a'
15302 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15303 postinstall_cmds='base_file=`basename \${file}`~
15304 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15305 dldir=$destdir/`dirname \$dlpath`~
15306 test -d \$dldir || mkdir -p \$dldir~
15307 $install_prog $dir/$dlname \$dldir/$dlname~
15308 chmod a+x \$dldir/$dlname~
15309 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15310 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15311 fi'
15312 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15313 dlpath=$dir/\$dldll~
15314 $RM \$dlpath'
15315 shlibpath_overrides_runpath=yes
15316
15317 case $host_os in
15318 cygwin*)
15319 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15320 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015321
15322 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015323 ;;
15324 mingw* | cegcc*)
15325 # MinGW DLLs use traditional 'lib' prefix
15326 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015327 ;;
15328 pw32*)
15329 # pw32 DLLs use 'pw' prefix rather than 'lib'
15330 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15331 ;;
15332 esac
cristyda16f162011-02-19 23:52:17 +000015333 dynamic_linker='Win32 ld.exe'
15334 ;;
15335
15336 *,cl*)
15337 # Native MSVC
15338 libname_spec='$name'
15339 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15340 library_names_spec='${libname}.dll.lib'
15341
15342 case $build_os in
15343 mingw*)
15344 sys_lib_search_path_spec=
15345 lt_save_ifs=$IFS
15346 IFS=';'
15347 for lt_path in $LIB
15348 do
15349 IFS=$lt_save_ifs
15350 # Let DOS variable expansion print the short 8.3 style file name.
15351 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15352 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15353 done
15354 IFS=$lt_save_ifs
15355 # Convert to MSYS style.
15356 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15357 ;;
15358 cygwin*)
15359 # Convert to unix form, then to dos form, then back to unix form
15360 # but this time dos style (no spaces!) so that the unix form looks
15361 # like /cygdrive/c/PROGRA~1:/cygdr...
15362 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15363 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15364 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15365 ;;
15366 *)
15367 sys_lib_search_path_spec="$LIB"
15368 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15369 # It is most probably a Windows format PATH.
15370 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15371 else
15372 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15373 fi
15374 # FIXME: find the short name or the path components, as spaces are
15375 # common. (e.g. "Program Files" -> "PROGRA~1")
15376 ;;
15377 esac
15378
15379 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15380 postinstall_cmds='base_file=`basename \${file}`~
15381 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15382 dldir=$destdir/`dirname \$dlpath`~
15383 test -d \$dldir || mkdir -p \$dldir~
15384 $install_prog $dir/$dlname \$dldir/$dlname'
15385 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15386 dlpath=$dir/\$dldll~
15387 $RM \$dlpath'
15388 shlibpath_overrides_runpath=yes
15389 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015390 ;;
15391
15392 *)
cristyda16f162011-02-19 23:52:17 +000015393 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015394 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015395 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015396 ;;
15397 esac
cristy73bd4a52010-10-05 11:24:23 +000015398 # FIXME: first we should search . and the directory the executable is in
15399 shlibpath_var=PATH
15400 ;;
15401
15402darwin* | rhapsody*)
15403 dynamic_linker="$host_os dyld"
15404 version_type=darwin
15405 need_lib_prefix=no
15406 need_version=no
15407 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15408 soname_spec='${libname}${release}${major}$shared_ext'
15409 shlibpath_overrides_runpath=yes
15410 shlibpath_var=DYLD_LIBRARY_PATH
15411 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15412
15413 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15414 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15415 ;;
15416
15417dgux*)
15418 version_type=linux
15419 need_lib_prefix=no
15420 need_version=no
15421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15422 soname_spec='${libname}${release}${shared_ext}$major'
15423 shlibpath_var=LD_LIBRARY_PATH
15424 ;;
15425
15426freebsd1*)
15427 dynamic_linker=no
15428 ;;
15429
15430freebsd* | dragonfly*)
15431 # DragonFly does not have aout. When/if they implement a new
15432 # versioning mechanism, adjust this.
15433 if test -x /usr/bin/objformat; then
15434 objformat=`/usr/bin/objformat`
15435 else
15436 case $host_os in
15437 freebsd[123]*) objformat=aout ;;
15438 *) objformat=elf ;;
15439 esac
15440 fi
15441 version_type=freebsd-$objformat
15442 case $version_type in
15443 freebsd-elf*)
15444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15445 need_version=no
15446 need_lib_prefix=no
15447 ;;
15448 freebsd-*)
15449 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15450 need_version=yes
15451 ;;
15452 esac
15453 shlibpath_var=LD_LIBRARY_PATH
15454 case $host_os in
15455 freebsd2*)
15456 shlibpath_overrides_runpath=yes
15457 ;;
15458 freebsd3.[01]* | freebsdelf3.[01]*)
15459 shlibpath_overrides_runpath=yes
15460 hardcode_into_libs=yes
15461 ;;
15462 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15463 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15464 shlibpath_overrides_runpath=no
15465 hardcode_into_libs=yes
15466 ;;
15467 *) # from 4.6 on, and DragonFly
15468 shlibpath_overrides_runpath=yes
15469 hardcode_into_libs=yes
15470 ;;
15471 esac
15472 ;;
15473
15474gnu*)
15475 version_type=linux
15476 need_lib_prefix=no
15477 need_version=no
15478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15479 soname_spec='${libname}${release}${shared_ext}$major'
15480 shlibpath_var=LD_LIBRARY_PATH
15481 hardcode_into_libs=yes
15482 ;;
15483
cristy0c60a692010-11-04 01:09:47 +000015484haiku*)
15485 version_type=linux
15486 need_lib_prefix=no
15487 need_version=no
15488 dynamic_linker="$host_os runtime_loader"
15489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15490 soname_spec='${libname}${release}${shared_ext}$major'
15491 shlibpath_var=LIBRARY_PATH
15492 shlibpath_overrides_runpath=yes
15493 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15494 hardcode_into_libs=yes
15495 ;;
15496
cristy73bd4a52010-10-05 11:24:23 +000015497hpux9* | hpux10* | hpux11*)
15498 # Give a soname corresponding to the major version so that dld.sl refuses to
15499 # link against other versions.
15500 version_type=sunos
15501 need_lib_prefix=no
15502 need_version=no
15503 case $host_cpu in
15504 ia64*)
15505 shrext_cmds='.so'
15506 hardcode_into_libs=yes
15507 dynamic_linker="$host_os dld.so"
15508 shlibpath_var=LD_LIBRARY_PATH
15509 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15511 soname_spec='${libname}${release}${shared_ext}$major'
15512 if test "X$HPUX_IA64_MODE" = X32; then
15513 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15514 else
15515 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15516 fi
15517 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15518 ;;
15519 hppa*64*)
15520 shrext_cmds='.sl'
15521 hardcode_into_libs=yes
15522 dynamic_linker="$host_os dld.sl"
15523 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15524 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15526 soname_spec='${libname}${release}${shared_ext}$major'
15527 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15528 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15529 ;;
15530 *)
15531 shrext_cmds='.sl'
15532 dynamic_linker="$host_os dld.sl"
15533 shlibpath_var=SHLIB_PATH
15534 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15536 soname_spec='${libname}${release}${shared_ext}$major'
15537 ;;
15538 esac
cristy0c60a692010-11-04 01:09:47 +000015539 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015540 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015541 # or fails outright, so override atomically:
15542 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015543 ;;
15544
15545interix[3-9]*)
15546 version_type=linux
15547 need_lib_prefix=no
15548 need_version=no
15549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15550 soname_spec='${libname}${release}${shared_ext}$major'
15551 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15552 shlibpath_var=LD_LIBRARY_PATH
15553 shlibpath_overrides_runpath=no
15554 hardcode_into_libs=yes
15555 ;;
15556
15557irix5* | irix6* | nonstopux*)
15558 case $host_os in
15559 nonstopux*) version_type=nonstopux ;;
15560 *)
15561 if test "$lt_cv_prog_gnu_ld" = yes; then
15562 version_type=linux
15563 else
15564 version_type=irix
15565 fi ;;
15566 esac
15567 need_lib_prefix=no
15568 need_version=no
15569 soname_spec='${libname}${release}${shared_ext}$major'
15570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15571 case $host_os in
15572 irix5* | nonstopux*)
15573 libsuff= shlibsuff=
15574 ;;
15575 *)
15576 case $LD in # libtool.m4 will add one of these switches to LD
15577 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15578 libsuff= shlibsuff= libmagic=32-bit;;
15579 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15580 libsuff=32 shlibsuff=N32 libmagic=N32;;
15581 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15582 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15583 *) libsuff= shlibsuff= libmagic=never-match;;
15584 esac
15585 ;;
15586 esac
15587 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15588 shlibpath_overrides_runpath=no
15589 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15590 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15591 hardcode_into_libs=yes
15592 ;;
15593
15594# No shared lib support for Linux oldld, aout, or coff.
15595linux*oldld* | linux*aout* | linux*coff*)
15596 dynamic_linker=no
15597 ;;
15598
15599# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000015600linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015601 version_type=linux
15602 need_lib_prefix=no
15603 need_version=no
15604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15605 soname_spec='${libname}${release}${shared_ext}$major'
15606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15607 shlibpath_var=LD_LIBRARY_PATH
15608 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015609
cristy73bd4a52010-10-05 11:24:23 +000015610 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015611 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015612 $as_echo_n "(cached) " >&6
15613else
15614 lt_cv_shlibpath_overrides_runpath=no
15615 save_LDFLAGS=$LDFLAGS
15616 save_libdir=$libdir
15617 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15618 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015620/* end confdefs.h. */
15621
15622int
15623main ()
15624{
15625
15626 ;
15627 return 0;
15628}
15629_ACEOF
15630if ac_fn_c_try_link "$LINENO"; then :
15631 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015632 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015633fi
15634fi
15635rm -f core conftest.err conftest.$ac_objext \
15636 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015637 LDFLAGS=$save_LDFLAGS
15638 libdir=$save_libdir
15639
15640fi
15641
15642 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015643
15644 # This implies no fast_install, which is unacceptable.
15645 # Some rework will be needed to allow for fast_install
15646 # before this can be enabled.
15647 hardcode_into_libs=yes
15648
15649 # Add ABI-specific directories to the system library path.
15650 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15651
15652 # Append ld.so.conf contents to the search path
15653 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015654 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 +000015655 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015656
cristy73bd4a52010-10-05 11:24:23 +000015657 fi
15658
15659 # We used to test for /lib/ld.so.1 and disable shared libraries on
15660 # powerpc, because MkLinux only supported shared libraries with the
15661 # GNU dynamic linker. Since this was broken with cross compilers,
15662 # most powerpc-linux boxes support dynamic linking these days and
15663 # people can always --disable-shared, the test was removed, and we
15664 # assume the GNU/Linux dynamic linker is in use.
15665 dynamic_linker='GNU/Linux ld.so'
15666 ;;
15667
15668netbsd*)
15669 version_type=sunos
15670 need_lib_prefix=no
15671 need_version=no
15672 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15674 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15675 dynamic_linker='NetBSD (a.out) ld.so'
15676 else
15677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15678 soname_spec='${libname}${release}${shared_ext}$major'
15679 dynamic_linker='NetBSD ld.elf_so'
15680 fi
15681 shlibpath_var=LD_LIBRARY_PATH
15682 shlibpath_overrides_runpath=yes
15683 hardcode_into_libs=yes
15684 ;;
15685
15686newsos6)
15687 version_type=linux
15688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15689 shlibpath_var=LD_LIBRARY_PATH
15690 shlibpath_overrides_runpath=yes
15691 ;;
15692
15693*nto* | *qnx*)
15694 version_type=qnx
15695 need_lib_prefix=no
15696 need_version=no
15697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15698 soname_spec='${libname}${release}${shared_ext}$major'
15699 shlibpath_var=LD_LIBRARY_PATH
15700 shlibpath_overrides_runpath=no
15701 hardcode_into_libs=yes
15702 dynamic_linker='ldqnx.so'
15703 ;;
15704
15705openbsd*)
15706 version_type=sunos
15707 sys_lib_dlsearch_path_spec="/usr/lib"
15708 need_lib_prefix=no
15709 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15710 case $host_os in
15711 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15712 *) need_version=no ;;
15713 esac
15714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15715 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15716 shlibpath_var=LD_LIBRARY_PATH
15717 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15718 case $host_os in
15719 openbsd2.[89] | openbsd2.[89].*)
15720 shlibpath_overrides_runpath=no
15721 ;;
15722 *)
15723 shlibpath_overrides_runpath=yes
15724 ;;
15725 esac
15726 else
15727 shlibpath_overrides_runpath=yes
15728 fi
15729 ;;
15730
15731os2*)
15732 libname_spec='$name'
15733 shrext_cmds=".dll"
15734 need_lib_prefix=no
15735 library_names_spec='$libname${shared_ext} $libname.a'
15736 dynamic_linker='OS/2 ld.exe'
15737 shlibpath_var=LIBPATH
15738 ;;
15739
15740osf3* | osf4* | osf5*)
15741 version_type=osf
15742 need_lib_prefix=no
15743 need_version=no
15744 soname_spec='${libname}${release}${shared_ext}$major'
15745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15746 shlibpath_var=LD_LIBRARY_PATH
15747 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15748 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15749 ;;
15750
15751rdos*)
15752 dynamic_linker=no
15753 ;;
15754
15755solaris*)
15756 version_type=linux
15757 need_lib_prefix=no
15758 need_version=no
15759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15760 soname_spec='${libname}${release}${shared_ext}$major'
15761 shlibpath_var=LD_LIBRARY_PATH
15762 shlibpath_overrides_runpath=yes
15763 hardcode_into_libs=yes
15764 # ldd complains unless libraries are executable
15765 postinstall_cmds='chmod +x $lib'
15766 ;;
15767
15768sunos4*)
15769 version_type=sunos
15770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15771 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15772 shlibpath_var=LD_LIBRARY_PATH
15773 shlibpath_overrides_runpath=yes
15774 if test "$with_gnu_ld" = yes; then
15775 need_lib_prefix=no
15776 fi
15777 need_version=yes
15778 ;;
15779
15780sysv4 | sysv4.3*)
15781 version_type=linux
15782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15783 soname_spec='${libname}${release}${shared_ext}$major'
15784 shlibpath_var=LD_LIBRARY_PATH
15785 case $host_vendor in
15786 sni)
15787 shlibpath_overrides_runpath=no
15788 need_lib_prefix=no
15789 runpath_var=LD_RUN_PATH
15790 ;;
15791 siemens)
15792 need_lib_prefix=no
15793 ;;
15794 motorola)
15795 need_lib_prefix=no
15796 need_version=no
15797 shlibpath_overrides_runpath=no
15798 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15799 ;;
15800 esac
15801 ;;
15802
15803sysv4*MP*)
15804 if test -d /usr/nec ;then
15805 version_type=linux
15806 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15807 soname_spec='$libname${shared_ext}.$major'
15808 shlibpath_var=LD_LIBRARY_PATH
15809 fi
15810 ;;
15811
15812sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15813 version_type=freebsd-elf
15814 need_lib_prefix=no
15815 need_version=no
15816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15817 soname_spec='${libname}${release}${shared_ext}$major'
15818 shlibpath_var=LD_LIBRARY_PATH
15819 shlibpath_overrides_runpath=yes
15820 hardcode_into_libs=yes
15821 if test "$with_gnu_ld" = yes; then
15822 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15823 else
15824 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15825 case $host_os in
15826 sco3.2v5*)
15827 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15828 ;;
15829 esac
15830 fi
15831 sys_lib_dlsearch_path_spec='/usr/lib'
15832 ;;
15833
15834tpf*)
15835 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15836 version_type=linux
15837 need_lib_prefix=no
15838 need_version=no
15839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15840 shlibpath_var=LD_LIBRARY_PATH
15841 shlibpath_overrides_runpath=no
15842 hardcode_into_libs=yes
15843 ;;
15844
15845uts4*)
15846 version_type=linux
15847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15848 soname_spec='${libname}${release}${shared_ext}$major'
15849 shlibpath_var=LD_LIBRARY_PATH
15850 ;;
15851
15852*)
15853 dynamic_linker=no
15854 ;;
15855esac
15856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15857$as_echo "$dynamic_linker" >&6; }
15858test "$dynamic_linker" = no && can_build_shared=no
15859
15860variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15861if test "$GCC" = yes; then
15862 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15863fi
15864
15865if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15866 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15867fi
15868if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15869 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15870fi
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
cristy0c60a692010-11-04 01:09:47 +000015958
15959
15960
15961
15962
cristy73bd4a52010-10-05 11:24:23 +000015963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15964$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15965hardcode_action=
15966if test -n "$hardcode_libdir_flag_spec" ||
15967 test -n "$runpath_var" ||
15968 test "X$hardcode_automatic" = "Xyes" ; then
15969
15970 # We can hardcode non-existent directories.
15971 if test "$hardcode_direct" != no &&
15972 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15973 # have to relink, otherwise we might link with an installed library
15974 # when we should be linking with a yet-to-be-installed one
15975 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15976 test "$hardcode_minus_L" != no; then
15977 # Linking always hardcodes the temporary library directory.
15978 hardcode_action=relink
15979 else
15980 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15981 hardcode_action=immediate
15982 fi
15983else
15984 # We cannot hardcode anything, or else we can only hardcode existing
15985 # directories.
15986 hardcode_action=unsupported
15987fi
15988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15989$as_echo "$hardcode_action" >&6; }
15990
15991if test "$hardcode_action" = relink ||
15992 test "$inherit_rpath" = yes; then
15993 # Fast installation is not supported
15994 enable_fast_install=no
15995elif test "$shlibpath_overrides_runpath" = yes ||
15996 test "$enable_shared" = no; then
15997 # Fast installation is not necessary
15998 enable_fast_install=needless
15999fi
16000
16001
16002
16003
16004
16005
16006 if test "x$enable_dlopen" != xyes; then
16007 enable_dlopen=unknown
16008 enable_dlopen_self=unknown
16009 enable_dlopen_self_static=unknown
16010else
16011 lt_cv_dlopen=no
16012 lt_cv_dlopen_libs=
16013
16014 case $host_os in
16015 beos*)
16016 lt_cv_dlopen="load_add_on"
16017 lt_cv_dlopen_libs=
16018 lt_cv_dlopen_self=yes
16019 ;;
16020
16021 mingw* | pw32* | cegcc*)
16022 lt_cv_dlopen="LoadLibrary"
16023 lt_cv_dlopen_libs=
16024 ;;
16025
16026 cygwin*)
16027 lt_cv_dlopen="dlopen"
16028 lt_cv_dlopen_libs=
16029 ;;
16030
16031 darwin*)
16032 # if libdl is installed we need to link against it
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16034$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016035if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016036 $as_echo_n "(cached) " >&6
16037else
16038 ac_check_lib_save_LIBS=$LIBS
16039LIBS="-ldl $LIBS"
16040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041/* end confdefs.h. */
16042
16043/* Override any GCC internal prototype to avoid an error.
16044 Use char because int might match the return type of a GCC
16045 builtin and then its argument prototype would still apply. */
16046#ifdef __cplusplus
16047extern "C"
16048#endif
16049char dlopen ();
16050int
16051main ()
16052{
16053return dlopen ();
16054 ;
16055 return 0;
16056}
16057_ACEOF
16058if ac_fn_c_try_link "$LINENO"; then :
16059 ac_cv_lib_dl_dlopen=yes
16060else
16061 ac_cv_lib_dl_dlopen=no
16062fi
16063rm -f core conftest.err conftest.$ac_objext \
16064 conftest$ac_exeext conftest.$ac_ext
16065LIBS=$ac_check_lib_save_LIBS
16066fi
16067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16068$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016069if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016070 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16071else
16072
16073 lt_cv_dlopen="dyld"
16074 lt_cv_dlopen_libs=
16075 lt_cv_dlopen_self=yes
16076
16077fi
16078
16079 ;;
16080
16081 *)
16082 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016083if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016084 lt_cv_dlopen="shl_load"
16085else
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16087$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016088if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016089 $as_echo_n "(cached) " >&6
16090else
16091 ac_check_lib_save_LIBS=$LIBS
16092LIBS="-ldld $LIBS"
16093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16094/* end confdefs.h. */
16095
16096/* Override any GCC internal prototype to avoid an error.
16097 Use char because int might match the return type of a GCC
16098 builtin and then its argument prototype would still apply. */
16099#ifdef __cplusplus
16100extern "C"
16101#endif
16102char shl_load ();
16103int
16104main ()
16105{
16106return shl_load ();
16107 ;
16108 return 0;
16109}
16110_ACEOF
16111if ac_fn_c_try_link "$LINENO"; then :
16112 ac_cv_lib_dld_shl_load=yes
16113else
16114 ac_cv_lib_dld_shl_load=no
16115fi
16116rm -f core conftest.err conftest.$ac_objext \
16117 conftest$ac_exeext conftest.$ac_ext
16118LIBS=$ac_check_lib_save_LIBS
16119fi
16120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16121$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016122if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016123 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16124else
16125 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016126if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016127 lt_cv_dlopen="dlopen"
16128else
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16130$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016131if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016132 $as_echo_n "(cached) " >&6
16133else
16134 ac_check_lib_save_LIBS=$LIBS
16135LIBS="-ldl $LIBS"
16136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16137/* end confdefs.h. */
16138
16139/* Override any GCC internal prototype to avoid an error.
16140 Use char because int might match the return type of a GCC
16141 builtin and then its argument prototype would still apply. */
16142#ifdef __cplusplus
16143extern "C"
16144#endif
16145char dlopen ();
16146int
16147main ()
16148{
16149return dlopen ();
16150 ;
16151 return 0;
16152}
16153_ACEOF
16154if ac_fn_c_try_link "$LINENO"; then :
16155 ac_cv_lib_dl_dlopen=yes
16156else
16157 ac_cv_lib_dl_dlopen=no
16158fi
16159rm -f core conftest.err conftest.$ac_objext \
16160 conftest$ac_exeext conftest.$ac_ext
16161LIBS=$ac_check_lib_save_LIBS
16162fi
16163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16164$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016165if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016166 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16167else
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16169$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016170if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016171 $as_echo_n "(cached) " >&6
16172else
16173 ac_check_lib_save_LIBS=$LIBS
16174LIBS="-lsvld $LIBS"
16175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176/* end confdefs.h. */
16177
16178/* Override any GCC internal prototype to avoid an error.
16179 Use char because int might match the return type of a GCC
16180 builtin and then its argument prototype would still apply. */
16181#ifdef __cplusplus
16182extern "C"
16183#endif
16184char dlopen ();
16185int
16186main ()
16187{
16188return dlopen ();
16189 ;
16190 return 0;
16191}
16192_ACEOF
16193if ac_fn_c_try_link "$LINENO"; then :
16194 ac_cv_lib_svld_dlopen=yes
16195else
16196 ac_cv_lib_svld_dlopen=no
16197fi
16198rm -f core conftest.err conftest.$ac_objext \
16199 conftest$ac_exeext conftest.$ac_ext
16200LIBS=$ac_check_lib_save_LIBS
16201fi
16202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16203$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016204if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016205 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16206else
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16208$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016209if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016210 $as_echo_n "(cached) " >&6
16211else
16212 ac_check_lib_save_LIBS=$LIBS
16213LIBS="-ldld $LIBS"
16214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16215/* end confdefs.h. */
16216
16217/* Override any GCC internal prototype to avoid an error.
16218 Use char because int might match the return type of a GCC
16219 builtin and then its argument prototype would still apply. */
16220#ifdef __cplusplus
16221extern "C"
16222#endif
16223char dld_link ();
16224int
16225main ()
16226{
16227return dld_link ();
16228 ;
16229 return 0;
16230}
16231_ACEOF
16232if ac_fn_c_try_link "$LINENO"; then :
16233 ac_cv_lib_dld_dld_link=yes
16234else
16235 ac_cv_lib_dld_dld_link=no
16236fi
16237rm -f core conftest.err conftest.$ac_objext \
16238 conftest$ac_exeext conftest.$ac_ext
16239LIBS=$ac_check_lib_save_LIBS
16240fi
16241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16242$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016243if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016244 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16245fi
16246
16247
16248fi
16249
16250
16251fi
16252
16253
16254fi
16255
16256
16257fi
16258
16259
16260fi
16261
16262 ;;
16263 esac
16264
16265 if test "x$lt_cv_dlopen" != xno; then
16266 enable_dlopen=yes
16267 else
16268 enable_dlopen=no
16269 fi
16270
16271 case $lt_cv_dlopen in
16272 dlopen)
16273 save_CPPFLAGS="$CPPFLAGS"
16274 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16275
16276 save_LDFLAGS="$LDFLAGS"
16277 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16278
16279 save_LIBS="$LIBS"
16280 LIBS="$lt_cv_dlopen_libs $LIBS"
16281
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16283$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016284if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016285 $as_echo_n "(cached) " >&6
16286else
16287 if test "$cross_compiling" = yes; then :
16288 lt_cv_dlopen_self=cross
16289else
16290 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16291 lt_status=$lt_dlunknown
16292 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016293#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016294#include "confdefs.h"
16295
16296#if HAVE_DLFCN_H
16297#include <dlfcn.h>
16298#endif
16299
16300#include <stdio.h>
16301
16302#ifdef RTLD_GLOBAL
16303# define LT_DLGLOBAL RTLD_GLOBAL
16304#else
16305# ifdef DL_GLOBAL
16306# define LT_DLGLOBAL DL_GLOBAL
16307# else
16308# define LT_DLGLOBAL 0
16309# endif
16310#endif
16311
16312/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16313 find out it does not work in some platform. */
16314#ifndef LT_DLLAZY_OR_NOW
16315# ifdef RTLD_LAZY
16316# define LT_DLLAZY_OR_NOW RTLD_LAZY
16317# else
16318# ifdef DL_LAZY
16319# define LT_DLLAZY_OR_NOW DL_LAZY
16320# else
16321# ifdef RTLD_NOW
16322# define LT_DLLAZY_OR_NOW RTLD_NOW
16323# else
16324# ifdef DL_NOW
16325# define LT_DLLAZY_OR_NOW DL_NOW
16326# else
16327# define LT_DLLAZY_OR_NOW 0
16328# endif
16329# endif
16330# endif
16331# endif
16332#endif
16333
cristy0c60a692010-11-04 01:09:47 +000016334/* When -fvisbility=hidden is used, assume the code has been annotated
16335 correspondingly for the symbols needed. */
16336#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016337int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016338#endif
16339
cristyda16f162011-02-19 23:52:17 +000016340int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016341int main ()
16342{
16343 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16344 int status = $lt_dlunknown;
16345
16346 if (self)
16347 {
16348 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016349 else
16350 {
16351 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16352 else puts (dlerror ());
16353 }
cristy73bd4a52010-10-05 11:24:23 +000016354 /* dlclose (self); */
16355 }
16356 else
16357 puts (dlerror ());
16358
16359 return status;
16360}
16361_LT_EOF
16362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16363 (eval $ac_link) 2>&5
16364 ac_status=$?
16365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16366 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16367 (./conftest; exit; ) >&5 2>/dev/null
16368 lt_status=$?
16369 case x$lt_status in
16370 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16371 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16372 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16373 esac
16374 else :
16375 # compilation failed
16376 lt_cv_dlopen_self=no
16377 fi
16378fi
16379rm -fr conftest*
16380
16381
16382fi
16383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16384$as_echo "$lt_cv_dlopen_self" >&6; }
16385
16386 if test "x$lt_cv_dlopen_self" = xyes; then
16387 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16389$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016390if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016391 $as_echo_n "(cached) " >&6
16392else
16393 if test "$cross_compiling" = yes; then :
16394 lt_cv_dlopen_self_static=cross
16395else
16396 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16397 lt_status=$lt_dlunknown
16398 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016399#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016400#include "confdefs.h"
16401
16402#if HAVE_DLFCN_H
16403#include <dlfcn.h>
16404#endif
16405
16406#include <stdio.h>
16407
16408#ifdef RTLD_GLOBAL
16409# define LT_DLGLOBAL RTLD_GLOBAL
16410#else
16411# ifdef DL_GLOBAL
16412# define LT_DLGLOBAL DL_GLOBAL
16413# else
16414# define LT_DLGLOBAL 0
16415# endif
16416#endif
16417
16418/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16419 find out it does not work in some platform. */
16420#ifndef LT_DLLAZY_OR_NOW
16421# ifdef RTLD_LAZY
16422# define LT_DLLAZY_OR_NOW RTLD_LAZY
16423# else
16424# ifdef DL_LAZY
16425# define LT_DLLAZY_OR_NOW DL_LAZY
16426# else
16427# ifdef RTLD_NOW
16428# define LT_DLLAZY_OR_NOW RTLD_NOW
16429# else
16430# ifdef DL_NOW
16431# define LT_DLLAZY_OR_NOW DL_NOW
16432# else
16433# define LT_DLLAZY_OR_NOW 0
16434# endif
16435# endif
16436# endif
16437# endif
16438#endif
16439
cristy0c60a692010-11-04 01:09:47 +000016440/* When -fvisbility=hidden is used, assume the code has been annotated
16441 correspondingly for the symbols needed. */
16442#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016443int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016444#endif
16445
cristyda16f162011-02-19 23:52:17 +000016446int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016447int main ()
16448{
16449 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16450 int status = $lt_dlunknown;
16451
16452 if (self)
16453 {
16454 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016455 else
16456 {
16457 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16458 else puts (dlerror ());
16459 }
cristy73bd4a52010-10-05 11:24:23 +000016460 /* dlclose (self); */
16461 }
16462 else
16463 puts (dlerror ());
16464
16465 return status;
16466}
16467_LT_EOF
16468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16469 (eval $ac_link) 2>&5
16470 ac_status=$?
16471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16472 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16473 (./conftest; exit; ) >&5 2>/dev/null
16474 lt_status=$?
16475 case x$lt_status in
16476 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16477 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16478 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16479 esac
16480 else :
16481 # compilation failed
16482 lt_cv_dlopen_self_static=no
16483 fi
16484fi
16485rm -fr conftest*
16486
16487
16488fi
16489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16490$as_echo "$lt_cv_dlopen_self_static" >&6; }
16491 fi
16492
16493 CPPFLAGS="$save_CPPFLAGS"
16494 LDFLAGS="$save_LDFLAGS"
16495 LIBS="$save_LIBS"
16496 ;;
16497 esac
16498
16499 case $lt_cv_dlopen_self in
16500 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16501 *) enable_dlopen_self=unknown ;;
16502 esac
16503
16504 case $lt_cv_dlopen_self_static in
16505 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16506 *) enable_dlopen_self_static=unknown ;;
16507 esac
16508fi
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526striplib=
16527old_striplib=
16528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16529$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16530if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16531 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16532 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16534$as_echo "yes" >&6; }
16535else
16536# FIXME - insert some real tests, host_os isn't really good enough
16537 case $host_os in
16538 darwin*)
16539 if test -n "$STRIP" ; then
16540 striplib="$STRIP -x"
16541 old_striplib="$STRIP -S"
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16543$as_echo "yes" >&6; }
16544 else
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16546$as_echo "no" >&6; }
16547 fi
16548 ;;
16549 *)
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16551$as_echo "no" >&6; }
16552 ;;
16553 esac
16554fi
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567 # Report which library types will actually be built
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16569$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16571$as_echo "$can_build_shared" >&6; }
16572
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16574$as_echo_n "checking whether to build shared libraries... " >&6; }
16575 test "$can_build_shared" = "no" && enable_shared=no
16576
16577 # On AIX, shared libraries and static libraries use the same namespace, and
16578 # are all built from PIC.
16579 case $host_os in
16580 aix3*)
16581 test "$enable_shared" = yes && enable_static=no
16582 if test -n "$RANLIB"; then
16583 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16584 postinstall_cmds='$RANLIB $lib'
16585 fi
16586 ;;
16587
16588 aix[4-9]*)
16589 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16590 test "$enable_shared" = yes && enable_static=no
16591 fi
16592 ;;
16593 esac
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16595$as_echo "$enable_shared" >&6; }
16596
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16598$as_echo_n "checking whether to build static libraries... " >&6; }
16599 # Make sure either enable_shared or enable_static is yes.
16600 test "$enable_shared" = yes || enable_static=yes
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16602$as_echo "$enable_static" >&6; }
16603
16604
16605
16606
16607fi
16608ac_ext=c
16609ac_cpp='$CPP $CPPFLAGS'
16610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16612ac_compiler_gnu=$ac_cv_c_compiler_gnu
16613
16614CC="$lt_save_CC"
16615
cristy0c60a692010-11-04 01:09:47 +000016616 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16617 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16618 (test "X$CXX" != "Xg++"))) ; then
16619 ac_ext=cpp
16620ac_cpp='$CXXCPP $CPPFLAGS'
16621ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16622ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16623ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16625$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16626if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016627 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016628 $as_echo_n "(cached) " >&6
16629else
16630 # Double quotes because CXXCPP needs to be expanded
16631 for CXXCPP in "$CXX -E" "/lib/cpp"
16632 do
16633 ac_preproc_ok=false
16634for ac_cxx_preproc_warn_flag in '' yes
16635do
16636 # Use a header file that comes with gcc, so configuring glibc
16637 # with a fresh cross-compiler works.
16638 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16639 # <limits.h> exists even on freestanding compilers.
16640 # On the NeXT, cc -E runs the code through the compiler's parser,
16641 # not just through cpp. "Syntax error" is here to catch this case.
16642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16643/* end confdefs.h. */
16644#ifdef __STDC__
16645# include <limits.h>
16646#else
16647# include <assert.h>
16648#endif
16649 Syntax error
16650_ACEOF
16651if ac_fn_cxx_try_cpp "$LINENO"; then :
16652
16653else
16654 # Broken: fails on valid input.
16655continue
16656fi
cristyda16f162011-02-19 23:52:17 +000016657rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016658
16659 # OK, works on sane cases. Now check whether nonexistent headers
16660 # can be detected and how.
16661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16662/* end confdefs.h. */
16663#include <ac_nonexistent.h>
16664_ACEOF
16665if ac_fn_cxx_try_cpp "$LINENO"; then :
16666 # Broken: success on invalid input.
16667continue
16668else
16669 # Passes both tests.
16670ac_preproc_ok=:
16671break
16672fi
cristyda16f162011-02-19 23:52:17 +000016673rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016674
16675done
16676# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016677rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016678if $ac_preproc_ok; then :
16679 break
16680fi
16681
16682 done
16683 ac_cv_prog_CXXCPP=$CXXCPP
16684
16685fi
16686 CXXCPP=$ac_cv_prog_CXXCPP
16687else
16688 ac_cv_prog_CXXCPP=$CXXCPP
16689fi
16690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16691$as_echo "$CXXCPP" >&6; }
16692ac_preproc_ok=false
16693for ac_cxx_preproc_warn_flag in '' yes
16694do
16695 # Use a header file that comes with gcc, so configuring glibc
16696 # with a fresh cross-compiler works.
16697 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16698 # <limits.h> exists even on freestanding compilers.
16699 # On the NeXT, cc -E runs the code through the compiler's parser,
16700 # not just through cpp. "Syntax error" is here to catch this case.
16701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16702/* end confdefs.h. */
16703#ifdef __STDC__
16704# include <limits.h>
16705#else
16706# include <assert.h>
16707#endif
16708 Syntax error
16709_ACEOF
16710if ac_fn_cxx_try_cpp "$LINENO"; then :
16711
16712else
16713 # Broken: fails on valid input.
16714continue
16715fi
cristyda16f162011-02-19 23:52:17 +000016716rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016717
16718 # OK, works on sane cases. Now check whether nonexistent headers
16719 # can be detected and how.
16720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721/* end confdefs.h. */
16722#include <ac_nonexistent.h>
16723_ACEOF
16724if ac_fn_cxx_try_cpp "$LINENO"; then :
16725 # Broken: success on invalid input.
16726continue
16727else
16728 # Passes both tests.
16729ac_preproc_ok=:
16730break
16731fi
cristyda16f162011-02-19 23:52:17 +000016732rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016733
16734done
16735# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016736rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016737if $ac_preproc_ok; then :
16738
16739else
16740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16742as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16743See \`config.log' for more details" "$LINENO" 5; }
16744fi
16745
16746ac_ext=c
16747ac_cpp='$CPP $CPPFLAGS'
16748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16750ac_compiler_gnu=$ac_cv_c_compiler_gnu
16751
16752else
16753 _lt_caught_CXX_error=yes
16754fi
cristy73bd4a52010-10-05 11:24:23 +000016755
16756ac_ext=cpp
16757ac_cpp='$CXXCPP $CPPFLAGS'
16758ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16759ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16760ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16761
16762archive_cmds_need_lc_CXX=no
16763allow_undefined_flag_CXX=
16764always_export_symbols_CXX=no
16765archive_expsym_cmds_CXX=
16766compiler_needs_object_CXX=no
16767export_dynamic_flag_spec_CXX=
16768hardcode_direct_CXX=no
16769hardcode_direct_absolute_CXX=no
16770hardcode_libdir_flag_spec_CXX=
16771hardcode_libdir_flag_spec_ld_CXX=
16772hardcode_libdir_separator_CXX=
16773hardcode_minus_L_CXX=no
16774hardcode_shlibpath_var_CXX=unsupported
16775hardcode_automatic_CXX=no
16776inherit_rpath_CXX=no
16777module_cmds_CXX=
16778module_expsym_cmds_CXX=
16779link_all_deplibs_CXX=unknown
16780old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016781reload_flag_CXX=$reload_flag
16782reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016783no_undefined_flag_CXX=
16784whole_archive_flag_spec_CXX=
16785enable_shared_with_static_runtimes_CXX=no
16786
16787# Source file extension for C++ test sources.
16788ac_ext=cpp
16789
16790# Object file extension for compiled C++ test sources.
16791objext=o
16792objext_CXX=$objext
16793
16794# No sense in running all these tests if we already determined that
16795# the CXX compiler isn't working. Some variables (like enable_shared)
16796# are currently assumed to apply to all compilers on this platform,
16797# and will be corrupted by setting them based on a non-working compiler.
16798if test "$_lt_caught_CXX_error" != yes; then
16799 # Code to be used in simple compile tests
16800 lt_simple_compile_test_code="int some_variable = 0;"
16801
16802 # Code to be used in simple link tests
16803 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16804
16805 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16806
16807
16808
16809
16810
16811
16812# If no C compiler was specified, use CC.
16813LTCC=${LTCC-"$CC"}
16814
16815# If no C compiler flags were specified, use CFLAGS.
16816LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16817
16818# Allow CC to be a program name with arguments.
16819compiler=$CC
16820
16821
16822 # save warnings/boilerplate of simple test code
16823 ac_outfile=conftest.$ac_objext
16824echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16825eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16826_lt_compiler_boilerplate=`cat conftest.err`
16827$RM conftest*
16828
16829 ac_outfile=conftest.$ac_objext
16830echo "$lt_simple_link_test_code" >conftest.$ac_ext
16831eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16832_lt_linker_boilerplate=`cat conftest.err`
16833$RM -r conftest*
16834
16835
16836 # Allow CC to be a program name with arguments.
16837 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000016838 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016839 lt_save_LD=$LD
16840 lt_save_GCC=$GCC
16841 GCC=$GXX
16842 lt_save_with_gnu_ld=$with_gnu_ld
16843 lt_save_path_LD=$lt_cv_path_LD
16844 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16845 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16846 else
16847 $as_unset lt_cv_prog_gnu_ld
16848 fi
16849 if test -n "${lt_cv_path_LDCXX+set}"; then
16850 lt_cv_path_LD=$lt_cv_path_LDCXX
16851 else
16852 $as_unset lt_cv_path_LD
16853 fi
16854 test -z "${LDCXX+set}" || LD=$LDCXX
16855 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000016856 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016857 compiler=$CC
16858 compiler_CXX=$CC
16859 for cc_temp in $compiler""; do
16860 case $cc_temp in
16861 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16862 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16863 \-*) ;;
16864 *) break;;
16865 esac
16866done
cristy0c60a692010-11-04 01:09:47 +000016867cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000016868
16869
16870 if test -n "$compiler"; then
16871 # We don't want -fno-exception when compiling C++ code, so set the
16872 # no_builtin_flag separately
16873 if test "$GXX" = yes; then
16874 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16875 else
16876 lt_prog_compiler_no_builtin_flag_CXX=
16877 fi
16878
16879 if test "$GXX" = yes; then
16880 # Set up default GNU C++ configuration
16881
16882
16883
16884# Check whether --with-gnu-ld was given.
16885if test "${with_gnu_ld+set}" = set; then :
16886 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16887else
16888 with_gnu_ld=no
16889fi
16890
16891ac_prog=ld
16892if test "$GCC" = yes; then
16893 # Check if gcc -print-prog-name=ld gives a path.
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16895$as_echo_n "checking for ld used by $CC... " >&6; }
16896 case $host in
16897 *-*-mingw*)
16898 # gcc leaves a trailing carriage return which upsets mingw
16899 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16900 *)
16901 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16902 esac
16903 case $ac_prog in
16904 # Accept absolute paths.
16905 [\\/]* | ?:[\\/]*)
16906 re_direlt='/[^/][^/]*/\.\./'
16907 # Canonicalize the pathname of ld
16908 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16909 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16910 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16911 done
16912 test -z "$LD" && LD="$ac_prog"
16913 ;;
16914 "")
16915 # If it fails, then pretend we aren't using GCC.
16916 ac_prog=ld
16917 ;;
16918 *)
16919 # If it is relative, then search for the first ld in PATH.
16920 with_gnu_ld=unknown
16921 ;;
16922 esac
16923elif test "$with_gnu_ld" = yes; then
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16925$as_echo_n "checking for GNU ld... " >&6; }
16926else
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16928$as_echo_n "checking for non-GNU ld... " >&6; }
16929fi
cristyda16f162011-02-19 23:52:17 +000016930if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016931 $as_echo_n "(cached) " >&6
16932else
16933 if test -z "$LD"; then
16934 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16935 for ac_dir in $PATH; do
16936 IFS="$lt_save_ifs"
16937 test -z "$ac_dir" && ac_dir=.
16938 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16939 lt_cv_path_LD="$ac_dir/$ac_prog"
16940 # Check to see if the program is GNU ld. I'd rather use --version,
16941 # but apparently some variants of GNU ld only accept -v.
16942 # Break only if it was the GNU/non-GNU ld that we prefer.
16943 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16944 *GNU* | *'with BFD'*)
16945 test "$with_gnu_ld" != no && break
16946 ;;
16947 *)
16948 test "$with_gnu_ld" != yes && break
16949 ;;
16950 esac
16951 fi
16952 done
16953 IFS="$lt_save_ifs"
16954else
16955 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16956fi
16957fi
16958
16959LD="$lt_cv_path_LD"
16960if test -n "$LD"; then
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16962$as_echo "$LD" >&6; }
16963else
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16965$as_echo "no" >&6; }
16966fi
cristy98dddb52010-11-04 00:30:15 +000016967test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000016968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16969$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016970if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016971 $as_echo_n "(cached) " >&6
16972else
16973 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16974case `$LD -v 2>&1 </dev/null` in
16975*GNU* | *'with BFD'*)
16976 lt_cv_prog_gnu_ld=yes
16977 ;;
16978*)
16979 lt_cv_prog_gnu_ld=no
16980 ;;
16981esac
16982fi
16983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16984$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16985with_gnu_ld=$lt_cv_prog_gnu_ld
16986
16987
16988
16989
16990
16991
16992
16993 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16994 # archiving commands below assume that GNU ld is being used.
16995 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000016996 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16997 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 +000016998
16999 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17000 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17001
17002 # If archive_cmds runs LD, not CC, wlarc should be empty
17003 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17004 # investigate it a little bit more. (MM)
17005 wlarc='${wl}'
17006
17007 # ancient GNU ld didn't support --whole-archive et. al.
17008 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17009 $GREP 'no-whole-archive' > /dev/null; then
17010 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17011 else
17012 whole_archive_flag_spec_CXX=
17013 fi
17014 else
17015 with_gnu_ld=no
17016 wlarc=
17017
17018 # A generic and very simple default shared library creation
17019 # command for GNU C++ for the case where it uses the native
17020 # linker, instead of GNU ld. If possible, this setting should
17021 # overridden to take advantage of the native linker features on
17022 # the platform it is being used on.
17023 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17024 fi
17025
17026 # Commands to make compiler produce verbose output that lists
17027 # what "hidden" libraries, object files and flags are used when
17028 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017029 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017030
17031 else
17032 GXX=no
17033 with_gnu_ld=no
17034 wlarc=
17035 fi
17036
17037 # PORTME: fill in a description of your system's C++ link characteristics
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17039$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17040 ld_shlibs_CXX=yes
17041 case $host_os in
17042 aix3*)
17043 # FIXME: insert proper C++ library support
17044 ld_shlibs_CXX=no
17045 ;;
17046 aix[4-9]*)
17047 if test "$host_cpu" = ia64; then
17048 # On IA64, the linker does run time linking by default, so we don't
17049 # have to do anything special.
17050 aix_use_runtimelinking=no
17051 exp_sym_flag='-Bexport'
17052 no_entry_flag=""
17053 else
17054 aix_use_runtimelinking=no
17055
17056 # Test if we are trying to use run time linking or normal
17057 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17058 # need to do runtime linking.
17059 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17060 for ld_flag in $LDFLAGS; do
17061 case $ld_flag in
17062 *-brtl*)
17063 aix_use_runtimelinking=yes
17064 break
17065 ;;
17066 esac
17067 done
17068 ;;
17069 esac
17070
17071 exp_sym_flag='-bexport'
17072 no_entry_flag='-bnoentry'
17073 fi
17074
17075 # When large executables or shared objects are built, AIX ld can
17076 # have problems creating the table of contents. If linking a library
17077 # or program results in "error TOC overflow" add -mminimal-toc to
17078 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17079 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17080
17081 archive_cmds_CXX=''
17082 hardcode_direct_CXX=yes
17083 hardcode_direct_absolute_CXX=yes
17084 hardcode_libdir_separator_CXX=':'
17085 link_all_deplibs_CXX=yes
17086 file_list_spec_CXX='${wl}-f,'
17087
17088 if test "$GXX" = yes; then
17089 case $host_os in aix4.[012]|aix4.[012].*)
17090 # We only want to do this on AIX 4.2 and lower, the check
17091 # below for broken collect2 doesn't work under 4.3+
17092 collect2name=`${CC} -print-prog-name=collect2`
17093 if test -f "$collect2name" &&
17094 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17095 then
17096 # We have reworked collect2
17097 :
17098 else
17099 # We have old collect2
17100 hardcode_direct_CXX=unsupported
17101 # It fails to find uninstalled libraries when the uninstalled
17102 # path is not listed in the libpath. Setting hardcode_minus_L
17103 # to unsupported forces relinking
17104 hardcode_minus_L_CXX=yes
17105 hardcode_libdir_flag_spec_CXX='-L$libdir'
17106 hardcode_libdir_separator_CXX=
17107 fi
17108 esac
17109 shared_flag='-shared'
17110 if test "$aix_use_runtimelinking" = yes; then
17111 shared_flag="$shared_flag "'${wl}-G'
17112 fi
17113 else
17114 # not using gcc
17115 if test "$host_cpu" = ia64; then
17116 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17117 # chokes on -Wl,-G. The following line is correct:
17118 shared_flag='-G'
17119 else
17120 if test "$aix_use_runtimelinking" = yes; then
17121 shared_flag='${wl}-G'
17122 else
17123 shared_flag='${wl}-bM:SRE'
17124 fi
17125 fi
17126 fi
17127
17128 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17129 # It seems that -bexpall does not export symbols beginning with
17130 # underscore (_), so it is better to generate a list of symbols to
17131 # export.
17132 always_export_symbols_CXX=yes
17133 if test "$aix_use_runtimelinking" = yes; then
17134 # Warning - without using the other runtime loading flags (-brtl),
17135 # -berok will link without error, but may produce a broken library.
17136 allow_undefined_flag_CXX='-berok'
17137 # Determine the default libpath from the value encoded in an empty
17138 # executable.
cristyda16f162011-02-19 23:52:17 +000017139 if test "${lt_cv_aix_libpath+set}" = set; then
17140 aix_libpath=$lt_cv_aix_libpath
17141else
17142 if ${lt_cv_aix_libpath__CXX+:} false; then :
17143 $as_echo_n "(cached) " >&6
17144else
17145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017146/* end confdefs.h. */
17147
17148int
17149main ()
17150{
17151
17152 ;
17153 return 0;
17154}
17155_ACEOF
17156if ac_fn_cxx_try_link "$LINENO"; then :
17157
cristyda16f162011-02-19 23:52:17 +000017158 lt_aix_libpath_sed='
17159 /Import File Strings/,/^$/ {
17160 /^0/ {
17161 s/^0 *\([^ ]*\) *$/\1/
17162 p
17163 }
17164 }'
17165 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17166 # Check for a 64-bit object if we didn't find anything.
17167 if test -z "$lt_cv_aix_libpath__CXX"; then
17168 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17169 fi
cristy73bd4a52010-10-05 11:24:23 +000017170fi
17171rm -f core conftest.err conftest.$ac_objext \
17172 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017173 if test -z "$lt_cv_aix_libpath__CXX"; then
17174 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17175 fi
17176
17177fi
17178
17179 aix_libpath=$lt_cv_aix_libpath__CXX
17180fi
cristy73bd4a52010-10-05 11:24:23 +000017181
17182 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17183
cristy0c60a692010-11-04 01:09:47 +000017184 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 +000017185 else
17186 if test "$host_cpu" = ia64; then
17187 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17188 allow_undefined_flag_CXX="-z nodefs"
17189 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"
17190 else
17191 # Determine the default libpath from the value encoded in an
17192 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017193 if test "${lt_cv_aix_libpath+set}" = set; then
17194 aix_libpath=$lt_cv_aix_libpath
17195else
17196 if ${lt_cv_aix_libpath__CXX+:} false; then :
17197 $as_echo_n "(cached) " >&6
17198else
17199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017200/* end confdefs.h. */
17201
17202int
17203main ()
17204{
17205
17206 ;
17207 return 0;
17208}
17209_ACEOF
17210if ac_fn_cxx_try_link "$LINENO"; then :
17211
cristyda16f162011-02-19 23:52:17 +000017212 lt_aix_libpath_sed='
17213 /Import File Strings/,/^$/ {
17214 /^0/ {
17215 s/^0 *\([^ ]*\) *$/\1/
17216 p
17217 }
17218 }'
17219 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17220 # Check for a 64-bit object if we didn't find anything.
17221 if test -z "$lt_cv_aix_libpath__CXX"; then
17222 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17223 fi
cristy73bd4a52010-10-05 11:24:23 +000017224fi
17225rm -f core conftest.err conftest.$ac_objext \
17226 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017227 if test -z "$lt_cv_aix_libpath__CXX"; then
17228 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17229 fi
17230
17231fi
17232
17233 aix_libpath=$lt_cv_aix_libpath__CXX
17234fi
cristy73bd4a52010-10-05 11:24:23 +000017235
17236 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17237 # Warning - without using the other run time loading flags,
17238 # -berok will link without error, but may produce a broken library.
17239 no_undefined_flag_CXX=' ${wl}-bernotok'
17240 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017241 if test "$with_gnu_ld" = yes; then
17242 # We only use this code for GNU lds that support --whole-archive.
17243 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17244 else
17245 # Exported symbols can be pulled into shared objects from archives
17246 whole_archive_flag_spec_CXX='$convenience'
17247 fi
cristy73bd4a52010-10-05 11:24:23 +000017248 archive_cmds_need_lc_CXX=yes
17249 # This is similar to how AIX traditionally builds its shared
17250 # libraries.
17251 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'
17252 fi
17253 fi
17254 ;;
17255
17256 beos*)
17257 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17258 allow_undefined_flag_CXX=unsupported
17259 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17260 # support --undefined. This deserves some investigation. FIXME
17261 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17262 else
17263 ld_shlibs_CXX=no
17264 fi
17265 ;;
17266
17267 chorus*)
17268 case $cc_basename in
17269 *)
17270 # FIXME: insert proper C++ library support
17271 ld_shlibs_CXX=no
17272 ;;
17273 esac
17274 ;;
17275
17276 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017277 case $GXX,$cc_basename in
17278 ,cl* | no,cl*)
17279 # Native MSVC
17280 # hardcode_libdir_flag_spec is actually meaningless, as there is
17281 # no search path for DLLs.
17282 hardcode_libdir_flag_spec_CXX=' '
17283 allow_undefined_flag_CXX=unsupported
17284 always_export_symbols_CXX=yes
17285 file_list_spec_CXX='@'
17286 # Tell ltmain to make .lib files, not .a files.
17287 libext=lib
17288 # Tell ltmain to make .dll files, not .so files.
17289 shrext_cmds=".dll"
17290 # FIXME: Setting linknames here is a bad hack.
17291 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17292 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17293 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17294 else
17295 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17296 fi~
17297 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17298 linknames='
17299 # The linker will not automatically build a static lib if we build a DLL.
17300 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17301 enable_shared_with_static_runtimes_CXX=yes
17302 # Don't use ranlib
17303 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17304 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17305 lt_tool_outputfile="@TOOL_OUTPUT@"~
17306 case $lt_outputfile in
17307 *.exe|*.EXE) ;;
17308 *)
17309 lt_outputfile="$lt_outputfile.exe"
17310 lt_tool_outputfile="$lt_tool_outputfile.exe"
17311 ;;
17312 esac~
17313 func_to_tool_file "$lt_outputfile"~
17314 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17315 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17316 $RM "$lt_outputfile.manifest";
17317 fi'
17318 ;;
17319 *)
17320 # g++
17321 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17322 # as there is no search path for DLLs.
17323 hardcode_libdir_flag_spec_CXX='-L$libdir'
17324 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17325 allow_undefined_flag_CXX=unsupported
17326 always_export_symbols_CXX=no
17327 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017328
cristyda16f162011-02-19 23:52:17 +000017329 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17330 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'
17331 # If the export-symbols file already is a .def file (1st line
17332 # is EXPORTS), use it as is; otherwise, prepend...
17333 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17334 cp $export_symbols $output_objdir/$soname.def;
17335 else
17336 echo EXPORTS > $output_objdir/$soname.def;
17337 cat $export_symbols >> $output_objdir/$soname.def;
17338 fi~
17339 $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'
17340 else
17341 ld_shlibs_CXX=no
17342 fi
17343 ;;
17344 esac
17345 ;;
cristy73bd4a52010-10-05 11:24:23 +000017346 darwin* | rhapsody*)
17347
17348
17349 archive_cmds_need_lc_CXX=no
17350 hardcode_direct_CXX=no
17351 hardcode_automatic_CXX=yes
17352 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017353 if test "$lt_cv_ld_force_load" = "yes"; then
17354 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\"`'
17355 else
17356 whole_archive_flag_spec_CXX=''
17357 fi
cristy73bd4a52010-10-05 11:24:23 +000017358 link_all_deplibs_CXX=yes
17359 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17360 case $cc_basename in
17361 ifort*) _lt_dar_can_shared=yes ;;
17362 *) _lt_dar_can_shared=$GCC ;;
17363 esac
17364 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017365 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017366 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}"
17367 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17368 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}"
17369 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}"
17370 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17371 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}"
17372 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}"
17373 fi
17374
17375 else
17376 ld_shlibs_CXX=no
17377 fi
17378
17379 ;;
17380
17381 dgux*)
17382 case $cc_basename in
17383 ec++*)
17384 # FIXME: insert proper C++ library support
17385 ld_shlibs_CXX=no
17386 ;;
17387 ghcx*)
17388 # Green Hills C++ Compiler
17389 # FIXME: insert proper C++ library support
17390 ld_shlibs_CXX=no
17391 ;;
17392 *)
17393 # FIXME: insert proper C++ library support
17394 ld_shlibs_CXX=no
17395 ;;
17396 esac
17397 ;;
17398
17399 freebsd[12]*)
17400 # C++ shared libraries reported to be fairly broken before
17401 # switch to ELF
17402 ld_shlibs_CXX=no
17403 ;;
17404
17405 freebsd-elf*)
17406 archive_cmds_need_lc_CXX=no
17407 ;;
17408
17409 freebsd* | dragonfly*)
17410 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17411 # conventions
17412 ld_shlibs_CXX=yes
17413 ;;
17414
17415 gnu*)
17416 ;;
17417
cristy0c60a692010-11-04 01:09:47 +000017418 haiku*)
17419 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17420 link_all_deplibs_CXX=yes
17421 ;;
17422
cristy73bd4a52010-10-05 11:24:23 +000017423 hpux9*)
17424 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17425 hardcode_libdir_separator_CXX=:
17426 export_dynamic_flag_spec_CXX='${wl}-E'
17427 hardcode_direct_CXX=yes
17428 hardcode_minus_L_CXX=yes # Not in the search PATH,
17429 # but as the default
17430 # location of the library.
17431
17432 case $cc_basename in
17433 CC*)
17434 # FIXME: insert proper C++ library support
17435 ld_shlibs_CXX=no
17436 ;;
17437 aCC*)
17438 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'
17439 # Commands to make compiler produce verbose output that lists
17440 # what "hidden" libraries, object files and flags are used when
17441 # linking a shared library.
17442 #
17443 # There doesn't appear to be a way to prevent this compiler from
17444 # explicitly linking system object files so we need to strip them
17445 # from the output so that they don't get included in the library
17446 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017447 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 +000017448 ;;
17449 *)
17450 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017451 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 +000017452 else
17453 # FIXME: insert proper C++ library support
17454 ld_shlibs_CXX=no
17455 fi
17456 ;;
17457 esac
17458 ;;
17459
17460 hpux10*|hpux11*)
17461 if test $with_gnu_ld = no; then
17462 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17463 hardcode_libdir_separator_CXX=:
17464
17465 case $host_cpu in
17466 hppa*64*|ia64*)
17467 ;;
17468 *)
17469 export_dynamic_flag_spec_CXX='${wl}-E'
17470 ;;
17471 esac
17472 fi
17473 case $host_cpu in
17474 hppa*64*|ia64*)
17475 hardcode_direct_CXX=no
17476 hardcode_shlibpath_var_CXX=no
17477 ;;
17478 *)
17479 hardcode_direct_CXX=yes
17480 hardcode_direct_absolute_CXX=yes
17481 hardcode_minus_L_CXX=yes # Not in the search PATH,
17482 # but as the default
17483 # location of the library.
17484 ;;
17485 esac
17486
17487 case $cc_basename in
17488 CC*)
17489 # FIXME: insert proper C++ library support
17490 ld_shlibs_CXX=no
17491 ;;
17492 aCC*)
17493 case $host_cpu in
17494 hppa*64*)
17495 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17496 ;;
17497 ia64*)
17498 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17499 ;;
17500 *)
17501 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17502 ;;
17503 esac
17504 # Commands to make compiler produce verbose output that lists
17505 # what "hidden" libraries, object files and flags are used when
17506 # linking a shared library.
17507 #
17508 # There doesn't appear to be a way to prevent this compiler from
17509 # explicitly linking system object files so we need to strip them
17510 # from the output so that they don't get included in the library
17511 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017512 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 +000017513 ;;
17514 *)
17515 if test "$GXX" = yes; then
17516 if test $with_gnu_ld = no; then
17517 case $host_cpu in
17518 hppa*64*)
17519 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17520 ;;
17521 ia64*)
cristyda16f162011-02-19 23:52:17 +000017522 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 +000017523 ;;
17524 *)
cristyda16f162011-02-19 23:52:17 +000017525 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 +000017526 ;;
17527 esac
17528 fi
17529 else
17530 # FIXME: insert proper C++ library support
17531 ld_shlibs_CXX=no
17532 fi
17533 ;;
17534 esac
17535 ;;
17536
17537 interix[3-9]*)
17538 hardcode_direct_CXX=no
17539 hardcode_shlibpath_var_CXX=no
17540 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17541 export_dynamic_flag_spec_CXX='${wl}-E'
17542 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17543 # Instead, shared libraries are loaded at an image base (0x10000000 by
17544 # default) and relocated if they conflict, which is a slow very memory
17545 # consuming and fragmenting process. To avoid this, we pick a random,
17546 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17547 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17548 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'
17549 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'
17550 ;;
17551 irix5* | irix6*)
17552 case $cc_basename in
17553 CC*)
17554 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017555 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 +000017556
17557 # Archives containing C++ object files must be created using
17558 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17559 # necessary to make sure instantiated templates are included
17560 # in the archive.
17561 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17562 ;;
17563 *)
17564 if test "$GXX" = yes; then
17565 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017566 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 +000017567 else
cristyda16f162011-02-19 23:52:17 +000017568 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 +000017569 fi
17570 fi
17571 link_all_deplibs_CXX=yes
17572 ;;
17573 esac
17574 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17575 hardcode_libdir_separator_CXX=:
17576 inherit_rpath_CXX=yes
17577 ;;
17578
cristy0c60a692010-11-04 01:09:47 +000017579 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017580 case $cc_basename in
17581 KCC*)
17582 # Kuck and Associates, Inc. (KAI) C++ Compiler
17583
17584 # KCC will only create a shared library if the output file
17585 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17586 # to its proper name (with version) after linking.
17587 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'
17588 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'
17589 # Commands to make compiler produce verbose output that lists
17590 # what "hidden" libraries, object files and flags are used when
17591 # linking a shared library.
17592 #
17593 # There doesn't appear to be a way to prevent this compiler from
17594 # explicitly linking system object files so we need to strip them
17595 # from the output so that they don't get included in the library
17596 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017597 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 +000017598
17599 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17600 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17601
17602 # Archives containing C++ object files must be created using
17603 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17604 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17605 ;;
17606 icpc* | ecpc* )
17607 # Intel C++
17608 with_gnu_ld=yes
17609 # version 8.0 and above of icpc choke on multiply defined symbols
17610 # if we add $predep_objects and $postdep_objects, however 7.1 and
17611 # earlier do not add the objects themselves.
17612 case `$CC -V 2>&1` in
17613 *"Version 7."*)
17614 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17615 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'
17616 ;;
17617 *) # Version 8.0 or newer
17618 tmp_idyn=
17619 case $host_cpu in
17620 ia64*) tmp_idyn=' -i_dynamic';;
17621 esac
17622 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17623 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'
17624 ;;
17625 esac
17626 archive_cmds_need_lc_CXX=no
17627 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17628 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17629 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17630 ;;
17631 pgCC* | pgcpp*)
17632 # Portland Group C++ compiler
17633 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017634 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017635 prelink_cmds_CXX='tpldir=Template.dir~
17636 rm -rf $tpldir~
17637 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017638 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017639 old_archive_cmds_CXX='tpldir=Template.dir~
17640 rm -rf $tpldir~
17641 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017642 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017643 $RANLIB $oldlib'
17644 archive_cmds_CXX='tpldir=Template.dir~
17645 rm -rf $tpldir~
17646 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017647 $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 +000017648 archive_expsym_cmds_CXX='tpldir=Template.dir~
17649 rm -rf $tpldir~
17650 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017651 $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 +000017652 ;;
cristy0c60a692010-11-04 01:09:47 +000017653 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017654 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17655 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'
17656 ;;
17657 esac
17658
17659 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17660 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017661 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 +000017662 ;;
17663 cxx*)
17664 # Compaq C++
17665 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17666 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'
17667
17668 runpath_var=LD_RUN_PATH
17669 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17670 hardcode_libdir_separator_CXX=:
17671
17672 # Commands to make compiler produce verbose output that lists
17673 # what "hidden" libraries, object files and flags are used when
17674 # linking a shared library.
17675 #
17676 # There doesn't appear to be a way to prevent this compiler from
17677 # explicitly linking system object files so we need to strip them
17678 # from the output so that they don't get included in the library
17679 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017680 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 +000017681 ;;
cristy0c60a692010-11-04 01:09:47 +000017682 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017683 # IBM XL 8.0 on PPC, with GNU ld
17684 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17685 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17686 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17687 if test "x$supports_anon_versioning" = xyes; then
17688 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17689 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17690 echo "local: *; };" >> $output_objdir/$libname.ver~
17691 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17692 fi
17693 ;;
17694 *)
17695 case `$CC -V 2>&1 | sed 5q` in
17696 *Sun\ C*)
17697 # Sun C++ 5.9
17698 no_undefined_flag_CXX=' -zdefs'
17699 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17700 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'
17701 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017702 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 +000017703 compiler_needs_object_CXX=yes
17704
17705 # Not sure whether something based on
17706 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17707 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017708 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017709
17710 # Archives containing C++ object files must be created using
17711 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17712 # necessary to make sure instantiated templates are included
17713 # in the archive.
17714 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17715 ;;
17716 esac
17717 ;;
17718 esac
17719 ;;
17720
17721 lynxos*)
17722 # FIXME: insert proper C++ library support
17723 ld_shlibs_CXX=no
17724 ;;
17725
17726 m88k*)
17727 # FIXME: insert proper C++ library support
17728 ld_shlibs_CXX=no
17729 ;;
17730
17731 mvs*)
17732 case $cc_basename in
17733 cxx*)
17734 # FIXME: insert proper C++ library support
17735 ld_shlibs_CXX=no
17736 ;;
17737 *)
17738 # FIXME: insert proper C++ library support
17739 ld_shlibs_CXX=no
17740 ;;
17741 esac
17742 ;;
17743
17744 netbsd*)
17745 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17746 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17747 wlarc=
17748 hardcode_libdir_flag_spec_CXX='-R$libdir'
17749 hardcode_direct_CXX=yes
17750 hardcode_shlibpath_var_CXX=no
17751 fi
17752 # Workaround some broken pre-1.5 toolchains
17753 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17754 ;;
17755
17756 *nto* | *qnx*)
17757 ld_shlibs_CXX=yes
17758 ;;
17759
17760 openbsd2*)
17761 # C++ shared libraries are fairly broken
17762 ld_shlibs_CXX=no
17763 ;;
17764
17765 openbsd*)
17766 if test -f /usr/libexec/ld.so; then
17767 hardcode_direct_CXX=yes
17768 hardcode_shlibpath_var_CXX=no
17769 hardcode_direct_absolute_CXX=yes
17770 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17771 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17772 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17773 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17774 export_dynamic_flag_spec_CXX='${wl}-E'
17775 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17776 fi
cristy0c60a692010-11-04 01:09:47 +000017777 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017778 else
17779 ld_shlibs_CXX=no
17780 fi
17781 ;;
17782
17783 osf3* | osf4* | osf5*)
17784 case $cc_basename in
17785 KCC*)
17786 # Kuck and Associates, Inc. (KAI) C++ Compiler
17787
17788 # KCC will only create a shared library if the output file
17789 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17790 # to its proper name (with version) after linking.
17791 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'
17792
17793 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17794 hardcode_libdir_separator_CXX=:
17795
17796 # Archives containing C++ object files must be created using
17797 # the KAI C++ compiler.
17798 case $host in
17799 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17800 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17801 esac
17802 ;;
17803 RCC*)
17804 # Rational C++ 2.4.1
17805 # FIXME: insert proper C++ library support
17806 ld_shlibs_CXX=no
17807 ;;
17808 cxx*)
17809 case $host in
17810 osf3*)
17811 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000017812 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 +000017813 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17814 ;;
17815 *)
17816 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000017817 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 +000017818 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17819 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000017820 $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 +000017821 $RM $lib.exp'
17822 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17823 ;;
17824 esac
17825
17826 hardcode_libdir_separator_CXX=:
17827
17828 # Commands to make compiler produce verbose output that lists
17829 # what "hidden" libraries, object files and flags are used when
17830 # linking a shared library.
17831 #
17832 # There doesn't appear to be a way to prevent this compiler from
17833 # explicitly linking system object files so we need to strip them
17834 # from the output so that they don't get included in the library
17835 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017836 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 +000017837 ;;
17838 *)
17839 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17840 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17841 case $host in
17842 osf3*)
cristy0c60a692010-11-04 01:09:47 +000017843 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 +000017844 ;;
17845 *)
cristyda16f162011-02-19 23:52:17 +000017846 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 +000017847 ;;
17848 esac
17849
17850 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17851 hardcode_libdir_separator_CXX=:
17852
17853 # Commands to make compiler produce verbose output that lists
17854 # what "hidden" libraries, object files and flags are used when
17855 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017856 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017857
17858 else
17859 # FIXME: insert proper C++ library support
17860 ld_shlibs_CXX=no
17861 fi
17862 ;;
17863 esac
17864 ;;
17865
17866 psos*)
17867 # FIXME: insert proper C++ library support
17868 ld_shlibs_CXX=no
17869 ;;
17870
17871 sunos4*)
17872 case $cc_basename in
17873 CC*)
17874 # Sun C++ 4.x
17875 # FIXME: insert proper C++ library support
17876 ld_shlibs_CXX=no
17877 ;;
17878 lcc*)
17879 # Lucid
17880 # FIXME: insert proper C++ library support
17881 ld_shlibs_CXX=no
17882 ;;
17883 *)
17884 # FIXME: insert proper C++ library support
17885 ld_shlibs_CXX=no
17886 ;;
17887 esac
17888 ;;
17889
17890 solaris*)
17891 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017892 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017893 # Sun C++ 4.2, 5.x and Centerline C++
17894 archive_cmds_need_lc_CXX=yes
17895 no_undefined_flag_CXX=' -zdefs'
17896 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17897 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17898 $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'
17899
17900 hardcode_libdir_flag_spec_CXX='-R$libdir'
17901 hardcode_shlibpath_var_CXX=no
17902 case $host_os in
17903 solaris2.[0-5] | solaris2.[0-5].*) ;;
17904 *)
17905 # The compiler driver will combine and reorder linker options,
17906 # but understands `-z linker_flag'.
17907 # Supported since Solaris 2.6 (maybe 2.5.1?)
17908 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17909 ;;
17910 esac
17911 link_all_deplibs_CXX=yes
17912
cristy0c60a692010-11-04 01:09:47 +000017913 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017914
17915 # Archives containing C++ object files must be created using
17916 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17917 # necessary to make sure instantiated templates are included
17918 # in the archive.
17919 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17920 ;;
17921 gcx*)
17922 # Green Hills C++ Compiler
17923 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17924
17925 # The C++ compiler must be used to create the archive.
17926 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17927 ;;
17928 *)
17929 # GNU C++ compiler with Solaris linker
17930 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17931 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17932 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000017933 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 +000017934 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 +000017935 $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 +000017936
17937 # Commands to make compiler produce verbose output that lists
17938 # what "hidden" libraries, object files and flags are used when
17939 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017940 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017941 else
17942 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17943 # platform.
17944 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17945 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17946 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17947
17948 # Commands to make compiler produce verbose output that lists
17949 # what "hidden" libraries, object files and flags are used when
17950 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017951 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017952 fi
17953
17954 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17955 case $host_os in
17956 solaris2.[0-5] | solaris2.[0-5].*) ;;
17957 *)
17958 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17959 ;;
17960 esac
17961 fi
17962 ;;
17963 esac
17964 ;;
17965
17966 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17967 no_undefined_flag_CXX='${wl}-z,text'
17968 archive_cmds_need_lc_CXX=no
17969 hardcode_shlibpath_var_CXX=no
17970 runpath_var='LD_RUN_PATH'
17971
17972 case $cc_basename in
17973 CC*)
17974 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17975 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17976 ;;
17977 *)
17978 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17979 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17980 ;;
17981 esac
17982 ;;
17983
17984 sysv5* | sco3.2v5* | sco5v6*)
17985 # Note: We can NOT use -z defs as we might desire, because we do not
17986 # link with -lc, and that would cause any symbols used from libc to
17987 # always be unresolved, which means just about no library would
17988 # ever link correctly. If we're not using GNU ld we use -z text
17989 # though, which does catch some bad symbols but isn't as heavy-handed
17990 # as -z defs.
17991 no_undefined_flag_CXX='${wl}-z,text'
17992 allow_undefined_flag_CXX='${wl}-z,nodefs'
17993 archive_cmds_need_lc_CXX=no
17994 hardcode_shlibpath_var_CXX=no
17995 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17996 hardcode_libdir_separator_CXX=':'
17997 link_all_deplibs_CXX=yes
17998 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17999 runpath_var='LD_RUN_PATH'
18000
18001 case $cc_basename in
18002 CC*)
18003 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18004 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 +000018005 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18006 '"$old_archive_cmds_CXX"
18007 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18008 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018009 ;;
18010 *)
18011 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18012 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18013 ;;
18014 esac
18015 ;;
18016
18017 tandem*)
18018 case $cc_basename in
18019 NCC*)
18020 # NonStop-UX NCC 3.20
18021 # FIXME: insert proper C++ library support
18022 ld_shlibs_CXX=no
18023 ;;
18024 *)
18025 # FIXME: insert proper C++ library support
18026 ld_shlibs_CXX=no
18027 ;;
18028 esac
18029 ;;
18030
18031 vxworks*)
18032 # FIXME: insert proper C++ library support
18033 ld_shlibs_CXX=no
18034 ;;
18035
18036 *)
18037 # FIXME: insert proper C++ library support
18038 ld_shlibs_CXX=no
18039 ;;
18040 esac
18041
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18043$as_echo "$ld_shlibs_CXX" >&6; }
18044 test "$ld_shlibs_CXX" = no && can_build_shared=no
18045
18046 GCC_CXX="$GXX"
18047 LD_CXX="$LD"
18048
18049 ## CAVEAT EMPTOR:
18050 ## There is no encapsulation within the following macros, do not change
18051 ## the running order or otherwise move them around unless you know exactly
18052 ## what you are doing...
18053 # Dependencies to place before and after the object being linked:
18054predep_objects_CXX=
18055postdep_objects_CXX=
18056predeps_CXX=
18057postdeps_CXX=
18058compiler_lib_search_path_CXX=
18059
18060cat > conftest.$ac_ext <<_LT_EOF
18061class Foo
18062{
18063public:
18064 Foo (void) { a = 0; }
18065private:
18066 int a;
18067};
18068_LT_EOF
18069
cristyda16f162011-02-19 23:52:17 +000018070
18071_lt_libdeps_save_CFLAGS=$CFLAGS
18072case "$CC $CFLAGS " in #(
18073*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18074*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18075esac
18076
cristy73bd4a52010-10-05 11:24:23 +000018077if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18078 (eval $ac_compile) 2>&5
18079 ac_status=$?
18080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18081 test $ac_status = 0; }; then
18082 # Parse the compiler output and extract the necessary
18083 # objects, libraries and library flags.
18084
18085 # Sentinel used to keep track of whether or not we are before
18086 # the conftest object file.
18087 pre_test_object_deps_done=no
18088
18089 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018090 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018091
18092 -L* | -R* | -l*)
18093 # Some compilers place space between "-{L,R}" and the path.
18094 # Remove the space.
18095 if test $p = "-L" ||
18096 test $p = "-R"; then
18097 prev=$p
18098 continue
cristy73bd4a52010-10-05 11:24:23 +000018099 fi
18100
cristyda16f162011-02-19 23:52:17 +000018101 # Expand the sysroot to ease extracting the directories later.
18102 if test -z "$prev"; then
18103 case $p in
18104 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18105 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18106 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18107 esac
18108 fi
18109 case $p in
18110 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18111 esac
cristy73bd4a52010-10-05 11:24:23 +000018112 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018113 case ${prev} in
18114 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018115 # Internal compiler library paths should come after those
18116 # provided the user. The postdeps already come after the
18117 # user supplied libs so there is no need to process them.
18118 if test -z "$compiler_lib_search_path_CXX"; then
18119 compiler_lib_search_path_CXX="${prev}${p}"
18120 else
18121 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18122 fi
18123 ;;
18124 # The "-l" case would never come before the object being
18125 # linked, so don't bother handling this case.
18126 esac
18127 else
18128 if test -z "$postdeps_CXX"; then
18129 postdeps_CXX="${prev}${p}"
18130 else
18131 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18132 fi
18133 fi
cristyda16f162011-02-19 23:52:17 +000018134 prev=
cristy73bd4a52010-10-05 11:24:23 +000018135 ;;
18136
cristyda16f162011-02-19 23:52:17 +000018137 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018138 *.$objext)
18139 # This assumes that the test object file only shows up
18140 # once in the compiler output.
18141 if test "$p" = "conftest.$objext"; then
18142 pre_test_object_deps_done=yes
18143 continue
18144 fi
18145
18146 if test "$pre_test_object_deps_done" = no; then
18147 if test -z "$predep_objects_CXX"; then
18148 predep_objects_CXX="$p"
18149 else
18150 predep_objects_CXX="$predep_objects_CXX $p"
18151 fi
18152 else
18153 if test -z "$postdep_objects_CXX"; then
18154 postdep_objects_CXX="$p"
18155 else
18156 postdep_objects_CXX="$postdep_objects_CXX $p"
18157 fi
18158 fi
18159 ;;
18160
18161 *) ;; # Ignore the rest.
18162
18163 esac
18164 done
18165
18166 # Clean up.
18167 rm -f a.out a.exe
18168else
18169 echo "libtool.m4: error: problem compiling CXX test program"
18170fi
18171
18172$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018173CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018174
18175# PORTME: override above test on systems where it is broken
18176case $host_os in
18177interix[3-9]*)
18178 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18179 # hack all around it, let's just trust "g++" to DTRT.
18180 predep_objects_CXX=
18181 postdep_objects_CXX=
18182 postdeps_CXX=
18183 ;;
18184
18185linux*)
18186 case `$CC -V 2>&1 | sed 5q` in
18187 *Sun\ C*)
18188 # Sun C++ 5.9
18189
18190 # The more standards-conforming stlport4 library is
18191 # incompatible with the Cstd library. Avoid specifying
18192 # it if it's in CXXFLAGS. Ignore libCrun as
18193 # -library=stlport4 depends on it.
18194 case " $CXX $CXXFLAGS " in
18195 *" -library=stlport4 "*)
18196 solaris_use_stlport4=yes
18197 ;;
18198 esac
18199
18200 if test "$solaris_use_stlport4" != yes; then
18201 postdeps_CXX='-library=Cstd -library=Crun'
18202 fi
18203 ;;
18204 esac
18205 ;;
18206
18207solaris*)
18208 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018209 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018210 # The more standards-conforming stlport4 library is
18211 # incompatible with the Cstd library. Avoid specifying
18212 # it if it's in CXXFLAGS. Ignore libCrun as
18213 # -library=stlport4 depends on it.
18214 case " $CXX $CXXFLAGS " in
18215 *" -library=stlport4 "*)
18216 solaris_use_stlport4=yes
18217 ;;
18218 esac
18219
18220 # Adding this requires a known-good setup of shared libraries for
18221 # Sun compiler versions before 5.6, else PIC objects from an old
18222 # archive will be linked into the output, leading to subtle bugs.
18223 if test "$solaris_use_stlport4" != yes; then
18224 postdeps_CXX='-library=Cstd -library=Crun'
18225 fi
18226 ;;
18227 esac
18228 ;;
18229esac
18230
18231
18232case " $postdeps_CXX " in
18233*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18234esac
18235 compiler_lib_search_dirs_CXX=
18236if test -n "${compiler_lib_search_path_CXX}"; then
18237 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18238fi
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270 lt_prog_compiler_wl_CXX=
18271lt_prog_compiler_pic_CXX=
18272lt_prog_compiler_static_CXX=
18273
cristy73bd4a52010-10-05 11:24:23 +000018274
18275 # C++ specific cases for pic, static, wl, etc.
18276 if test "$GXX" = yes; then
18277 lt_prog_compiler_wl_CXX='-Wl,'
18278 lt_prog_compiler_static_CXX='-static'
18279
18280 case $host_os in
18281 aix*)
18282 # All AIX code is PIC.
18283 if test "$host_cpu" = ia64; then
18284 # AIX 5 now supports IA64 processor
18285 lt_prog_compiler_static_CXX='-Bstatic'
18286 fi
18287 ;;
18288
18289 amigaos*)
18290 case $host_cpu in
18291 powerpc)
18292 # see comment about AmigaOS4 .so support
18293 lt_prog_compiler_pic_CXX='-fPIC'
18294 ;;
18295 m68k)
18296 # FIXME: we need at least 68020 code to build shared libraries, but
18297 # adding the `-m68020' flag to GCC prevents building anything better,
18298 # like `-m68040'.
18299 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18300 ;;
18301 esac
18302 ;;
18303
18304 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18305 # PIC is the default for these OSes.
18306 ;;
18307 mingw* | cygwin* | os2* | pw32* | cegcc*)
18308 # This hack is so that the source file can tell whether it is being
18309 # built for inclusion in a dll (and should export symbols for example).
18310 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18311 # (--disable-auto-import) libraries
18312 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18313 ;;
18314 darwin* | rhapsody*)
18315 # PIC is the default on this platform
18316 # Common symbols not allowed in MH_DYLIB files
18317 lt_prog_compiler_pic_CXX='-fno-common'
18318 ;;
18319 *djgpp*)
18320 # DJGPP does not support shared libraries at all
18321 lt_prog_compiler_pic_CXX=
18322 ;;
cristy0c60a692010-11-04 01:09:47 +000018323 haiku*)
18324 # PIC is the default for Haiku.
18325 # The "-static" flag exists, but is broken.
18326 lt_prog_compiler_static_CXX=
18327 ;;
cristy73bd4a52010-10-05 11:24:23 +000018328 interix[3-9]*)
18329 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18330 # Instead, we relocate shared libraries at runtime.
18331 ;;
18332 sysv4*MP*)
18333 if test -d /usr/nec; then
18334 lt_prog_compiler_pic_CXX=-Kconform_pic
18335 fi
18336 ;;
18337 hpux*)
18338 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18339 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18340 # sets the default TLS model and affects inlining.
18341 case $host_cpu in
18342 hppa*64*)
18343 ;;
18344 *)
18345 lt_prog_compiler_pic_CXX='-fPIC'
18346 ;;
18347 esac
18348 ;;
18349 *qnx* | *nto*)
18350 # QNX uses GNU C++, but need to define -shared option too, otherwise
18351 # it will coredump.
18352 lt_prog_compiler_pic_CXX='-fPIC -shared'
18353 ;;
18354 *)
18355 lt_prog_compiler_pic_CXX='-fPIC'
18356 ;;
18357 esac
18358 else
18359 case $host_os in
18360 aix[4-9]*)
18361 # All AIX code is PIC.
18362 if test "$host_cpu" = ia64; then
18363 # AIX 5 now supports IA64 processor
18364 lt_prog_compiler_static_CXX='-Bstatic'
18365 else
18366 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18367 fi
18368 ;;
18369 chorus*)
18370 case $cc_basename in
18371 cxch68*)
18372 # Green Hills C++ Compiler
18373 # _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"
18374 ;;
18375 esac
18376 ;;
cristyda16f162011-02-19 23:52:17 +000018377 mingw* | cygwin* | os2* | pw32* | cegcc*)
18378 # This hack is so that the source file can tell whether it is being
18379 # built for inclusion in a dll (and should export symbols for example).
18380 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18381 ;;
cristy73bd4a52010-10-05 11:24:23 +000018382 dgux*)
18383 case $cc_basename in
18384 ec++*)
18385 lt_prog_compiler_pic_CXX='-KPIC'
18386 ;;
18387 ghcx*)
18388 # Green Hills C++ Compiler
18389 lt_prog_compiler_pic_CXX='-pic'
18390 ;;
18391 *)
18392 ;;
18393 esac
18394 ;;
18395 freebsd* | dragonfly*)
18396 # FreeBSD uses GNU C++
18397 ;;
18398 hpux9* | hpux10* | hpux11*)
18399 case $cc_basename in
18400 CC*)
18401 lt_prog_compiler_wl_CXX='-Wl,'
18402 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18403 if test "$host_cpu" != ia64; then
18404 lt_prog_compiler_pic_CXX='+Z'
18405 fi
18406 ;;
18407 aCC*)
18408 lt_prog_compiler_wl_CXX='-Wl,'
18409 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18410 case $host_cpu in
18411 hppa*64*|ia64*)
18412 # +Z the default
18413 ;;
18414 *)
18415 lt_prog_compiler_pic_CXX='+Z'
18416 ;;
18417 esac
18418 ;;
18419 *)
18420 ;;
18421 esac
18422 ;;
18423 interix*)
18424 # This is c89, which is MS Visual C++ (no shared libs)
18425 # Anyone wants to do a port?
18426 ;;
18427 irix5* | irix6* | nonstopux*)
18428 case $cc_basename in
18429 CC*)
18430 lt_prog_compiler_wl_CXX='-Wl,'
18431 lt_prog_compiler_static_CXX='-non_shared'
18432 # CC pic flag -KPIC is the default.
18433 ;;
18434 *)
18435 ;;
18436 esac
18437 ;;
cristy0c60a692010-11-04 01:09:47 +000018438 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018439 case $cc_basename in
18440 KCC*)
18441 # KAI C++ Compiler
18442 lt_prog_compiler_wl_CXX='--backend -Wl,'
18443 lt_prog_compiler_pic_CXX='-fPIC'
18444 ;;
18445 ecpc* )
18446 # old Intel C++ for x86_64 which still supported -KPIC.
18447 lt_prog_compiler_wl_CXX='-Wl,'
18448 lt_prog_compiler_pic_CXX='-KPIC'
18449 lt_prog_compiler_static_CXX='-static'
18450 ;;
18451 icpc* )
18452 # Intel C++, used to be incompatible with GCC.
18453 # ICC 10 doesn't accept -KPIC any more.
18454 lt_prog_compiler_wl_CXX='-Wl,'
18455 lt_prog_compiler_pic_CXX='-fPIC'
18456 lt_prog_compiler_static_CXX='-static'
18457 ;;
18458 pgCC* | pgcpp*)
18459 # Portland Group C++ compiler
18460 lt_prog_compiler_wl_CXX='-Wl,'
18461 lt_prog_compiler_pic_CXX='-fpic'
18462 lt_prog_compiler_static_CXX='-Bstatic'
18463 ;;
18464 cxx*)
18465 # Compaq C++
18466 # Make sure the PIC flag is empty. It appears that all Alpha
18467 # Linux and Compaq Tru64 Unix objects are PIC.
18468 lt_prog_compiler_pic_CXX=
18469 lt_prog_compiler_static_CXX='-non_shared'
18470 ;;
cristy0c60a692010-11-04 01:09:47 +000018471 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18472 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018473 lt_prog_compiler_wl_CXX='-Wl,'
18474 lt_prog_compiler_pic_CXX='-qpic'
18475 lt_prog_compiler_static_CXX='-qstaticlink'
18476 ;;
18477 *)
18478 case `$CC -V 2>&1 | sed 5q` in
18479 *Sun\ C*)
18480 # Sun C++ 5.9
18481 lt_prog_compiler_pic_CXX='-KPIC'
18482 lt_prog_compiler_static_CXX='-Bstatic'
18483 lt_prog_compiler_wl_CXX='-Qoption ld '
18484 ;;
18485 esac
18486 ;;
18487 esac
18488 ;;
18489 lynxos*)
18490 ;;
18491 m88k*)
18492 ;;
18493 mvs*)
18494 case $cc_basename in
18495 cxx*)
18496 lt_prog_compiler_pic_CXX='-W c,exportall'
18497 ;;
18498 *)
18499 ;;
18500 esac
18501 ;;
18502 netbsd*)
18503 ;;
18504 *qnx* | *nto*)
18505 # QNX uses GNU C++, but need to define -shared option too, otherwise
18506 # it will coredump.
18507 lt_prog_compiler_pic_CXX='-fPIC -shared'
18508 ;;
18509 osf3* | osf4* | osf5*)
18510 case $cc_basename in
18511 KCC*)
18512 lt_prog_compiler_wl_CXX='--backend -Wl,'
18513 ;;
18514 RCC*)
18515 # Rational C++ 2.4.1
18516 lt_prog_compiler_pic_CXX='-pic'
18517 ;;
18518 cxx*)
18519 # Digital/Compaq C++
18520 lt_prog_compiler_wl_CXX='-Wl,'
18521 # Make sure the PIC flag is empty. It appears that all Alpha
18522 # Linux and Compaq Tru64 Unix objects are PIC.
18523 lt_prog_compiler_pic_CXX=
18524 lt_prog_compiler_static_CXX='-non_shared'
18525 ;;
18526 *)
18527 ;;
18528 esac
18529 ;;
18530 psos*)
18531 ;;
18532 solaris*)
18533 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018534 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018535 # Sun C++ 4.2, 5.x and Centerline C++
18536 lt_prog_compiler_pic_CXX='-KPIC'
18537 lt_prog_compiler_static_CXX='-Bstatic'
18538 lt_prog_compiler_wl_CXX='-Qoption ld '
18539 ;;
18540 gcx*)
18541 # Green Hills C++ Compiler
18542 lt_prog_compiler_pic_CXX='-PIC'
18543 ;;
18544 *)
18545 ;;
18546 esac
18547 ;;
18548 sunos4*)
18549 case $cc_basename in
18550 CC*)
18551 # Sun C++ 4.x
18552 lt_prog_compiler_pic_CXX='-pic'
18553 lt_prog_compiler_static_CXX='-Bstatic'
18554 ;;
18555 lcc*)
18556 # Lucid
18557 lt_prog_compiler_pic_CXX='-pic'
18558 ;;
18559 *)
18560 ;;
18561 esac
18562 ;;
18563 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18564 case $cc_basename in
18565 CC*)
18566 lt_prog_compiler_wl_CXX='-Wl,'
18567 lt_prog_compiler_pic_CXX='-KPIC'
18568 lt_prog_compiler_static_CXX='-Bstatic'
18569 ;;
18570 esac
18571 ;;
18572 tandem*)
18573 case $cc_basename in
18574 NCC*)
18575 # NonStop-UX NCC 3.20
18576 lt_prog_compiler_pic_CXX='-KPIC'
18577 ;;
18578 *)
18579 ;;
18580 esac
18581 ;;
18582 vxworks*)
18583 ;;
18584 *)
18585 lt_prog_compiler_can_build_shared_CXX=no
18586 ;;
18587 esac
18588 fi
18589
18590case $host_os in
18591 # For platforms which do not support PIC, -DPIC is meaningless:
18592 *djgpp*)
18593 lt_prog_compiler_pic_CXX=
18594 ;;
18595 *)
18596 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18597 ;;
18598esac
cristy73bd4a52010-10-05 11:24:23 +000018599
cristyda16f162011-02-19 23:52:17 +000018600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18601$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18602if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18603 $as_echo_n "(cached) " >&6
18604else
18605 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18606fi
18607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18608$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18609lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018610
18611#
18612# Check to make sure the PIC flag actually works.
18613#
18614if test -n "$lt_prog_compiler_pic_CXX"; then
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18616$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018617if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018618 $as_echo_n "(cached) " >&6
18619else
18620 lt_cv_prog_compiler_pic_works_CXX=no
18621 ac_outfile=conftest.$ac_objext
18622 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18623 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18624 # Insert the option either (1) after the last *FLAGS variable, or
18625 # (2) before a word containing "conftest.", or (3) at the end.
18626 # Note that $ac_compile itself does not contain backslashes and begins
18627 # with a dollar sign (not a hyphen), so the echo should work correctly.
18628 # The option is referenced via a variable to avoid confusing sed.
18629 lt_compile=`echo "$ac_compile" | $SED \
18630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18632 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018633 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018634 (eval "$lt_compile" 2>conftest.err)
18635 ac_status=$?
18636 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018638 if (exit $ac_status) && test -s "$ac_outfile"; then
18639 # The compiler can only warn and ignore the option if not recognized
18640 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018641 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18643 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18644 lt_cv_prog_compiler_pic_works_CXX=yes
18645 fi
18646 fi
18647 $RM conftest*
18648
18649fi
18650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18651$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18652
18653if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18654 case $lt_prog_compiler_pic_CXX in
18655 "" | " "*) ;;
18656 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18657 esac
18658else
18659 lt_prog_compiler_pic_CXX=
18660 lt_prog_compiler_can_build_shared_CXX=no
18661fi
18662
18663fi
18664
18665
18666
cristyda16f162011-02-19 23:52:17 +000018667
18668
cristy73bd4a52010-10-05 11:24:23 +000018669#
18670# Check to make sure the static flag actually works.
18671#
18672wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18674$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018675if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018676 $as_echo_n "(cached) " >&6
18677else
18678 lt_cv_prog_compiler_static_works_CXX=no
18679 save_LDFLAGS="$LDFLAGS"
18680 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18681 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18682 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18683 # The linker can only warn and ignore the option if not recognized
18684 # So say no if there are warnings
18685 if test -s conftest.err; then
18686 # Append any errors to the config.log.
18687 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018688 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018689 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18690 if diff conftest.exp conftest.er2 >/dev/null; then
18691 lt_cv_prog_compiler_static_works_CXX=yes
18692 fi
18693 else
18694 lt_cv_prog_compiler_static_works_CXX=yes
18695 fi
18696 fi
18697 $RM -r conftest*
18698 LDFLAGS="$save_LDFLAGS"
18699
18700fi
18701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18702$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18703
18704if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18705 :
18706else
18707 lt_prog_compiler_static_CXX=
18708fi
18709
18710
18711
18712
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18714$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018715if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018716 $as_echo_n "(cached) " >&6
18717else
18718 lt_cv_prog_compiler_c_o_CXX=no
18719 $RM -r conftest 2>/dev/null
18720 mkdir conftest
18721 cd conftest
18722 mkdir out
18723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18724
18725 lt_compiler_flag="-o out/conftest2.$ac_objext"
18726 # Insert the option either (1) after the last *FLAGS variable, or
18727 # (2) before a word containing "conftest.", or (3) at the end.
18728 # Note that $ac_compile itself does not contain backslashes and begins
18729 # with a dollar sign (not a hyphen), so the echo should work correctly.
18730 lt_compile=`echo "$ac_compile" | $SED \
18731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18733 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018734 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018735 (eval "$lt_compile" 2>out/conftest.err)
18736 ac_status=$?
18737 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018739 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18740 then
18741 # The compiler can only warn and ignore the option if not recognized
18742 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018743 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018744 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18745 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18746 lt_cv_prog_compiler_c_o_CXX=yes
18747 fi
18748 fi
18749 chmod u+w . 2>&5
18750 $RM conftest*
18751 # SGI C++ compiler will create directory out/ii_files/ for
18752 # template instantiation
18753 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18754 $RM out/* && rmdir out
18755 cd ..
18756 $RM -r conftest
18757 $RM conftest*
18758
18759fi
18760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18761$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18762
18763
18764
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18766$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018767if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018768 $as_echo_n "(cached) " >&6
18769else
18770 lt_cv_prog_compiler_c_o_CXX=no
18771 $RM -r conftest 2>/dev/null
18772 mkdir conftest
18773 cd conftest
18774 mkdir out
18775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18776
18777 lt_compiler_flag="-o out/conftest2.$ac_objext"
18778 # Insert the option either (1) after the last *FLAGS variable, or
18779 # (2) before a word containing "conftest.", or (3) at the end.
18780 # Note that $ac_compile itself does not contain backslashes and begins
18781 # with a dollar sign (not a hyphen), so the echo should work correctly.
18782 lt_compile=`echo "$ac_compile" | $SED \
18783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18785 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018786 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018787 (eval "$lt_compile" 2>out/conftest.err)
18788 ac_status=$?
18789 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018791 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18792 then
18793 # The compiler can only warn and ignore the option if not recognized
18794 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018795 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018796 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18797 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18798 lt_cv_prog_compiler_c_o_CXX=yes
18799 fi
18800 fi
18801 chmod u+w . 2>&5
18802 $RM conftest*
18803 # SGI C++ compiler will create directory out/ii_files/ for
18804 # template instantiation
18805 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18806 $RM out/* && rmdir out
18807 cd ..
18808 $RM -r conftest
18809 $RM conftest*
18810
18811fi
18812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18813$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18814
18815
18816
18817
18818hard_links="nottested"
18819if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18820 # do not overwrite the value of need_locks provided by the user
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18822$as_echo_n "checking if we can lock with hard links... " >&6; }
18823 hard_links=yes
18824 $RM conftest*
18825 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18826 touch conftest.a
18827 ln conftest.a conftest.b 2>&5 || hard_links=no
18828 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18830$as_echo "$hard_links" >&6; }
18831 if test "$hard_links" = no; then
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18833$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18834 need_locks=warn
18835 fi
18836else
18837 need_locks=no
18838fi
18839
18840
18841
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18843$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18844
18845 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018846 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000018847 case $host_os in
18848 aix[4-9]*)
18849 # If we're using GNU nm, then we don't want the "-C" option.
18850 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000018851 # Also, AIX nm treats weak defined symbols like other global defined
18852 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000018853 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000018854 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 +000018855 else
18856 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'
18857 fi
18858 ;;
18859 pw32*)
18860 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000018861 ;;
cristy73bd4a52010-10-05 11:24:23 +000018862 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018863 case $cc_basename in
18864 cl*) ;;
18865 *)
18866 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'
18867 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18868 ;;
18869 esac
18870 ;;
cristy73bd4a52010-10-05 11:24:23 +000018871 *)
18872 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018873 ;;
cristy73bd4a52010-10-05 11:24:23 +000018874 esac
cristy73bd4a52010-10-05 11:24:23 +000018875
18876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18877$as_echo "$ld_shlibs_CXX" >&6; }
18878test "$ld_shlibs_CXX" = no && can_build_shared=no
18879
18880with_gnu_ld_CXX=$with_gnu_ld
18881
18882
18883
18884
18885
18886
18887#
18888# Do we need to explicitly link libc?
18889#
18890case "x$archive_cmds_need_lc_CXX" in
18891x|xyes)
18892 # Assume -lc should be added
18893 archive_cmds_need_lc_CXX=yes
18894
18895 if test "$enable_shared" = yes && test "$GCC" = yes; then
18896 case $archive_cmds_CXX in
18897 *'~'*)
18898 # FIXME: we may have to deal with multi-command sequences.
18899 ;;
18900 '$CC '*)
18901 # Test whether the compiler implicitly links with -lc since on some
18902 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18903 # to ld, don't add -lc before -lgcc.
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18905$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018906if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018907 $as_echo_n "(cached) " >&6
18908else
18909 $RM conftest*
18910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018911
cristy0c60a692010-11-04 01:09:47 +000018912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000018913 (eval $ac_compile) 2>&5
18914 ac_status=$?
18915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18916 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000018917 soname=conftest
18918 lib=conftest
18919 libobjs=conftest.$ac_objext
18920 deplibs=
18921 wl=$lt_prog_compiler_wl_CXX
18922 pic_flag=$lt_prog_compiler_pic_CXX
18923 compiler_flags=-v
18924 linker_flags=-v
18925 verstring=
18926 output_objdir=.
18927 libname=conftest
18928 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18929 allow_undefined_flag_CXX=
18930 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 +000018931 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18932 ac_status=$?
18933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18934 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000018935 then
18936 lt_cv_archive_cmds_need_lc_CXX=no
18937 else
18938 lt_cv_archive_cmds_need_lc_CXX=yes
18939 fi
18940 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18941 else
18942 cat conftest.err 1>&5
18943 fi
18944 $RM conftest*
18945
18946fi
18947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18948$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18949 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000018950 ;;
18951 esac
18952 fi
18953 ;;
18954esac
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19020$as_echo_n "checking dynamic linker characteristics... " >&6; }
19021
19022library_names_spec=
19023libname_spec='lib$name'
19024soname_spec=
19025shrext_cmds=".so"
19026postinstall_cmds=
19027postuninstall_cmds=
19028finish_cmds=
19029finish_eval=
19030shlibpath_var=
19031shlibpath_overrides_runpath=unknown
19032version_type=none
19033dynamic_linker="$host_os ld.so"
19034sys_lib_dlsearch_path_spec="/lib /usr/lib"
19035need_lib_prefix=unknown
19036hardcode_into_libs=no
19037
19038# when you set need_version to no, make sure it does not cause -set_version
19039# flags to be left without arguments
19040need_version=unknown
19041
19042case $host_os in
19043aix3*)
19044 version_type=linux
19045 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19046 shlibpath_var=LIBPATH
19047
19048 # AIX 3 has no versioning support, so we append a major version to the name.
19049 soname_spec='${libname}${release}${shared_ext}$major'
19050 ;;
19051
19052aix[4-9]*)
19053 version_type=linux
19054 need_lib_prefix=no
19055 need_version=no
19056 hardcode_into_libs=yes
19057 if test "$host_cpu" = ia64; then
19058 # AIX 5 supports IA64
19059 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19060 shlibpath_var=LD_LIBRARY_PATH
19061 else
19062 # With GCC up to 2.95.x, collect2 would create an import file
19063 # for dependence libraries. The import file would start with
19064 # the line `#! .'. This would cause the generated library to
19065 # depend on `.', always an invalid library. This was fixed in
19066 # development snapshots of GCC prior to 3.0.
19067 case $host_os in
19068 aix4 | aix4.[01] | aix4.[01].*)
19069 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19070 echo ' yes '
19071 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19072 :
19073 else
19074 can_build_shared=no
19075 fi
19076 ;;
19077 esac
19078 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19079 # soname into executable. Probably we can add versioning support to
19080 # collect2, so additional links can be useful in future.
19081 if test "$aix_use_runtimelinking" = yes; then
19082 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19083 # instead of lib<name>.a to let people know that these are not
19084 # typical AIX shared libraries.
19085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19086 else
19087 # We preserve .a as extension for shared libraries through AIX4.2
19088 # and later when we are not doing run time linking.
19089 library_names_spec='${libname}${release}.a $libname.a'
19090 soname_spec='${libname}${release}${shared_ext}$major'
19091 fi
19092 shlibpath_var=LIBPATH
19093 fi
19094 ;;
19095
19096amigaos*)
19097 case $host_cpu in
19098 powerpc)
19099 # Since July 2007 AmigaOS4 officially supports .so libraries.
19100 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19102 ;;
19103 m68k)
19104 library_names_spec='$libname.ixlibrary $libname.a'
19105 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019106 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 +000019107 ;;
19108 esac
19109 ;;
19110
19111beos*)
19112 library_names_spec='${libname}${shared_ext}'
19113 dynamic_linker="$host_os ld.so"
19114 shlibpath_var=LIBRARY_PATH
19115 ;;
19116
19117bsdi[45]*)
19118 version_type=linux
19119 need_version=no
19120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19121 soname_spec='${libname}${release}${shared_ext}$major'
19122 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19123 shlibpath_var=LD_LIBRARY_PATH
19124 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19125 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19126 # the default ld.so.conf also contains /usr/contrib/lib and
19127 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19128 # libtool to hard-code these into programs
19129 ;;
19130
19131cygwin* | mingw* | pw32* | cegcc*)
19132 version_type=windows
19133 shrext_cmds=".dll"
19134 need_version=no
19135 need_lib_prefix=no
19136
cristyda16f162011-02-19 23:52:17 +000019137 case $GCC,$cc_basename in
19138 yes,*)
19139 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019140 library_names_spec='$libname.dll.a'
19141 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19142 postinstall_cmds='base_file=`basename \${file}`~
19143 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19144 dldir=$destdir/`dirname \$dlpath`~
19145 test -d \$dldir || mkdir -p \$dldir~
19146 $install_prog $dir/$dlname \$dldir/$dlname~
19147 chmod a+x \$dldir/$dlname~
19148 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19149 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19150 fi'
19151 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19152 dlpath=$dir/\$dldll~
19153 $RM \$dlpath'
19154 shlibpath_overrides_runpath=yes
19155
19156 case $host_os in
19157 cygwin*)
19158 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19159 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019160
cristy73bd4a52010-10-05 11:24:23 +000019161 ;;
19162 mingw* | cegcc*)
19163 # MinGW DLLs use traditional 'lib' prefix
19164 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019165 ;;
19166 pw32*)
19167 # pw32 DLLs use 'pw' prefix rather than 'lib'
19168 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19169 ;;
19170 esac
cristyda16f162011-02-19 23:52:17 +000019171 dynamic_linker='Win32 ld.exe'
19172 ;;
19173
19174 *,cl*)
19175 # Native MSVC
19176 libname_spec='$name'
19177 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19178 library_names_spec='${libname}.dll.lib'
19179
19180 case $build_os in
19181 mingw*)
19182 sys_lib_search_path_spec=
19183 lt_save_ifs=$IFS
19184 IFS=';'
19185 for lt_path in $LIB
19186 do
19187 IFS=$lt_save_ifs
19188 # Let DOS variable expansion print the short 8.3 style file name.
19189 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19190 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19191 done
19192 IFS=$lt_save_ifs
19193 # Convert to MSYS style.
19194 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19195 ;;
19196 cygwin*)
19197 # Convert to unix form, then to dos form, then back to unix form
19198 # but this time dos style (no spaces!) so that the unix form looks
19199 # like /cygdrive/c/PROGRA~1:/cygdr...
19200 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19201 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19202 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19203 ;;
19204 *)
19205 sys_lib_search_path_spec="$LIB"
19206 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19207 # It is most probably a Windows format PATH.
19208 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19209 else
19210 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19211 fi
19212 # FIXME: find the short name or the path components, as spaces are
19213 # common. (e.g. "Program Files" -> "PROGRA~1")
19214 ;;
19215 esac
19216
19217 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19218 postinstall_cmds='base_file=`basename \${file}`~
19219 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19220 dldir=$destdir/`dirname \$dlpath`~
19221 test -d \$dldir || mkdir -p \$dldir~
19222 $install_prog $dir/$dlname \$dldir/$dlname'
19223 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19224 dlpath=$dir/\$dldll~
19225 $RM \$dlpath'
19226 shlibpath_overrides_runpath=yes
19227 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019228 ;;
19229
19230 *)
cristyda16f162011-02-19 23:52:17 +000019231 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019232 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019233 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019234 ;;
19235 esac
cristy73bd4a52010-10-05 11:24:23 +000019236 # FIXME: first we should search . and the directory the executable is in
19237 shlibpath_var=PATH
19238 ;;
19239
19240darwin* | rhapsody*)
19241 dynamic_linker="$host_os dyld"
19242 version_type=darwin
19243 need_lib_prefix=no
19244 need_version=no
19245 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19246 soname_spec='${libname}${release}${major}$shared_ext'
19247 shlibpath_overrides_runpath=yes
19248 shlibpath_var=DYLD_LIBRARY_PATH
19249 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19250
19251 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19252 ;;
19253
19254dgux*)
19255 version_type=linux
19256 need_lib_prefix=no
19257 need_version=no
19258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19259 soname_spec='${libname}${release}${shared_ext}$major'
19260 shlibpath_var=LD_LIBRARY_PATH
19261 ;;
19262
19263freebsd1*)
19264 dynamic_linker=no
19265 ;;
19266
19267freebsd* | dragonfly*)
19268 # DragonFly does not have aout. When/if they implement a new
19269 # versioning mechanism, adjust this.
19270 if test -x /usr/bin/objformat; then
19271 objformat=`/usr/bin/objformat`
19272 else
19273 case $host_os in
19274 freebsd[123]*) objformat=aout ;;
19275 *) objformat=elf ;;
19276 esac
19277 fi
19278 version_type=freebsd-$objformat
19279 case $version_type in
19280 freebsd-elf*)
19281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19282 need_version=no
19283 need_lib_prefix=no
19284 ;;
19285 freebsd-*)
19286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19287 need_version=yes
19288 ;;
19289 esac
19290 shlibpath_var=LD_LIBRARY_PATH
19291 case $host_os in
19292 freebsd2*)
19293 shlibpath_overrides_runpath=yes
19294 ;;
19295 freebsd3.[01]* | freebsdelf3.[01]*)
19296 shlibpath_overrides_runpath=yes
19297 hardcode_into_libs=yes
19298 ;;
19299 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19300 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19301 shlibpath_overrides_runpath=no
19302 hardcode_into_libs=yes
19303 ;;
19304 *) # from 4.6 on, and DragonFly
19305 shlibpath_overrides_runpath=yes
19306 hardcode_into_libs=yes
19307 ;;
19308 esac
19309 ;;
19310
19311gnu*)
19312 version_type=linux
19313 need_lib_prefix=no
19314 need_version=no
19315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19316 soname_spec='${libname}${release}${shared_ext}$major'
19317 shlibpath_var=LD_LIBRARY_PATH
19318 hardcode_into_libs=yes
19319 ;;
19320
cristy0c60a692010-11-04 01:09:47 +000019321haiku*)
19322 version_type=linux
19323 need_lib_prefix=no
19324 need_version=no
19325 dynamic_linker="$host_os runtime_loader"
19326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19327 soname_spec='${libname}${release}${shared_ext}$major'
19328 shlibpath_var=LIBRARY_PATH
19329 shlibpath_overrides_runpath=yes
19330 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19331 hardcode_into_libs=yes
19332 ;;
19333
cristy73bd4a52010-10-05 11:24:23 +000019334hpux9* | hpux10* | hpux11*)
19335 # Give a soname corresponding to the major version so that dld.sl refuses to
19336 # link against other versions.
19337 version_type=sunos
19338 need_lib_prefix=no
19339 need_version=no
19340 case $host_cpu in
19341 ia64*)
19342 shrext_cmds='.so'
19343 hardcode_into_libs=yes
19344 dynamic_linker="$host_os dld.so"
19345 shlibpath_var=LD_LIBRARY_PATH
19346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19348 soname_spec='${libname}${release}${shared_ext}$major'
19349 if test "X$HPUX_IA64_MODE" = X32; then
19350 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19351 else
19352 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19353 fi
19354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19355 ;;
19356 hppa*64*)
19357 shrext_cmds='.sl'
19358 hardcode_into_libs=yes
19359 dynamic_linker="$host_os dld.sl"
19360 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19363 soname_spec='${libname}${release}${shared_ext}$major'
19364 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19366 ;;
19367 *)
19368 shrext_cmds='.sl'
19369 dynamic_linker="$host_os dld.sl"
19370 shlibpath_var=SHLIB_PATH
19371 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19373 soname_spec='${libname}${release}${shared_ext}$major'
19374 ;;
19375 esac
cristy0c60a692010-11-04 01:09:47 +000019376 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019377 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019378 # or fails outright, so override atomically:
19379 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019380 ;;
19381
19382interix[3-9]*)
19383 version_type=linux
19384 need_lib_prefix=no
19385 need_version=no
19386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19387 soname_spec='${libname}${release}${shared_ext}$major'
19388 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19389 shlibpath_var=LD_LIBRARY_PATH
19390 shlibpath_overrides_runpath=no
19391 hardcode_into_libs=yes
19392 ;;
19393
19394irix5* | irix6* | nonstopux*)
19395 case $host_os in
19396 nonstopux*) version_type=nonstopux ;;
19397 *)
19398 if test "$lt_cv_prog_gnu_ld" = yes; then
19399 version_type=linux
19400 else
19401 version_type=irix
19402 fi ;;
19403 esac
19404 need_lib_prefix=no
19405 need_version=no
19406 soname_spec='${libname}${release}${shared_ext}$major'
19407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19408 case $host_os in
19409 irix5* | nonstopux*)
19410 libsuff= shlibsuff=
19411 ;;
19412 *)
19413 case $LD in # libtool.m4 will add one of these switches to LD
19414 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19415 libsuff= shlibsuff= libmagic=32-bit;;
19416 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19417 libsuff=32 shlibsuff=N32 libmagic=N32;;
19418 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19419 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19420 *) libsuff= shlibsuff= libmagic=never-match;;
19421 esac
19422 ;;
19423 esac
19424 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19425 shlibpath_overrides_runpath=no
19426 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19427 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19428 hardcode_into_libs=yes
19429 ;;
19430
19431# No shared lib support for Linux oldld, aout, or coff.
19432linux*oldld* | linux*aout* | linux*coff*)
19433 dynamic_linker=no
19434 ;;
19435
19436# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000019437linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019438 version_type=linux
19439 need_lib_prefix=no
19440 need_version=no
19441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19442 soname_spec='${libname}${release}${shared_ext}$major'
19443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19444 shlibpath_var=LD_LIBRARY_PATH
19445 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019446
cristy73bd4a52010-10-05 11:24:23 +000019447 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019448 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019449 $as_echo_n "(cached) " >&6
19450else
19451 lt_cv_shlibpath_overrides_runpath=no
19452 save_LDFLAGS=$LDFLAGS
19453 save_libdir=$libdir
19454 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19455 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019457/* end confdefs.h. */
19458
19459int
19460main ()
19461{
19462
19463 ;
19464 return 0;
19465}
19466_ACEOF
19467if ac_fn_cxx_try_link "$LINENO"; then :
19468 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019469 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019470fi
19471fi
19472rm -f core conftest.err conftest.$ac_objext \
19473 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019474 LDFLAGS=$save_LDFLAGS
19475 libdir=$save_libdir
19476
19477fi
19478
19479 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019480
19481 # This implies no fast_install, which is unacceptable.
19482 # Some rework will be needed to allow for fast_install
19483 # before this can be enabled.
19484 hardcode_into_libs=yes
19485
19486 # Add ABI-specific directories to the system library path.
19487 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19488
19489 # Append ld.so.conf contents to the search path
19490 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019491 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 +000019492 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019493
cristy73bd4a52010-10-05 11:24:23 +000019494 fi
19495
19496 # We used to test for /lib/ld.so.1 and disable shared libraries on
19497 # powerpc, because MkLinux only supported shared libraries with the
19498 # GNU dynamic linker. Since this was broken with cross compilers,
19499 # most powerpc-linux boxes support dynamic linking these days and
19500 # people can always --disable-shared, the test was removed, and we
19501 # assume the GNU/Linux dynamic linker is in use.
19502 dynamic_linker='GNU/Linux ld.so'
19503 ;;
19504
19505netbsd*)
19506 version_type=sunos
19507 need_lib_prefix=no
19508 need_version=no
19509 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19512 dynamic_linker='NetBSD (a.out) ld.so'
19513 else
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 dynamic_linker='NetBSD ld.elf_so'
19517 fi
19518 shlibpath_var=LD_LIBRARY_PATH
19519 shlibpath_overrides_runpath=yes
19520 hardcode_into_libs=yes
19521 ;;
19522
19523newsos6)
19524 version_type=linux
19525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19526 shlibpath_var=LD_LIBRARY_PATH
19527 shlibpath_overrides_runpath=yes
19528 ;;
19529
19530*nto* | *qnx*)
19531 version_type=qnx
19532 need_lib_prefix=no
19533 need_version=no
19534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19535 soname_spec='${libname}${release}${shared_ext}$major'
19536 shlibpath_var=LD_LIBRARY_PATH
19537 shlibpath_overrides_runpath=no
19538 hardcode_into_libs=yes
19539 dynamic_linker='ldqnx.so'
19540 ;;
19541
19542openbsd*)
19543 version_type=sunos
19544 sys_lib_dlsearch_path_spec="/usr/lib"
19545 need_lib_prefix=no
19546 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19547 case $host_os in
19548 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19549 *) need_version=no ;;
19550 esac
19551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19553 shlibpath_var=LD_LIBRARY_PATH
19554 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19555 case $host_os in
19556 openbsd2.[89] | openbsd2.[89].*)
19557 shlibpath_overrides_runpath=no
19558 ;;
19559 *)
19560 shlibpath_overrides_runpath=yes
19561 ;;
19562 esac
19563 else
19564 shlibpath_overrides_runpath=yes
19565 fi
19566 ;;
19567
19568os2*)
19569 libname_spec='$name'
19570 shrext_cmds=".dll"
19571 need_lib_prefix=no
19572 library_names_spec='$libname${shared_ext} $libname.a'
19573 dynamic_linker='OS/2 ld.exe'
19574 shlibpath_var=LIBPATH
19575 ;;
19576
19577osf3* | osf4* | osf5*)
19578 version_type=osf
19579 need_lib_prefix=no
19580 need_version=no
19581 soname_spec='${libname}${release}${shared_ext}$major'
19582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19583 shlibpath_var=LD_LIBRARY_PATH
19584 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19585 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19586 ;;
19587
19588rdos*)
19589 dynamic_linker=no
19590 ;;
19591
19592solaris*)
19593 version_type=linux
19594 need_lib_prefix=no
19595 need_version=no
19596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19597 soname_spec='${libname}${release}${shared_ext}$major'
19598 shlibpath_var=LD_LIBRARY_PATH
19599 shlibpath_overrides_runpath=yes
19600 hardcode_into_libs=yes
19601 # ldd complains unless libraries are executable
19602 postinstall_cmds='chmod +x $lib'
19603 ;;
19604
19605sunos4*)
19606 version_type=sunos
19607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19608 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19609 shlibpath_var=LD_LIBRARY_PATH
19610 shlibpath_overrides_runpath=yes
19611 if test "$with_gnu_ld" = yes; then
19612 need_lib_prefix=no
19613 fi
19614 need_version=yes
19615 ;;
19616
19617sysv4 | sysv4.3*)
19618 version_type=linux
19619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19620 soname_spec='${libname}${release}${shared_ext}$major'
19621 shlibpath_var=LD_LIBRARY_PATH
19622 case $host_vendor in
19623 sni)
19624 shlibpath_overrides_runpath=no
19625 need_lib_prefix=no
19626 runpath_var=LD_RUN_PATH
19627 ;;
19628 siemens)
19629 need_lib_prefix=no
19630 ;;
19631 motorola)
19632 need_lib_prefix=no
19633 need_version=no
19634 shlibpath_overrides_runpath=no
19635 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19636 ;;
19637 esac
19638 ;;
19639
19640sysv4*MP*)
19641 if test -d /usr/nec ;then
19642 version_type=linux
19643 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19644 soname_spec='$libname${shared_ext}.$major'
19645 shlibpath_var=LD_LIBRARY_PATH
19646 fi
19647 ;;
19648
19649sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19650 version_type=freebsd-elf
19651 need_lib_prefix=no
19652 need_version=no
19653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19654 soname_spec='${libname}${release}${shared_ext}$major'
19655 shlibpath_var=LD_LIBRARY_PATH
19656 shlibpath_overrides_runpath=yes
19657 hardcode_into_libs=yes
19658 if test "$with_gnu_ld" = yes; then
19659 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19660 else
19661 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19662 case $host_os in
19663 sco3.2v5*)
19664 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19665 ;;
19666 esac
19667 fi
19668 sys_lib_dlsearch_path_spec='/usr/lib'
19669 ;;
19670
19671tpf*)
19672 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19673 version_type=linux
19674 need_lib_prefix=no
19675 need_version=no
19676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19677 shlibpath_var=LD_LIBRARY_PATH
19678 shlibpath_overrides_runpath=no
19679 hardcode_into_libs=yes
19680 ;;
19681
19682uts4*)
19683 version_type=linux
19684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19685 soname_spec='${libname}${release}${shared_ext}$major'
19686 shlibpath_var=LD_LIBRARY_PATH
19687 ;;
19688
19689*)
19690 dynamic_linker=no
19691 ;;
19692esac
19693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19694$as_echo "$dynamic_linker" >&6; }
19695test "$dynamic_linker" = no && can_build_shared=no
19696
19697variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19698if test "$GCC" = yes; then
19699 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19700fi
19701
19702if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19703 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19704fi
19705if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19706 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19707fi
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
cristy0c60a692010-11-04 01:09:47 +000019744
19745
cristy73bd4a52010-10-05 11:24:23 +000019746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19747$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19748hardcode_action_CXX=
19749if test -n "$hardcode_libdir_flag_spec_CXX" ||
19750 test -n "$runpath_var_CXX" ||
19751 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19752
19753 # We can hardcode non-existent directories.
19754 if test "$hardcode_direct_CXX" != no &&
19755 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19756 # have to relink, otherwise we might link with an installed library
19757 # when we should be linking with a yet-to-be-installed one
19758 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19759 test "$hardcode_minus_L_CXX" != no; then
19760 # Linking always hardcodes the temporary library directory.
19761 hardcode_action_CXX=relink
19762 else
19763 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19764 hardcode_action_CXX=immediate
19765 fi
19766else
19767 # We cannot hardcode anything, or else we can only hardcode existing
19768 # directories.
19769 hardcode_action_CXX=unsupported
19770fi
19771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19772$as_echo "$hardcode_action_CXX" >&6; }
19773
19774if test "$hardcode_action_CXX" = relink ||
19775 test "$inherit_rpath_CXX" = yes; then
19776 # Fast installation is not supported
19777 enable_fast_install=no
19778elif test "$shlibpath_overrides_runpath" = yes ||
19779 test "$enable_shared" = no; then
19780 # Fast installation is not necessary
19781 enable_fast_install=needless
19782fi
19783
19784
19785
19786
19787
19788
19789
19790 fi # test -n "$compiler"
19791
19792 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019793 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019794 LDCXX=$LD
19795 LD=$lt_save_LD
19796 GCC=$lt_save_GCC
19797 with_gnu_ld=$lt_save_with_gnu_ld
19798 lt_cv_path_LDCXX=$lt_cv_path_LD
19799 lt_cv_path_LD=$lt_save_path_LD
19800 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19801 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19802fi # test "$_lt_caught_CXX_error" != yes
19803
19804ac_ext=c
19805ac_cpp='$CPP $CPPFLAGS'
19806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19808ac_compiler_gnu=$ac_cv_c_compiler_gnu
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822 ac_config_commands="$ac_config_commands libtool"
19823
19824
19825
19826
19827# Only expand once:
19828
19829
19830
cristy3ed852e2009-09-05 21:47:34 +000019831
19832
19833# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019834
19835
19836
19837
19838
19839
19840
cristy73bd4a52010-10-05 11:24:23 +000019841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19842$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019843if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019844 $as_echo_n "(cached) " >&6
19845else
19846
19847module=yes
19848eval libltdl_cv_shlibext=$shrext_cmds
19849
19850fi
19851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19852$as_echo "$libltdl_cv_shlibext" >&6; }
19853if test -n "$libltdl_cv_shlibext"; then
19854
19855cat >>confdefs.h <<_ACEOF
19856#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19857_ACEOF
19858
19859fi
19860
19861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19862$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019863if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019864 $as_echo_n "(cached) " >&6
19865else
19866 lt_cv_module_path_var="$shlibpath_var"
19867fi
19868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19869$as_echo "$lt_cv_module_path_var" >&6; }
19870if test -n "$lt_cv_module_path_var"; then
19871
19872cat >>confdefs.h <<_ACEOF
19873#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19874_ACEOF
19875
19876fi
19877
19878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19879$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019880if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019881 $as_echo_n "(cached) " >&6
19882else
19883 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19884fi
19885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19886$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19887if test -n "$lt_cv_sys_dlsearch_path"; then
19888 sys_dlsearch_path=
19889 for dir in $lt_cv_sys_dlsearch_path; do
19890 if test -z "$sys_dlsearch_path"; then
19891 sys_dlsearch_path="$dir"
19892 else
19893 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19894 fi
19895 done
19896
19897cat >>confdefs.h <<_ACEOF
19898#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19899_ACEOF
19900
19901fi
19902
19903
19904LT_DLLOADERS=
19905
19906
19907ac_ext=c
19908ac_cpp='$CPP $CPPFLAGS'
19909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19911ac_compiler_gnu=$ac_cv_c_compiler_gnu
19912
19913
19914LIBADD_DLOPEN=
19915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19916$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019917if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019918 $as_echo_n "(cached) " >&6
19919else
19920 ac_func_search_save_LIBS=$LIBS
19921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19922/* end confdefs.h. */
19923
19924/* Override any GCC internal prototype to avoid an error.
19925 Use char because int might match the return type of a GCC
19926 builtin and then its argument prototype would still apply. */
19927#ifdef __cplusplus
19928extern "C"
19929#endif
19930char dlopen ();
19931int
19932main ()
19933{
19934return dlopen ();
19935 ;
19936 return 0;
19937}
19938_ACEOF
19939for ac_lib in '' dl; do
19940 if test -z "$ac_lib"; then
19941 ac_res="none required"
19942 else
19943 ac_res=-l$ac_lib
19944 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19945 fi
19946 if ac_fn_c_try_link "$LINENO"; then :
19947 ac_cv_search_dlopen=$ac_res
19948fi
19949rm -f core conftest.err conftest.$ac_objext \
19950 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000019951 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019952 break
19953fi
19954done
cristyda16f162011-02-19 23:52:17 +000019955if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019956
19957else
19958 ac_cv_search_dlopen=no
19959fi
19960rm conftest.$ac_ext
19961LIBS=$ac_func_search_save_LIBS
19962fi
19963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19964$as_echo "$ac_cv_search_dlopen" >&6; }
19965ac_res=$ac_cv_search_dlopen
19966if test "$ac_res" != no; then :
19967 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19968
19969$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19970
19971 if test "$ac_cv_search_dlopen" != "none required" ; then
19972 LIBADD_DLOPEN="-ldl"
19973 fi
19974 libltdl_cv_lib_dl_dlopen="yes"
19975 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19976else
19977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19978/* end confdefs.h. */
19979#if HAVE_DLFCN_H
19980# include <dlfcn.h>
19981#endif
19982
19983int
19984main ()
19985{
19986dlopen(0, 0);
19987 ;
19988 return 0;
19989}
19990_ACEOF
19991if ac_fn_c_try_link "$LINENO"; then :
19992
19993$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19994
19995 libltdl_cv_func_dlopen="yes"
19996 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19997else
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19999$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020000if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020001 $as_echo_n "(cached) " >&6
20002else
20003 ac_check_lib_save_LIBS=$LIBS
20004LIBS="-lsvld $LIBS"
20005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20006/* end confdefs.h. */
20007
20008/* Override any GCC internal prototype to avoid an error.
20009 Use char because int might match the return type of a GCC
20010 builtin and then its argument prototype would still apply. */
20011#ifdef __cplusplus
20012extern "C"
20013#endif
20014char dlopen ();
20015int
20016main ()
20017{
20018return dlopen ();
20019 ;
20020 return 0;
20021}
20022_ACEOF
20023if ac_fn_c_try_link "$LINENO"; then :
20024 ac_cv_lib_svld_dlopen=yes
20025else
20026 ac_cv_lib_svld_dlopen=no
20027fi
20028rm -f core conftest.err conftest.$ac_objext \
20029 conftest$ac_exeext conftest.$ac_ext
20030LIBS=$ac_check_lib_save_LIBS
20031fi
20032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20033$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020034if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020035
20036$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20037
20038 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20039 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20040fi
20041
20042fi
20043rm -f core conftest.err conftest.$ac_objext \
20044 conftest$ac_exeext conftest.$ac_ext
20045fi
20046
20047if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20048then
20049 lt_save_LIBS="$LIBS"
20050 LIBS="$LIBS $LIBADD_DLOPEN"
20051 for ac_func in dlerror
20052do :
20053 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020054if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020055 cat >>confdefs.h <<_ACEOF
20056#define HAVE_DLERROR 1
20057_ACEOF
20058
20059fi
20060done
20061
20062 LIBS="$lt_save_LIBS"
20063fi
20064
20065
20066LIBADD_SHL_LOAD=
20067ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020068if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020069
20070$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20071
20072 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20073else
20074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20075$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020076if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020077 $as_echo_n "(cached) " >&6
20078else
20079 ac_check_lib_save_LIBS=$LIBS
20080LIBS="-ldld $LIBS"
20081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20082/* end confdefs.h. */
20083
20084/* Override any GCC internal prototype to avoid an error.
20085 Use char because int might match the return type of a GCC
20086 builtin and then its argument prototype would still apply. */
20087#ifdef __cplusplus
20088extern "C"
20089#endif
20090char shl_load ();
20091int
20092main ()
20093{
20094return shl_load ();
20095 ;
20096 return 0;
20097}
20098_ACEOF
20099if ac_fn_c_try_link "$LINENO"; then :
20100 ac_cv_lib_dld_shl_load=yes
20101else
20102 ac_cv_lib_dld_shl_load=no
20103fi
20104rm -f core conftest.err conftest.$ac_objext \
20105 conftest$ac_exeext conftest.$ac_ext
20106LIBS=$ac_check_lib_save_LIBS
20107fi
20108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20109$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020110if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020111
20112$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20113
20114 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20115 LIBADD_SHL_LOAD="-ldld"
20116fi
20117
20118fi
20119
20120
20121
20122case $host_os in
20123darwin[1567].*)
20124# We only want this for pre-Mac OS X 10.4.
20125 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020126if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020127
20128$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20129
20130 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20131fi
20132
20133 ;;
20134beos*)
20135 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20136 ;;
20137cygwin* | mingw* | os2* | pw32*)
20138 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20139"
cristyda16f162011-02-19 23:52:17 +000020140if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020141 ac_have_decl=1
20142else
20143 ac_have_decl=0
20144fi
20145
20146cat >>confdefs.h <<_ACEOF
20147#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20148_ACEOF
20149
20150 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20151 ;;
20152esac
20153
20154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20155$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020156if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020157 $as_echo_n "(cached) " >&6
20158else
20159 ac_check_lib_save_LIBS=$LIBS
20160LIBS="-ldld $LIBS"
20161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20162/* end confdefs.h. */
20163
20164/* Override any GCC internal prototype to avoid an error.
20165 Use char because int might match the return type of a GCC
20166 builtin and then its argument prototype would still apply. */
20167#ifdef __cplusplus
20168extern "C"
20169#endif
20170char dld_link ();
20171int
20172main ()
20173{
20174return dld_link ();
20175 ;
20176 return 0;
20177}
20178_ACEOF
20179if ac_fn_c_try_link "$LINENO"; then :
20180 ac_cv_lib_dld_dld_link=yes
20181else
20182 ac_cv_lib_dld_dld_link=no
20183fi
20184rm -f core conftest.err conftest.$ac_objext \
20185 conftest$ac_exeext conftest.$ac_ext
20186LIBS=$ac_check_lib_save_LIBS
20187fi
20188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20189$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020190if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020191
20192$as_echo "#define HAVE_DLD 1" >>confdefs.h
20193
20194 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20195fi
20196
20197
20198
20199
20200LT_DLPREOPEN=
20201if test -n "$LT_DLLOADERS"
20202then
20203 for lt_loader in $LT_DLLOADERS; do
20204 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20205 done
20206
20207$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20208
20209fi
20210
20211
20212LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20213
20214
20215ac_ext=c
20216ac_cpp='$CPP $CPPFLAGS'
20217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20219ac_compiler_gnu=$ac_cv_c_compiler_gnu
20220
20221
20222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20223$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020224if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020225 $as_echo_n "(cached) " >&6
20226else
20227 lt_cv_sys_symbol_underscore=no
20228 cat > conftest.$ac_ext <<_LT_EOF
20229void nm_test_func(){}
20230int main(){nm_test_func;return 0;}
20231_LT_EOF
20232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20233 (eval $ac_compile) 2>&5
20234 ac_status=$?
20235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20236 test $ac_status = 0; }; then
20237 # Now try to grab the symbols.
20238 ac_nlist=conftest.nm
20239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20240 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20241 ac_status=$?
20242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20243 test $ac_status = 0; } && test -s "$ac_nlist"; then
20244 # See whether the symbols have a leading underscore.
20245 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20246 lt_cv_sys_symbol_underscore=yes
20247 else
20248 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20249 :
20250 else
20251 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20252 fi
20253 fi
20254 else
20255 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20256 fi
20257 else
20258 echo "configure: failed program was:" >&5
20259 cat conftest.c >&5
20260 fi
20261 rm -rf conftest*
20262
20263fi
20264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20265$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20266 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20267
20268
20269if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20270 if test x"$libltdl_cv_func_dlopen" = xyes ||
20271 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20273$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020274if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020275 $as_echo_n "(cached) " >&6
20276else
20277 libltdl_cv_need_uscore=unknown
20278 save_LIBS="$LIBS"
20279 LIBS="$LIBS $LIBADD_DLOPEN"
20280 if test "$cross_compiling" = yes; then :
20281 libltdl_cv_need_uscore=cross
20282else
20283 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20284 lt_status=$lt_dlunknown
20285 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020286#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020287#include "confdefs.h"
20288
20289#if HAVE_DLFCN_H
20290#include <dlfcn.h>
20291#endif
20292
20293#include <stdio.h>
20294
20295#ifdef RTLD_GLOBAL
20296# define LT_DLGLOBAL RTLD_GLOBAL
20297#else
20298# ifdef DL_GLOBAL
20299# define LT_DLGLOBAL DL_GLOBAL
20300# else
20301# define LT_DLGLOBAL 0
20302# endif
20303#endif
20304
20305/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20306 find out it does not work in some platform. */
20307#ifndef LT_DLLAZY_OR_NOW
20308# ifdef RTLD_LAZY
20309# define LT_DLLAZY_OR_NOW RTLD_LAZY
20310# else
20311# ifdef DL_LAZY
20312# define LT_DLLAZY_OR_NOW DL_LAZY
20313# else
20314# ifdef RTLD_NOW
20315# define LT_DLLAZY_OR_NOW RTLD_NOW
20316# else
20317# ifdef DL_NOW
20318# define LT_DLLAZY_OR_NOW DL_NOW
20319# else
20320# define LT_DLLAZY_OR_NOW 0
20321# endif
20322# endif
20323# endif
20324# endif
20325#endif
20326
cristy0c60a692010-11-04 01:09:47 +000020327/* When -fvisbility=hidden is used, assume the code has been annotated
20328 correspondingly for the symbols needed. */
20329#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020330int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020331#endif
20332
cristyda16f162011-02-19 23:52:17 +000020333int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020334int main ()
20335{
20336 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20337 int status = $lt_dlunknown;
20338
20339 if (self)
20340 {
20341 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020342 else
20343 {
20344 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20345 else puts (dlerror ());
20346 }
cristy73bd4a52010-10-05 11:24:23 +000020347 /* dlclose (self); */
20348 }
20349 else
20350 puts (dlerror ());
20351
20352 return status;
20353}
20354_LT_EOF
20355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20356 (eval $ac_link) 2>&5
20357 ac_status=$?
20358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20359 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20360 (./conftest; exit; ) >&5 2>/dev/null
20361 lt_status=$?
20362 case x$lt_status in
20363 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20364 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20365 x$lt_dlunknown|x*) ;;
20366 esac
20367 else :
20368 # compilation failed
20369
20370 fi
20371fi
20372rm -fr conftest*
20373
20374 LIBS="$save_LIBS"
20375
20376fi
20377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20378$as_echo "$libltdl_cv_need_uscore" >&6; }
20379 fi
20380fi
20381
20382if test x"$libltdl_cv_need_uscore" = xyes; then
20383
20384$as_echo "#define NEED_USCORE 1" >>confdefs.h
20385
20386fi
20387
20388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20389$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020390if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020391 $as_echo_n "(cached) " >&6
20392else
20393 # PORTME does your system automatically load deplibs for dlopen?
20394 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20395 # For now, we just catch OSes we know something about -- in the
20396 # future, we'll try test this programmatically.
20397 lt_cv_sys_dlopen_deplibs=unknown
20398 case $host_os in
20399 aix3*|aix4.1.*|aix4.2.*)
20400 # Unknown whether this is true for these versions of AIX, but
20401 # we want this `case' here to explicitly catch those versions.
20402 lt_cv_sys_dlopen_deplibs=unknown
20403 ;;
20404 aix[4-9]*)
20405 lt_cv_sys_dlopen_deplibs=yes
20406 ;;
20407 amigaos*)
20408 case $host_cpu in
20409 powerpc)
20410 lt_cv_sys_dlopen_deplibs=no
20411 ;;
20412 esac
20413 ;;
20414 darwin*)
20415 # Assuming the user has installed a libdl from somewhere, this is true
20416 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20417 lt_cv_sys_dlopen_deplibs=yes
20418 ;;
20419 freebsd* | dragonfly*)
20420 lt_cv_sys_dlopen_deplibs=yes
20421 ;;
cristy0c60a692010-11-04 01:09:47 +000020422 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020423 # GNU and its variants, using gnu ld.so (Glibc)
20424 lt_cv_sys_dlopen_deplibs=yes
20425 ;;
20426 hpux10*|hpux11*)
20427 lt_cv_sys_dlopen_deplibs=yes
20428 ;;
20429 interix*)
20430 lt_cv_sys_dlopen_deplibs=yes
20431 ;;
20432 irix[12345]*|irix6.[01]*)
20433 # Catch all versions of IRIX before 6.2, and indicate that we don't
20434 # know how it worked for any of those versions.
20435 lt_cv_sys_dlopen_deplibs=unknown
20436 ;;
20437 irix*)
20438 # The case above catches anything before 6.2, and it's known that
20439 # at 6.2 and later dlopen does load deplibs.
20440 lt_cv_sys_dlopen_deplibs=yes
20441 ;;
20442 netbsd*)
20443 lt_cv_sys_dlopen_deplibs=yes
20444 ;;
20445 openbsd*)
20446 lt_cv_sys_dlopen_deplibs=yes
20447 ;;
20448 osf[1234]*)
20449 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20450 # it did *not* use an RPATH in a shared library to find objects the
20451 # library depends on, so we explicitly say `no'.
20452 lt_cv_sys_dlopen_deplibs=no
20453 ;;
20454 osf5.0|osf5.0a|osf5.1)
20455 # dlopen *does* load deplibs and with the right loader patch applied
20456 # it even uses RPATH in a shared library to search for shared objects
20457 # that the library depends on, but there's no easy way to know if that
20458 # patch is installed. Since this is the case, all we can really
20459 # say is unknown -- it depends on the patch being installed. If
20460 # it is, this changes to `yes'. Without it, it would be `no'.
20461 lt_cv_sys_dlopen_deplibs=unknown
20462 ;;
20463 osf*)
20464 # the two cases above should catch all versions of osf <= 5.1. Read
20465 # the comments above for what we know about them.
20466 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20467 # is used to find them so we can finally say `yes'.
20468 lt_cv_sys_dlopen_deplibs=yes
20469 ;;
20470 qnx*)
20471 lt_cv_sys_dlopen_deplibs=yes
20472 ;;
20473 solaris*)
20474 lt_cv_sys_dlopen_deplibs=yes
20475 ;;
20476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20477 libltdl_cv_sys_dlopen_deplibs=yes
20478 ;;
20479 esac
20480
20481fi
20482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20483$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20484if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20485
20486$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20487
20488fi
20489
20490:
20491
20492for ac_header in argz.h
20493do :
20494 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20495"
cristyda16f162011-02-19 23:52:17 +000020496if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020497 cat >>confdefs.h <<_ACEOF
20498#define HAVE_ARGZ_H 1
20499_ACEOF
20500
20501fi
20502
20503done
20504
20505
20506ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20507# include <argz.h>
20508#endif
20509"
cristyda16f162011-02-19 23:52:17 +000020510if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020511
20512cat >>confdefs.h <<_ACEOF
20513#define HAVE_ERROR_T 1
20514_ACEOF
20515
20516
20517else
20518
20519$as_echo "#define error_t int" >>confdefs.h
20520
20521
20522$as_echo "#define __error_t_defined 1" >>confdefs.h
20523
20524fi
20525
20526
20527ARGZ_H=
20528for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20529 argz_next argz_stringify
20530do :
20531 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20532ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020533if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020534 cat >>confdefs.h <<_ACEOF
20535#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20536_ACEOF
20537
20538else
20539 ARGZ_H=argz.h;
20540
20541 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20542
20543fi
20544done
20545
20546
20547if test -z "$ARGZ_H"; then :
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20549$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020550if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020551 $as_echo_n "(cached) " >&6
20552else
20553 case $host_os in #(
20554 *cygwin*)
20555 lt_cv_sys_argz_works=no
20556 if test "$cross_compiling" != no; then
20557 lt_cv_sys_argz_works="guessing no"
20558 else
20559 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20560 save_IFS=$IFS
20561 IFS=-.
20562 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20563 IFS=$save_IFS
20564 lt_os_major=${2-0}
20565 lt_os_minor=${3-0}
20566 lt_os_micro=${4-0}
20567 if test "$lt_os_major" -gt 1 \
20568 || { test "$lt_os_major" -eq 1 \
20569 && { test "$lt_os_minor" -gt 5 \
20570 || { test "$lt_os_minor" -eq 5 \
20571 && test "$lt_os_micro" -gt 24; }; }; }; then
20572 lt_cv_sys_argz_works=yes
20573 fi
20574 fi
20575 ;; #(
20576 *) lt_cv_sys_argz_works=yes ;;
20577 esac
20578fi
20579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20580$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020581 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020582
20583$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20584
20585else
20586 ARGZ_H=argz.h
20587
20588
20589 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20590
20591fi
20592fi
20593
20594
20595
20596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20597$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020598if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020599 $as_echo_n "(cached) " >&6
20600else
20601 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20602 libltdl_cv_preloaded_symbols=yes
20603 else
20604 libltdl_cv_preloaded_symbols=no
20605 fi
20606
20607fi
20608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20609$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20610if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20611
20612$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20613
20614fi
20615
20616# Set options
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628# Check whether --with-included_ltdl was given.
20629if test "${with_included_ltdl+set}" = set; then :
20630 withval=$with_included_ltdl;
20631fi
20632
20633
20634if test "x$with_included_ltdl" != xyes; then
20635 # We are not being forced to use the included libltdl sources, so
20636 # decide whether there is a useful installed version we can use.
20637 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20638
20639"
cristyda16f162011-02-19 23:52:17 +000020640if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020641 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20642 #include <ltdl.h>
20643"
cristyda16f162011-02-19 23:52:17 +000020644if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20646$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020647if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020648 $as_echo_n "(cached) " >&6
20649else
20650 ac_check_lib_save_LIBS=$LIBS
20651LIBS="-lltdl $LIBS"
20652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20653/* end confdefs.h. */
20654
20655/* Override any GCC internal prototype to avoid an error.
20656 Use char because int might match the return type of a GCC
20657 builtin and then its argument prototype would still apply. */
20658#ifdef __cplusplus
20659extern "C"
20660#endif
20661char lt_dladvise_preload ();
20662int
20663main ()
20664{
20665return lt_dladvise_preload ();
20666 ;
20667 return 0;
20668}
20669_ACEOF
20670if ac_fn_c_try_link "$LINENO"; then :
20671 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20672else
20673 ac_cv_lib_ltdl_lt_dladvise_preload=no
20674fi
20675rm -f core conftest.err conftest.$ac_objext \
20676 conftest$ac_exeext conftest.$ac_ext
20677LIBS=$ac_check_lib_save_LIBS
20678fi
20679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20680$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020681if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020682 with_included_ltdl=no
20683else
20684 with_included_ltdl=yes
20685fi
20686
20687else
20688 with_included_ltdl=yes
20689fi
20690
20691else
20692 with_included_ltdl=yes
20693fi
20694
20695
20696fi
20697
20698
20699
20700
20701# Check whether --with-ltdl_include was given.
20702if test "${with_ltdl_include+set}" = set; then :
20703 withval=$with_ltdl_include;
20704fi
20705
20706
20707if test -n "$with_ltdl_include"; then
20708 if test -f "$with_ltdl_include/ltdl.h"; then :
20709 else
cristy98dddb52010-11-04 00:30:15 +000020710 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020711 fi
20712else
20713 with_ltdl_include=no
20714fi
20715
20716
20717# Check whether --with-ltdl_lib was given.
20718if test "${with_ltdl_lib+set}" = set; then :
20719 withval=$with_ltdl_lib;
20720fi
20721
20722
20723if test -n "$with_ltdl_lib"; then
20724 if test -f "$with_ltdl_lib/libltdl.la"; then :
20725 else
cristy98dddb52010-11-04 00:30:15 +000020726 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020727 fi
20728else
20729 with_ltdl_lib=no
20730fi
20731
20732case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20733 ,yes,no,no,)
20734 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020735 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020736 "") enable_ltdl_convenience=yes
20737 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20738esac
20739LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20740LTDLDEPS=$LIBLTDL
20741LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20742
20743
20744
20745
20746
20747# For backwards non-gettext consistent compatibility...
20748INCLTDL="$LTDLINCL"
20749
20750
20751 ;;
20752 ,no,no,no,)
20753 # If the included ltdl is not to be used, then use the
20754 # preinstalled libltdl we found.
20755
20756$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20757
20758 LIBLTDL=-lltdl
20759 LTDLDEPS=
20760 LTDLINCL=
20761 ;;
20762 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020763 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020764 ;;
20765 *) with_included_ltdl=no
20766 LIBLTDL="-L$with_ltdl_lib -lltdl"
20767 LTDLDEPS=
20768 LTDLINCL="-I$with_ltdl_include"
20769 ;;
20770esac
20771INCLTDL="$LTDLINCL"
20772
20773# Report our decision...
20774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20775$as_echo_n "checking where to find libltdl headers... " >&6; }
20776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20777$as_echo "$LTDLINCL" >&6; }
20778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20779$as_echo_n "checking where to find libltdl library... " >&6; }
20780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20781$as_echo "$LIBLTDL" >&6; }
20782
20783
20784
20785# Check whether --enable-ltdl-install was given.
20786if test "${enable_ltdl_install+set}" = set; then :
20787 enableval=$enable_ltdl_install;
20788fi
20789
20790
20791case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20792 *yes*) ;;
20793 *) enable_ltdl_convenience=yes ;;
20794esac
20795
20796 if test x"${enable_ltdl_install-no}" != xno; then
20797 INSTALL_LTDL_TRUE=
20798 INSTALL_LTDL_FALSE='#'
20799else
20800 INSTALL_LTDL_TRUE='#'
20801 INSTALL_LTDL_FALSE=
20802fi
20803
20804 if test x"${enable_ltdl_convenience-no}" != xno; then
20805 CONVENIENCE_LTDL_TRUE=
20806 CONVENIENCE_LTDL_FALSE='#'
20807else
20808 CONVENIENCE_LTDL_TRUE='#'
20809 CONVENIENCE_LTDL_FALSE=
20810fi
20811
20812
20813
20814
20815
20816
cristy73bd4a52010-10-05 11:24:23 +000020817# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20818# the user used. This is so that ltdl.h can pick up the parent projects
20819# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20820# definitions required by ltdl.c.
20821# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20822
20823
20824
20825for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20826do :
20827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20828ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20829"
cristy98dddb52010-11-04 00:30:15 +000020830if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020831 cat >>confdefs.h <<_ACEOF
20832#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20833_ACEOF
20834
20835fi
20836
20837done
20838
20839
20840for ac_func in closedir opendir readdir
20841do :
20842 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20843ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020844if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020845 cat >>confdefs.h <<_ACEOF
20846#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20847_ACEOF
20848
20849else
20850
20851
20852 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20853
20854fi
20855done
20856
20857for ac_func in strlcat strlcpy
20858do :
20859 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20860ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020861if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020862 cat >>confdefs.h <<_ACEOF
20863#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20864_ACEOF
20865
20866else
20867
20868
20869 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20870
20871fi
20872done
20873
20874
20875
20876cat >>confdefs.h <<_ACEOF
20877#define LT_LIBEXT "$libext"
20878_ACEOF
20879
20880
cristyda16f162011-02-19 23:52:17 +000020881name=
20882eval "lt_libprefix=\"$libname_spec\""
20883
20884cat >>confdefs.h <<_ACEOF
20885#define LT_LIBPREFIX "$lt_libprefix"
20886_ACEOF
20887
20888
cristy73bd4a52010-10-05 11:24:23 +000020889name=ltdl
cristyda16f162011-02-19 23:52:17 +000020890eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000020891
20892
20893
20894
20895
20896
20897
20898
20899# Only expand once:
20900
20901
cristy3ed852e2009-09-05 21:47:34 +000020902
20903# Check to see if building shared libraries
20904libtool_build_shared_libs='no'
20905if test "$enable_shared" = 'yes'; then
20906 libtool_build_shared_libs='yes'
20907fi
20908
20909# Check to see if building static libraries
20910libtool_build_static_libs='no'
20911if test "$enable_static" = 'yes'; then
20912 libtool_build_static_libs='yes'
20913fi
20914
cristy73bd4a52010-10-05 11:24:23 +000020915 if test "${libtool_build_shared_libs}" = 'yes'; then
20916 WITH_SHARED_LIBS_TRUE=
20917 WITH_SHARED_LIBS_FALSE='#'
20918else
20919 WITH_SHARED_LIBS_TRUE='#'
20920 WITH_SHARED_LIBS_FALSE=
20921fi
20922
cristy3ed852e2009-09-05 21:47:34 +000020923#
20924# Enable support for building loadable modules
20925#
20926
20927# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020928if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020929 withval=$with_modules; with_modules=$withval
20930else
cristy5a1cefd2010-01-06 20:42:35 +000020931 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020932fi
20933
20934
20935# Only allow building loadable modules if we are building shared libraries
20936if test "$with_modules" != 'no' ; then
20937 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020938 { $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 +000020939$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20940 with_modules='no'
20941 fi
20942fi
20943if test "$with_modules" != 'no'; then
20944
cristy8b350f62009-11-15 23:12:43 +000020945$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020946
20947fi
cristy73bd4a52010-10-05 11:24:23 +000020948 if test "$with_modules" != 'no'; then
20949 WITH_MODULES_TRUE=
20950 WITH_MODULES_FALSE='#'
20951else
20952 WITH_MODULES_TRUE='#'
20953 WITH_MODULES_FALSE=
20954fi
20955
cristy3ed852e2009-09-05 21:47:34 +000020956
20957# Enable building/use of libltdl if we are building shared libraries regardless
20958# of whether modules are built or not.
20959with_ltdl='no'
20960if test "$libtool_build_shared_libs" != 'no'; then
20961 with_ltdl='yes'
20962fi
20963
cristy73bd4a52010-10-05 11:24:23 +000020964 if test "$with_ltdl" != 'no'; then
20965 WITH_LTDL_TRUE=
20966 WITH_LTDL_FALSE='#'
20967else
20968 WITH_LTDL_TRUE='#'
20969 WITH_LTDL_FALSE=
20970fi
20971
cristy3ed852e2009-09-05 21:47:34 +000020972if test "$with_ltdl" != 'no'; then
20973
cristy8b350f62009-11-15 23:12:43 +000020974$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020975
20976
20977 # Set DLLDFLAGS
20978 if test X"$enable_shared" = Xyes; then
20979 DLLDFLAGS=-export-dynamic
20980
20981 fi
20982fi
20983
20984# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020985# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020986# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020987if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020988 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20989else
20990 enable_delegate_build='no'
20991fi
20992
20993
20994# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020995if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020996 enableval=$enable_deprecated; enable_deprecated=$enableval
20997else
20998 enable_deprecated='no'
20999fi
21000
21001
21002if test "$enable_deprecated" = 'yes'; then
21003
cristy8b350f62009-11-15 23:12:43 +000021004$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021005
21006else
21007 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21008fi
21009
21010# Build a version of ImageMagick which operates uninstalled.
21011# Used to build distributions located via MAGICK_HOME / executable path
21012# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021013if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021014 enableval=$enable_installed; enable_installed=$enableval
21015else
21016 enable_installed='yes'
21017fi
21018
21019
21020if test "$enable_installed" = 'yes'; then
21021
cristy8b350f62009-11-15 23:12:43 +000021022$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021023
21024else
21025 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21026fi
21027
21028# Permit enciphering and deciphering image pixels.
21029# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021030if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021031 enableval=$enable_cipher; enable_cipher=$enableval
21032else
21033 enable_cipher='yes'
21034fi
21035
21036
21037if test "$enable_cipher" = 'yes'; then
21038
cristy8b350f62009-11-15 23:12:43 +000021039$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021040
21041fi
21042
21043# Build an embeddable version of ImageMagick.
21044# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000021045if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021046 enableval=$enable_embeddable; enable_embeddable=$enableval
21047else
21048 enable_embeddable='no'
21049fi
21050
21051
21052if test "$enable_embeddable" = 'yes'; then
21053
cristy8b350f62009-11-15 23:12:43 +000021054$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021055
21056fi
21057
21058# Build a high dynamic range version of ImageMagick.
21059# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021060if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021061 enableval=$enable_hdri; enable_hdri=$enableval
21062else
21063 enable_hdri='no'
21064fi
21065
21066
21067MAGICK_HDRI=""
21068if test "$enable_hdri" = 'yes'; then
21069 MAGICK_HDRI="HDRI"
21070
cristy8b350f62009-11-15 23:12:43 +000021071$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021072
cristyfd9dcd42010-08-08 18:07:02 +000021073 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021074fi
21075
cristy3ed852e2009-09-05 21:47:34 +000021076# Build a version of ImageMagick with assert statements.
21077# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021078if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021079 enableval=$enable_assert; enable_assert=$enableval
21080else
21081 enable_assert='yes'
21082fi
21083
21084
21085if test "$enable_assert" = 'no'; then
21086
cristy8b350f62009-11-15 23:12:43 +000021087$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021088
21089fi
21090
21091# Add configure option --enable-maintainer-mode which enables dependency
21092# checking and generation useful to package maintainers. This is made an
21093# option to avoid confusing end users.
cristy73bd4a52010-10-05 11:24:23 +000021094
21095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21096$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21097 # Check whether --enable-maintainer-mode was given.
21098if test "${enable_maintainer_mode+set}" = set; then :
21099 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21100else
21101 USE_MAINTAINER_MODE=no
21102fi
21103
21104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21105$as_echo "$USE_MAINTAINER_MODE" >&6; }
21106 if test $USE_MAINTAINER_MODE = yes; then
21107 MAINTAINER_MODE_TRUE=
21108 MAINTAINER_MODE_FALSE='#'
21109else
21110 MAINTAINER_MODE_TRUE='#'
21111 MAINTAINER_MODE_FALSE=
21112fi
21113
21114 MAINT=$MAINTAINER_MODE_TRUE
21115
21116
cristy3ed852e2009-09-05 21:47:34 +000021117
21118
21119# Enable ccmalloc memory debugging support
21120# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021121if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021122 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21123else
21124 enable_ccmalloc='no'
21125fi
21126
21127
21128# Enable Electric Fence memory debugging support
21129# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021130if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021131 enableval=$enable_efence; enable_efence=$enableval
21132else
21133 enable_efence='no'
21134fi
21135
21136
21137# Enable prof-based profiling support
21138# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021139if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021140 enableval=$enable_prof; enable_prof=$enableval
21141else
21142 enable_prof='no'
21143fi
21144
21145
21146# Enable gprof-based profiling support
21147# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021148if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021149 enableval=$enable_gprof; enable_gprof=$enableval
21150else
21151 enable_gprof='no'
21152fi
21153
21154
21155# Enable gcov-based profiling support
21156# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021157if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021158 enableval=$enable_gcov; enable_gcov=$enableval
21159else
21160 enable_gcov='no'
21161fi
21162
21163
21164enable_profiling='no'
21165if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21166 enable_profiling='yes'
21167 if test "$libtool_build_shared_libs" = 'yes'; then
21168 echo "Warning: Can not profile code using shared libraries"
21169 fi
21170fi
21171
21172# Magick API method prefix
21173
21174# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021175if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021176 withval=$with_method_prefix; with_method_prefix=$enableval
21177else
21178 with_method_prefix=''
21179fi
21180
21181
21182if test "$with_method_prefix" != ''; then
21183
21184cat >>confdefs.h <<_ACEOF
21185#define NAMESPACE_PREFIX $with_method_prefix
21186_ACEOF
21187
21188fi
21189
21190# Number of bits in a Quantum
21191
21192# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021193if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021194 withval=$with_quantum_depth; with_quantum_depth=$withval
21195else
21196 with_quantum_depth=16
21197fi
21198
21199
21200if test "$with_quantum_depth" != '8'; then
21201 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21202fi
21203
21204case "${with_quantum_depth}" in
21205 8 ) ;;
21206 16 ) ;;
21207 32 ) ;;
21208 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021209 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021210esac
21211QUANTUM_DEPTH="$with_quantum_depth"
21212
21213cat >>confdefs.h <<_ACEOF
21214#define QUANTUM_DEPTH $QUANTUM_DEPTH
21215_ACEOF
21216
21217
21218# Set pixel cache threshold
21219
21220# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021221if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021222 withval=$with_cache; with_cache=$withval
21223else
21224 with_cache=''
21225fi
21226
21227
21228if test "$with_cache" != ''; then
21229
21230cat >>confdefs.h <<_ACEOF
21231#define PixelCacheThreshold $with_cache
21232_ACEOF
21233
21234 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21235fi
21236
21237# Disable/Enable support for full delegate paths
21238
21239# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021240if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021241 withval=$with_frozenpaths; with_frozenpaths=$withval
21242else
21243 with_frozenpaths='no'
21244fi
21245
21246
21247# Enable build/install of Magick++
21248
21249# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021250if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021251 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21252else
21253 with_magick_plus_plus='yes'
21254fi
21255
21256
21257# Disable build/install of PerlMagick.
21258
21259# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021260if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021261 withval=$with_perl; with_perl=$withval
21262else
cristyb5f4e2f2010-04-25 00:49:11 +000021263 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021264fi
21265
21266
21267# Options to pass when configuring PerlMagick
21268
21269# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021270if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021271 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021272fi
21273
21274
cristy3ed852e2009-09-05 21:47:34 +000021275
21276# Enable umem, object-caching memory allocation library.
21277
21278# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021279if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021280 withval=$with_umem; with_umem=$withval
21281else
21282 with_umem='no'
21283fi
21284
21285if test "$with_umem" != 'yes' ; then
21286 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21287fi
21288
21289#
21290# Specify path to shared libstdc++ if not in normal location
21291#
21292
21293# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021294if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021295 withval=$with_libstdc; with_libstdc=$withval
21296else
21297 with_libstdc=''
21298fi
21299
21300
21301if test "$with_libstdc" != ''; then
21302 if test -d "$with_libstdc"; then
21303 LIBSTDCLDFLAGS="-L$with_libstdc"
21304 fi
21305fi
21306
21307
21308# Does gcc required -traditional?
21309if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021311$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021312if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021313 $as_echo_n "(cached) " >&6
21314else
21315 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021317/* end confdefs.h. */
21318#include <sgtty.h>
21319Autoconf TIOCGETP
21320_ACEOF
21321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021322 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021323 ac_cv_prog_gcc_traditional=yes
21324else
21325 ac_cv_prog_gcc_traditional=no
21326fi
21327rm -f conftest*
21328
21329
21330 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021332/* end confdefs.h. */
21333#include <termio.h>
21334Autoconf TCGETA
21335_ACEOF
21336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021337 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021338 ac_cv_prog_gcc_traditional=yes
21339fi
21340rm -f conftest*
21341
21342 fi
21343fi
cristy8b350f62009-11-15 23:12:43 +000021344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021345$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21346 if test $ac_cv_prog_gcc_traditional = yes; then
21347 CC="$CC -traditional"
21348 fi
21349fi
21350
21351
21352########
21353#
21354# Set defines required to build DLLs and modules using MinGW
21355#
21356########
21357# These options are set for multi-thread DLL module build
21358# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21359# module: _DLL
21360# executable/Magick++: _DLL _MAGICKMOD_
21361MODULE_EXTRA_CPPFLAGS=''
21362LIBRARY_EXTRA_CPPFLAGS=''
21363if test "${native_win32_build}" = 'yes'; then
21364 if test "${libtool_build_shared_libs}" = 'yes'; then
21365 CPPFLAGS="$CPPFLAGS -D_DLL"
21366 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21367 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21368 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21369 if test "$with_modules" = 'yes'; then
21370 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21371 else
21372 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21373 fi
21374 else
21375 CPPFLAGS="$CPPFLAGS -D_LIB"
21376 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21377 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21378 fi
21379 if test "$with_threads" = 'yes'; then
21380 CPPFLAGS="$CPPFLAGS -D_MT"
21381 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21382 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21383 fi
21384fi
21385
21386
21387
21388# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021390$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021391if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021392 $as_echo_n "(cached) " >&6
21393else
cristy8b350f62009-11-15 23:12:43 +000021394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021395/* end confdefs.h. */
21396#include <stdlib.h>
21397#include <stdarg.h>
21398#include <string.h>
21399#include <float.h>
21400
21401int
21402main ()
21403{
21404
21405 ;
21406 return 0;
21407}
21408_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021409if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021410 ac_cv_header_stdc=yes
21411else
cristy8b350f62009-11-15 23:12:43 +000021412 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021413fi
cristy3ed852e2009-09-05 21:47:34 +000021414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21415
21416if test $ac_cv_header_stdc = yes; then
21417 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021419/* end confdefs.h. */
21420#include <string.h>
21421
21422_ACEOF
21423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021424 $EGREP "memchr" >/dev/null 2>&1; then :
21425
cristy3ed852e2009-09-05 21:47:34 +000021426else
21427 ac_cv_header_stdc=no
21428fi
21429rm -f conftest*
21430
21431fi
21432
21433if test $ac_cv_header_stdc = yes; then
21434 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021436/* end confdefs.h. */
21437#include <stdlib.h>
21438
21439_ACEOF
21440if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021441 $EGREP "free" >/dev/null 2>&1; then :
21442
cristy3ed852e2009-09-05 21:47:34 +000021443else
21444 ac_cv_header_stdc=no
21445fi
21446rm -f conftest*
21447
21448fi
21449
21450if test $ac_cv_header_stdc = yes; then
21451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021452 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021453 :
21454else
cristy8b350f62009-11-15 23:12:43 +000021455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021456/* end confdefs.h. */
21457#include <ctype.h>
21458#include <stdlib.h>
21459#if ((' ' & 0x0FF) == 0x020)
21460# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21461# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21462#else
21463# define ISLOWER(c) \
21464 (('a' <= (c) && (c) <= 'i') \
21465 || ('j' <= (c) && (c) <= 'r') \
21466 || ('s' <= (c) && (c) <= 'z'))
21467# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21468#endif
21469
21470#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21471int
21472main ()
21473{
21474 int i;
21475 for (i = 0; i < 256; i++)
21476 if (XOR (islower (i), ISLOWER (i))
21477 || toupper (i) != TOUPPER (i))
21478 return 2;
21479 return 0;
21480}
21481_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021482if ac_fn_c_try_run "$LINENO"; then :
21483
cristy3ed852e2009-09-05 21:47:34 +000021484else
cristy8b350f62009-11-15 23:12:43 +000021485 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021486fi
cristy8b350f62009-11-15 23:12:43 +000021487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21488 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021489fi
21490
cristy3ed852e2009-09-05 21:47:34 +000021491fi
21492fi
cristy8b350f62009-11-15 23:12:43 +000021493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021494$as_echo "$ac_cv_header_stdc" >&6; }
21495if test $ac_cv_header_stdc = yes; then
21496
cristy8b350f62009-11-15 23:12:43 +000021497$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021498
21499fi
21500
21501if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021502 { $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 +000021503 header files. Compilation cannot proceed. Please install the ANSI C
21504 headers and rerun this script." >&5
21505$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21506 header files. Compilation cannot proceed. Please install the ANSI C
21507 headers and rerun this script." >&2;};
21508fi
cristya0b81c32010-01-22 02:54:33 +000021509
21510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21511$as_echo_n "checking whether to enable assertions... " >&6; }
21512 # Check whether --enable-assert was given.
21513if test "${enable_assert+set}" = set; then :
21514 enableval=$enable_assert; ac_enable_assert=$enableval
21515 if test "x$enableval" = xno; then :
21516
21517$as_echo "#define NDEBUG 1" >>confdefs.h
21518
21519elif test "x$enableval" != xyes; then :
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21521$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21522 ac_enable_assert=yes
21523fi
21524else
21525 ac_enable_assert=yes
21526fi
21527
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21529$as_echo "$ac_enable_assert" >&6; }
21530
cristy3ed852e2009-09-05 21:47:34 +000021531ac_header_dirent=no
21532for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21533 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021535$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021536if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021537 $as_echo_n "(cached) " >&6
21538else
cristy8b350f62009-11-15 23:12:43 +000021539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021540/* end confdefs.h. */
21541#include <sys/types.h>
21542#include <$ac_hdr>
21543
21544int
21545main ()
21546{
21547if ((DIR *) 0)
21548return 0;
21549 ;
21550 return 0;
21551}
21552_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021553if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021554 eval "$as_ac_Header=yes"
21555else
cristy8b350f62009-11-15 23:12:43 +000021556 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021557fi
cristy3ed852e2009-09-05 21:47:34 +000021558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21559fi
cristy8b350f62009-11-15 23:12:43 +000021560eval ac_res=\$$as_ac_Header
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021562$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021563if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021564 cat >>confdefs.h <<_ACEOF
21565#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21566_ACEOF
21567
21568ac_header_dirent=$ac_hdr; break
21569fi
21570
21571done
21572# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21573if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021575$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021576if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021577 $as_echo_n "(cached) " >&6
21578else
21579 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021581/* end confdefs.h. */
21582
21583/* Override any GCC internal prototype to avoid an error.
21584 Use char because int might match the return type of a GCC
21585 builtin and then its argument prototype would still apply. */
21586#ifdef __cplusplus
21587extern "C"
21588#endif
21589char opendir ();
21590int
21591main ()
21592{
21593return opendir ();
21594 ;
21595 return 0;
21596}
21597_ACEOF
21598for ac_lib in '' dir; do
21599 if test -z "$ac_lib"; then
21600 ac_res="none required"
21601 else
21602 ac_res=-l$ac_lib
21603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21604 fi
cristy8b350f62009-11-15 23:12:43 +000021605 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021606 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021607fi
cristy8b350f62009-11-15 23:12:43 +000021608rm -f core conftest.err conftest.$ac_objext \
21609 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021610 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021611 break
21612fi
21613done
cristyda16f162011-02-19 23:52:17 +000021614if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021615
cristy3ed852e2009-09-05 21:47:34 +000021616else
21617 ac_cv_search_opendir=no
21618fi
21619rm conftest.$ac_ext
21620LIBS=$ac_func_search_save_LIBS
21621fi
cristy8b350f62009-11-15 23:12:43 +000021622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021623$as_echo "$ac_cv_search_opendir" >&6; }
21624ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021625if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21627
21628fi
21629
21630else
cristy8b350f62009-11-15 23:12:43 +000021631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021632$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021633if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021634 $as_echo_n "(cached) " >&6
21635else
21636 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021638/* end confdefs.h. */
21639
21640/* Override any GCC internal prototype to avoid an error.
21641 Use char because int might match the return type of a GCC
21642 builtin and then its argument prototype would still apply. */
21643#ifdef __cplusplus
21644extern "C"
21645#endif
21646char opendir ();
21647int
21648main ()
21649{
21650return opendir ();
21651 ;
21652 return 0;
21653}
21654_ACEOF
21655for ac_lib in '' x; do
21656 if test -z "$ac_lib"; then
21657 ac_res="none required"
21658 else
21659 ac_res=-l$ac_lib
21660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21661 fi
cristy8b350f62009-11-15 23:12:43 +000021662 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021663 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021664fi
cristy8b350f62009-11-15 23:12:43 +000021665rm -f core conftest.err conftest.$ac_objext \
21666 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021667 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021668 break
21669fi
21670done
cristyda16f162011-02-19 23:52:17 +000021671if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021672
cristy3ed852e2009-09-05 21:47:34 +000021673else
21674 ac_cv_search_opendir=no
21675fi
21676rm conftest.$ac_ext
21677LIBS=$ac_func_search_save_LIBS
21678fi
cristy8b350f62009-11-15 23:12:43 +000021679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021680$as_echo "$ac_cv_search_opendir" >&6; }
21681ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021682if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021683 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21684
21685fi
21686
21687fi
21688
21689
21690# Check additional headers
cristya8549b12011-05-18 19:05:08 +000021691for 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 +000021692do :
21693 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21694ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021695if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021696 cat >>confdefs.h <<_ACEOF
21697#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21698_ACEOF
21699
21700fi
21701
21702done
21703
21704
21705########
21706#
21707# Checks for typedefs, structures, and compiler characteristics.
21708#
21709########
21710
cristy8b350f62009-11-15 23:12:43 +000021711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021712$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021713if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021714 $as_echo_n "(cached) " >&6
21715else
cristy8b350f62009-11-15 23:12:43 +000021716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021717/* end confdefs.h. */
21718
21719#include <stdbool.h>
21720#ifndef bool
21721 "error: bool is not defined"
21722#endif
21723#ifndef false
21724 "error: false is not defined"
21725#endif
21726#if false
21727 "error: false is not 0"
21728#endif
21729#ifndef true
21730 "error: true is not defined"
21731#endif
21732#if true != 1
21733 "error: true is not 1"
21734#endif
21735#ifndef __bool_true_false_are_defined
21736 "error: __bool_true_false_are_defined is not defined"
21737#endif
21738
21739 struct s { _Bool s: 1; _Bool t; } s;
21740
21741 char a[true == 1 ? 1 : -1];
21742 char b[false == 0 ? 1 : -1];
21743 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21744 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021745 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021746 char f[(_Bool) 0.0 == false ? 1 : -1];
21747 char g[true];
21748 char h[sizeof (_Bool)];
21749 char i[sizeof s.t];
21750 enum { j = false, k = true, l = false * true, m = true * 256 };
21751 /* The following fails for
21752 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21753 _Bool n[m];
21754 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21755 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021756 /* Catch a bug in an HP-UX C compiler. See
21757 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21758 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21759 */
21760 _Bool q = true;
21761 _Bool *pq = &q;
21762
21763int
21764main ()
21765{
21766
cristyda16f162011-02-19 23:52:17 +000021767 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021768 *pq |= q;
21769 *pq |= ! q;
21770 /* Refer to every declared value, to avoid compiler optimizations. */
21771 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21772 + !m + !n + !o + !p + !q + !pq);
21773
21774 ;
21775 return 0;
21776}
21777_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021778if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021779 ac_cv_header_stdbool_h=yes
21780else
cristy8b350f62009-11-15 23:12:43 +000021781 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021782fi
cristy3ed852e2009-09-05 21:47:34 +000021783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21784fi
cristy8b350f62009-11-15 23:12:43 +000021785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021786$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021787ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021788if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021789
21790cat >>confdefs.h <<_ACEOF
21791#define HAVE__BOOL 1
21792_ACEOF
21793
21794
21795fi
21796
21797if test $ac_cv_header_stdbool_h = yes; then
21798
cristy8b350f62009-11-15 23:12:43 +000021799$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021800
21801fi
21802
cristy8b350f62009-11-15 23:12:43 +000021803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021804$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021805if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021806 $as_echo_n "(cached) " >&6
21807else
cristy8b350f62009-11-15 23:12:43 +000021808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021809/* end confdefs.h. */
21810
21811int
21812main ()
21813{
21814
21815volatile int x;
21816int * volatile y = (int *) 0;
21817return !x && !y;
21818 ;
21819 return 0;
21820}
21821_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021822if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021823 ac_cv_c_volatile=yes
21824else
cristy8b350f62009-11-15 23:12:43 +000021825 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021826fi
cristy3ed852e2009-09-05 21:47:34 +000021827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21828fi
cristy8b350f62009-11-15 23:12:43 +000021829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021830$as_echo "$ac_cv_c_volatile" >&6; }
21831if test $ac_cv_c_volatile = no; then
21832
cristy8b350f62009-11-15 23:12:43 +000021833$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021834
21835fi
21836
cristy8b350f62009-11-15 23:12:43 +000021837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021838$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021839if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021840 $as_echo_n "(cached) " >&6
21841else
cristy8b350f62009-11-15 23:12:43 +000021842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021843/* end confdefs.h. */
21844#define x(y) #y
21845
21846char *s = x(teststring);
21847_ACEOF
21848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021849 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021850 ac_cv_c_stringize=no
21851else
21852 ac_cv_c_stringize=yes
21853fi
21854rm -f conftest*
21855
21856fi
cristy8b350f62009-11-15 23:12:43 +000021857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021858$as_echo "$ac_cv_c_stringize" >&6; }
21859if test $ac_cv_c_stringize = yes; then
21860
cristy8b350f62009-11-15 23:12:43 +000021861$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021862
21863fi
21864
cristy8b350f62009-11-15 23:12:43 +000021865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021866$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021867if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021868 $as_echo_n "(cached) " >&6
21869else
cristy8b350f62009-11-15 23:12:43 +000021870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021871/* end confdefs.h. */
21872#include <sys/types.h>
21873#include <sys/stat.h>
21874
21875#if defined S_ISBLK && defined S_IFDIR
21876extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21877#endif
21878
21879#if defined S_ISBLK && defined S_IFCHR
21880extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21881#endif
21882
21883#if defined S_ISLNK && defined S_IFREG
21884extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21885#endif
21886
21887#if defined S_ISSOCK && defined S_IFREG
21888extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21889#endif
21890
21891_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021892if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021893 ac_cv_header_stat_broken=no
21894else
cristy8b350f62009-11-15 23:12:43 +000021895 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021896fi
cristy3ed852e2009-09-05 21:47:34 +000021897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21898fi
cristy8b350f62009-11-15 23:12:43 +000021899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021900$as_echo "$ac_cv_header_stat_broken" >&6; }
21901if test $ac_cv_header_stat_broken = yes; then
21902
cristy8b350f62009-11-15 23:12:43 +000021903$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021904
21905fi
21906
cristy8b350f62009-11-15 23:12:43 +000021907{ $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 +000021908$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021909if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021910 $as_echo_n "(cached) " >&6
21911else
cristy8b350f62009-11-15 23:12:43 +000021912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021913/* end confdefs.h. */
21914#include <sys/types.h>
21915#include <sys/time.h>
21916#include <time.h>
21917
21918int
21919main ()
21920{
21921if ((struct tm *) 0)
21922return 0;
21923 ;
21924 return 0;
21925}
21926_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021927if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021928 ac_cv_header_time=yes
21929else
cristy8b350f62009-11-15 23:12:43 +000021930 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021931fi
cristy3ed852e2009-09-05 21:47:34 +000021932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21933fi
cristy8b350f62009-11-15 23:12:43 +000021934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021935$as_echo "$ac_cv_header_time" >&6; }
21936if test $ac_cv_header_time = yes; then
21937
cristy8b350f62009-11-15 23:12:43 +000021938$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021939
21940fi
21941
cristy8b350f62009-11-15 23:12:43 +000021942{ $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 +000021943$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021944if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021945 $as_echo_n "(cached) " >&6
21946else
cristy8b350f62009-11-15 23:12:43 +000021947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021948/* end confdefs.h. */
21949#include <sys/types.h>
21950#include <time.h>
21951
21952int
21953main ()
21954{
21955struct tm tm;
21956 int *p = &tm.tm_sec;
21957 return !p;
21958 ;
21959 return 0;
21960}
21961_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021962if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021963 ac_cv_struct_tm=time.h
21964else
cristy8b350f62009-11-15 23:12:43 +000021965 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021966fi
cristy3ed852e2009-09-05 21:47:34 +000021967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21968fi
cristy8b350f62009-11-15 23:12:43 +000021969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021970$as_echo "$ac_cv_struct_tm" >&6; }
21971if test $ac_cv_struct_tm = sys/time.h; then
21972
cristy8b350f62009-11-15 23:12:43 +000021973$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021974
21975fi
21976
cristy92703d82010-04-26 00:18:18 +000021977ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21978#include <$ac_cv_struct_tm>
21979
21980"
cristyda16f162011-02-19 23:52:17 +000021981if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021982
21983cat >>confdefs.h <<_ACEOF
21984#define HAVE_STRUCT_TM_TM_ZONE 1
21985_ACEOF
21986
21987
21988fi
21989
21990if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21991
21992$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21993
21994else
21995 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21996"
cristyda16f162011-02-19 23:52:17 +000021997if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021998 ac_have_decl=1
21999else
22000 ac_have_decl=0
22001fi
22002
22003cat >>confdefs.h <<_ACEOF
22004#define HAVE_DECL_TZNAME $ac_have_decl
22005_ACEOF
22006
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22008$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022009if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022010 $as_echo_n "(cached) " >&6
22011else
22012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22013/* end confdefs.h. */
22014#include <time.h>
22015#if !HAVE_DECL_TZNAME
22016extern char *tzname[];
22017#endif
22018
22019int
22020main ()
22021{
22022return tzname[0][0];
22023 ;
22024 return 0;
22025}
22026_ACEOF
22027if ac_fn_c_try_link "$LINENO"; then :
22028 ac_cv_var_tzname=yes
22029else
22030 ac_cv_var_tzname=no
22031fi
22032rm -f core conftest.err conftest.$ac_objext \
22033 conftest$ac_exeext conftest.$ac_ext
22034fi
22035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22036$as_echo "$ac_cv_var_tzname" >&6; }
22037 if test $ac_cv_var_tzname = yes; then
22038
22039$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22040
22041 fi
22042fi
22043
cristy8b350f62009-11-15 23:12:43 +000022044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022045$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022046if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022047 $as_echo_n "(cached) " >&6
22048else
22049 echo '#! /bin/cat
22050exit 69
22051' >conftest
22052chmod u+x conftest
22053(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22054if test $? -ne 69; then
22055 ac_cv_sys_interpreter=yes
22056else
22057 ac_cv_sys_interpreter=no
22058fi
22059rm -f conftest
22060fi
cristy8b350f62009-11-15 23:12:43 +000022061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022062$as_echo "$ac_cv_sys_interpreter" >&6; }
22063interpval=$ac_cv_sys_interpreter
22064
22065
cristy3ed852e2009-09-05 21:47:34 +000022066# If the C compiler supports the keyword inline, do nothing. Otherwise
22067# define inline to __inline__ or __inline if it accepts one of those,
22068# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022070$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022071if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022072 $as_echo_n "(cached) " >&6
22073else
22074 ac_cv_c_inline=no
22075for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022077/* end confdefs.h. */
22078#ifndef __cplusplus
22079typedef int foo_t;
22080static $ac_kw foo_t static_foo () {return 0; }
22081$ac_kw foo_t foo () {return 0; }
22082#endif
22083
22084_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022085if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022086 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022087fi
cristy3ed852e2009-09-05 21:47:34 +000022088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22089 test "$ac_cv_c_inline" != no && break
22090done
22091
22092fi
cristy8b350f62009-11-15 23:12:43 +000022093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022094$as_echo "$ac_cv_c_inline" >&6; }
22095
cristy3ed852e2009-09-05 21:47:34 +000022096case $ac_cv_c_inline in
22097 inline | yes) ;;
22098 *)
22099 case $ac_cv_c_inline in
22100 no) ac_val=;;
22101 *) ac_val=$ac_cv_c_inline;;
22102 esac
22103 cat >>confdefs.h <<_ACEOF
22104#ifndef __cplusplus
22105#define inline $ac_val
22106#endif
22107_ACEOF
22108 ;;
22109esac
22110
22111
22112# If the C compiler supports the keyword restrict, do nothing. Otherwise
22113# define restrict to __restrict__ or __restrict if it accepts one of those,
22114# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022116$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022117if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022118 $as_echo_n "(cached) " >&6
22119else
22120 ac_cv_c_restrict=no
22121 # The order here caters to the fact that C++ does not require restrict.
22122 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022124/* end confdefs.h. */
22125typedef int * int_ptr;
22126 int foo (int_ptr $ac_kw ip) {
22127 return ip[0];
22128 }
22129int
22130main ()
22131{
22132int s[1];
22133 int * $ac_kw t = s;
22134 t[0] = 0;
22135 return foo(t)
22136 ;
22137 return 0;
22138}
22139_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022140if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022141 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022142fi
cristy3ed852e2009-09-05 21:47:34 +000022143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22144 test "$ac_cv_c_restrict" != no && break
22145 done
22146
22147fi
cristy8b350f62009-11-15 23:12:43 +000022148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022149$as_echo "$ac_cv_c_restrict" >&6; }
22150
cristy3ed852e2009-09-05 21:47:34 +000022151 case $ac_cv_c_restrict in
22152 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022153 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022154 ;;
22155 *) cat >>confdefs.h <<_ACEOF
22156#define restrict $ac_cv_c_restrict
22157_ACEOF
22158 ;;
22159 esac
22160
22161
22162# If words are stored with the most significant byte first (like
22163# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022165$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022166if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022167 $as_echo_n "(cached) " >&6
22168else
22169 ac_cv_c_bigendian=unknown
22170 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022172/* end confdefs.h. */
22173#ifndef __APPLE_CC__
22174 not a universal capable compiler
22175 #endif
22176 typedef int dummy;
22177
22178_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022179if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022180
22181 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022182 # there are at least two -arch flags with different values.
22183 ac_arch=
22184 ac_prev=
22185 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22186 if test -n "$ac_prev"; then
22187 case $ac_word in
22188 i?86 | x86_64 | ppc | ppc64)
22189 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22190 ac_arch=$ac_word
22191 else
22192 ac_cv_c_bigendian=universal
22193 break
22194 fi
22195 ;;
22196 esac
22197 ac_prev=
22198 elif test "x$ac_word" = "x-arch"; then
22199 ac_prev=arch
22200 fi
22201 done
cristy3ed852e2009-09-05 21:47:34 +000022202fi
cristy3ed852e2009-09-05 21:47:34 +000022203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22204 if test $ac_cv_c_bigendian = unknown; then
22205 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022207/* end confdefs.h. */
22208#include <sys/types.h>
22209 #include <sys/param.h>
22210
22211int
22212main ()
22213{
22214#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22215 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22216 && LITTLE_ENDIAN)
22217 bogus endian macros
22218 #endif
22219
22220 ;
22221 return 0;
22222}
22223_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022224if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022225 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022227/* end confdefs.h. */
22228#include <sys/types.h>
22229 #include <sys/param.h>
22230
22231int
22232main ()
22233{
22234#if BYTE_ORDER != BIG_ENDIAN
22235 not big endian
22236 #endif
22237
22238 ;
22239 return 0;
22240}
22241_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022242if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022243 ac_cv_c_bigendian=yes
22244else
cristy8b350f62009-11-15 23:12:43 +000022245 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022246fi
cristy3ed852e2009-09-05 21:47:34 +000022247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022248fi
cristy3ed852e2009-09-05 21:47:34 +000022249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22250 fi
22251 if test $ac_cv_c_bigendian = unknown; then
22252 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022254/* end confdefs.h. */
22255#include <limits.h>
22256
22257int
22258main ()
22259{
22260#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22261 bogus endian macros
22262 #endif
22263
22264 ;
22265 return 0;
22266}
22267_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022268if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022269 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022271/* end confdefs.h. */
22272#include <limits.h>
22273
22274int
22275main ()
22276{
22277#ifndef _BIG_ENDIAN
22278 not big endian
22279 #endif
22280
22281 ;
22282 return 0;
22283}
22284_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022285if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022286 ac_cv_c_bigendian=yes
22287else
cristy8b350f62009-11-15 23:12:43 +000022288 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022289fi
cristy3ed852e2009-09-05 21:47:34 +000022290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022291fi
cristy3ed852e2009-09-05 21:47:34 +000022292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22293 fi
22294 if test $ac_cv_c_bigendian = unknown; then
22295 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022296 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022297 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022299/* end confdefs.h. */
22300short int ascii_mm[] =
22301 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22302 short int ascii_ii[] =
22303 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22304 int use_ascii (int i) {
22305 return ascii_mm[i] + ascii_ii[i];
22306 }
22307 short int ebcdic_ii[] =
22308 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22309 short int ebcdic_mm[] =
22310 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22311 int use_ebcdic (int i) {
22312 return ebcdic_mm[i] + ebcdic_ii[i];
22313 }
22314 extern int foo;
22315
22316int
22317main ()
22318{
22319return use_ascii (foo) == use_ebcdic (foo);
22320 ;
22321 return 0;
22322}
22323_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022324if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022325 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22326 ac_cv_c_bigendian=yes
22327 fi
22328 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22329 if test "$ac_cv_c_bigendian" = unknown; then
22330 ac_cv_c_bigendian=no
22331 else
22332 # finding both strings is unlikely to happen, but who knows?
22333 ac_cv_c_bigendian=unknown
22334 fi
22335 fi
cristy3ed852e2009-09-05 21:47:34 +000022336fi
cristy3ed852e2009-09-05 21:47:34 +000022337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22338else
cristy8b350f62009-11-15 23:12:43 +000022339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022340/* end confdefs.h. */
22341$ac_includes_default
22342int
22343main ()
22344{
22345
22346 /* Are we little or big endian? From Harbison&Steele. */
22347 union
22348 {
22349 long int l;
22350 char c[sizeof (long int)];
22351 } u;
22352 u.l = 1;
22353 return u.c[sizeof (long int) - 1] == 1;
22354
22355 ;
22356 return 0;
22357}
22358_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022359if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022360 ac_cv_c_bigendian=no
22361else
cristy8b350f62009-11-15 23:12:43 +000022362 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022363fi
cristy8b350f62009-11-15 23:12:43 +000022364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22365 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022366fi
22367
cristy3ed852e2009-09-05 21:47:34 +000022368 fi
22369fi
cristy8b350f62009-11-15 23:12:43 +000022370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022371$as_echo "$ac_cv_c_bigendian" >&6; }
22372 case $ac_cv_c_bigendian in #(
22373 yes)
cristy8b350f62009-11-15 23:12:43 +000022374 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022375;; #(
22376 no)
22377 ;; #(
22378 universal)
22379
cristy8b350f62009-11-15 23:12:43 +000022380$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022381
22382 ;; #(
22383 *)
cristy98dddb52010-11-04 00:30:15 +000022384 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022385 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022386 esac
22387
22388
cristy501c8042011-05-26 17:46:28 +000022389# Define to a suitable type, if standard headers do not define it.
22390ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22391case $ac_cv_c_int8_t in #(
22392 no|yes) ;; #(
22393 *)
cristy3ed852e2009-09-05 21:47:34 +000022394
22395cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022396#define int8_t $ac_cv_c_int8_t
22397_ACEOF
22398;;
22399esac
22400
22401ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22402case $ac_cv_c_int16_t in #(
22403 no|yes) ;; #(
22404 *)
22405
22406cat >>confdefs.h <<_ACEOF
22407#define int16_t $ac_cv_c_int16_t
22408_ACEOF
22409;;
22410esac
22411
22412ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22413case $ac_cv_c_int32_t in #(
22414 no|yes) ;; #(
22415 *)
22416
22417cat >>confdefs.h <<_ACEOF
22418#define int32_t $ac_cv_c_int32_t
22419_ACEOF
22420;;
22421esac
22422
22423ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22424case $ac_cv_c_int64_t in #(
22425 no|yes) ;; #(
22426 *)
22427
22428cat >>confdefs.h <<_ACEOF
22429#define int64_t $ac_cv_c_int64_t
22430_ACEOF
22431;;
22432esac
22433
22434
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22436$as_echo_n "checking for long long int... " >&6; }
22437if ${ac_cv_type_long_long_int+:} false; then :
22438 $as_echo_n "(cached) " >&6
22439else
22440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22441/* end confdefs.h. */
22442
22443 /* For now, do not test the preprocessor; as of 2007 there are too many
22444 implementations with broken preprocessors. Perhaps this can
22445 be revisited in 2012. In the meantime, code should not expect
22446 #if to work with literals wider than 32 bits. */
22447 /* Test literals. */
22448 long long int ll = 9223372036854775807ll;
22449 long long int nll = -9223372036854775807LL;
22450 unsigned long long int ull = 18446744073709551615ULL;
22451 /* Test constant expressions. */
22452 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22453 ? 1 : -1)];
22454 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22455 ? 1 : -1)];
22456 int i = 63;
22457int
22458main ()
22459{
22460/* Test availability of runtime routines for shift and division. */
22461 long long int llmax = 9223372036854775807ll;
22462 unsigned long long int ullmax = 18446744073709551615ull;
22463 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22464 | (llmax / ll) | (llmax % ll)
22465 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22466 | (ullmax / ull) | (ullmax % ull));
22467 ;
22468 return 0;
22469}
22470
22471_ACEOF
22472if ac_fn_c_try_link "$LINENO"; then :
22473 if test "$cross_compiling" = yes; then :
22474 ac_cv_type_long_long_int=yes
22475else
22476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22477/* end confdefs.h. */
22478#include <limits.h>
22479 #ifndef LLONG_MAX
22480 # define HALF \
22481 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22482 # define LLONG_MAX (HALF - 1 + HALF)
22483 #endif
22484int
22485main ()
22486{
22487long long int n = 1;
22488 int i;
22489 for (i = 0; ; i++)
22490 {
22491 long long int m = n << i;
22492 if (m >> i != n)
22493 return 1;
22494 if (LLONG_MAX / 2 < m)
22495 break;
22496 }
22497 return 0;
22498 ;
22499 return 0;
22500}
22501_ACEOF
22502if ac_fn_c_try_run "$LINENO"; then :
22503 ac_cv_type_long_long_int=yes
22504else
22505 ac_cv_type_long_long_int=no
22506fi
22507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22508 conftest.$ac_objext conftest.beam conftest.$ac_ext
22509fi
22510
22511else
22512 ac_cv_type_long_long_int=no
22513fi
22514rm -f core conftest.err conftest.$ac_objext \
22515 conftest$ac_exeext conftest.$ac_ext
22516fi
22517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22518$as_echo "$ac_cv_type_long_long_int" >&6; }
22519 if test $ac_cv_type_long_long_int = yes; then
22520
22521$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22522
22523 fi
22524
22525
22526
22527 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22528if test "x$ac_cv_type_intmax_t" = xyes; then :
22529
22530$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22531
22532else
22533 test $ac_cv_type_long_long_int = yes \
22534 && ac_type='long long int' \
22535 || ac_type='long int'
22536
22537cat >>confdefs.h <<_ACEOF
22538#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022539_ACEOF
22540
22541fi
22542
22543
cristy501c8042011-05-26 17:46:28 +000022544
22545 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22546if test "x$ac_cv_type_intptr_t" = xyes; then :
22547
22548$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022549
cristy3ed852e2009-09-05 21:47:34 +000022550else
cristy501c8042011-05-26 17:46:28 +000022551 for ac_type in 'int' 'long int' 'long long int'; do
22552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22553/* end confdefs.h. */
22554$ac_includes_default
22555int
22556main ()
22557{
22558static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22559test_array [0] = 0
22560
22561 ;
22562 return 0;
22563}
22564_ACEOF
22565if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022566
22567cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022568#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022569_ACEOF
22570
cristy501c8042011-05-26 17:46:28 +000022571 ac_type=
22572fi
22573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22574 test -z "$ac_type" && break
22575 done
cristy3ed852e2009-09-05 21:47:34 +000022576fi
22577
22578
cristy3ed852e2009-09-05 21:47:34 +000022579
cristy501c8042011-05-26 17:46:28 +000022580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22581$as_echo_n "checking for long double... " >&6; }
22582if ${ac_cv_type_long_double+:} false; then :
22583 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022584else
cristy501c8042011-05-26 17:46:28 +000022585 if test "$GCC" = yes; then
22586 ac_cv_type_long_double=yes
22587 else
22588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22589/* end confdefs.h. */
22590/* The Stardent Vistra knows sizeof (long double), but does
22591 not support it. */
22592 long double foo = 0.0L;
22593int
22594main ()
22595{
22596static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22597 sizeof (double) <= sizeof (long double))];
22598test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000022599
cristy501c8042011-05-26 17:46:28 +000022600 ;
22601 return 0;
22602}
cristy3ed852e2009-09-05 21:47:34 +000022603_ACEOF
cristy501c8042011-05-26 17:46:28 +000022604if ac_fn_c_try_compile "$LINENO"; then :
22605 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022606else
cristy501c8042011-05-26 17:46:28 +000022607 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022608fi
cristy501c8042011-05-26 17:46:28 +000022609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22610 fi
cristy3ed852e2009-09-05 21:47:34 +000022611fi
cristy501c8042011-05-26 17:46:28 +000022612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22613$as_echo "$ac_cv_type_long_double" >&6; }
22614 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022615
cristy501c8042011-05-26 17:46:28 +000022616$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022617
cristy501c8042011-05-26 17:46:28 +000022618 fi
22619
cristy3ed852e2009-09-05 21:47:34 +000022620
cristy8b350f62009-11-15 23:12:43 +000022621 { $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 +000022622$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022623if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022624 $as_echo_n "(cached) " >&6
22625else
cristy8b350f62009-11-15 23:12:43 +000022626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022627/* end confdefs.h. */
22628#include <float.h>
22629 long double const a[] =
22630 {
22631 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22632 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22633 };
22634 long double
22635 f (long double x)
22636 {
22637 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22638 + (x ? f (x) : 'c'));
22639 }
22640
22641int
22642main ()
22643{
22644static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22645 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22646 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22647 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22648 && (int) LDBL_EPSILON == 0
22649 )];
22650test_array [0] = 0
22651
22652 ;
22653 return 0;
22654}
22655_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022656if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022657 ac_cv_type_long_double_wider=yes
22658else
cristy8b350f62009-11-15 23:12:43 +000022659 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022660fi
cristy3ed852e2009-09-05 21:47:34 +000022661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22662fi
cristy8b350f62009-11-15 23:12:43 +000022663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022664$as_echo "$ac_cv_type_long_double_wider" >&6; }
22665 if test $ac_cv_type_long_double_wider = yes; then
22666
cristy8b350f62009-11-15 23:12:43 +000022667$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022668
22669 fi
22670
22671
cristy501c8042011-05-26 17:46:28 +000022672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22673$as_echo_n "checking for long long int... " >&6; }
22674if ${ac_cv_type_long_long_int+:} false; then :
22675 $as_echo_n "(cached) " >&6
22676else
22677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22678/* end confdefs.h. */
22679
22680 /* For now, do not test the preprocessor; as of 2007 there are too many
22681 implementations with broken preprocessors. Perhaps this can
22682 be revisited in 2012. In the meantime, code should not expect
22683 #if to work with literals wider than 32 bits. */
22684 /* Test literals. */
22685 long long int ll = 9223372036854775807ll;
22686 long long int nll = -9223372036854775807LL;
22687 unsigned long long int ull = 18446744073709551615ULL;
22688 /* Test constant expressions. */
22689 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22690 ? 1 : -1)];
22691 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22692 ? 1 : -1)];
22693 int i = 63;
22694int
22695main ()
22696{
22697/* Test availability of runtime routines for shift and division. */
22698 long long int llmax = 9223372036854775807ll;
22699 unsigned long long int ullmax = 18446744073709551615ull;
22700 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22701 | (llmax / ll) | (llmax % ll)
22702 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22703 | (ullmax / ull) | (ullmax % ull));
22704 ;
22705 return 0;
22706}
22707
22708_ACEOF
22709if ac_fn_c_try_link "$LINENO"; then :
22710 if test "$cross_compiling" = yes; then :
22711 ac_cv_type_long_long_int=yes
22712else
22713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22714/* end confdefs.h. */
22715#include <limits.h>
22716 #ifndef LLONG_MAX
22717 # define HALF \
22718 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22719 # define LLONG_MAX (HALF - 1 + HALF)
22720 #endif
22721int
22722main ()
22723{
22724long long int n = 1;
22725 int i;
22726 for (i = 0; ; i++)
22727 {
22728 long long int m = n << i;
22729 if (m >> i != n)
22730 return 1;
22731 if (LLONG_MAX / 2 < m)
22732 break;
22733 }
22734 return 0;
22735 ;
22736 return 0;
22737}
22738_ACEOF
22739if ac_fn_c_try_run "$LINENO"; then :
22740 ac_cv_type_long_long_int=yes
22741else
22742 ac_cv_type_long_long_int=no
22743fi
22744rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22745 conftest.$ac_objext conftest.beam conftest.$ac_ext
22746fi
22747
22748else
22749 ac_cv_type_long_long_int=no
22750fi
22751rm -f core conftest.err conftest.$ac_objext \
22752 conftest$ac_exeext conftest.$ac_ext
22753fi
22754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22755$as_echo "$ac_cv_type_long_long_int" >&6; }
22756 if test $ac_cv_type_long_long_int = yes; then
22757
22758$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22759
22760 fi
22761
22762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22763$as_echo_n "checking for mbstate_t... " >&6; }
22764if ${ac_cv_type_mbstate_t+:} false; then :
22765 $as_echo_n "(cached) " >&6
22766else
22767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22768/* end confdefs.h. */
22769$ac_includes_default
22770# include <wchar.h>
22771int
22772main ()
22773{
22774mbstate_t x; return sizeof x;
22775 ;
22776 return 0;
22777}
22778_ACEOF
22779if ac_fn_c_try_compile "$LINENO"; then :
22780 ac_cv_type_mbstate_t=yes
22781else
22782 ac_cv_type_mbstate_t=no
22783fi
22784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22785fi
22786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22787$as_echo "$ac_cv_type_mbstate_t" >&6; }
22788 if test $ac_cv_type_mbstate_t = yes; then
22789
22790$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22791
22792 else
22793
22794$as_echo "#define mbstate_t int" >>confdefs.h
22795
22796 fi
22797ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22798if test "x$ac_cv_type_mode_t" = xyes; then :
22799
22800else
22801
22802cat >>confdefs.h <<_ACEOF
22803#define mode_t int
22804_ACEOF
22805
22806fi
22807
22808ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22809if test "x$ac_cv_type_off_t" = xyes; then :
22810
22811else
22812
22813cat >>confdefs.h <<_ACEOF
22814#define off_t long int
22815_ACEOF
22816
22817fi
22818
22819ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22820if test "x$ac_cv_type_pid_t" = xyes; then :
22821
22822else
22823
22824cat >>confdefs.h <<_ACEOF
22825#define pid_t int
22826_ACEOF
22827
22828fi
22829
22830ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22831if test "x$ac_cv_type_size_t" = xyes; then :
22832
22833else
22834
22835cat >>confdefs.h <<_ACEOF
22836#define size_t unsigned int
22837_ACEOF
22838
22839fi
22840
22841ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22842if test "x$ac_cv_type_ssize_t" = xyes; then :
22843
22844else
22845
22846cat >>confdefs.h <<_ACEOF
22847#define ssize_t int
22848_ACEOF
22849
22850fi
22851
22852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22853$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22854if ${ac_cv_type_uid_t+:} false; then :
22855 $as_echo_n "(cached) " >&6
22856else
22857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22858/* end confdefs.h. */
22859#include <sys/types.h>
22860
22861_ACEOF
22862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22863 $EGREP "uid_t" >/dev/null 2>&1; then :
22864 ac_cv_type_uid_t=yes
22865else
22866 ac_cv_type_uid_t=no
22867fi
22868rm -f conftest*
22869
22870fi
22871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22872$as_echo "$ac_cv_type_uid_t" >&6; }
22873if test $ac_cv_type_uid_t = no; then
22874
22875$as_echo "#define uid_t int" >>confdefs.h
22876
22877
22878$as_echo "#define gid_t int" >>confdefs.h
22879
22880fi
22881
22882ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22883case $ac_cv_c_uint8_t in #(
22884 no|yes) ;; #(
22885 *)
22886
22887$as_echo "#define _UINT8_T 1" >>confdefs.h
22888
22889
22890cat >>confdefs.h <<_ACEOF
22891#define uint8_t $ac_cv_c_uint8_t
22892_ACEOF
22893;;
22894 esac
22895
22896ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22897case $ac_cv_c_uint16_t in #(
22898 no|yes) ;; #(
22899 *)
22900
22901
22902cat >>confdefs.h <<_ACEOF
22903#define uint16_t $ac_cv_c_uint16_t
22904_ACEOF
22905;;
22906 esac
22907
22908ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22909case $ac_cv_c_uint32_t in #(
22910 no|yes) ;; #(
22911 *)
22912
22913$as_echo "#define _UINT32_T 1" >>confdefs.h
22914
22915
22916cat >>confdefs.h <<_ACEOF
22917#define uint32_t $ac_cv_c_uint32_t
22918_ACEOF
22919;;
22920 esac
22921
22922ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22923case $ac_cv_c_uint64_t in #(
22924 no|yes) ;; #(
22925 *)
22926
22927$as_echo "#define _UINT64_T 1" >>confdefs.h
22928
22929
22930cat >>confdefs.h <<_ACEOF
22931#define uint64_t $ac_cv_c_uint64_t
22932_ACEOF
22933;;
22934 esac
22935
22936
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22938$as_echo_n "checking for unsigned long long int... " >&6; }
22939if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22940 $as_echo_n "(cached) " >&6
22941else
22942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22943/* end confdefs.h. */
22944
22945 /* For now, do not test the preprocessor; as of 2007 there are too many
22946 implementations with broken preprocessors. Perhaps this can
22947 be revisited in 2012. In the meantime, code should not expect
22948 #if to work with literals wider than 32 bits. */
22949 /* Test literals. */
22950 long long int ll = 9223372036854775807ll;
22951 long long int nll = -9223372036854775807LL;
22952 unsigned long long int ull = 18446744073709551615ULL;
22953 /* Test constant expressions. */
22954 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22955 ? 1 : -1)];
22956 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22957 ? 1 : -1)];
22958 int i = 63;
22959int
22960main ()
22961{
22962/* Test availability of runtime routines for shift and division. */
22963 long long int llmax = 9223372036854775807ll;
22964 unsigned long long int ullmax = 18446744073709551615ull;
22965 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22966 | (llmax / ll) | (llmax % ll)
22967 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22968 | (ullmax / ull) | (ullmax % ull));
22969 ;
22970 return 0;
22971}
22972
22973_ACEOF
22974if ac_fn_c_try_link "$LINENO"; then :
22975 ac_cv_type_unsigned_long_long_int=yes
22976else
22977 ac_cv_type_unsigned_long_long_int=no
22978fi
22979rm -f core conftest.err conftest.$ac_objext \
22980 conftest$ac_exeext conftest.$ac_ext
22981fi
22982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22983$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22984 if test $ac_cv_type_unsigned_long_long_int = yes; then
22985
22986$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22987
22988 fi
22989
22990
22991
22992 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
22993if test "x$ac_cv_type_uintmax_t" = xyes; then :
22994
22995$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
22996
22997else
22998 test $ac_cv_type_unsigned_long_long_int = yes \
22999 && ac_type='unsigned long long int' \
23000 || ac_type='unsigned long int'
23001
23002cat >>confdefs.h <<_ACEOF
23003#define uintmax_t $ac_type
23004_ACEOF
23005
23006fi
23007
23008
23009
23010 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23011if test "x$ac_cv_type_uintptr_t" = xyes; then :
23012
23013$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23014
23015else
23016 for ac_type in 'unsigned int' 'unsigned long int' \
23017 'unsigned long long int'; do
23018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23019/* end confdefs.h. */
23020$ac_includes_default
23021int
23022main ()
23023{
23024static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23025test_array [0] = 0
23026
23027 ;
23028 return 0;
23029}
23030_ACEOF
23031if ac_fn_c_try_compile "$LINENO"; then :
23032
23033cat >>confdefs.h <<_ACEOF
23034#define uintptr_t $ac_type
23035_ACEOF
23036
23037 ac_type=
23038fi
23039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23040 test -z "$ac_type" && break
23041 done
23042fi
23043
23044
23045
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23047$as_echo_n "checking for unsigned long long int... " >&6; }
23048if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23049 $as_echo_n "(cached) " >&6
23050else
23051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23052/* end confdefs.h. */
23053
23054 /* For now, do not test the preprocessor; as of 2007 there are too many
23055 implementations with broken preprocessors. Perhaps this can
23056 be revisited in 2012. In the meantime, code should not expect
23057 #if to work with literals wider than 32 bits. */
23058 /* Test literals. */
23059 long long int ll = 9223372036854775807ll;
23060 long long int nll = -9223372036854775807LL;
23061 unsigned long long int ull = 18446744073709551615ULL;
23062 /* Test constant expressions. */
23063 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23064 ? 1 : -1)];
23065 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23066 ? 1 : -1)];
23067 int i = 63;
23068int
23069main ()
23070{
23071/* Test availability of runtime routines for shift and division. */
23072 long long int llmax = 9223372036854775807ll;
23073 unsigned long long int ullmax = 18446744073709551615ull;
23074 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23075 | (llmax / ll) | (llmax % ll)
23076 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23077 | (ullmax / ull) | (ullmax % ull));
23078 ;
23079 return 0;
23080}
23081
23082_ACEOF
23083if ac_fn_c_try_link "$LINENO"; then :
23084 ac_cv_type_unsigned_long_long_int=yes
23085else
23086 ac_cv_type_unsigned_long_long_int=no
23087fi
23088rm -f core conftest.err conftest.$ac_objext \
23089 conftest$ac_exeext conftest.$ac_ext
23090fi
23091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23092$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23093 if test $ac_cv_type_unsigned_long_long_int = yes; then
23094
23095$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23096
23097 fi
23098
23099
cristy3ed852e2009-09-05 21:47:34 +000023100# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23101# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023103$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023104if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023105 $as_echo_n "(cached) " >&6
23106else
cristy8b350f62009-11-15 23:12:43 +000023107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023108/* end confdefs.h. */
23109$ac_includes_default
23110int
23111main ()
23112{
23113static int test_array [1 - 2 * !(((char) -1) < 0)];
23114test_array [0] = 0
23115
23116 ;
23117 return 0;
23118}
23119_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023120if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023121 ac_cv_c_char_unsigned=no
23122else
cristy8b350f62009-11-15 23:12:43 +000023123 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023124fi
cristy3ed852e2009-09-05 21:47:34 +000023125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23126fi
cristy8b350f62009-11-15 23:12:43 +000023127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023128$as_echo "$ac_cv_c_char_unsigned" >&6; }
23129if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023130 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023131
23132fi
23133
23134
23135# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23136# The cast to long int works around a bug in the HP C Compiler
23137# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23138# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23139# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023141$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023142if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023143 $as_echo_n "(cached) " >&6
23144else
cristy8b350f62009-11-15 23:12:43 +000023145 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 +000023146
cristy3ed852e2009-09-05 21:47:34 +000023147else
cristy8b350f62009-11-15 23:12:43 +000023148 if test "$ac_cv_type_signed_short" = yes; then
23149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023151as_fn_error 77 "cannot compute sizeof (signed short)
23152See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023153 else
23154 ac_cv_sizeof_signed_short=0
23155 fi
23156fi
cristy8b350f62009-11-15 23:12:43 +000023157
cristy3ed852e2009-09-05 21:47:34 +000023158fi
cristy8b350f62009-11-15 23:12:43 +000023159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023160$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23161
23162
23163
23164cat >>confdefs.h <<_ACEOF
23165#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23166_ACEOF
23167
23168
23169
23170# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23171# The cast to long int works around a bug in the HP C Compiler
23172# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23173# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23174# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023176$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023177if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023178 $as_echo_n "(cached) " >&6
23179else
cristy8b350f62009-11-15 23:12:43 +000023180 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 +000023181
cristy3ed852e2009-09-05 21:47:34 +000023182else
cristy8b350f62009-11-15 23:12:43 +000023183 if test "$ac_cv_type_unsigned_short" = yes; then
23184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023186as_fn_error 77 "cannot compute sizeof (unsigned short)
23187See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023188 else
23189 ac_cv_sizeof_unsigned_short=0
23190 fi
23191fi
cristy8b350f62009-11-15 23:12:43 +000023192
cristy3ed852e2009-09-05 21:47:34 +000023193fi
cristy8b350f62009-11-15 23:12:43 +000023194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023195$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23196
23197
23198
23199cat >>confdefs.h <<_ACEOF
23200#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23201_ACEOF
23202
23203
23204
23205# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23206# The cast to long int works around a bug in the HP C Compiler
23207# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23208# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23209# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023211$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023212if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023213 $as_echo_n "(cached) " >&6
23214else
cristy8b350f62009-11-15 23:12:43 +000023215 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 +000023216
cristy3ed852e2009-09-05 21:47:34 +000023217else
cristy8b350f62009-11-15 23:12:43 +000023218 if test "$ac_cv_type_signed_int" = yes; then
23219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023221as_fn_error 77 "cannot compute sizeof (signed int)
23222See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023223 else
23224 ac_cv_sizeof_signed_int=0
23225 fi
23226fi
cristy8b350f62009-11-15 23:12:43 +000023227
cristy3ed852e2009-09-05 21:47:34 +000023228fi
cristy8b350f62009-11-15 23:12:43 +000023229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023230$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23231
23232
23233
23234cat >>confdefs.h <<_ACEOF
23235#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23236_ACEOF
23237
23238
23239
23240# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23241# The cast to long int works around a bug in the HP C Compiler
23242# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23243# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23244# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023246$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023247if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023248 $as_echo_n "(cached) " >&6
23249else
cristy8b350f62009-11-15 23:12:43 +000023250 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 +000023251
cristy3ed852e2009-09-05 21:47:34 +000023252else
cristy8b350f62009-11-15 23:12:43 +000023253 if test "$ac_cv_type_unsigned_int" = yes; then
23254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023256as_fn_error 77 "cannot compute sizeof (unsigned int)
23257See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023258 else
23259 ac_cv_sizeof_unsigned_int=0
23260 fi
23261fi
cristy8b350f62009-11-15 23:12:43 +000023262
cristy3ed852e2009-09-05 21:47:34 +000023263fi
cristy8b350f62009-11-15 23:12:43 +000023264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023265$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23266
23267
23268
23269cat >>confdefs.h <<_ACEOF
23270#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23271_ACEOF
23272
23273
23274
23275# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23276# The cast to long int works around a bug in the HP C Compiler
23277# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23278# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23279# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023281$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023282if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023283 $as_echo_n "(cached) " >&6
23284else
cristy8b350f62009-11-15 23:12:43 +000023285 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 +000023286
cristy3ed852e2009-09-05 21:47:34 +000023287else
cristy8b350f62009-11-15 23:12:43 +000023288 if test "$ac_cv_type_signed_long" = yes; then
23289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023291as_fn_error 77 "cannot compute sizeof (signed long)
23292See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023293 else
23294 ac_cv_sizeof_signed_long=0
23295 fi
23296fi
cristy8b350f62009-11-15 23:12:43 +000023297
cristy3ed852e2009-09-05 21:47:34 +000023298fi
cristy8b350f62009-11-15 23:12:43 +000023299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023300$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23301
23302
23303
23304cat >>confdefs.h <<_ACEOF
23305#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23306_ACEOF
23307
23308
23309
23310# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23311# The cast to long int works around a bug in the HP C Compiler
23312# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23313# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23314# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023316$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023317if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023318 $as_echo_n "(cached) " >&6
23319else
cristy8b350f62009-11-15 23:12:43 +000023320 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 +000023321
cristy3ed852e2009-09-05 21:47:34 +000023322else
cristy8b350f62009-11-15 23:12:43 +000023323 if test "$ac_cv_type_unsigned_long" = yes; then
23324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023326as_fn_error 77 "cannot compute sizeof (unsigned long)
23327See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023328 else
23329 ac_cv_sizeof_unsigned_long=0
23330 fi
23331fi
cristy8b350f62009-11-15 23:12:43 +000023332
cristy3ed852e2009-09-05 21:47:34 +000023333fi
cristy8b350f62009-11-15 23:12:43 +000023334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023335$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23336
23337
23338
23339cat >>confdefs.h <<_ACEOF
23340#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23341_ACEOF
23342
23343
23344
23345# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23346# 'signed long long' is not supported then the value defined is zero.
23347# The cast to long int works around a bug in the HP C Compiler
23348# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23349# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23350# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023352$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023353if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023354 $as_echo_n "(cached) " >&6
23355else
cristy8b350f62009-11-15 23:12:43 +000023356 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 +000023357
cristy3ed852e2009-09-05 21:47:34 +000023358else
cristy8b350f62009-11-15 23:12:43 +000023359 if test "$ac_cv_type_signed_long_long" = yes; then
23360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023362as_fn_error 77 "cannot compute sizeof (signed long long)
23363See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023364 else
23365 ac_cv_sizeof_signed_long_long=0
23366 fi
23367fi
cristy8b350f62009-11-15 23:12:43 +000023368
cristy3ed852e2009-09-05 21:47:34 +000023369fi
cristy8b350f62009-11-15 23:12:43 +000023370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023371$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23372
23373
23374
23375cat >>confdefs.h <<_ACEOF
23376#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23377_ACEOF
23378
23379
23380
23381# Obtain size of a 'unsigned long long' and define as
23382# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23383# supported then the value defined is zero.
23384# The cast to long int works around a bug in the HP C Compiler
23385# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23386# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23387# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023389$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023390if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023391 $as_echo_n "(cached) " >&6
23392else
cristy8b350f62009-11-15 23:12:43 +000023393 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 +000023394
cristy3ed852e2009-09-05 21:47:34 +000023395else
cristy8b350f62009-11-15 23:12:43 +000023396 if test "$ac_cv_type_unsigned_long_long" = yes; then
23397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023399as_fn_error 77 "cannot compute sizeof (unsigned long long)
23400See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023401 else
23402 ac_cv_sizeof_unsigned_long_long=0
23403 fi
23404fi
cristy8b350f62009-11-15 23:12:43 +000023405
cristy3ed852e2009-09-05 21:47:34 +000023406fi
cristy8b350f62009-11-15 23:12:43 +000023407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023408$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23409
23410
23411
23412cat >>confdefs.h <<_ACEOF
23413#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23414_ACEOF
23415
23416
23417
23418# Obtain size of off_t and define as SIZEOF_OFF_T
23419# The cast to long int works around a bug in the HP C Compiler
23420# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23421# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23422# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023424$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023425if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023426 $as_echo_n "(cached) " >&6
23427else
cristy8b350f62009-11-15 23:12:43 +000023428 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 +000023429
cristy3ed852e2009-09-05 21:47:34 +000023430else
cristy8b350f62009-11-15 23:12:43 +000023431 if test "$ac_cv_type_off_t" = yes; then
23432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023434as_fn_error 77 "cannot compute sizeof (off_t)
23435See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023436 else
23437 ac_cv_sizeof_off_t=0
23438 fi
23439fi
cristy8b350f62009-11-15 23:12:43 +000023440
cristy3ed852e2009-09-05 21:47:34 +000023441fi
cristy8b350f62009-11-15 23:12:43 +000023442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023443$as_echo "$ac_cv_sizeof_off_t" >&6; }
23444
23445
23446
23447cat >>confdefs.h <<_ACEOF
23448#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23449_ACEOF
23450
23451
23452
23453# Obtain size of size_t and define as SIZEOF_SIZE_T
23454# The cast to long int works around a bug in the HP C Compiler
23455# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23456# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23457# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023459$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023460if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023461 $as_echo_n "(cached) " >&6
23462else
cristy8b350f62009-11-15 23:12:43 +000023463 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 +000023464
cristy3ed852e2009-09-05 21:47:34 +000023465else
cristy8b350f62009-11-15 23:12:43 +000023466 if test "$ac_cv_type_size_t" = yes; then
23467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023469as_fn_error 77 "cannot compute sizeof (size_t)
23470See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023471 else
23472 ac_cv_sizeof_size_t=0
23473 fi
23474fi
cristy8b350f62009-11-15 23:12:43 +000023475
cristy3ed852e2009-09-05 21:47:34 +000023476fi
cristy8b350f62009-11-15 23:12:43 +000023477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023478$as_echo "$ac_cv_sizeof_size_t" >&6; }
23479
23480
23481
23482cat >>confdefs.h <<_ACEOF
23483#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23484_ACEOF
23485
23486
23487
cristy330e9352010-06-01 18:42:49 +000023488# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23489# The cast to long int works around a bug in the HP C Compiler
23490# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23491# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23492# This bug is HP SR number 8606223364.
23493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23494$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023495if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023496 $as_echo_n "(cached) " >&6
23497else
23498 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23499
23500else
23501 if test "$ac_cv_type_ssize_t" = yes; then
23502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023504as_fn_error 77 "cannot compute sizeof (ssize_t)
23505See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023506 else
23507 ac_cv_sizeof_ssize_t=0
23508 fi
23509fi
23510
23511fi
23512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23513$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23514
23515
23516
23517cat >>confdefs.h <<_ACEOF
23518#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23519_ACEOF
23520
23521
23522
cristy3ed852e2009-09-05 21:47:34 +000023523# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23524# The cast to long int works around a bug in the HP C Compiler
23525# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23526# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23527# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023529$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023530if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023531 $as_echo_n "(cached) " >&6
23532else
cristy8b350f62009-11-15 23:12:43 +000023533 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 +000023534
cristy3ed852e2009-09-05 21:47:34 +000023535else
cristy8b350f62009-11-15 23:12:43 +000023536 if test "$ac_cv_type_unsigned_intp" = yes; then
23537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023539as_fn_error 77 "cannot compute sizeof (unsigned int*)
23540See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023541 else
23542 ac_cv_sizeof_unsigned_intp=0
23543 fi
23544fi
cristy8b350f62009-11-15 23:12:43 +000023545
cristy3ed852e2009-09-05 21:47:34 +000023546fi
cristy8b350f62009-11-15 23:12:43 +000023547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023548$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23549
23550
23551
23552cat >>confdefs.h <<_ACEOF
23553#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23554_ACEOF
23555
23556
23557
23558#
23559# Compute sized types for current CPU and compiler options.
23560#
23561
cristy8b350f62009-11-15 23:12:43 +000023562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023563$as_echo_n "checking for signed 8-bit type... " >&6; }
23564INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000023565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023566$as_echo "$INT8_T" >&6; }
23567
23568
cristy8b350f62009-11-15 23:12:43 +000023569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023570$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23571UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000023572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023573$as_echo "$UINT8_T" >&6; }
23574
23575
cristy8b350f62009-11-15 23:12:43 +000023576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023577$as_echo_n "checking for signed 16-bit type... " >&6; }
23578INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000023579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023580$as_echo "$INT16_T" >&6; }
23581
23582
cristy8b350f62009-11-15 23:12:43 +000023583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023584$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23585UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000023586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023587$as_echo "$UINT16_T" >&6; }
23588
23589
cristy8b350f62009-11-15 23:12:43 +000023590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023591$as_echo_n "checking for signed 32-bit type... " >&6; }
23592INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023593INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023594if test $ac_cv_sizeof_signed_int -eq 4; then
23595 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023596 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023597elif test $ac_cv_sizeof_signed_long -eq 4; then
23598 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023599 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023600fi
cristy8b350f62009-11-15 23:12:43 +000023601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023602$as_echo "$INT32_T" >&6; }
23603
23604
cristy6d5e20f2011-04-25 13:48:54 +000023605
cristy8b350f62009-11-15 23:12:43 +000023606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023607$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23608UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023609UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023610if test $ac_cv_sizeof_unsigned_int -eq 4; then
23611 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023612 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023613elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23614 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023615 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023616fi
cristy8b350f62009-11-15 23:12:43 +000023617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023618$as_echo "$UINT32_T" >&6; }
23619
23620
cristy6d5e20f2011-04-25 13:48:54 +000023621
cristy8b350f62009-11-15 23:12:43 +000023622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023623$as_echo_n "checking for signed 64-bit type... " >&6; }
23624INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023625INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023626if test $ac_cv_sizeof_signed_long -eq 8; then
23627 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023628 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023629elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23630 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023631 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023632fi
cristy6d5e20f2011-04-25 13:48:54 +000023633case "${build_os}" in
23634 mingw* )
23635 INT64_F='"I64"'
23636 ;;
23637esac
cristy8b350f62009-11-15 23:12:43 +000023638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023639$as_echo "$INT64_T" >&6; }
23640
23641
cristy6d5e20f2011-04-25 13:48:54 +000023642
cristy8b350f62009-11-15 23:12:43 +000023643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023644$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23645UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023646UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023647if test $ac_cv_sizeof_unsigned_long -eq 8; then
23648 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023649 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023650elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23651 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023652 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023653fi
cristy6d5e20f2011-04-25 13:48:54 +000023654case "${build_os}" in
23655 mingw* )
23656 UINT64_F='"I64"'
23657 ;;
23658esac
cristy8b350f62009-11-15 23:12:43 +000023659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023660$as_echo "$UINT64_T" >&6; }
23661
23662
cristy6d5e20f2011-04-25 13:48:54 +000023663
cristy8b350f62009-11-15 23:12:43 +000023664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023665$as_echo_n "checking for unsigned maximum type... " >&6; }
23666UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023667UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023668if test "$UINT64_T" != 'none'; then
23669 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023670 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023671elif test "$UINT32_T" != 'none'; then
23672 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023673 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023674fi
cristy8b350f62009-11-15 23:12:43 +000023675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023676$as_echo "$UINTMAX_T" >&6; }
23677
23678
cristy6d5e20f2011-04-25 13:48:54 +000023679
cristy8b350f62009-11-15 23:12:43 +000023680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023681$as_echo_n "checking for pointer difference type... " >&6; }
23682UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023683UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023684if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23685 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023686 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023687elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23688 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023689 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023690fi
cristy8b350f62009-11-15 23:12:43 +000023691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023692$as_echo "$UINTPTR_T" >&6; }
23693
23694
cristy6d5e20f2011-04-25 13:48:54 +000023695
cristy8b350f62009-11-15 23:12:43 +000023696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023697$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023699/* end confdefs.h. */
23700
23701int
23702main ()
23703{
23704{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23705 ;
23706 return 0;
23707}
23708_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023709if ac_fn_c_try_compile "$LINENO"; then :
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023711$as_echo "yes" >&6; }
23712else
cristy8b350f62009-11-15 23:12:43 +000023713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023714$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023716$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023718/* end confdefs.h. */
23719
23720int
23721main ()
23722{
23723{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23724 ;
23725 return 0;
23726}
23727_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023728if ac_fn_c_try_compile "$LINENO"; then :
23729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023730$as_echo "yes" >&6; }
23731
cristy8b350f62009-11-15 23:12:43 +000023732$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023733
23734else
cristy8b350f62009-11-15 23:12:43 +000023735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023736$as_echo "no" >&6; }
23737
cristy8b350f62009-11-15 23:12:43 +000023738$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023739
23740fi
cristy3ed852e2009-09-05 21:47:34 +000023741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23742fi
cristy3ed852e2009-09-05 21:47:34 +000023743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23744
23745########
23746#
23747# Check for functions
23748#
23749########
cristy73bd4a52010-10-05 11:24:23 +000023750for ac_header in stdlib.h unistd.h
23751do :
23752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23753ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023754if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023755 cat >>confdefs.h <<_ACEOF
23756#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23757_ACEOF
23758
23759fi
23760
23761done
23762
23763for ac_func in getpagesize
23764do :
23765 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023766if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023767 cat >>confdefs.h <<_ACEOF
23768#define HAVE_GETPAGESIZE 1
23769_ACEOF
23770
23771fi
23772done
23773
23774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23775$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023776if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023777 $as_echo_n "(cached) " >&6
23778else
23779 if test "$cross_compiling" = yes; then :
23780 magick_cv_func_mmap_fileio=no
23781else
23782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23783/* end confdefs.h. */
23784$ac_includes_default
23785/* malloc might have been renamed as rpl_malloc. */
23786#undef malloc
23787
23788/*
23789 This test is derived from GNU Autoconf's similar macro.
23790 The purpose of this test is to verify that files may be memory
23791 mapped, and that memory mapping and file I/O are coherent.
23792
23793 The test creates a test file, memory maps the file, updates
23794 the file using the memory map, and then reads the file using
23795 file I/O to verify that the file contains the updates.
23796*/
23797
23798#include <fcntl.h>
23799#include <sys/mman.h>
23800
23801#if !STDC_HEADERS && !HAVE_STDLIB_H
23802char *malloc ();
23803#endif
23804
23805/* This mess was copied from the GNU getpagesize.h. */
23806#if !HAVE_GETPAGESIZE
23807/* Assume that all systems that can run configure have sys/param.h. */
23808# if !HAVE_SYS_PARAM_H
23809# define HAVE_SYS_PARAM_H 1
23810# endif
23811
23812# ifdef _SC_PAGESIZE
23813# define getpagesize() sysconf(_SC_PAGESIZE)
23814# else /* no _SC_PAGESIZE */
23815# if HAVE_SYS_PARAM_H
23816# include <sys/param.h>
23817# ifdef EXEC_PAGESIZE
23818# define getpagesize() EXEC_PAGESIZE
23819# else /* no EXEC_PAGESIZE */
23820# ifdef NBPG
23821# define getpagesize() NBPG * CLSIZE
23822# ifndef CLSIZE
23823# define CLSIZE 1
23824# endif /* no CLSIZE */
23825# else /* no NBPG */
23826# ifdef NBPC
23827# define getpagesize() NBPC
23828# else /* no NBPC */
23829# ifdef PAGESIZE
23830# define getpagesize() PAGESIZE
23831# endif /* PAGESIZE */
23832# endif /* no NBPC */
23833# endif /* no NBPG */
23834# endif /* no EXEC_PAGESIZE */
23835# else /* no HAVE_SYS_PARAM_H */
23836# define getpagesize() 8192 /* punt totally */
23837# endif /* no HAVE_SYS_PARAM_H */
23838# endif /* no _SC_PAGESIZE */
23839
23840#endif /* no HAVE_GETPAGESIZE */
23841
23842int
23843main ()
23844{
23845 char *data, *data2, *data3;
23846 int i, pagesize;
23847 int fd;
23848
23849 pagesize = getpagesize ();
23850
23851 /* First, make a file with some known garbage in it. */
23852 data = (char *) malloc (pagesize);
23853 if (!data)
23854 exit (1);
23855 for (i = 0; i < pagesize; ++i)
23856 *(data + i) = rand ();
23857 umask (0);
23858 fd = creat ("conftest.mmap", 0600);
23859 if (fd < 0)
23860 exit (1);
23861 if (write (fd, data, pagesize) != pagesize)
23862 exit (1);
23863 close (fd);
23864
23865 /* Mmap the file as read/write/shared and verify that we see the
23866 same garbage. */
23867 fd = open ("conftest.mmap", O_RDWR);
23868 if (fd < 0)
23869 exit (1);
23870 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23871 if (data2 == 0)
23872 exit (1);
23873 for (i = 0; i < pagesize; ++i)
23874 if (*(data + i) != *(data2 + i))
23875 exit (1);
23876
23877 /* Finally, make sure that changes to the mapped area
23878 percolate back to the file as seen by read(). */
23879 for (i = 0; i < pagesize; ++i)
23880 *(data2 + i) = *(data2 + i) + 1;
23881 data3 = (char *) malloc (pagesize);
23882 if (!data3)
23883 exit (1);
23884 if (read (fd, data3, pagesize) != pagesize)
23885 exit (1);
23886 for (i = 0; i < pagesize; ++i)
23887 if (*(data2 + i) != *(data3 + i))
23888 exit (1);
23889 close (fd);
23890 exit (0);
23891}
23892_ACEOF
23893if ac_fn_c_try_run "$LINENO"; then :
23894 magick_cv_func_mmap_fileio=yes
23895else
23896 magick_cv_func_mmap_fileio=no
23897fi
23898rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23899 conftest.$ac_objext conftest.beam conftest.$ac_ext
23900fi
23901
23902fi
23903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23904$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23905if test $magick_cv_func_mmap_fileio = yes; then
23906
23907$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23908
23909fi
23910rm -f conftest.mmap
23911
cristy8b350f62009-11-15 23:12:43 +000023912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023913$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023914if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023915 $as_echo_n "(cached) " >&6
23916else
cristy8b350f62009-11-15 23:12:43 +000023917 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023918 ac_cv_func_closedir_void=yes
23919else
cristy8b350f62009-11-15 23:12:43 +000023920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023921/* end confdefs.h. */
23922$ac_includes_default
23923#include <$ac_header_dirent>
23924#ifndef __cplusplus
23925int closedir ();
23926#endif
23927
23928int
23929main ()
23930{
23931return closedir (opendir (".")) != 0;
23932 ;
23933 return 0;
23934}
23935_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023936if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023937 ac_cv_func_closedir_void=no
23938else
cristy8b350f62009-11-15 23:12:43 +000023939 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023940fi
cristy8b350f62009-11-15 23:12:43 +000023941rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23942 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023943fi
23944
cristy3ed852e2009-09-05 21:47:34 +000023945fi
cristy8b350f62009-11-15 23:12:43 +000023946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023947$as_echo "$ac_cv_func_closedir_void" >&6; }
23948if test $ac_cv_func_closedir_void = yes; then
23949
cristy8b350f62009-11-15 23:12:43 +000023950$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023951
23952fi
23953
cristycd4c5312009-11-22 01:19:08 +000023954
23955
23956
23957 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023958do :
23959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023960ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23961"
cristy98dddb52010-11-04 00:30:15 +000023962if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023963 cat >>confdefs.h <<_ACEOF
23964#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23965_ACEOF
23966
23967fi
23968
23969done
23970
cristycd4c5312009-11-22 01:19:08 +000023971
23972
23973
23974
23975
23976
23977
cristy3ed852e2009-09-05 21:47:34 +000023978for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000023979do :
23980 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023981if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023982 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023983#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000023984_ACEOF
23985
23986fi
23987done
23988
cristy8b350f62009-11-15 23:12:43 +000023989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000023990$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023991if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023992 $as_echo_n "(cached) " >&6
23993else
cristy8b350f62009-11-15 23:12:43 +000023994 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023995 ac_cv_func_mmap_fixed_mapped=no
23996else
cristy8b350f62009-11-15 23:12:43 +000023997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023998/* end confdefs.h. */
23999$ac_includes_default
24000/* malloc might have been renamed as rpl_malloc. */
24001#undef malloc
24002
24003/* Thanks to Mike Haertel and Jim Avera for this test.
24004 Here is a matrix of mmap possibilities:
24005 mmap private not fixed
24006 mmap private fixed at somewhere currently unmapped
24007 mmap private fixed at somewhere already mapped
24008 mmap shared not fixed
24009 mmap shared fixed at somewhere currently unmapped
24010 mmap shared fixed at somewhere already mapped
24011 For private mappings, we should verify that changes cannot be read()
24012 back from the file, nor mmap's back from the file at a different
24013 address. (There have been systems where private was not correctly
24014 implemented like the infamous i386 svr4.0, and systems where the
24015 VM page cache was not coherent with the file system buffer cache
24016 like early versions of FreeBSD and possibly contemporary NetBSD.)
24017 For shared mappings, we should conversely verify that changes get
24018 propagated back to all the places they're supposed to be.
24019
24020 Grep wants private fixed already mapped.
24021 The main things grep needs to know about mmap are:
24022 * does it exist and is it safe to write into the mmap'd area
24023 * how to use it (BSD variants) */
24024
24025#include <fcntl.h>
24026#include <sys/mman.h>
24027
24028#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24029char *malloc ();
24030#endif
24031
24032/* This mess was copied from the GNU getpagesize.h. */
24033#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024034# ifdef _SC_PAGESIZE
24035# define getpagesize() sysconf(_SC_PAGESIZE)
24036# else /* no _SC_PAGESIZE */
24037# ifdef HAVE_SYS_PARAM_H
24038# include <sys/param.h>
24039# ifdef EXEC_PAGESIZE
24040# define getpagesize() EXEC_PAGESIZE
24041# else /* no EXEC_PAGESIZE */
24042# ifdef NBPG
24043# define getpagesize() NBPG * CLSIZE
24044# ifndef CLSIZE
24045# define CLSIZE 1
24046# endif /* no CLSIZE */
24047# else /* no NBPG */
24048# ifdef NBPC
24049# define getpagesize() NBPC
24050# else /* no NBPC */
24051# ifdef PAGESIZE
24052# define getpagesize() PAGESIZE
24053# endif /* PAGESIZE */
24054# endif /* no NBPC */
24055# endif /* no NBPG */
24056# endif /* no EXEC_PAGESIZE */
24057# else /* no HAVE_SYS_PARAM_H */
24058# define getpagesize() 8192 /* punt totally */
24059# endif /* no HAVE_SYS_PARAM_H */
24060# endif /* no _SC_PAGESIZE */
24061
24062#endif /* no HAVE_GETPAGESIZE */
24063
24064int
24065main ()
24066{
24067 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024068 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024069 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024070 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024071
24072 pagesize = getpagesize ();
24073
24074 /* First, make a file with some known garbage in it. */
24075 data = (char *) malloc (pagesize);
24076 if (!data)
24077 return 1;
24078 for (i = 0; i < pagesize; ++i)
24079 *(data + i) = rand ();
24080 umask (0);
24081 fd = creat ("conftest.mmap", 0600);
24082 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024083 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024084 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024085 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024086 close (fd);
24087
cristycd4c5312009-11-22 01:19:08 +000024088 /* Next, check that the tail of a page is zero-filled. File must have
24089 non-zero length, otherwise we risk SIGBUS for entire page. */
24090 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24091 if (fd2 < 0)
24092 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024093 cdata2 = "";
24094 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024095 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024096 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024097 if (data2 == MAP_FAILED)
24098 return 6;
24099 for (i = 0; i < pagesize; ++i)
24100 if (*(data2 + i))
24101 return 7;
24102 close (fd2);
24103 if (munmap (data2, pagesize))
24104 return 8;
24105
cristy3ed852e2009-09-05 21:47:34 +000024106 /* Next, try to mmap the file at a fixed address which already has
24107 something else allocated at it. If we can, also make sure that
24108 we see the same garbage. */
24109 fd = open ("conftest.mmap", O_RDWR);
24110 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024111 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024112 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24113 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024114 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024115 for (i = 0; i < pagesize; ++i)
24116 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024117 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024118
24119 /* Finally, make sure that changes to the mapped area do not
24120 percolate back to the file as seen by read(). (This is a bug on
24121 some variants of i386 svr4.0.) */
24122 for (i = 0; i < pagesize; ++i)
24123 *(data2 + i) = *(data2 + i) + 1;
24124 data3 = (char *) malloc (pagesize);
24125 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024126 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024127 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024128 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024129 for (i = 0; i < pagesize; ++i)
24130 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024131 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024132 close (fd);
24133 return 0;
24134}
24135_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024136if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024137 ac_cv_func_mmap_fixed_mapped=yes
24138else
cristy8b350f62009-11-15 23:12:43 +000024139 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024140fi
cristy8b350f62009-11-15 23:12:43 +000024141rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24142 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024143fi
24144
cristy3ed852e2009-09-05 21:47:34 +000024145fi
cristy8b350f62009-11-15 23:12:43 +000024146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024147$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24148if test $ac_cv_func_mmap_fixed_mapped = yes; then
24149
cristy8b350f62009-11-15 23:12:43 +000024150$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024151
24152fi
cristycd4c5312009-11-22 01:19:08 +000024153rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024154
cristy3ed852e2009-09-05 21:47:34 +000024155for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024156do :
24157 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024158if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024159 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024160#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024161_ACEOF
24162
24163fi
24164
24165done
24166
cristy3ed852e2009-09-05 21:47:34 +000024167for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024168do :
24169 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24170ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024171if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024172 cat >>confdefs.h <<_ACEOF
24173#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24174_ACEOF
24175
24176fi
24177done
24178
24179if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024181$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024182if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024183 $as_echo_n "(cached) " >&6
24184else
cristy8b350f62009-11-15 23:12:43 +000024185 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024186 ac_cv_func_fork_works=cross
24187else
cristy8b350f62009-11-15 23:12:43 +000024188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024189/* end confdefs.h. */
24190$ac_includes_default
24191int
24192main ()
24193{
24194
24195 /* By Ruediger Kuhlmann. */
24196 return fork () < 0;
24197
24198 ;
24199 return 0;
24200}
24201_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024202if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024203 ac_cv_func_fork_works=yes
24204else
cristy8b350f62009-11-15 23:12:43 +000024205 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024206fi
cristy8b350f62009-11-15 23:12:43 +000024207rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24208 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024209fi
24210
cristy3ed852e2009-09-05 21:47:34 +000024211fi
cristy8b350f62009-11-15 23:12:43 +000024212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024213$as_echo "$ac_cv_func_fork_works" >&6; }
24214
24215else
24216 ac_cv_func_fork_works=$ac_cv_func_fork
24217fi
24218if test "x$ac_cv_func_fork_works" = xcross; then
24219 case $host in
24220 *-*-amigaos* | *-*-msdosdjgpp*)
24221 # Override, as these systems have only a dummy fork() stub
24222 ac_cv_func_fork_works=no
24223 ;;
24224 *)
24225 ac_cv_func_fork_works=yes
24226 ;;
24227 esac
cristy8b350f62009-11-15 23:12:43 +000024228 { $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 +000024229$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24230fi
24231ac_cv_func_vfork_works=$ac_cv_func_vfork
24232if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024234$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024235if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024236 $as_echo_n "(cached) " >&6
24237else
cristy8b350f62009-11-15 23:12:43 +000024238 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024239 ac_cv_func_vfork_works=cross
24240else
cristy8b350f62009-11-15 23:12:43 +000024241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024242/* end confdefs.h. */
24243/* Thanks to Paul Eggert for this test. */
24244$ac_includes_default
24245#include <sys/wait.h>
24246#ifdef HAVE_VFORK_H
24247# include <vfork.h>
24248#endif
24249/* On some sparc systems, changes by the child to local and incoming
24250 argument registers are propagated back to the parent. The compiler
24251 is told about this with #include <vfork.h>, but some compilers
24252 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24253 static variable whose address is put into a register that is
24254 clobbered by the vfork. */
24255static void
24256#ifdef __cplusplus
24257sparc_address_test (int arg)
24258# else
24259sparc_address_test (arg) int arg;
24260#endif
24261{
24262 static pid_t child;
24263 if (!child) {
24264 child = vfork ();
24265 if (child < 0) {
24266 perror ("vfork");
24267 _exit(2);
24268 }
24269 if (!child) {
24270 arg = getpid();
24271 write(-1, "", 0);
24272 _exit (arg);
24273 }
24274 }
24275}
24276
24277int
24278main ()
24279{
24280 pid_t parent = getpid ();
24281 pid_t child;
24282
24283 sparc_address_test (0);
24284
24285 child = vfork ();
24286
24287 if (child == 0) {
24288 /* Here is another test for sparc vfork register problems. This
24289 test uses lots of local variables, at least as many local
24290 variables as main has allocated so far including compiler
24291 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24292 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24293 reuse the register of parent for one of the local variables,
24294 since it will think that parent can't possibly be used any more
24295 in this routine. Assigning to the local variable will thus
24296 munge parent in the parent process. */
24297 pid_t
24298 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24299 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24300 /* Convince the compiler that p..p7 are live; otherwise, it might
24301 use the same hardware register for all 8 local variables. */
24302 if (p != p1 || p != p2 || p != p3 || p != p4
24303 || p != p5 || p != p6 || p != p7)
24304 _exit(1);
24305
24306 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24307 from child file descriptors. If the child closes a descriptor
24308 before it execs or exits, this munges the parent's descriptor
24309 as well. Test for this by closing stdout in the child. */
24310 _exit(close(fileno(stdout)) != 0);
24311 } else {
24312 int status;
24313 struct stat st;
24314
24315 while (wait(&status) != child)
24316 ;
24317 return (
24318 /* Was there some problem with vforking? */
24319 child < 0
24320
24321 /* Did the child fail? (This shouldn't happen.) */
24322 || status
24323
24324 /* Did the vfork/compiler bug occur? */
24325 || parent != getpid()
24326
24327 /* Did the file descriptor bug occur? */
24328 || fstat(fileno(stdout), &st) != 0
24329 );
24330 }
24331}
24332_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024333if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024334 ac_cv_func_vfork_works=yes
24335else
cristy8b350f62009-11-15 23:12:43 +000024336 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024337fi
cristy8b350f62009-11-15 23:12:43 +000024338rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24339 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024340fi
24341
cristy3ed852e2009-09-05 21:47:34 +000024342fi
cristy8b350f62009-11-15 23:12:43 +000024343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024344$as_echo "$ac_cv_func_vfork_works" >&6; }
24345
24346fi;
24347if test "x$ac_cv_func_fork_works" = xcross; then
24348 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024349 { $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 +000024350$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24351fi
24352
24353if test "x$ac_cv_func_vfork_works" = xyes; then
24354
cristy8b350f62009-11-15 23:12:43 +000024355$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024356
24357else
24358
cristy8b350f62009-11-15 23:12:43 +000024359$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024360
24361fi
24362if test "x$ac_cv_func_fork_works" = xyes; then
24363
cristy8b350f62009-11-15 23:12:43 +000024364$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024365
24366fi
24367
cristy8b350f62009-11-15 23:12:43 +000024368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024369$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024370if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024371 $as_echo_n "(cached) " >&6
24372else
cristy8b350f62009-11-15 23:12:43 +000024373 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024374 ac_cv_func_memcmp_working=no
24375else
cristy8b350f62009-11-15 23:12:43 +000024376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024377/* end confdefs.h. */
24378$ac_includes_default
24379int
24380main ()
24381{
24382
24383 /* Some versions of memcmp are not 8-bit clean. */
24384 char c0 = '\100', c1 = '\200', c2 = '\201';
24385 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24386 return 1;
24387
24388 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24389 or more and with at least one buffer not starting on a 4-byte boundary.
24390 William Lewis provided this test program. */
24391 {
24392 char foo[21];
24393 char bar[21];
24394 int i;
24395 for (i = 0; i < 4; i++)
24396 {
24397 char *a = foo + i;
24398 char *b = bar + i;
24399 strcpy (a, "--------01111111");
24400 strcpy (b, "--------10000000");
24401 if (memcmp (a, b, 16) >= 0)
24402 return 1;
24403 }
24404 return 0;
24405 }
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_memcmp_working=yes
24413else
cristy8b350f62009-11-15 23:12:43 +000024414 ac_cv_func_memcmp_working=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_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024422$as_echo "$ac_cv_func_memcmp_working" >&6; }
24423test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24424 *" memcmp.$ac_objext "* ) ;;
24425 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24426 ;;
24427esac
24428
24429
cristy3ed852e2009-09-05 21:47:34 +000024430for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024431do :
24432 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24433ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024434if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024435 cat >>confdefs.h <<_ACEOF
24436#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24437_ACEOF
24438
24439fi
24440
24441done
24442
cristy8b350f62009-11-15 23:12:43 +000024443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024444$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024445if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024446 $as_echo_n "(cached) " >&6
24447else
24448 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24449 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24450 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024452/* end confdefs.h. */
24453$ac_includes_default
24454#ifdef HAVE_SYS_SELECT_H
24455# include <sys/select.h>
24456#endif
24457#ifdef HAVE_SYS_SOCKET_H
24458# include <sys/socket.h>
24459#endif
24460
24461int
24462main ()
24463{
24464extern int select ($ac_arg1,
24465 $ac_arg234, $ac_arg234, $ac_arg234,
24466 $ac_arg5);
24467 ;
24468 return 0;
24469}
24470_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024471if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024472 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024473fi
cristy3ed852e2009-09-05 21:47:34 +000024474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24475 done
24476 done
24477done
24478# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024479: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024480
24481fi
cristy8b350f62009-11-15 23:12:43 +000024482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024483$as_echo "$ac_cv_func_select_args" >&6; }
24484ac_save_IFS=$IFS; IFS=','
24485set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24486IFS=$ac_save_IFS
24487shift
24488
24489cat >>confdefs.h <<_ACEOF
24490#define SELECT_TYPE_ARG1 $1
24491_ACEOF
24492
24493
24494cat >>confdefs.h <<_ACEOF
24495#define SELECT_TYPE_ARG234 ($2)
24496_ACEOF
24497
24498
24499cat >>confdefs.h <<_ACEOF
24500#define SELECT_TYPE_ARG5 ($3)
24501_ACEOF
24502
24503rm -f conftest*
24504
cristyda16f162011-02-19 23:52:17 +000024505if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024506 $as_echo_n "(cached) " >&6
24507else
24508 ac_cv_func_setvbuf_reversed=no
24509fi
24510
24511
cristy8b350f62009-11-15 23:12:43 +000024512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024513$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024514if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024515 $as_echo_n "(cached) " >&6
24516else
cristy8b350f62009-11-15 23:12:43 +000024517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024518/* end confdefs.h. */
24519#include <sys/types.h>
24520#include <signal.h>
24521
24522int
24523main ()
24524{
24525return *(signal (0, 0)) (0) == 1;
24526 ;
24527 return 0;
24528}
24529_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024530if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024531 ac_cv_type_signal=int
24532else
cristy8b350f62009-11-15 23:12:43 +000024533 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024534fi
cristy3ed852e2009-09-05 21:47:34 +000024535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24536fi
cristy8b350f62009-11-15 23:12:43 +000024537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024538$as_echo "$ac_cv_type_signal" >&6; }
24539
24540cat >>confdefs.h <<_ACEOF
24541#define RETSIGTYPE $ac_cv_type_signal
24542_ACEOF
24543
24544
cristy8b350f62009-11-15 23:12:43 +000024545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024546$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024547if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024548 $as_echo_n "(cached) " >&6
24549else
cristy8b350f62009-11-15 23:12:43 +000024550 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024551 ac_cv_func_strtod=no
24552else
cristy8b350f62009-11-15 23:12:43 +000024553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024554/* end confdefs.h. */
24555
24556$ac_includes_default
24557#ifndef strtod
24558double strtod ();
24559#endif
24560int
24561main()
24562{
24563 {
24564 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24565 char *string = " +69";
24566 char *term;
24567 double value;
24568 value = strtod (string, &term);
24569 if (value != 69 || term != (string + 4))
24570 return 1;
24571 }
24572
24573 {
24574 /* Under Solaris 2.4, strtod returns the wrong value for the
24575 terminating character under some conditions. */
24576 char *string = "NaN";
24577 char *term;
24578 strtod (string, &term);
24579 if (term != string && *(term - 1) == 0)
24580 return 1;
24581 }
24582 return 0;
24583}
24584
24585_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024586if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024587 ac_cv_func_strtod=yes
24588else
cristy8b350f62009-11-15 23:12:43 +000024589 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024590fi
cristy8b350f62009-11-15 23:12:43 +000024591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24592 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024593fi
24594
cristy3ed852e2009-09-05 21:47:34 +000024595fi
cristy8b350f62009-11-15 23:12:43 +000024596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024597$as_echo "$ac_cv_func_strtod" >&6; }
24598if test $ac_cv_func_strtod = no; then
24599 case " $LIBOBJS " in
24600 *" strtod.$ac_objext "* ) ;;
24601 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24602 ;;
24603esac
24604
cristy8b350f62009-11-15 23:12:43 +000024605ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024606if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024607
cristy3ed852e2009-09-05 21:47:34 +000024608fi
24609
cristy3ed852e2009-09-05 21:47:34 +000024610if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024612$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024613if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024614 $as_echo_n "(cached) " >&6
24615else
24616 ac_check_lib_save_LIBS=$LIBS
24617LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024619/* end confdefs.h. */
24620
24621/* Override any GCC internal prototype to avoid an error.
24622 Use char because int might match the return type of a GCC
24623 builtin and then its argument prototype would still apply. */
24624#ifdef __cplusplus
24625extern "C"
24626#endif
24627char pow ();
24628int
24629main ()
24630{
24631return pow ();
24632 ;
24633 return 0;
24634}
24635_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024636if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024637 ac_cv_lib_m_pow=yes
24638else
cristy8b350f62009-11-15 23:12:43 +000024639 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024640fi
cristy8b350f62009-11-15 23:12:43 +000024641rm -f core conftest.err conftest.$ac_objext \
24642 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024643LIBS=$ac_check_lib_save_LIBS
24644fi
cristy8b350f62009-11-15 23:12:43 +000024645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024646$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024647if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024648 POW_LIB=-lm
24649else
cristy8b350f62009-11-15 23:12:43 +000024650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024651$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24652fi
24653
24654fi
24655
24656fi
24657
cristy3ed852e2009-09-05 21:47:34 +000024658for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024659do :
24660 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024661if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024662 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024663#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024664_ACEOF
24665
cristy8b350f62009-11-15 23:12:43 +000024666ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024667if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024668
cristy8b350f62009-11-15 23:12:43 +000024669$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024670
24671fi
24672
24673fi
24674done
24675
24676
24677
cristy161b9262010-03-20 19:34:32 +000024678#
24679# Find math library
24680#
24681MATH_LIBS=''
24682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24683$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024684if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024685 $as_echo_n "(cached) " >&6
24686else
24687 ac_check_lib_save_LIBS=$LIBS
24688LIBS="-lm $LIBS"
24689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24690/* end confdefs.h. */
24691
24692/* Override any GCC internal prototype to avoid an error.
24693 Use char because int might match the return type of a GCC
24694 builtin and then its argument prototype would still apply. */
24695#ifdef __cplusplus
24696extern "C"
24697#endif
24698char sqrt ();
24699int
24700main ()
24701{
24702return sqrt ();
24703 ;
24704 return 0;
24705}
24706_ACEOF
24707if ac_fn_c_try_link "$LINENO"; then :
24708 ac_cv_lib_m_sqrt=yes
24709else
24710 ac_cv_lib_m_sqrt=no
24711fi
24712rm -f core conftest.err conftest.$ac_objext \
24713 conftest$ac_exeext conftest.$ac_ext
24714LIBS=$ac_check_lib_save_LIBS
24715fi
24716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24717$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024718if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024719 MATH_LIBS="-lm"
24720fi
24721
24722LIBS="$MATH_LIBS $LIBS"
24723
24724
cristyb33454f2011-08-03 02:10:45 +000024725for 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 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 strerror_r 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 +000024726do :
24727 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24728ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024729if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024730 cat >>confdefs.h <<_ACEOF
24731#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24732_ACEOF
24733
24734fi
24735done
24736
24737
cristye43a45e2009-09-28 14:49:00 +000024738#
24739# Check for clock_gettime().
24740#
cristy8b350f62009-11-15 23:12:43 +000024741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024742$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024743if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024744 $as_echo_n "(cached) " >&6
24745else
24746 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024748/* end confdefs.h. */
24749
24750/* Override any GCC internal prototype to avoid an error.
24751 Use char because int might match the return type of a GCC
24752 builtin and then its argument prototype would still apply. */
24753#ifdef __cplusplus
24754extern "C"
24755#endif
24756char clock_gettime ();
24757int
24758main ()
24759{
24760return clock_gettime ();
24761 ;
24762 return 0;
24763}
24764_ACEOF
24765for ac_lib in '' rt; do
24766 if test -z "$ac_lib"; then
24767 ac_res="none required"
24768 else
24769 ac_res=-l$ac_lib
24770 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24771 fi
cristy8b350f62009-11-15 23:12:43 +000024772 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024773 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024774fi
cristy8b350f62009-11-15 23:12:43 +000024775rm -f core conftest.err conftest.$ac_objext \
24776 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024777 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024778 break
24779fi
24780done
cristyda16f162011-02-19 23:52:17 +000024781if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024782
cristye43a45e2009-09-28 14:49:00 +000024783else
24784 ac_cv_search_clock_gettime=no
24785fi
24786rm conftest.$ac_ext
24787LIBS=$ac_func_search_save_LIBS
24788fi
cristy8b350f62009-11-15 23:12:43 +000024789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024790$as_echo "$ac_cv_search_clock_gettime" >&6; }
24791ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024792if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24794
24795
cristy8b350f62009-11-15 23:12:43 +000024796$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024797
cristy8b350f62009-11-15 23:12:43 +000024798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024799$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024801/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024802
24803 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024804int
24805main ()
24806{
24807clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024808 ;
24809 return 0;
24810}
24811_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024812if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024813
cristy8b350f62009-11-15 23:12:43 +000024814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000024815$as_echo "yes" >&6; }
24816
cristy8b350f62009-11-15 23:12:43 +000024817$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024818
24819
24820else
cristy8b350f62009-11-15 23:12:43 +000024821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000024822$as_echo "no" >&6; }
24823
24824fi
cristye43a45e2009-09-28 14:49:00 +000024825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24826
24827else
24828
cristy8b350f62009-11-15 23:12:43 +000024829 for ac_func in gettimeofday ftime
24830do :
24831 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24832ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024833if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024834 cat >>confdefs.h <<_ACEOF
24835#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24836_ACEOF
24837 break
24838fi
24839done
24840
24841
24842
24843fi
24844
24845
cristy3ed852e2009-09-05 21:47:34 +000024846########
24847#
24848# Check for function prototypes
24849#
24850########
24851
cristy8b350f62009-11-15 23:12:43 +000024852ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024853#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024854"
cristyda16f162011-02-19 23:52:17 +000024855if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024856 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024857else
cristy8b350f62009-11-15 23:12:43 +000024858 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024859fi
24860
cristy3ed852e2009-09-05 21:47:34 +000024861cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024862#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024863_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024864ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024865#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024866"
cristyda16f162011-02-19 23:52:17 +000024867if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024868 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024869else
cristy8b350f62009-11-15 23:12:43 +000024870 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024871fi
24872
cristy3ed852e2009-09-05 21:47:34 +000024873cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024874#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024875_ACEOF
24876
24877
cristy8b350f62009-11-15 23:12:43 +000024878ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024879#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024880"
cristyda16f162011-02-19 23:52:17 +000024881if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024882 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024883else
cristy8b350f62009-11-15 23:12:43 +000024884 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024885fi
24886
cristy3ed852e2009-09-05 21:47:34 +000024887cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024888#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024889_ACEOF
24890
24891
cristy8b350f62009-11-15 23:12:43 +000024892ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000024893#include <stdio.h>
24894#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000024895"
cristyda16f162011-02-19 23:52:17 +000024896if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024897 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024898else
cristy8b350f62009-11-15 23:12:43 +000024899 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024900fi
24901
cristy3ed852e2009-09-05 21:47:34 +000024902cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024903#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024904_ACEOF
24905
24906
cristy3ed852e2009-09-05 21:47:34 +000024907########
24908#
24909# C++ Support Tests (For Magick++)
24910#
24911########
24912have_magick_plus_plus='no'
24913if test "$with_magick_plus_plus" = 'yes'; then
24914 OLIBS="$LIBS"
24915 LIBS=''
24916 ac_ext=cpp
24917ac_cpp='$CXXCPP $CPPFLAGS'
24918ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24919ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24920ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24921
24922
24923 # Full set of headers used...
24924 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24925 # functional iomanip iosfwd iostream iterator list string strstream utility
24926 ac_ext=cpp
24927ac_cpp='$CXXCPP $CPPFLAGS'
24928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24931
24932 ac_ext=cpp
24933ac_cpp='$CXXCPP $CPPFLAGS'
24934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24937if test -z "$CXX"; then
24938 if test -n "$CCC"; then
24939 CXX=$CCC
24940 else
24941 if test -n "$ac_tool_prefix"; then
24942 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24943 do
24944 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24945set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024947$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024948if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024949 $as_echo_n "(cached) " >&6
24950else
24951 if test -n "$CXX"; then
24952 ac_cv_prog_CXX="$CXX" # Let the user override the test.
24953else
24954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24955for as_dir in $PATH
24956do
24957 IFS=$as_save_IFS
24958 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024959 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24961 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024963 break 2
24964 fi
24965done
cristy8b350f62009-11-15 23:12:43 +000024966 done
cristy3ed852e2009-09-05 21:47:34 +000024967IFS=$as_save_IFS
24968
24969fi
24970fi
24971CXX=$ac_cv_prog_CXX
24972if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024974$as_echo "$CXX" >&6; }
24975else
cristy8b350f62009-11-15 23:12:43 +000024976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024977$as_echo "no" >&6; }
24978fi
24979
24980
24981 test -n "$CXX" && break
24982 done
24983fi
24984if test -z "$CXX"; then
24985 ac_ct_CXX=$CXX
24986 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24987do
24988 # Extract the first word of "$ac_prog", so it can be a program name with args.
24989set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024991$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024992if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024993 $as_echo_n "(cached) " >&6
24994else
24995 if test -n "$ac_ct_CXX"; then
24996 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
24997else
24998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24999for as_dir in $PATH
25000do
25001 IFS=$as_save_IFS
25002 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025003 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25005 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025007 break 2
25008 fi
25009done
cristy8b350f62009-11-15 23:12:43 +000025010 done
cristy3ed852e2009-09-05 21:47:34 +000025011IFS=$as_save_IFS
25012
25013fi
25014fi
25015ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25016if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025018$as_echo "$ac_ct_CXX" >&6; }
25019else
cristy8b350f62009-11-15 23:12:43 +000025020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025021$as_echo "no" >&6; }
25022fi
25023
25024
25025 test -n "$ac_ct_CXX" && break
25026done
25027
25028 if test "x$ac_ct_CXX" = x; then
25029 CXX="g++"
25030 else
25031 case $cross_compiling:$ac_tool_warned in
25032yes:)
cristy8b350f62009-11-15 23:12:43 +000025033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25035ac_tool_warned=yes ;;
25036esac
25037 CXX=$ac_ct_CXX
25038 fi
25039fi
25040
25041 fi
25042fi
25043# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025044$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025045set X $ac_compile
25046ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025047for ac_option in --version -v -V -qversion; do
25048 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025049case "(($ac_try" in
25050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25051 *) ac_try_echo=$ac_try;;
25052esac
cristy8b350f62009-11-15 23:12:43 +000025053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25054$as_echo "$ac_try_echo"; } >&5
25055 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025056 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025057 if test -s conftest.err; then
25058 sed '10a\
25059... rest of stderr output deleted ...
25060 10q' conftest.err >conftest.er1
25061 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025062 fi
cristycd4c5312009-11-22 01:19:08 +000025063 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25065 test $ac_status = 0; }
25066done
cristy3ed852e2009-09-05 21:47:34 +000025067
cristy8b350f62009-11-15 23:12:43 +000025068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025069$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025070if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025071 $as_echo_n "(cached) " >&6
25072else
cristy8b350f62009-11-15 23:12:43 +000025073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025074/* end confdefs.h. */
25075
25076int
25077main ()
25078{
25079#ifndef __GNUC__
25080 choke me
25081#endif
25082
25083 ;
25084 return 0;
25085}
25086_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025087if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025088 ac_compiler_gnu=yes
25089else
cristy8b350f62009-11-15 23:12:43 +000025090 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025091fi
cristy3ed852e2009-09-05 21:47:34 +000025092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25093ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25094
25095fi
cristy8b350f62009-11-15 23:12:43 +000025096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025097$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25098if test $ac_compiler_gnu = yes; then
25099 GXX=yes
25100else
25101 GXX=
25102fi
25103ac_test_CXXFLAGS=${CXXFLAGS+set}
25104ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025106$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025107if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025108 $as_echo_n "(cached) " >&6
25109else
25110 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25111 ac_cxx_werror_flag=yes
25112 ac_cv_prog_cxx_g=no
25113 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025115/* end confdefs.h. */
25116
25117int
25118main ()
25119{
25120
25121 ;
25122 return 0;
25123}
25124_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025125if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025126 ac_cv_prog_cxx_g=yes
25127else
cristy8b350f62009-11-15 23:12:43 +000025128 CXXFLAGS=""
25129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025130/* end confdefs.h. */
25131
25132int
25133main ()
25134{
25135
25136 ;
25137 return 0;
25138}
25139_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025140if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025141
cristy8b350f62009-11-15 23:12:43 +000025142else
25143 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025144 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025146/* end confdefs.h. */
25147
25148int
25149main ()
25150{
25151
25152 ;
25153 return 0;
25154}
25155_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025156if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025157 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025158fi
cristy3ed852e2009-09-05 21:47:34 +000025159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25160fi
cristy3ed852e2009-09-05 21:47:34 +000025161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25162fi
cristy3ed852e2009-09-05 21:47:34 +000025163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25164 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25165fi
cristy8b350f62009-11-15 23:12:43 +000025166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025167$as_echo "$ac_cv_prog_cxx_g" >&6; }
25168if test "$ac_test_CXXFLAGS" = set; then
25169 CXXFLAGS=$ac_save_CXXFLAGS
25170elif test $ac_cv_prog_cxx_g = yes; then
25171 if test "$GXX" = yes; then
25172 CXXFLAGS="-g -O2"
25173 else
25174 CXXFLAGS="-g"
25175 fi
25176else
25177 if test "$GXX" = yes; then
25178 CXXFLAGS="-O2"
25179 else
25180 CXXFLAGS=
25181 fi
25182fi
25183ac_ext=cpp
25184ac_cpp='$CXXCPP $CPPFLAGS'
25185ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25186ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25187ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25188
cristy73bd4a52010-10-05 11:24:23 +000025189depcc="$CXX" am_compiler_list=
25190
25191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25192$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025193if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025194 $as_echo_n "(cached) " >&6
25195else
25196 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25197 # We make a subdir and do the tests there. Otherwise we can end up
25198 # making bogus files that we don't know about and never remove. For
25199 # instance it was reported that on HP-UX the gcc test will end up
25200 # making a dummy file named `D' -- because `-MD' means `put the output
25201 # in D'.
25202 mkdir conftest.dir
25203 # Copy depcomp to subdir because otherwise we won't find it if we're
25204 # using a relative directory.
25205 cp "$am_depcomp" conftest.dir
25206 cd conftest.dir
25207 # We will build objects and dependencies in a subdirectory because
25208 # it helps to detect inapplicable dependency modes. For instance
25209 # both Tru64's cc and ICC support -MD to output dependencies as a
25210 # side effect of compilation, but ICC will put the dependencies in
25211 # the current directory while Tru64 will put them in the object
25212 # directory.
25213 mkdir sub
25214
25215 am_cv_CXX_dependencies_compiler_type=none
25216 if test "$am_compiler_list" = ""; then
25217 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25218 fi
25219 am__universal=false
25220 case " $depcc " in #(
25221 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25222 esac
25223
25224 for depmode in $am_compiler_list; do
25225 # Setup a source with many dependencies, because some compilers
25226 # like to wrap large dependency lists on column 80 (with \), and
25227 # we should not choose a depcomp mode which is confused by this.
25228 #
25229 # We need to recreate these files for each test, as the compiler may
25230 # overwrite some of them when testing with obscure command lines.
25231 # This happens at least with the AIX C compiler.
25232 : > sub/conftest.c
25233 for i in 1 2 3 4 5 6; do
25234 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25235 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25236 # Solaris 8's {/usr,}/bin/sh.
25237 touch sub/conftst$i.h
25238 done
25239 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25240
25241 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25242 # mode. It turns out that the SunPro C++ compiler does not properly
25243 # handle `-M -o', and we need to detect this. Also, some Intel
25244 # versions had trouble with output in subdirs
25245 am__obj=sub/conftest.${OBJEXT-o}
25246 am__minus_obj="-o $am__obj"
25247 case $depmode in
25248 gcc)
25249 # This depmode causes a compiler race in universal mode.
25250 test "$am__universal" = false || continue
25251 ;;
25252 nosideeffect)
25253 # after this tag, mechanisms are not by side-effect, so they'll
25254 # only be used when explicitly requested
25255 if test "x$enable_dependency_tracking" = xyes; then
25256 continue
25257 else
25258 break
25259 fi
25260 ;;
25261 msvisualcpp | msvcmsys)
25262 # This compiler won't grok `-c -o', but also, the minuso test has
25263 # not run yet. These depmodes are late enough in the game, and
25264 # so weak that their functioning should not be impacted.
25265 am__obj=conftest.${OBJEXT-o}
25266 am__minus_obj=
25267 ;;
25268 none) break ;;
25269 esac
25270 if depmode=$depmode \
25271 source=sub/conftest.c object=$am__obj \
25272 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25273 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25274 >/dev/null 2>conftest.err &&
25275 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25276 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25277 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25278 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25279 # icc doesn't choke on unknown options, it will just issue warnings
25280 # or remarks (even with -Werror). So we grep stderr for any message
25281 # that says an option was ignored or not supported.
25282 # When given -MP, icc 7.0 and 7.1 complain thusly:
25283 # icc: Command line warning: ignoring option '-M'; no argument required
25284 # The diagnosis changed in icc 8.0:
25285 # icc: Command line remark: option '-MP' not supported
25286 if (grep 'ignoring option' conftest.err ||
25287 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25288 am_cv_CXX_dependencies_compiler_type=$depmode
25289 break
25290 fi
25291 fi
25292 done
25293
25294 cd ..
25295 rm -rf conftest.dir
25296else
25297 am_cv_CXX_dependencies_compiler_type=none
25298fi
25299
25300fi
25301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25302$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25303CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25304
25305 if
25306 test "x$enable_dependency_tracking" != xno \
25307 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25308 am__fastdepCXX_TRUE=
25309 am__fastdepCXX_FALSE='#'
25310else
25311 am__fastdepCXX_TRUE='#'
25312 am__fastdepCXX_FALSE=
25313fi
25314
25315
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25317$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025318if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025319 $as_echo_n "(cached) " >&6
25320else
25321
25322 ac_ext=cpp
25323ac_cpp='$CXXCPP $CPPFLAGS'
25324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25327
25328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25329/* end confdefs.h. */
25330
25331int f(int x){return 1;}
25332int f(char x){return 1;}
25333int f(bool x){return 1;}
25334
25335int
25336main ()
25337{
25338bool b = true; return f(b);
25339 ;
25340 return 0;
25341}
25342_ACEOF
25343if ac_fn_cxx_try_compile "$LINENO"; then :
25344 ax_cv_cxx_bool=yes
25345else
25346 ax_cv_cxx_bool=no
25347fi
25348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25349 ac_ext=cpp
25350ac_cpp='$CXXCPP $CPPFLAGS'
25351ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25352ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25353ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25354
25355
25356fi
25357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25358$as_echo "$ax_cv_cxx_bool" >&6; }
25359if test "$ax_cv_cxx_bool" = yes; then
25360
25361$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25362
25363fi
25364
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25366$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025367if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025368 $as_echo_n "(cached) " >&6
25369else
25370
25371 ac_ext=cpp
25372ac_cpp='$CXXCPP $CPPFLAGS'
25373ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25374ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25375ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25376
25377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25378/* end confdefs.h. */
25379namespace Outer { namespace Inner { int i = 0; }}
25380int
25381main ()
25382{
25383using namespace Outer::Inner; return i;
25384 ;
25385 return 0;
25386}
25387_ACEOF
25388if ac_fn_cxx_try_compile "$LINENO"; then :
25389 ax_cv_cxx_namespaces=yes
25390else
25391 ax_cv_cxx_namespaces=no
25392fi
25393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25394 ac_ext=cpp
25395ac_cpp='$CXXCPP $CPPFLAGS'
25396ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25397ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25398ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25399
25400
25401fi
25402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25403$as_echo "$ax_cv_cxx_namespaces" >&6; }
25404if test "$ax_cv_cxx_namespaces" = yes; then
25405
25406$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25407
25408fi
25409
25410
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25412$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025413if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025414 $as_echo_n "(cached) " >&6
25415else
25416
25417 ac_ext=cpp
25418ac_cpp='$CXXCPP $CPPFLAGS'
25419ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25420ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25421ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25422
25423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25424/* end confdefs.h. */
25425#include <iostream>
25426 std::istream& is = std::cin;
25427int
25428main ()
25429{
25430
25431 ;
25432 return 0;
25433}
25434_ACEOF
25435if ac_fn_cxx_try_compile "$LINENO"; then :
25436 ax_cv_cxx_have_std_namespace=yes
25437else
25438 ax_cv_cxx_have_std_namespace=no
25439fi
25440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25441 ac_ext=cpp
25442ac_cpp='$CXXCPP $CPPFLAGS'
25443ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25444ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25446
25447
25448fi
25449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25450$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25451 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25452
25453$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25454
25455 fi
25456
25457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25458$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025459if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025460 $as_echo_n "(cached) " >&6
25461else
25462
25463
25464 ac_ext=cpp
25465ac_cpp='$CXXCPP $CPPFLAGS'
25466ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25467ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25468ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25469
25470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25471/* end confdefs.h. */
25472#include <iostream>
25473#include <map>
25474#include <iomanip>
25475#include <cmath>
25476#ifdef HAVE_NAMESPACES
25477using namespace std;
25478#endif
25479int
25480main ()
25481{
25482return 0;
25483 ;
25484 return 0;
25485}
25486_ACEOF
25487if ac_fn_cxx_try_compile "$LINENO"; then :
25488 ac_cv_cxx_have_std_libs=yes
25489else
25490 ac_cv_cxx_have_std_libs=no
25491fi
25492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25493 ac_ext=cpp
25494ac_cpp='$CXXCPP $CPPFLAGS'
25495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25498
25499
25500fi
25501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25502$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25503if test "$ac_cv_cxx_have_std_libs" = yes; then
25504
25505$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25506
25507fi
25508
cristy3ed852e2009-09-05 21:47:34 +000025509
25510 OPENMP_CXXFLAGS=
25511 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025512if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025513 enableval=$enable_openmp;
25514fi
25515
25516 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25518$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025519if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025520 $as_echo_n "(cached) " >&6
25521else
cristy8b350f62009-11-15 23:12:43 +000025522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25523/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025524
25525#ifndef _OPENMP
25526 choke me
25527#endif
25528#include <omp.h>
25529int main () { return omp_get_num_threads (); }
25530
25531_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025532if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025533 ac_cv_prog_cxx_openmp='none needed'
25534else
cristy8b350f62009-11-15 23:12:43 +000025535 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000025536 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25537 ac_save_CXXFLAGS=$CXXFLAGS
25538 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25540/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025541
25542#ifndef _OPENMP
25543 choke me
25544#endif
25545#include <omp.h>
25546int main () { return omp_get_num_threads (); }
25547
25548_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025549if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025550 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025551fi
cristy8b350f62009-11-15 23:12:43 +000025552rm -f core conftest.err conftest.$ac_objext \
25553 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025554 CXXFLAGS=$ac_save_CXXFLAGS
25555 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25556 break
25557 fi
25558 done
25559fi
cristy8b350f62009-11-15 23:12:43 +000025560rm -f core conftest.err conftest.$ac_objext \
25561 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025562fi
cristy8b350f62009-11-15 23:12:43 +000025563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025564$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25565 case $ac_cv_prog_cxx_openmp in #(
25566 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025567 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025568 *)
cristy8b350f62009-11-15 23:12:43 +000025569 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025570 esac
25571 fi
25572
25573
25574 ac_ext=c
25575ac_cpp='$CPP $CPPFLAGS'
25576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25578ac_compiler_gnu=$ac_cv_c_compiler_gnu
25579
25580
cristy8b350f62009-11-15 23:12:43 +000025581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025582$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25583 if \
cristy964cb7f2010-04-25 23:18:00 +000025584 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025585 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025586 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025587 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025588 have_magick_plus_plus='yes'
25589 else
25590 have_magick_plus_plus='no (failed tests)'
25591 fi
cristy8b350f62009-11-15 23:12:43 +000025592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000025593$as_echo "$have_magick_plus_plus" >&6; }
25594 LIBS="$OLIBS"
25595fi
cristy73bd4a52010-10-05 11:24:23 +000025596 if test "$have_magick_plus_plus" = 'yes'; then
25597 WITH_MAGICK_PLUS_PLUS_TRUE=
25598 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25599else
25600 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25601 WITH_MAGICK_PLUS_PLUS_FALSE=
25602fi
25603
cristy3ed852e2009-09-05 21:47:34 +000025604
25605# Only check for delegate libraries in subdirectories if requested.
25606if test "$enable_delegate_build" != 'no'; then
25607 # Check for delegate sub-directories and add -I & -L options as required.
25608 # This presumes that delegates are installed as detailed in the ImageMagick
25609 # README. If delegates are installed in a standard location where the
25610 # compiler will automatically find them then these options should not be
25611 # required.
25612
25613 #
25614 # Most delegates have includes in the same directory as the library, but not all...
25615 #
25616 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000025617 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025618 if test -d "$builddir/$dir"; then
25619 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25620 else
25621 if test -d "$srcdirfull/$dir"; then
25622 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25623 fi
25624 fi
25625 done
25626
25627 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000025628 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025629 if test -d "$builddir/$dir/.libs"; then
25630 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25631 else
25632 if test -d "$srcdirfull/$dir/.libs"; then
25633 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25634 fi
25635 fi
25636 if test -d "$builddir/$dir"; then
25637 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25638 else
25639 if test -d "$srcdirfull/$dir"; then
25640 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25641 fi
25642 fi
25643 done
25644fi
25645
25646# Assume that delegate headers reside under same directory as ImageMagick
25647# installation prefix.
25648MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25649
25650#
25651# Find the X11 RGB database
25652#
cristy8b350f62009-11-15 23:12:43 +000025653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025654$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025655if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025656 $as_echo_n "(cached) " >&6
25657else
25658 # Look for the header file in a standard set of common directories.
25659# Check X11 before X11Rn because it is often a symlink to the current release.
25660 for ac_dir in \
25661 /lib/usr/lib/X11 \
25662 /usr/X11/lib \
25663 /usr/X11R4/lib \
25664 /usr/X11R5/lib \
25665 /usr/X11R6/lib \
25666 /usr/X11R7/lib \
25667 /usr/X386/lib \
25668 /usr/XFree86/lib/X11 \
25669 /usr/athena/lib \
25670 /usr/lib \
25671 /usr/lib/X11 \
25672 /usr/lib/X11R4 \
25673 /usr/lib/X11R5 \
25674 /usr/lib/X11R6 \
25675 /usr/lib/X11R7 \
25676 /usr/local/X11/lib \
25677 /usr/local/X11R4/lib \
25678 /usr/local/X11R5/lib \
25679 /usr/local/X11R6/lib \
25680 /usr/local/lib \
25681 /usr/local/lib/X11 \
25682 /usr/local/lib/X11R4 \
25683 /usr/local/lib/X11R5 \
25684 /usr/local/lib/X11R6 \
25685 /usr/local/lib/X11R7 \
25686 /usr/local/x11r5/lib \
25687 /usr/lpp/Xamples/lib \
25688 /usr/openwin/lib \
25689 /usr/openwin/share/lib \
25690 /usr/unsupported/lib \
25691 /usr/x386/lib \
25692 ; do
25693 if test -f "$ac_dir/X11/rgb.txt"; then
25694 im_cv_x_configure="$ac_dir/X11/"
25695 break
25696 elif test -f "$ac_dir/rgb.txt"; then
25697 im_cv_x_configure="$ac_dir/"
25698 break
25699 fi
25700
25701 done
25702fi
cristy8b350f62009-11-15 23:12:43 +000025703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025704$as_echo "$im_cv_x_configure" >&6; }
25705X11_CONFIGURE_PATH="$im_cv_x_configure"
25706case "${build_os}" in
25707 mingw* )
25708 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25709 ;;
25710esac
25711
25712cat >>confdefs.h <<_ACEOF
25713#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25714_ACEOF
25715
25716
25717#
25718# Find OpenMP library
25719#
25720GOMP_LIBS=''
25721if test "$enable_openmp" != 'no'; then
25722 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000025723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025724$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025725if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025726 $as_echo_n "(cached) " >&6
25727else
25728 ac_check_lib_save_LIBS=$LIBS
25729LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025731/* end confdefs.h. */
25732
25733/* Override any GCC internal prototype to avoid an error.
25734 Use char because int might match the return type of a GCC
25735 builtin and then its argument prototype would still apply. */
25736#ifdef __cplusplus
25737extern "C"
25738#endif
25739char GOMP_parallel_start ();
25740int
25741main ()
25742{
25743return GOMP_parallel_start ();
25744 ;
25745 return 0;
25746}
25747_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025748if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025749 ac_cv_lib_gomp_GOMP_parallel_start=yes
25750else
cristy8b350f62009-11-15 23:12:43 +000025751 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025752fi
cristy8b350f62009-11-15 23:12:43 +000025753rm -f core conftest.err conftest.$ac_objext \
25754 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025755LIBS=$ac_check_lib_save_LIBS
25756fi
cristy8b350f62009-11-15 23:12:43 +000025757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025758$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025759if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025760 GOMP_LIBS="-lgomp"
25761fi
25762 # gcc
25763 else
cristy8b350f62009-11-15 23:12:43 +000025764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025765$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025766if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025767 $as_echo_n "(cached) " >&6
25768else
25769 ac_check_lib_save_LIBS=$LIBS
25770LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025772/* end confdefs.h. */
25773
25774/* Override any GCC internal prototype to avoid an error.
25775 Use char because int might match the return type of a GCC
25776 builtin and then its argument prototype would still apply. */
25777#ifdef __cplusplus
25778extern "C"
25779#endif
25780char sunw_mp_register_warn ();
25781int
25782main ()
25783{
25784return sunw_mp_register_warn ();
25785 ;
25786 return 0;
25787}
25788_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025789if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025790 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25791else
cristy8b350f62009-11-15 23:12:43 +000025792 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025793fi
cristy8b350f62009-11-15 23:12:43 +000025794rm -f core conftest.err conftest.$ac_objext \
25795 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025796LIBS=$ac_check_lib_save_LIBS
25797fi
cristy8b350f62009-11-15 23:12:43 +000025798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025799$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025800if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025801 GOMP_LIBS="-lmtsk"
25802fi
25803 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000025804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025805$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025806if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025807 $as_echo_n "(cached) " >&6
25808else
25809 ac_check_lib_save_LIBS=$LIBS
25810LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025812/* end confdefs.h. */
25813
25814/* Override any GCC internal prototype to avoid an error.
25815 Use char because int might match the return type of a GCC
25816 builtin and then its argument prototype would still apply. */
25817#ifdef __cplusplus
25818extern "C"
25819#endif
25820char _xlsmpFlush ();
25821int
25822main ()
25823{
25824return _xlsmpFlush ();
25825 ;
25826 return 0;
25827}
25828_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025829if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025830 ac_cv_lib_xlsmp__xlsmpFlush=yes
25831else
cristy8b350f62009-11-15 23:12:43 +000025832 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000025833fi
cristy8b350f62009-11-15 23:12:43 +000025834rm -f core conftest.err conftest.$ac_objext \
25835 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025836LIBS=$ac_check_lib_save_LIBS
25837fi
cristy8b350f62009-11-15 23:12:43 +000025838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000025839$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000025840if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025841 GOMP_LIBS="-lxlsmp"
25842fi
25843 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000025844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025845$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025846if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025847 $as_echo_n "(cached) " >&6
25848else
25849 ac_check_lib_save_LIBS=$LIBS
25850LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025852/* end confdefs.h. */
25853
25854/* Override any GCC internal prototype to avoid an error.
25855 Use char because int might match the return type of a GCC
25856 builtin and then its argument prototype would still apply. */
25857#ifdef __cplusplus
25858extern "C"
25859#endif
25860char mp_destroy ();
25861int
25862main ()
25863{
25864return mp_destroy ();
25865 ;
25866 return 0;
25867}
25868_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025869if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025870 ac_cv_lib_mp_mp_destroy=yes
25871else
cristy8b350f62009-11-15 23:12:43 +000025872 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000025873fi
cristy8b350f62009-11-15 23:12:43 +000025874rm -f core conftest.err conftest.$ac_objext \
25875 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025876LIBS=$ac_check_lib_save_LIBS
25877fi
cristy8b350f62009-11-15 23:12:43 +000025878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000025879$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000025880if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025881 GOMP_LIBS="-lmp"
25882fi
25883 # SGI IRIX 6.5 MIPSpro C/C++
25884 fi
25885 LIBS="$GOMP_LIBS $LIBS"
25886fi
25887
25888
25889#
25890# Find Posix threads library
25891#
25892THREAD_LIBS=''
25893if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25894
25895 if test "x$PTHREAD_LIBS" = "x"; then
25896 case "${host_cpu}-${host_os}" in
25897 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000025898
25899
25900
25901ac_ext=c
25902ac_cpp='$CPP $CPPFLAGS'
25903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25905ac_compiler_gnu=$ac_cv_c_compiler_gnu
25906
25907magick_pthread_lib_ok=no
25908
25909LIB=-lc_r
25910save_LIBS="$LIBS"
25911LIBS="$LIBS $LIB"
25912
25913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25914$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25916/* end confdefs.h. */
25917#include <pthread.h>
25918int
25919main ()
25920{
25921 pthread_t th;
25922 pthread_join(th, 0);
25923 pthread_attr_init(0);
25924 pthread_cleanup_push(0, 0);
25925 pthread_create(0,0,0,0);
25926 pthread_cleanup_pop(0);
25927 ;
25928 return 0;
25929}
25930_ACEOF
25931if ac_fn_c_try_link "$LINENO"; then :
25932 magick_pthread_lib_ok=yes
25933fi
25934rm -f core conftest.err conftest.$ac_objext \
25935 conftest$ac_exeext conftest.$ac_ext
25936
25937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25938$as_echo "${magick_pthread_lib_ok}" >&6; }
25939if test "$magick_pthread_lib_ok" = yes
25940then
25941 PTHREAD_LIBS=-lc_r
25942 :
25943else
25944
25945 :
25946fi
25947
25948LIBS="$save_LIBS"
25949
25950ac_ext=c
25951ac_cpp='$CPP $CPPFLAGS'
25952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25954ac_compiler_gnu=$ac_cv_c_compiler_gnu
25955
25956 ;;
cristy3ed852e2009-09-05 21:47:34 +000025957 esac
25958 fi
25959
25960 for lib in pthread pthreads; do
25961 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000025962
25963
25964
25965ac_ext=c
25966ac_cpp='$CPP $CPPFLAGS'
25967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25969ac_compiler_gnu=$ac_cv_c_compiler_gnu
25970
25971magick_pthread_lib_ok=no
25972
25973LIB=-l$lib
25974save_LIBS="$LIBS"
25975LIBS="$LIBS $LIB"
25976
25977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25978$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25980/* end confdefs.h. */
25981#include <pthread.h>
25982int
25983main ()
25984{
25985 pthread_t th;
25986 pthread_join(th, 0);
25987 pthread_attr_init(0);
25988 pthread_cleanup_push(0, 0);
25989 pthread_create(0,0,0,0);
25990 pthread_cleanup_pop(0);
25991 ;
25992 return 0;
25993}
25994_ACEOF
25995if ac_fn_c_try_link "$LINENO"; then :
25996 magick_pthread_lib_ok=yes
25997fi
25998rm -f core conftest.err conftest.$ac_objext \
25999 conftest$ac_exeext conftest.$ac_ext
26000
26001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26002$as_echo "${magick_pthread_lib_ok}" >&6; }
26003if test "$magick_pthread_lib_ok" = yes
26004then
26005 PTHREAD_LIBS=-l$lib
26006 :
26007else
26008
26009 :
26010fi
26011
26012LIBS="$save_LIBS"
26013
26014ac_ext=c
26015ac_cpp='$CPP $CPPFLAGS'
26016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26018ac_compiler_gnu=$ac_cv_c_compiler_gnu
26019
26020
cristy3ed852e2009-09-05 21:47:34 +000026021 fi
26022 done
26023
26024 THREAD_LIBS="$PTHREAD_LIBS"
26025 LIBS="$LIBS $THREAD_LIBS"
26026fi
26027
26028
26029#
26030# Check for umem.
26031#
26032have_umem='no'
26033UMEM_LIBS=''
26034if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026036$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026038$as_echo "" >&6; }
26039 failed=0
26040 passed=0
cristy8b350f62009-11-15 23:12:43 +000026041 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026042if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026043 passed=`expr $passed + 1`
26044else
26045 failed=`expr $failed + 1`
26046fi
26047
26048
cristy8b350f62009-11-15 23:12:43 +000026049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026050$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026051if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026052 $as_echo_n "(cached) " >&6
26053else
26054 ac_check_lib_save_LIBS=$LIBS
26055LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026057/* end confdefs.h. */
26058
26059/* Override any GCC internal prototype to avoid an error.
26060 Use char because int might match the return type of a GCC
26061 builtin and then its argument prototype would still apply. */
26062#ifdef __cplusplus
26063extern "C"
26064#endif
26065char umem_alloc ();
26066int
26067main ()
26068{
26069return umem_alloc ();
26070 ;
26071 return 0;
26072}
26073_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026074if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026075 ac_cv_lib_umem_umem_alloc=yes
26076else
cristy8b350f62009-11-15 23:12:43 +000026077 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026078fi
cristy8b350f62009-11-15 23:12:43 +000026079rm -f core conftest.err conftest.$ac_objext \
26080 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026081LIBS=$ac_check_lib_save_LIBS
26082fi
cristy8b350f62009-11-15 23:12:43 +000026083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026084$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026085if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026086 passed=`expr $passed + 1`
26087else
26088 failed=`expr $failed + 1`
26089fi
26090
cristy8b350f62009-11-15 23:12:43 +000026091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026092$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026093if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026094 $as_echo_n "(cached) " >&6
26095else
26096 ac_check_lib_save_LIBS=$LIBS
26097LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026099/* end confdefs.h. */
26100
26101/* Override any GCC internal prototype to avoid an error.
26102 Use char because int might match the return type of a GCC
26103 builtin and then its argument prototype would still apply. */
26104#ifdef __cplusplus
26105extern "C"
26106#endif
26107char umem_free ();
26108int
26109main ()
26110{
26111return umem_free ();
26112 ;
26113 return 0;
26114}
26115_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026116if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026117 ac_cv_lib_umem_umem_free=yes
26118else
cristy8b350f62009-11-15 23:12:43 +000026119 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026120fi
cristy8b350f62009-11-15 23:12:43 +000026121rm -f core conftest.err conftest.$ac_objext \
26122 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026123LIBS=$ac_check_lib_save_LIBS
26124fi
cristy8b350f62009-11-15 23:12:43 +000026125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026126$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026127if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026128 passed=`expr $passed + 1`
26129else
26130 failed=`expr $failed + 1`
26131fi
26132
cristy8b350f62009-11-15 23:12:43 +000026133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026134$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26135 if test $passed -gt 0; then
26136 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026138$as_echo "no -- some components failed test" >&6; }
26139 have_umem='no (failed tests)'
26140 else
26141 UMEM_LIBS='-lumem'
26142 LIBS="$UMEM_LIBS $LIBS"
26143
cristy8b350f62009-11-15 23:12:43 +000026144$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026145
cristy8b350f62009-11-15 23:12:43 +000026146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026147$as_echo "yes" >&6; }
26148 have_umem='yes'
26149 fi
26150 else
cristy8b350f62009-11-15 23:12:43 +000026151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026152$as_echo "no" >&6; }
26153 fi
26154fi
cristy73bd4a52010-10-05 11:24:23 +000026155 if test "$have_umem" = 'yes'; then
26156 HasUMEM_TRUE=
26157 HasUMEM_FALSE='#'
26158else
26159 HasUMEM_TRUE='#'
26160 HasUMEM_FALSE=
26161fi
26162
cristy3ed852e2009-09-05 21:47:34 +000026163
26164
26165#
26166# Add support for ccmalloc memory debugging library if requested
26167#
26168have_ccmalloc='no'
26169CCMALLOC_LIBS=''
26170if test "$enable_ccmalloc" = 'yes'; then
26171 # Extract the first word of "ccmalloc", so it can be a program name with args.
26172set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026174$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026175if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026176 $as_echo_n "(cached) " >&6
26177else
26178 case $CCMALLOCDelegate in
26179 [\\/]* | ?:[\\/]*)
26180 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26181 ;;
26182 *)
26183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26184for as_dir in $PATH
26185do
26186 IFS=$as_save_IFS
26187 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026188 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26190 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026192 break 2
26193 fi
26194done
cristy8b350f62009-11-15 23:12:43 +000026195 done
cristy3ed852e2009-09-05 21:47:34 +000026196IFS=$as_save_IFS
26197
26198 ;;
26199esac
26200fi
26201CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26202if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026204$as_echo "$CCMALLOCDelegate" >&6; }
26205else
cristy8b350f62009-11-15 23:12:43 +000026206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026207$as_echo "no" >&6; }
26208fi
26209
26210
26211 if test -n "$CCMALLOCDelegate"; then
26212 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26213 OLIBS="$LIBS"
26214 # Assume that gcc is used with ccmalloc.
26215 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026217$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026218if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026219 $as_echo_n "(cached) " >&6
26220else
26221 ac_check_lib_save_LIBS=$LIBS
26222LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026224/* end confdefs.h. */
26225
26226/* Override any GCC internal prototype to avoid an error.
26227 Use char because int might match the return type of a GCC
26228 builtin and then its argument prototype would still apply. */
26229#ifdef __cplusplus
26230extern "C"
26231#endif
26232char ccmalloc_malloc ();
26233int
26234main ()
26235{
26236return ccmalloc_malloc ();
26237 ;
26238 return 0;
26239}
26240_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026241if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026242 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26243else
cristy8b350f62009-11-15 23:12:43 +000026244 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026245fi
cristy8b350f62009-11-15 23:12:43 +000026246rm -f core conftest.err conftest.$ac_objext \
26247 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026248LIBS=$ac_check_lib_save_LIBS
26249fi
cristy8b350f62009-11-15 23:12:43 +000026250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026251$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026252if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026253 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26254fi
26255
26256 if test -n "$CCMALLOC_LIBS"; then
26257 LIBS="$OLIBS"
26258 LIBS="$LIBS $CCMALLOC_LIBS"
26259 have_ccmalloc='yes'
26260 else
26261 LIBS="$OLIBS"
26262 fi
26263 fi
26264fi
26265
26266#
26267# Add support for efence memory debugging library if requested
26268#
26269if test "$enable_efence" = 'yes'; then
26270 EFENCE_LIBS='-lefence'
26271 LIBS="$EFENCE_LIBS $LIBS"
26272fi
26273
cristy3ed852e2009-09-05 21:47:34 +000026274
26275#
26276# Check for BZLIB
26277#
26278
26279
26280# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026281if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026282 withval=$with_bzlib; with_bzlib=$withval
26283else
26284 with_bzlib='yes'
26285fi
26286
26287
26288if test "$with_bzlib" != 'yes'; then
26289 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26290fi
26291
26292have_bzlib='no'
26293if test "$with_bzlib" != 'no'; then
26294 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026296$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026298$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026300$as_echo "" >&6; }
26301 failed=0
26302 passed=0
26303 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026304 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026305if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026306 passed=`expr $passed + 1`
26307else
26308 failed=`expr $failed + 1`
26309fi
26310
26311
cristy8b350f62009-11-15 23:12:43 +000026312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026313$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026314if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026315 $as_echo_n "(cached) " >&6
26316else
26317 ac_check_lib_save_LIBS=$LIBS
26318LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026320/* end confdefs.h. */
26321
26322/* Override any GCC internal prototype to avoid an error.
26323 Use char because int might match the return type of a GCC
26324 builtin and then its argument prototype would still apply. */
26325#ifdef __cplusplus
26326extern "C"
26327#endif
26328char BZ2_bzDecompress ();
26329int
26330main ()
26331{
26332return BZ2_bzDecompress ();
26333 ;
26334 return 0;
26335}
26336_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026337if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026338 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26339else
cristy8b350f62009-11-15 23:12:43 +000026340 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026341fi
cristy8b350f62009-11-15 23:12:43 +000026342rm -f core conftest.err conftest.$ac_objext \
26343 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026344LIBS=$ac_check_lib_save_LIBS
26345fi
cristy8b350f62009-11-15 23:12:43 +000026346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026347$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026348if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026349 found_libbz=`expr $found_libbz + 1`
26350fi
26351
26352 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026354$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026355if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026356 $as_echo_n "(cached) " >&6
26357else
26358 ac_check_lib_save_LIBS=$LIBS
26359LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026361/* end confdefs.h. */
26362
26363/* Override any GCC internal prototype to avoid an error.
26364 Use char because int might match the return type of a GCC
26365 builtin and then its argument prototype would still apply. */
26366#ifdef __cplusplus
26367extern "C"
26368#endif
26369char _imp__BZ2_decompress ();
26370int
26371main ()
26372{
26373return _imp__BZ2_decompress ();
26374 ;
26375 return 0;
26376}
26377_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026378if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026379 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26380else
cristy8b350f62009-11-15 23:12:43 +000026381 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026382fi
cristy8b350f62009-11-15 23:12:43 +000026383rm -f core conftest.err conftest.$ac_objext \
26384 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026385LIBS=$ac_check_lib_save_LIBS
26386fi
cristy8b350f62009-11-15 23:12:43 +000026387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026388$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026389if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026390 found_libbz=`expr $found_libbz + 1`
26391fi
26392
26393 fi
26394 if test $found_libbz -gt 0; then
26395 passed=`expr $passed + 1`
26396 else
26397 failed=`expr $failed + 1`
26398 fi
cristy8b350f62009-11-15 23:12:43 +000026399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026400$as_echo_n "checking if BZLIB package is complete... " >&6; }
26401 if test $passed -gt 0; then
26402 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026404$as_echo "no -- some components failed test" >&6; }
26405 have_bzlib='no (failed tests)'
26406 else
26407 BZLIB_LIBS='-lbz2'
26408 LIBS="$BZLIB_LIBS $LIBS"
26409
cristy8b350f62009-11-15 23:12:43 +000026410$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026411
cristy8b350f62009-11-15 23:12:43 +000026412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026413$as_echo "yes" >&6; }
26414 have_bzlib='yes'
26415 fi
26416 else
cristy8b350f62009-11-15 23:12:43 +000026417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026418$as_echo "no" >&6; }
26419 fi
26420fi
cristy73bd4a52010-10-05 11:24:23 +000026421 if test "$have_bzlib" = 'yes'; then
26422 BZLIB_DELEGATE_TRUE=
26423 BZLIB_DELEGATE_FALSE='#'
26424else
26425 BZLIB_DELEGATE_TRUE='#'
26426 BZLIB_DELEGATE_FALSE=
26427fi
26428
cristy3ed852e2009-09-05 21:47:34 +000026429
26430
26431#
26432# Find the X11 include and library directories.
26433#
26434IPC_LIBS=''
26435X11_LIBS=''
26436XEXT_LIBS=''
26437XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026439$as_echo_n "checking for X... " >&6; }
26440
26441
26442# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026443if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026444 withval=$with_x;
26445fi
26446
26447# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26448if test "x$with_x" = xno; then
26449 # The user explicitly disabled X.
26450 have_x=disabled
26451else
26452 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026453 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026454 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026455 $as_echo_n "(cached) " >&6
26456else
26457 # One or both of the vars are not set, and there is no cached value.
26458ac_x_includes=no ac_x_libraries=no
26459rm -f -r conftest.dir
26460if mkdir conftest.dir; then
26461 cd conftest.dir
26462 cat >Imakefile <<'_ACEOF'
26463incroot:
26464 @echo incroot='${INCROOT}'
26465usrlibdir:
26466 @echo usrlibdir='${USRLIBDIR}'
26467libdir:
26468 @echo libdir='${LIBDIR}'
26469_ACEOF
26470 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026471 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026472 for ac_var in incroot usrlibdir libdir; do
26473 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26474 done
26475 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26476 for ac_extension in a so sl dylib la dll; do
26477 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26478 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26479 ac_im_usrlibdir=$ac_im_libdir; break
26480 fi
26481 done
26482 # Screen out bogus values from the imake configuration. They are
26483 # bogus both because they are the default anyway, and because
26484 # using them would break gcc on systems where it needs fixed includes.
26485 case $ac_im_incroot in
26486 /usr/include) ac_x_includes= ;;
26487 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26488 esac
26489 case $ac_im_usrlibdir in
26490 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26491 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26492 esac
26493 fi
26494 cd ..
26495 rm -f -r conftest.dir
26496fi
26497
26498# Standard set of common directories for X headers.
26499# Check X11 before X11Rn because it is often a symlink to the current release.
26500ac_x_header_dirs='
26501/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026502/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026503/usr/X11R6/include
26504/usr/X11R5/include
26505/usr/X11R4/include
26506
26507/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026508/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026509/usr/include/X11R6
26510/usr/include/X11R5
26511/usr/include/X11R4
26512
26513/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026514/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026515/usr/local/X11R6/include
26516/usr/local/X11R5/include
26517/usr/local/X11R4/include
26518
26519/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026520/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026521/usr/local/include/X11R6
26522/usr/local/include/X11R5
26523/usr/local/include/X11R4
26524
26525/usr/X386/include
26526/usr/x386/include
26527/usr/XFree86/include/X11
26528
26529/usr/include
26530/usr/local/include
26531/usr/unsupported/include
26532/usr/athena/include
26533/usr/local/x11r5/include
26534/usr/lpp/Xamples/include
26535
26536/usr/openwin/include
26537/usr/openwin/share/include'
26538
26539if test "$ac_x_includes" = no; then
26540 # Guess where to find include files, by looking for Xlib.h.
26541 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026543/* end confdefs.h. */
26544#include <X11/Xlib.h>
26545_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026546if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026547 # We can compile using X headers with no special include directory.
26548ac_x_includes=
26549else
cristyc7083c12009-10-14 03:16:55 +000026550 for ac_dir in $ac_x_header_dirs; do
26551 if test -r "$ac_dir/X11/Xlib.h"; then
26552 ac_x_includes=$ac_dir
26553 break
26554 fi
26555done
26556fi
cristyda16f162011-02-19 23:52:17 +000026557rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026558fi # $ac_x_includes = no
26559
26560if test "$ac_x_libraries" = no; then
26561 # Check for the libraries.
26562 # See if we find them without any special options.
26563 # Don't add to $LIBS permanently.
26564 ac_save_LIBS=$LIBS
26565 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026567/* end confdefs.h. */
26568#include <X11/Xlib.h>
26569int
26570main ()
26571{
26572XrmInitialize ()
26573 ;
26574 return 0;
26575}
26576_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026577if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026578 LIBS=$ac_save_LIBS
26579# We can link X programs with no special library path.
26580ac_x_libraries=
26581else
cristy8b350f62009-11-15 23:12:43 +000026582 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026583for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26584do
26585 # Don't even attempt the hair of trying to link an X program!
26586 for ac_extension in a so sl dylib la dll; do
26587 if test -r "$ac_dir/libX11.$ac_extension"; then
26588 ac_x_libraries=$ac_dir
26589 break 2
26590 fi
26591 done
26592done
26593fi
cristy8b350f62009-11-15 23:12:43 +000026594rm -f core conftest.err conftest.$ac_objext \
26595 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026596fi # $ac_x_libraries = no
26597
26598case $ac_x_includes,$ac_x_libraries in #(
26599 no,* | *,no | *\'*)
26600 # Didn't find X, or a directory has "'" in its name.
26601 ac_cv_have_x="have_x=no";; #(
26602 *)
26603 # Record where we found X for the cache.
26604 ac_cv_have_x="have_x=yes\
26605 ac_x_includes='$ac_x_includes'\
26606 ac_x_libraries='$ac_x_libraries'"
26607esac
26608fi
26609;; #(
26610 *) have_x=yes;;
26611 esac
26612 eval "$ac_cv_have_x"
26613fi # $with_x != no
26614
26615if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026617$as_echo "$have_x" >&6; }
26618 no_x=yes
26619else
26620 # If each of the values was on the command line, it overrides each guess.
26621 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26622 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26623 # Update the cache value to reflect the command line values.
26624 ac_cv_have_x="have_x=yes\
26625 ac_x_includes='$x_includes'\
26626 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026628$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26629fi
26630
cristy3ed852e2009-09-05 21:47:34 +000026631if test "$no_x" = yes; then
26632 # Not all programs may use this symbol, but it does not hurt to define it.
26633
cristy8b350f62009-11-15 23:12:43 +000026634$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026635
26636 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26637else
26638 if test -n "$x_includes"; then
26639 X_CFLAGS="$X_CFLAGS -I$x_includes"
26640 fi
26641
26642 # It would also be nice to do this for all -L options, not just this one.
26643 if test -n "$x_libraries"; then
26644 X_LIBS="$X_LIBS -L$x_libraries"
26645 # For Solaris; some versions of Sun CC require a space after -R and
26646 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026648$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26649 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26650 ac_xsave_c_werror_flag=$ac_c_werror_flag
26651 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026653/* end confdefs.h. */
26654
26655int
26656main ()
26657{
26658
26659 ;
26660 return 0;
26661}
26662_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026663if ac_fn_c_try_link "$LINENO"; then :
26664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026665$as_echo "no" >&6; }
26666 X_LIBS="$X_LIBS -R$x_libraries"
26667else
cristy8b350f62009-11-15 23:12:43 +000026668 LIBS="$ac_xsave_LIBS -R $x_libraries"
26669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026670/* end confdefs.h. */
26671
26672int
26673main ()
26674{
26675
26676 ;
26677 return 0;
26678}
26679_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026680if ac_fn_c_try_link "$LINENO"; then :
26681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026682$as_echo "yes" >&6; }
26683 X_LIBS="$X_LIBS -R $x_libraries"
26684else
cristy8b350f62009-11-15 23:12:43 +000026685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026686$as_echo "neither works" >&6; }
26687fi
cristy8b350f62009-11-15 23:12:43 +000026688rm -f core conftest.err conftest.$ac_objext \
26689 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026690fi
cristy8b350f62009-11-15 23:12:43 +000026691rm -f core conftest.err conftest.$ac_objext \
26692 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026693 ac_c_werror_flag=$ac_xsave_c_werror_flag
26694 LIBS=$ac_xsave_LIBS
26695 fi
26696
26697 # Check for system-dependent libraries X programs must link with.
26698 # Do this before checking for the system-independent R6 libraries
26699 # (-lICE), since we may need -lsocket or whatever for X linking.
26700
26701 if test "$ISC" = yes; then
26702 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26703 else
26704 # Martyn Johnson says this is needed for Ultrix, if the X
26705 # libraries were built with DECnet support. And Karl Berry says
26706 # the Alpha needs dnet_stub (dnet does not exist).
26707 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026709/* end confdefs.h. */
26710
26711/* Override any GCC internal prototype to avoid an error.
26712 Use char because int might match the return type of a GCC
26713 builtin and then its argument prototype would still apply. */
26714#ifdef __cplusplus
26715extern "C"
26716#endif
26717char XOpenDisplay ();
26718int
26719main ()
26720{
26721return XOpenDisplay ();
26722 ;
26723 return 0;
26724}
26725_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026726if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026727
cristy8b350f62009-11-15 23:12:43 +000026728else
26729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026730$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026731if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026732 $as_echo_n "(cached) " >&6
26733else
26734 ac_check_lib_save_LIBS=$LIBS
26735LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026737/* end confdefs.h. */
26738
26739/* Override any GCC internal prototype to avoid an error.
26740 Use char because int might match the return type of a GCC
26741 builtin and then its argument prototype would still apply. */
26742#ifdef __cplusplus
26743extern "C"
26744#endif
26745char dnet_ntoa ();
26746int
26747main ()
26748{
26749return dnet_ntoa ();
26750 ;
26751 return 0;
26752}
26753_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026754if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026755 ac_cv_lib_dnet_dnet_ntoa=yes
26756else
cristy8b350f62009-11-15 23:12:43 +000026757 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026758fi
cristy8b350f62009-11-15 23:12:43 +000026759rm -f core conftest.err conftest.$ac_objext \
26760 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026761LIBS=$ac_check_lib_save_LIBS
26762fi
cristy8b350f62009-11-15 23:12:43 +000026763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026764$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026765if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026766 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26767fi
26768
26769 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026771$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026772if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026773 $as_echo_n "(cached) " >&6
26774else
26775 ac_check_lib_save_LIBS=$LIBS
26776LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026778/* end confdefs.h. */
26779
26780/* Override any GCC internal prototype to avoid an error.
26781 Use char because int might match the return type of a GCC
26782 builtin and then its argument prototype would still apply. */
26783#ifdef __cplusplus
26784extern "C"
26785#endif
26786char dnet_ntoa ();
26787int
26788main ()
26789{
26790return dnet_ntoa ();
26791 ;
26792 return 0;
26793}
26794_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026795if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026796 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26797else
cristy8b350f62009-11-15 23:12:43 +000026798 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026799fi
cristy8b350f62009-11-15 23:12:43 +000026800rm -f core conftest.err conftest.$ac_objext \
26801 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026802LIBS=$ac_check_lib_save_LIBS
26803fi
cristy8b350f62009-11-15 23:12:43 +000026804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026805$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026806if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026807 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26808fi
26809
26810 fi
26811fi
cristy8b350f62009-11-15 23:12:43 +000026812rm -f core conftest.err conftest.$ac_objext \
26813 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026814 LIBS="$ac_xsave_LIBS"
26815
26816 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26817 # to get the SysV transport functions.
26818 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26819 # needs -lnsl.
26820 # The nsl library prevents programs from opening the X display
26821 # on Irix 5.2, according to T.E. Dickey.
26822 # The functions gethostbyname, getservbyname, and inet_addr are
26823 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026824 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026825if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026826
cristy3ed852e2009-09-05 21:47:34 +000026827fi
26828
cristy3ed852e2009-09-05 21:47:34 +000026829 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026831$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026832if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026833 $as_echo_n "(cached) " >&6
26834else
26835 ac_check_lib_save_LIBS=$LIBS
26836LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026838/* end confdefs.h. */
26839
26840/* Override any GCC internal prototype to avoid an error.
26841 Use char because int might match the return type of a GCC
26842 builtin and then its argument prototype would still apply. */
26843#ifdef __cplusplus
26844extern "C"
26845#endif
26846char gethostbyname ();
26847int
26848main ()
26849{
26850return gethostbyname ();
26851 ;
26852 return 0;
26853}
26854_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026855if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026856 ac_cv_lib_nsl_gethostbyname=yes
26857else
cristy8b350f62009-11-15 23:12:43 +000026858 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026859fi
cristy8b350f62009-11-15 23:12:43 +000026860rm -f core conftest.err conftest.$ac_objext \
26861 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026862LIBS=$ac_check_lib_save_LIBS
26863fi
cristy8b350f62009-11-15 23:12:43 +000026864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026865$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026866if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026867 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26868fi
26869
26870 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000026872$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026873if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026874 $as_echo_n "(cached) " >&6
26875else
26876 ac_check_lib_save_LIBS=$LIBS
26877LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026879/* end confdefs.h. */
26880
26881/* Override any GCC internal prototype to avoid an error.
26882 Use char because int might match the return type of a GCC
26883 builtin and then its argument prototype would still apply. */
26884#ifdef __cplusplus
26885extern "C"
26886#endif
26887char gethostbyname ();
26888int
26889main ()
26890{
26891return gethostbyname ();
26892 ;
26893 return 0;
26894}
26895_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026896if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026897 ac_cv_lib_bsd_gethostbyname=yes
26898else
cristy8b350f62009-11-15 23:12:43 +000026899 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026900fi
cristy8b350f62009-11-15 23:12:43 +000026901rm -f core conftest.err conftest.$ac_objext \
26902 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026903LIBS=$ac_check_lib_save_LIBS
26904fi
cristy8b350f62009-11-15 23:12:43 +000026905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026906$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026907if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026908 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26909fi
26910
26911 fi
26912 fi
26913
26914 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26915 # socket/setsockopt and other routines are undefined under SCO ODT
26916 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26917 # on later versions), says Simon Leinen: it contains gethostby*
26918 # variants that don't use the name server (or something). -lsocket
26919 # must be given before -lnsl if both are needed. We assume that
26920 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000026921 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000026922if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026923
cristy3ed852e2009-09-05 21:47:34 +000026924fi
26925
cristy3ed852e2009-09-05 21:47:34 +000026926 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000026927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000026928$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026929if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026930 $as_echo_n "(cached) " >&6
26931else
26932 ac_check_lib_save_LIBS=$LIBS
26933LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026935/* end confdefs.h. */
26936
26937/* Override any GCC internal prototype to avoid an error.
26938 Use char because int might match the return type of a GCC
26939 builtin and then its argument prototype would still apply. */
26940#ifdef __cplusplus
26941extern "C"
26942#endif
26943char connect ();
26944int
26945main ()
26946{
26947return connect ();
26948 ;
26949 return 0;
26950}
26951_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026952if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026953 ac_cv_lib_socket_connect=yes
26954else
cristy8b350f62009-11-15 23:12:43 +000026955 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000026956fi
cristy8b350f62009-11-15 23:12:43 +000026957rm -f core conftest.err conftest.$ac_objext \
26958 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026959LIBS=$ac_check_lib_save_LIBS
26960fi
cristy8b350f62009-11-15 23:12:43 +000026961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000026962$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000026963if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026964 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26965fi
26966
26967 fi
26968
26969 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000026970 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000026971if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026972
cristy3ed852e2009-09-05 21:47:34 +000026973fi
26974
cristy3ed852e2009-09-05 21:47:34 +000026975 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000026976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000026977$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026978if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026979 $as_echo_n "(cached) " >&6
26980else
26981 ac_check_lib_save_LIBS=$LIBS
26982LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026984/* end confdefs.h. */
26985
26986/* Override any GCC internal prototype to avoid an error.
26987 Use char because int might match the return type of a GCC
26988 builtin and then its argument prototype would still apply. */
26989#ifdef __cplusplus
26990extern "C"
26991#endif
26992char remove ();
26993int
26994main ()
26995{
26996return remove ();
26997 ;
26998 return 0;
26999}
27000_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027001if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027002 ac_cv_lib_posix_remove=yes
27003else
cristy8b350f62009-11-15 23:12:43 +000027004 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027005fi
cristy8b350f62009-11-15 23:12:43 +000027006rm -f core conftest.err conftest.$ac_objext \
27007 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027008LIBS=$ac_check_lib_save_LIBS
27009fi
cristy8b350f62009-11-15 23:12:43 +000027010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027011$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027012if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027013 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27014fi
27015
27016 fi
27017
27018 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027019 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027020if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027021
cristy3ed852e2009-09-05 21:47:34 +000027022fi
27023
cristy3ed852e2009-09-05 21:47:34 +000027024 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027026$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027027if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027028 $as_echo_n "(cached) " >&6
27029else
27030 ac_check_lib_save_LIBS=$LIBS
27031LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027033/* end confdefs.h. */
27034
27035/* Override any GCC internal prototype to avoid an error.
27036 Use char because int might match the return type of a GCC
27037 builtin and then its argument prototype would still apply. */
27038#ifdef __cplusplus
27039extern "C"
27040#endif
27041char shmat ();
27042int
27043main ()
27044{
27045return shmat ();
27046 ;
27047 return 0;
27048}
27049_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027050if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027051 ac_cv_lib_ipc_shmat=yes
27052else
cristy8b350f62009-11-15 23:12:43 +000027053 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027054fi
cristy8b350f62009-11-15 23:12:43 +000027055rm -f core conftest.err conftest.$ac_objext \
27056 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027057LIBS=$ac_check_lib_save_LIBS
27058fi
cristy8b350f62009-11-15 23:12:43 +000027059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027060$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027061if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027062 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27063fi
27064
27065 fi
27066 fi
27067
27068 # Check for libraries that X11R6 Xt/Xaw programs need.
27069 ac_save_LDFLAGS=$LDFLAGS
27070 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27071 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27072 # check for ICE first), but we must link in the order -lSM -lICE or
27073 # we get undefined symbols. So assume we have SM if we have ICE.
27074 # These have to be linked with before -lX11, unlike the other
27075 # libraries we check for below, so use a different variable.
27076 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027078$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027079if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027080 $as_echo_n "(cached) " >&6
27081else
27082 ac_check_lib_save_LIBS=$LIBS
27083LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027085/* end confdefs.h. */
27086
27087/* Override any GCC internal prototype to avoid an error.
27088 Use char because int might match the return type of a GCC
27089 builtin and then its argument prototype would still apply. */
27090#ifdef __cplusplus
27091extern "C"
27092#endif
27093char IceConnectionNumber ();
27094int
27095main ()
27096{
27097return IceConnectionNumber ();
27098 ;
27099 return 0;
27100}
27101_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027102if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027103 ac_cv_lib_ICE_IceConnectionNumber=yes
27104else
cristy8b350f62009-11-15 23:12:43 +000027105 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027106fi
cristy8b350f62009-11-15 23:12:43 +000027107rm -f core conftest.err conftest.$ac_objext \
27108 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027109LIBS=$ac_check_lib_save_LIBS
27110fi
cristy8b350f62009-11-15 23:12:43 +000027111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027112$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027113if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027114 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27115fi
27116
27117 LDFLAGS=$ac_save_LDFLAGS
27118
27119fi
27120
27121if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027123$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027125$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027127$as_echo "" >&6; }
27128 LDFLAGS="$LDFLAGS $X_LIBS"
27129 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27130 LIBS="$X11_LIBS $LIBS"
27131 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27132
27133
cristy8b350f62009-11-15 23:12:43 +000027134$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027135
27136 #
27137 # Check for X11 shared memory extension
27138 #
27139 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027140 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027141if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027142 have_shmctl='yes'
27143fi
27144
27145 if test "$have_shmctl" != 'yes'; then
27146 PERSIST_LIBS=$LIBS
27147 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027149/* end confdefs.h. */
27150
27151/* Override any GCC internal prototype to avoid an error.
27152 Use char because int might match the return type of a GCC
27153 builtin and then its argument prototype would still apply. */
27154#ifdef __cplusplus
27155extern "C"
27156#endif
27157char shmctl ();
27158int
27159main ()
27160{
27161return shmctl ();
27162 ;
27163 return 0;
27164}
27165_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027166if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027167 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027168fi
cristy8b350f62009-11-15 23:12:43 +000027169rm -f core conftest.err conftest.$ac_objext \
27170 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027171 LIBS=$PERSIST_LIBS
27172 fi
27173
27174 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027176$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027177if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027178 $as_echo_n "(cached) " >&6
27179else
27180 ac_check_lib_save_LIBS=$LIBS
27181LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027183/* end confdefs.h. */
27184
27185/* Override any GCC internal prototype to avoid an error.
27186 Use char because int might match the return type of a GCC
27187 builtin and then its argument prototype would still apply. */
27188#ifdef __cplusplus
27189extern "C"
27190#endif
27191char XShmAttach ();
27192int
27193main ()
27194{
27195return XShmAttach ();
27196 ;
27197 return 0;
27198}
27199_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027200if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027201 ac_cv_lib_Xext_XShmAttach=yes
27202else
cristy8b350f62009-11-15 23:12:43 +000027203 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027204fi
cristy8b350f62009-11-15 23:12:43 +000027205rm -f core conftest.err conftest.$ac_objext \
27206 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027207LIBS=$ac_check_lib_save_LIBS
27208fi
cristy8b350f62009-11-15 23:12:43 +000027209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027210$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027211if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027212 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027213$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027214
27215fi
27216
27217 fi
27218
27219 #
27220 # Check for X11 shape extension
27221 #
cristy8b350f62009-11-15 23:12:43 +000027222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027223$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027224if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027225 $as_echo_n "(cached) " >&6
27226else
27227 ac_check_lib_save_LIBS=$LIBS
27228LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027230/* end confdefs.h. */
27231
27232/* Override any GCC internal prototype to avoid an error.
27233 Use char because int might match the return type of a GCC
27234 builtin and then its argument prototype would still apply. */
27235#ifdef __cplusplus
27236extern "C"
27237#endif
27238char XShapeCombineMask ();
27239int
27240main ()
27241{
27242return XShapeCombineMask ();
27243 ;
27244 return 0;
27245}
27246_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027247if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027248 ac_cv_lib_Xext_XShapeCombineMask=yes
27249else
cristy8b350f62009-11-15 23:12:43 +000027250 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027251fi
cristy8b350f62009-11-15 23:12:43 +000027252rm -f core conftest.err conftest.$ac_objext \
27253 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027254LIBS=$ac_check_lib_save_LIBS
27255fi
cristy8b350f62009-11-15 23:12:43 +000027256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027257$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027258if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027259 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027260$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027261
27262fi
27263
cristy8b350f62009-11-15 23:12:43 +000027264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027265$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027266if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027267 $as_echo_n "(cached) " >&6
27268else
27269 ac_check_lib_save_LIBS=$LIBS
27270LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027272/* end confdefs.h. */
27273
27274/* Override any GCC internal prototype to avoid an error.
27275 Use char because int might match the return type of a GCC
27276 builtin and then its argument prototype would still apply. */
27277#ifdef __cplusplus
27278extern "C"
27279#endif
27280char XtSetEventDispatcher ();
27281int
27282main ()
27283{
27284return XtSetEventDispatcher ();
27285 ;
27286 return 0;
27287}
27288_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027289if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027290 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27291else
cristy8b350f62009-11-15 23:12:43 +000027292 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027293fi
cristy8b350f62009-11-15 23:12:43 +000027294rm -f core conftest.err conftest.$ac_objext \
27295 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027296LIBS=$ac_check_lib_save_LIBS
27297fi
cristy8b350f62009-11-15 23:12:43 +000027298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027299$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027300if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027301 XT_LIBS='-lXt'
27302fi
27303
27304 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27305fi
27306if test "$no_x" != 'yes'; then
27307 have_x='yes'
27308else
27309 have_x='no'
27310fi
cristy73bd4a52010-10-05 11:24:23 +000027311 if test "$have_x" = 'yes'; then
27312 X11_DELEGATE_TRUE=
27313 X11_DELEGATE_FALSE='#'
27314else
27315 X11_DELEGATE_TRUE='#'
27316 X11_DELEGATE_FALSE=
27317fi
27318
cristy3ed852e2009-09-05 21:47:34 +000027319
27320
27321
27322
27323#
27324# Check for ZLIB
27325#
27326
27327# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027328if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027329 withval=$with_zlib; with_zlib=$withval
27330else
27331 with_zlib='yes'
27332fi
27333
27334
27335if test "$with_zlib" != 'yes'; then
27336 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27337fi
27338
27339have_zlib='no'
27340ZLIB_LIBS=''
27341if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027343$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027345$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027347$as_echo "" >&6; }
27348 ZLIB_LIBS=''
27349 failed=0
27350 passed=0
cristy8b350f62009-11-15 23:12:43 +000027351 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027352if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027353 passed=`expr $passed + 1`
27354else
27355 failed=`expr $failed + 1`
27356fi
27357
27358
cristy8b350f62009-11-15 23:12:43 +000027359 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027360if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027361 passed=`expr $passed + 1`
27362else
27363 failed=`expr $failed + 1`
27364fi
27365
27366
cristy8b350f62009-11-15 23:12:43 +000027367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027368$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027369if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027370 $as_echo_n "(cached) " >&6
27371else
27372 ac_check_lib_save_LIBS=$LIBS
27373LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027375/* end confdefs.h. */
27376
27377/* Override any GCC internal prototype to avoid an error.
27378 Use char because int might match the return type of a GCC
27379 builtin and then its argument prototype would still apply. */
27380#ifdef __cplusplus
27381extern "C"
27382#endif
27383char compress ();
27384int
27385main ()
27386{
27387return compress ();
27388 ;
27389 return 0;
27390}
27391_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027392if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027393 ac_cv_lib_z_compress=yes
27394else
cristy8b350f62009-11-15 23:12:43 +000027395 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027396fi
cristy8b350f62009-11-15 23:12:43 +000027397rm -f core conftest.err conftest.$ac_objext \
27398 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027399LIBS=$ac_check_lib_save_LIBS
27400fi
cristy8b350f62009-11-15 23:12:43 +000027401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027402$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027403if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027404 passed=`expr $passed + 1`
27405else
27406 failed=`expr $failed + 1`
27407fi
27408
cristy8b350f62009-11-15 23:12:43 +000027409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027410$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027411if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027412 $as_echo_n "(cached) " >&6
27413else
27414 ac_check_lib_save_LIBS=$LIBS
27415LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027417/* end confdefs.h. */
27418
27419/* Override any GCC internal prototype to avoid an error.
27420 Use char because int might match the return type of a GCC
27421 builtin and then its argument prototype would still apply. */
27422#ifdef __cplusplus
27423extern "C"
27424#endif
27425char uncompress ();
27426int
27427main ()
27428{
27429return uncompress ();
27430 ;
27431 return 0;
27432}
27433_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027434if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027435 ac_cv_lib_z_uncompress=yes
27436else
cristy8b350f62009-11-15 23:12:43 +000027437 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027438fi
cristy8b350f62009-11-15 23:12:43 +000027439rm -f core conftest.err conftest.$ac_objext \
27440 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027441LIBS=$ac_check_lib_save_LIBS
27442fi
cristy8b350f62009-11-15 23:12:43 +000027443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027444$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027445if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027446 passed=`expr $passed + 1`
27447else
27448 failed=`expr $failed + 1`
27449fi
27450
cristy8b350f62009-11-15 23:12:43 +000027451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027452$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027453if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027454 $as_echo_n "(cached) " >&6
27455else
27456 ac_check_lib_save_LIBS=$LIBS
27457LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027459/* end confdefs.h. */
27460
27461/* Override any GCC internal prototype to avoid an error.
27462 Use char because int might match the return type of a GCC
27463 builtin and then its argument prototype would still apply. */
27464#ifdef __cplusplus
27465extern "C"
27466#endif
27467char deflate ();
27468int
27469main ()
27470{
27471return deflate ();
27472 ;
27473 return 0;
27474}
27475_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027476if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027477 ac_cv_lib_z_deflate=yes
27478else
cristy8b350f62009-11-15 23:12:43 +000027479 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027480fi
cristy8b350f62009-11-15 23:12:43 +000027481rm -f core conftest.err conftest.$ac_objext \
27482 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027483LIBS=$ac_check_lib_save_LIBS
27484fi
cristy8b350f62009-11-15 23:12:43 +000027485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027486$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027487if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027488 passed=`expr $passed + 1`
27489else
27490 failed=`expr $failed + 1`
27491fi
27492
cristy8b350f62009-11-15 23:12:43 +000027493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027494$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027495if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027496 $as_echo_n "(cached) " >&6
27497else
27498 ac_check_lib_save_LIBS=$LIBS
27499LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027501/* end confdefs.h. */
27502
27503/* Override any GCC internal prototype to avoid an error.
27504 Use char because int might match the return type of a GCC
27505 builtin and then its argument prototype would still apply. */
27506#ifdef __cplusplus
27507extern "C"
27508#endif
27509char inflate ();
27510int
27511main ()
27512{
27513return inflate ();
27514 ;
27515 return 0;
27516}
27517_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027518if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027519 ac_cv_lib_z_inflate=yes
27520else
cristy8b350f62009-11-15 23:12:43 +000027521 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027522fi
cristy8b350f62009-11-15 23:12:43 +000027523rm -f core conftest.err conftest.$ac_objext \
27524 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027525LIBS=$ac_check_lib_save_LIBS
27526fi
cristy8b350f62009-11-15 23:12:43 +000027527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027528$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027529if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027530 passed=`expr $passed + 1`
27531else
27532 failed=`expr $failed + 1`
27533fi
27534
cristy8b350f62009-11-15 23:12:43 +000027535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027536$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027537if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027538 $as_echo_n "(cached) " >&6
27539else
27540 ac_check_lib_save_LIBS=$LIBS
27541LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027543/* end confdefs.h. */
27544
27545/* Override any GCC internal prototype to avoid an error.
27546 Use char because int might match the return type of a GCC
27547 builtin and then its argument prototype would still apply. */
27548#ifdef __cplusplus
27549extern "C"
27550#endif
27551char gzseek ();
27552int
27553main ()
27554{
27555return gzseek ();
27556 ;
27557 return 0;
27558}
27559_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027560if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027561 ac_cv_lib_z_gzseek=yes
27562else
cristy8b350f62009-11-15 23:12:43 +000027563 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027564fi
cristy8b350f62009-11-15 23:12:43 +000027565rm -f core conftest.err conftest.$ac_objext \
27566 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027567LIBS=$ac_check_lib_save_LIBS
27568fi
cristy8b350f62009-11-15 23:12:43 +000027569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027570$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027571if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027572 passed=`expr $passed + 1`
27573else
27574 failed=`expr $failed + 1`
27575fi
27576
cristy8b350f62009-11-15 23:12:43 +000027577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027578$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027579if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027580 $as_echo_n "(cached) " >&6
27581else
27582 ac_check_lib_save_LIBS=$LIBS
27583LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027585/* end confdefs.h. */
27586
27587/* Override any GCC internal prototype to avoid an error.
27588 Use char because int might match the return type of a GCC
27589 builtin and then its argument prototype would still apply. */
27590#ifdef __cplusplus
27591extern "C"
27592#endif
27593char gztell ();
27594int
27595main ()
27596{
27597return gztell ();
27598 ;
27599 return 0;
27600}
27601_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027602if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027603 ac_cv_lib_z_gztell=yes
27604else
cristy8b350f62009-11-15 23:12:43 +000027605 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027606fi
cristy8b350f62009-11-15 23:12:43 +000027607rm -f core conftest.err conftest.$ac_objext \
27608 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027609LIBS=$ac_check_lib_save_LIBS
27610fi
cristy8b350f62009-11-15 23:12:43 +000027611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027612$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027613if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027614 passed=`expr $passed + 1`
27615else
27616 failed=`expr $failed + 1`
27617fi
27618
cristy8b350f62009-11-15 23:12:43 +000027619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027620$as_echo_n "checking if ZLIB package is complete... " >&6; }
27621 if test $passed -gt 0; then
27622 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027624$as_echo "no -- some components failed test" >&6; }
27625 have_zlib='no (failed tests)'
27626 else
27627 ZLIB_LIBS='-lz'
27628 LIBS="$ZLIB_LIBS $LIBS"
27629
cristy8b350f62009-11-15 23:12:43 +000027630$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027631
cristy8b350f62009-11-15 23:12:43 +000027632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027633$as_echo "yes" >&6; }
27634 have_zlib='yes'
27635 fi
27636 else
cristy8b350f62009-11-15 23:12:43 +000027637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027638$as_echo "no" >&6; }
27639 fi
27640fi
cristy73bd4a52010-10-05 11:24:23 +000027641 if test "$have_zlib" = 'yes'; then
27642 ZLIB_DELEGATE_TRUE=
27643 ZLIB_DELEGATE_FALSE='#'
27644else
27645 ZLIB_DELEGATE_TRUE='#'
27646 ZLIB_DELEGATE_FALSE=
27647fi
27648
cristy3ed852e2009-09-05 21:47:34 +000027649
27650
27651#
27652# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27653#
27654LIB_DL=''
27655if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027657$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027658if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027659 $as_echo_n "(cached) " >&6
27660else
27661 ac_check_lib_save_LIBS=$LIBS
27662LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027664/* end confdefs.h. */
27665
27666/* Override any GCC internal prototype to avoid an error.
27667 Use char because int might match the return type of a GCC
27668 builtin and then its argument prototype would still apply. */
27669#ifdef __cplusplus
27670extern "C"
27671#endif
27672char dlopen ();
27673int
27674main ()
27675{
27676return dlopen ();
27677 ;
27678 return 0;
27679}
27680_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027681if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027682 ac_cv_lib_dl_dlopen=yes
27683else
cristy8b350f62009-11-15 23:12:43 +000027684 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027685fi
cristy8b350f62009-11-15 23:12:43 +000027686rm -f core conftest.err conftest.$ac_objext \
27687 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027688LIBS=$ac_check_lib_save_LIBS
27689fi
cristy8b350f62009-11-15 23:12:43 +000027690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027691$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027692if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027693 LIB_DL='-ldl'
27694fi
27695
27696 LIBS="$LIB_DL $LIBS"
27697fi
27698
27699
27700
27701#
27702# Check for Autotrace delegate library.
27703#
27704
27705# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027706if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027707 withval=$with_autotrace; with_autotrace=$withval
27708else
27709 with_autotrace='no'
27710fi
27711
27712
27713if test "$with_autotrace" != 'yes'; then
27714 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27715fi
27716
27717have_autotrace='no'
27718AUTOTRACE_CFLAGS=""
27719AUTOTRACE_LIBS=""
27720AUTOTRACE_PKG=""
27721if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027723$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027724
27725pkg_failed=no
27726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27727$as_echo_n "checking for AUTOTRACE... " >&6; }
27728
27729if test -n "$AUTOTRACE_CFLAGS"; then
27730 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27731 elif test -n "$PKG_CONFIG"; then
27732 if test -n "$PKG_CONFIG" && \
27733 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27734 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27735 ac_status=$?
27736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27737 test $ac_status = 0; }; then
27738 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27739else
27740 pkg_failed=yes
27741fi
27742 else
27743 pkg_failed=untried
27744fi
27745if test -n "$AUTOTRACE_LIBS"; then
27746 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27747 elif test -n "$PKG_CONFIG"; then
27748 if test -n "$PKG_CONFIG" && \
27749 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27750 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27751 ac_status=$?
27752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27753 test $ac_status = 0; }; then
27754 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27755else
27756 pkg_failed=yes
27757fi
27758 else
27759 pkg_failed=untried
27760fi
27761
27762
27763
27764if test $pkg_failed = yes; then
27765
27766if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27767 _pkg_short_errors_supported=yes
27768else
27769 _pkg_short_errors_supported=no
27770fi
27771 if test $_pkg_short_errors_supported = yes; then
27772 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27773 else
27774 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27775 fi
27776 # Put the nasty error message in config.log where it belongs
27777 echo "$AUTOTRACE_PKG_ERRORS" >&5
27778
27779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27780$as_echo "no" >&6; }
27781 have_autotrace=no
27782elif test $pkg_failed = untried; then
27783 have_autotrace=no
27784else
27785 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27786 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27788$as_echo "yes" >&6; }
27789 have_autotrace=yes
27790fi
cristy8b350f62009-11-15 23:12:43 +000027791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027792$as_echo "" >&6; }
27793fi
27794
27795if test "$have_autotrace" = 'yes'; then
27796 failed=0
27797
cristy8b350f62009-11-15 23:12:43 +000027798$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027799
27800 if test "$with_modules" = 'no'; then
27801 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27802 fi
27803fi
27804
cristy73bd4a52010-10-05 11:24:23 +000027805 if test "$have_autotrace" = 'yes'; then
27806 AUTOTRACE_DELEGATE_TRUE=
27807 AUTOTRACE_DELEGATE_FALSE='#'
27808else
27809 AUTOTRACE_DELEGATE_TRUE='#'
27810 AUTOTRACE_DELEGATE_FALSE=
27811fi
27812
cristy3ed852e2009-09-05 21:47:34 +000027813
27814
27815
27816
27817#
27818# Check for Display Postscript delegate library.
27819#
27820
27821# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000027822if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027823 withval=$with_dps; with_dps=$withval
27824else
27825 with_dps='yes'
27826fi
27827
27828
27829if test "$with_dps" != 'yes'; then
27830 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27831fi
27832
27833have_dps='no'
27834DPS_LIBS=''
27835if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027837$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027839$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027841$as_echo "" >&6; }
27842 failed=0
27843 passed=0
27844 PERSIST_CPPFLAGS="$CPPFLAGS"
27845 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000027846 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 +000027847if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027848 passed=`expr $passed + 1`
27849else
27850 failed=`expr $failed + 1`
27851fi
27852
27853
27854 # DPS issues:
27855 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27856 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27857 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27858 # ImageMagick itself doesn't use -lXt.
27859 have_libdps='no'
27860 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000027861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027862$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027863if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027864 $as_echo_n "(cached) " >&6
27865else
27866 ac_check_lib_save_LIBS=$LIBS
27867LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027869/* end confdefs.h. */
27870
27871/* Override any GCC internal prototype to avoid an error.
27872 Use char because int might match the return type of a GCC
27873 builtin and then its argument prototype would still apply. */
27874#ifdef __cplusplus
27875extern "C"
27876#endif
27877char DPSInitialize ();
27878int
27879main ()
27880{
27881return DPSInitialize ();
27882 ;
27883 return 0;
27884}
27885_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027886if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027887 ac_cv_lib_dps_DPSInitialize=yes
27888else
cristy8b350f62009-11-15 23:12:43 +000027889 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027890fi
cristy8b350f62009-11-15 23:12:43 +000027891rm -f core conftest.err conftest.$ac_objext \
27892 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027893LIBS=$ac_check_lib_save_LIBS
27894fi
cristy8b350f62009-11-15 23:12:43 +000027895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027896$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027897if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027898 have_libdps='yes'
27899else
27900 have_libdps='no'
27901fi
27902
27903 if test "$have_libdps" != 'yes'; then
27904 # Unset cache variable so we can try again.
27905 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000027906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027907$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027908if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027909 $as_echo_n "(cached) " >&6
27910else
27911 ac_check_lib_save_LIBS=$LIBS
27912LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027914/* end confdefs.h. */
27915
27916/* Override any GCC internal prototype to avoid an error.
27917 Use char because int might match the return type of a GCC
27918 builtin and then its argument prototype would still apply. */
27919#ifdef __cplusplus
27920extern "C"
27921#endif
27922char DPSInitialize ();
27923int
27924main ()
27925{
27926return DPSInitialize ();
27927 ;
27928 return 0;
27929}
27930_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027931if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027932 ac_cv_lib_dps_DPSInitialize=yes
27933else
cristy8b350f62009-11-15 23:12:43 +000027934 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027935fi
cristy8b350f62009-11-15 23:12:43 +000027936rm -f core conftest.err conftest.$ac_objext \
27937 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027938LIBS=$ac_check_lib_save_LIBS
27939fi
cristy8b350f62009-11-15 23:12:43 +000027940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027941$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027942if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027943 have_libdps='yes'
27944else
27945 have_libdps='no'
27946fi
27947
27948 if test "$have_libdps" = 'yes'; then
27949 LIBDPS_XT='-lXt'
27950 fi
27951 fi
27952 if test "$have_libdps" = 'yes'; then
27953 passed=`expr $passed + 1`
27954 else
27955 failed=`expr $failed + 1`
27956 fi
cristy8b350f62009-11-15 23:12:43 +000027957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000027958$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027959if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027960 $as_echo_n "(cached) " >&6
27961else
27962 ac_check_lib_save_LIBS=$LIBS
27963LIBS="-ldpstk -ldps $LIBDPS_XT $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 XDPSPixelsPerPoint ();
27974int
27975main ()
27976{
27977return XDPSPixelsPerPoint ();
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_dpstk_XDPSPixelsPerPoint=yes
27984else
cristy8b350f62009-11-15 23:12:43 +000027985 ac_cv_lib_dpstk_XDPSPixelsPerPoint=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_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000027992$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000027993if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027994 passed=`expr $passed + 1`
27995else
27996 failed=`expr $failed + 1`
27997fi
27998
cristy8b350f62009-11-15 23:12:43 +000027999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028000$as_echo_n "checking if DPS package is complete... " >&6; }
28001 if test $passed -gt 0; then
28002 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028004$as_echo "no -- some components failed test" >&6; }
28005 have_dps='no (failed tests)'
28006 CPPFLAGS="$PERSIST_CPPFLAGS"
28007 else
28008 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28009 LIBS="$DPS_LIBS $LIBS"
28010
cristy8b350f62009-11-15 23:12:43 +000028011$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028012
cristy8b350f62009-11-15 23:12:43 +000028013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028014$as_echo "yes" >&6; }
28015 have_dps='yes'
28016 fi
28017 else
cristy8b350f62009-11-15 23:12:43 +000028018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028019$as_echo "no" >&6; }
28020 CPPFLAGS=$PERSIST_CPPFLAGS
28021 fi
28022fi
cristy73bd4a52010-10-05 11:24:23 +000028023 if test "$have_dps" = 'yes'; then
28024 DPS_DELEGATE_TRUE=
28025 DPS_DELEGATE_FALSE='#'
28026else
28027 DPS_DELEGATE_TRUE='#'
28028 DPS_DELEGATE_FALSE=
28029fi
28030
cristy3ed852e2009-09-05 21:47:34 +000028031
28032
28033
28034#
28035# Check for DJVU delegate library.
28036#
28037
28038# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028039if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028040 withval=$with_djvu; with_djvu=$withval
28041else
28042 with_djvu='yes'
28043fi
28044
28045
28046if test "$with_djvu" != 'yes'; then
28047 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28048fi
28049
28050have_djvu='no'
28051DJVU_LIBS=''
28052if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028054$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028056$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028058$as_echo "" >&6; }
28059 failed=0
28060 passed=0
cristy8b350f62009-11-15 23:12:43 +000028061 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 +000028062if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028063 passed=`expr $passed + 1`
28064else
28065 failed=`expr $failed + 1`
28066fi
28067
28068
cristy8b350f62009-11-15 23:12:43 +000028069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028070$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028071if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028072 $as_echo_n "(cached) " >&6
28073else
28074 ac_check_lib_save_LIBS=$LIBS
28075LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028077/* end confdefs.h. */
28078
28079/* Override any GCC internal prototype to avoid an error.
28080 Use char because int might match the return type of a GCC
28081 builtin and then its argument prototype would still apply. */
28082#ifdef __cplusplus
28083extern "C"
28084#endif
28085char ddjvu_context_create ();
28086int
28087main ()
28088{
28089return ddjvu_context_create ();
28090 ;
28091 return 0;
28092}
28093_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028094if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028095 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28096else
cristy8b350f62009-11-15 23:12:43 +000028097 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028098fi
cristy8b350f62009-11-15 23:12:43 +000028099rm -f core conftest.err conftest.$ac_objext \
28100 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028101LIBS=$ac_check_lib_save_LIBS
28102fi
cristy8b350f62009-11-15 23:12:43 +000028103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028104$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028105if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028106 passed=`expr $passed + 1`
28107else
28108 failed=`expr $failed + 1`
28109fi
28110
cristy8b350f62009-11-15 23:12:43 +000028111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028112$as_echo_n "checking if DJVU package is complete... " >&6; }
28113 if test $passed -gt 0; then
28114 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028116$as_echo "no -- some components failed test" >&6; }
28117 have_djvu='no (failed tests)'
28118 else
28119 DJVU_LIBS='-ldjvulibre'
28120 LIBS="$DJVU_LIBS $LIBS"
28121
cristy8b350f62009-11-15 23:12:43 +000028122$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028123
cristy8b350f62009-11-15 23:12:43 +000028124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028125$as_echo "yes" >&6; }
28126 have_djvu='yes'
28127 fi
28128 else
cristy8b350f62009-11-15 23:12:43 +000028129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028130$as_echo "no" >&6; }
28131 fi
28132fi
cristy73bd4a52010-10-05 11:24:23 +000028133 if test "$have_djvu" = 'yes'; then
28134 DJVU_DELEGATE_TRUE=
28135 DJVU_DELEGATE_FALSE='#'
28136else
28137 DJVU_DELEGATE_TRUE='#'
28138 DJVU_DELEGATE_FALSE=
28139fi
28140
cristy3ed852e2009-09-05 21:47:34 +000028141
28142
28143
28144#
cristy430a7312010-01-21 20:44:04 +000028145# Set DejaVu font directory.
28146#
28147
28148# Check whether --with-dejavu-font-dir was given.
28149if test "${with_dejavu_font_dir+set}" = set; then :
28150 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28151else
28152 with_dejavu_font_dir='default'
28153fi
28154
28155
28156if test "$with_dejavu_font_dir" != 'default'; then
28157 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28158fi
28159
28160
28161#
cristy3ed852e2009-09-05 21:47:34 +000028162# Check for FFTW delegate library.
28163#
28164
28165# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028166if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028167 withval=$with_fftw; with_fftw=$withval
28168else
28169 with_fftw='yes'
28170fi
28171
28172
28173if test "$with_fftw" != 'yes'; then
28174 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28175fi
28176
28177have_fftw='no'
28178FFTW_LIBS=''
28179if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028181$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000028183$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028185$as_echo "" >&6; }
28186 failed=0
28187 passed=0
cristy8b350f62009-11-15 23:12:43 +000028188 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028189if test "x$ac_cv_header_fftw3_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028190 passed=`expr $passed + 1`
28191else
28192 failed=`expr $failed + 1`
28193fi
28194
28195
cristy8b350f62009-11-15 23:12:43 +000028196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000028197$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028198if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028199 $as_echo_n "(cached) " >&6
28200else
28201 ac_check_lib_save_LIBS=$LIBS
28202LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028204/* end confdefs.h. */
28205
28206/* Override any GCC internal prototype to avoid an error.
28207 Use char because int might match the return type of a GCC
28208 builtin and then its argument prototype would still apply. */
28209#ifdef __cplusplus
28210extern "C"
28211#endif
28212char fftw_execute ();
28213int
28214main ()
28215{
28216return fftw_execute ();
28217 ;
28218 return 0;
28219}
28220_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028221if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028222 ac_cv_lib_fftw3_fftw_execute=yes
28223else
cristy8b350f62009-11-15 23:12:43 +000028224 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000028225fi
cristy8b350f62009-11-15 23:12:43 +000028226rm -f core conftest.err conftest.$ac_objext \
28227 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028228LIBS=$ac_check_lib_save_LIBS
28229fi
cristy8b350f62009-11-15 23:12:43 +000028230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000028231$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristyda16f162011-02-19 23:52:17 +000028232if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028233 passed=`expr $passed + 1`
28234else
28235 failed=`expr $failed + 1`
28236fi
28237
cristy8b350f62009-11-15 23:12:43 +000028238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028239$as_echo_n "checking if FFTW package is complete... " >&6; }
28240 if test $passed -gt 0; then
28241 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028243$as_echo "no -- some components failed test" >&6; }
28244 have_fftw='no (failed tests)'
28245 else
28246 FFTW_LIBS='-lfftw3'
28247 LIBS="$FFTW_LIBS $LIBS"
28248
cristy8b350f62009-11-15 23:12:43 +000028249$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028250
cristy8b350f62009-11-15 23:12:43 +000028251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028252$as_echo "yes" >&6; }
28253 have_fftw='yes'
28254 fi
28255 else
cristy8b350f62009-11-15 23:12:43 +000028256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028257$as_echo "no" >&6; }
28258 fi
28259fi
cristy73bd4a52010-10-05 11:24:23 +000028260 if test "$have_fftw" = 'yes'; then
28261 FFTW_DELEGATE_TRUE=
28262 FFTW_DELEGATE_FALSE='#'
28263else
28264 FFTW_DELEGATE_TRUE='#'
28265 FFTW_DELEGATE_FALSE=
28266fi
28267
cristy3ed852e2009-09-05 21:47:34 +000028268
28269
28270
28271#
28272# Check for FlashPIX delegate library.
28273#
28274
28275# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028276if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028277 withval=$with_fpx; with_fpx=$withval
28278else
28279 with_fpx='yes'
28280fi
28281
28282
28283if test "$with_fpx" != 'yes'; then
28284 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28285fi
28286
28287have_fpx='no'
28288FPX_LIBS=''
28289if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028291$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028293$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028295$as_echo "" >&6; }
28296 failed=0
28297 passed=0
28298 ac_ext=cpp
28299ac_cpp='$CXXCPP $CPPFLAGS'
28300ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28301ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28302ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28303
28304
cristy8b350f62009-11-15 23:12:43 +000028305ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028306if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028307 passed=`expr $passed + 1`
28308else
28309 failed=`expr $failed + 1`
28310fi
28311
28312
cristy8b350f62009-11-15 23:12:43 +000028313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028314$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028315if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028316 $as_echo_n "(cached) " >&6
28317else
28318 ac_check_lib_save_LIBS=$LIBS
28319LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028321/* end confdefs.h. */
28322
28323/* Override any GCC internal prototype to avoid an error.
28324 Use char because int might match the return type of a GCC
28325 builtin and then its argument prototype would still apply. */
28326#ifdef __cplusplus
28327extern "C"
28328#endif
28329char FPX_OpenImageByFilename ();
28330int
28331main ()
28332{
28333return FPX_OpenImageByFilename ();
28334 ;
28335 return 0;
28336}
28337_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028338if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028339 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28340else
cristy8b350f62009-11-15 23:12:43 +000028341 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028342fi
cristy8b350f62009-11-15 23:12:43 +000028343rm -f core conftest.err conftest.$ac_objext \
28344 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028345LIBS=$ac_check_lib_save_LIBS
28346fi
cristy8b350f62009-11-15 23:12:43 +000028347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028348$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028349if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028350 passed=`expr $passed + 1`
28351else
28352 failed=`expr $failed + 1`
28353fi
28354
28355 ac_ext=c
28356ac_cpp='$CPP $CPPFLAGS'
28357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28359ac_compiler_gnu=$ac_cv_c_compiler_gnu
28360
cristy8b350f62009-11-15 23:12:43 +000028361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028362$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28363 if test $passed -gt 0; then
28364 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028366$as_echo "no -- some components failed test" >&6; }
28367 have_fpx='no (failed tests)'
28368 else
28369 FPX_LIBS='-lfpx'
28370
cristy8b350f62009-11-15 23:12:43 +000028371$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028372
cristy8b350f62009-11-15 23:12:43 +000028373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028374$as_echo "yes" >&6; }
28375 have_fpx='yes'
28376 PERLMAINCC="$CXX"
28377 fi
28378 else
cristy8b350f62009-11-15 23:12:43 +000028379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028380$as_echo "no" >&6; }
28381 fi
28382fi
cristy73bd4a52010-10-05 11:24:23 +000028383 if test "$have_fpx" = 'yes'; then
28384 FPX_DELEGATE_TRUE=
28385 FPX_DELEGATE_FALSE='#'
28386else
28387 FPX_DELEGATE_TRUE='#'
28388 FPX_DELEGATE_FALSE=
28389fi
28390
cristy3ed852e2009-09-05 21:47:34 +000028391
28392
28393
28394#
28395# Check for fontconfig delegate library.
28396#
28397
28398# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028399if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028400 withval=$with_fontconfig; with_fontconfig=$withval
28401else
28402 with_fontconfig=$have_x
28403fi
28404
28405
28406if test "$with_fontconfig" != 'yes'; then
28407 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28408fi
28409
28410have_fontconfig='no'
28411FONTCONFIG_CFLAGS=""
28412FONTCONFIG_LIBS=""
28413FONTCONFIG_PKG=""
28414if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028416$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028417
28418pkg_failed=no
28419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28420$as_echo_n "checking for FONTCONFIG... " >&6; }
28421
28422if test -n "$FONTCONFIG_CFLAGS"; then
28423 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28424 elif test -n "$PKG_CONFIG"; then
28425 if test -n "$PKG_CONFIG" && \
28426 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28427 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28428 ac_status=$?
28429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28430 test $ac_status = 0; }; then
28431 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28432else
28433 pkg_failed=yes
28434fi
28435 else
28436 pkg_failed=untried
28437fi
28438if test -n "$FONTCONFIG_LIBS"; then
28439 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28440 elif test -n "$PKG_CONFIG"; then
28441 if test -n "$PKG_CONFIG" && \
28442 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28443 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28444 ac_status=$?
28445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28446 test $ac_status = 0; }; then
28447 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28448else
28449 pkg_failed=yes
28450fi
28451 else
28452 pkg_failed=untried
28453fi
28454
28455
28456
28457if test $pkg_failed = yes; then
28458
28459if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28460 _pkg_short_errors_supported=yes
28461else
28462 _pkg_short_errors_supported=no
28463fi
28464 if test $_pkg_short_errors_supported = yes; then
28465 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28466 else
28467 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28468 fi
28469 # Put the nasty error message in config.log where it belongs
28470 echo "$FONTCONFIG_PKG_ERRORS" >&5
28471
28472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28473$as_echo "no" >&6; }
28474 have_fontconfig=no
28475elif test $pkg_failed = untried; then
28476 have_fontconfig=no
28477else
28478 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28479 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28481$as_echo "yes" >&6; }
28482 have_fontconfig=yes
28483fi
cristy8b350f62009-11-15 23:12:43 +000028484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028485$as_echo "" >&6; }
28486fi
28487
28488if test "$have_fontconfig" = 'yes'; then
28489
cristy8b350f62009-11-15 23:12:43 +000028490$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028491
cristyd09bcf92010-03-25 03:04:45 +000028492 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028493 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028494 fi
cristy3ed852e2009-09-05 21:47:34 +000028495fi
28496
cristy73bd4a52010-10-05 11:24:23 +000028497 if test "$have_fontconfig" = 'yes'; then
28498 FONTCONFIG_DELEGATE_TRUE=
28499 FONTCONFIG_DELEGATE_FALSE='#'
28500else
28501 FONTCONFIG_DELEGATE_TRUE='#'
28502 FONTCONFIG_DELEGATE_FALSE=
28503fi
28504
cristy3ed852e2009-09-05 21:47:34 +000028505
28506
28507
28508
28509#
28510# Check for freetype delegate library.
28511#
28512
28513# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028514if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028515 withval=$with_freetype; with_freetype=$withval
28516else
28517 with_freetype='yes'
28518fi
28519
28520
28521
28522if test "$with_freetype" != 'yes'; then
28523 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28524fi
28525
28526have_freetype='no'
28527FREETYPE_LIBS=''
28528if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028530$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000028532$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028534$as_echo "" >&6; }
28535 failed=0
28536 passed=0
cristy66291112009-10-03 22:44:36 +000028537 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028538 PERSIST_CPPFLAGS="$CPPFLAGS"
28539 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
28540 :
28541 else
28542 freetype_config=''
28543 for ac_prog in freetype-config
28544do
28545 # Extract the first word of "$ac_prog", so it can be a program name with args.
28546set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028548$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028549if ${ac_cv_prog_freetype_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028550 $as_echo_n "(cached) " >&6
28551else
28552 if test -n "$freetype_config"; then
28553 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
28554else
28555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28556for as_dir in $PATH
28557do
28558 IFS=$as_save_IFS
28559 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028560 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28562 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000028563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028564 break 2
28565 fi
28566done
cristy8b350f62009-11-15 23:12:43 +000028567 done
cristy3ed852e2009-09-05 21:47:34 +000028568IFS=$as_save_IFS
28569
28570fi
28571fi
28572freetype_config=$ac_cv_prog_freetype_config
28573if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000028574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000028575$as_echo "$freetype_config" >&6; }
28576else
cristy8b350f62009-11-15 23:12:43 +000028577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028578$as_echo "no" >&6; }
28579fi
28580
28581
28582 test -n "$freetype_config" && break
28583done
28584 if test -n "$freetype_config"; then
28585 freetype_cflags=`$freetype_config --cflags`
28586 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000028587 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000028588 CPPFLAGS="$freetype_cflags $CPPFLAGS"
28589 fi
28590 fi
28591
28592 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000028593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000028594$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028595if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028596 $as_echo_n "(cached) " >&6
28597else
28598 ac_check_lib_save_LIBS=$LIBS
28599LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028601/* end confdefs.h. */
28602
28603/* Override any GCC internal prototype to avoid an error.
28604 Use char because int might match the return type of a GCC
28605 builtin and then its argument prototype would still apply. */
28606#ifdef __cplusplus
28607extern "C"
28608#endif
28609char FT_Init_FreeType ();
28610int
28611main ()
28612{
28613return FT_Init_FreeType ();
28614 ;
28615 return 0;
28616}
28617_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028618if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028619 ac_cv_lib_freetype_FT_Init_FreeType=yes
28620else
cristy8b350f62009-11-15 23:12:43 +000028621 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000028622fi
cristy8b350f62009-11-15 23:12:43 +000028623rm -f core conftest.err conftest.$ac_objext \
28624 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028625LIBS=$ac_check_lib_save_LIBS
28626fi
cristy8b350f62009-11-15 23:12:43 +000028627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000028628$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristyda16f162011-02-19 23:52:17 +000028629if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028630 FREETYPE_LIBS='-lfreetype'
28631fi
28632
28633 if test "$FREETYPE_LIBS" != ''; then
28634 passed=`expr $passed + 1`
28635 else
28636 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000028637 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028638 fi
28639 fi
28640
cristy8b350f62009-11-15 23:12:43 +000028641 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028642if test "x$ac_cv_header_ft2build_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028643 FT2BUILD_H='#include <ft2build.h>'
28644else
28645 ft2build=''
28646fi
28647
28648
cristy8b350f62009-11-15 23:12:43 +000028649 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28650"
cristyda16f162011-02-19 23:52:17 +000028651if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028652 have_freetype_h='yes'
28653else
28654 have_freetype_h='no'
28655fi
28656
28657
28658 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
28659 passed=`expr $passed + 1`
28660 else
28661 failed=`expr $failed + 1`
28662 CPPFLAGS="$PERSIST_CPPFLAGS"
28663 fi
28664
cristy8b350f62009-11-15 23:12:43 +000028665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028666$as_echo_n "checking if FreeType package is complete... " >&6; }
28667 if test $passed -gt 0; then
28668 if test $failed -gt 0; then
28669 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000028670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028671$as_echo "no -- some components failed test" >&6; }
28672 have_freetype='no (failed tests)'
28673 else
28674 LIBS="$FREETYPE_LIBS $LIBS"
28675
cristy8b350f62009-11-15 23:12:43 +000028676$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028677
28678 if test "$ac_cv_header_ft2build_h" = 'yes'; then
28679
cristy8b350f62009-11-15 23:12:43 +000028680$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028681
28682 fi
cristy8b350f62009-11-15 23:12:43 +000028683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028684$as_echo "yes" >&6; }
28685 have_freetype='yes'
28686 fi
28687 else
cristy8b350f62009-11-15 23:12:43 +000028688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028689$as_echo "no" >&6; }
28690 fi
28691fi
cristy73bd4a52010-10-05 11:24:23 +000028692 if test "$have_freetype" = 'yes'; then
28693 FREETYPE_DELEGATE_TRUE=
28694 FREETYPE_DELEGATE_FALSE='#'
28695else
28696 FREETYPE_DELEGATE_TRUE='#'
28697 FREETYPE_DELEGATE_FALSE=
28698fi
28699
cristy3ed852e2009-09-05 21:47:34 +000028700
28701
28702
28703
28704#
28705# Check for Ghostscript library or framework.
28706#
28707# Test for iapi.h & test for gsapi_new_instance in -lgs
28708# or -framework Ghostscript
28709
28710
28711# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028712if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028713 withval=$with_gslib; with_gslib=$withval
28714else
28715 with_gslib='no'
28716fi
28717
28718
cristyb7931f12009-09-25 10:22:21 +000028719gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028720if test "$with_gslib" != 'yes'; then
28721 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28722fi
28723
28724have_gslib='no'
28725GS_LIBS=''
28726if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028728$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028730$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028732$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000028733 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028734 failed=0
28735 passed=0
cristy8b350f62009-11-15 23:12:43 +000028736 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 +000028737if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028738 passed=`expr $passed + 1`
28739else
28740 failed=`expr $failed + 1`
28741fi
28742
28743
cristy8b350f62009-11-15 23:12:43 +000028744 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 +000028745if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028746 passed=`expr $passed + 1`
28747else
28748 failed=`expr $failed + 1`
28749fi
28750
28751
cristy73bd4a52010-10-05 11:24:23 +000028752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28753$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028754if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028755 $as_echo_n "(cached) " >&6
28756else
28757 ac_check_framework_save_LIBS=$LIBS
28758LIBS="-framework Ghostscript $LIBS"
28759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28760/* end confdefs.h. */
28761
28762/* Override any GCC internal prototype to avoid an error.
28763 Use char because int might match the return type of a GCC
28764 builtin and then its argument prototype would still apply. */
28765#ifdef __cplusplus
28766extern "C"
28767#endif
28768char gsapi_new_instance ();
28769int
28770main ()
28771{
28772return gsapi_new_instance ();
28773 ;
28774 return 0;
28775}
28776_ACEOF
28777if ac_fn_c_try_link "$LINENO"; then :
28778 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28779else
28780 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28781fi
28782rm -f core conftest.err conftest.$ac_objext \
28783 conftest$ac_exeext conftest.$ac_ext
28784LIBS=$ac_check_framework_save_LIBS
28785fi
28786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28787$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28788if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28789 framework=`expr $framework + 1`
28790else
28791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028792$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028793if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028794 $as_echo_n "(cached) " >&6
28795else
28796 ac_check_lib_save_LIBS=$LIBS
28797LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028799/* end confdefs.h. */
28800
28801/* Override any GCC internal prototype to avoid an error.
28802 Use char because int might match the return type of a GCC
28803 builtin and then its argument prototype would still apply. */
28804#ifdef __cplusplus
28805extern "C"
28806#endif
28807char gsapi_new_instance ();
28808int
28809main ()
28810{
28811return gsapi_new_instance ();
28812 ;
28813 return 0;
28814}
28815_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028816if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028817 ac_cv_lib_gs_gsapi_new_instance=yes
28818else
cristy8b350f62009-11-15 23:12:43 +000028819 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000028820fi
cristy8b350f62009-11-15 23:12:43 +000028821rm -f core conftest.err conftest.$ac_objext \
28822 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028823LIBS=$ac_check_lib_save_LIBS
28824fi
cristy8b350f62009-11-15 23:12:43 +000028825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000028826$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000028827if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028828 passed=`expr $passed + 1`
28829else
28830 failed=`expr $failed + 1`
28831fi
cristy73bd4a52010-10-05 11:24:23 +000028832
28833fi
cristy8b350f62009-11-15 23:12:43 +000028834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028835$as_echo_n "checking if Ghostscript package is complete... " >&6; }
28836 if test $passed -gt 0; then
28837 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028839$as_echo "no -- some components failed test" >&6; }
28840 have_gslib='no (failed tests)'
28841 else
28842 if test $framework -gt 0; then
28843 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000028844 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000028845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000028846$as_echo "yes, using framework." >&6; }
28847 else
cristy8b350f62009-11-15 23:12:43 +000028848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000028849$as_echo "yes, using library." >&6; }
28850 GS_LIBS='-lgs'
28851 fi
28852 LIBS="$GS_LIBS $LIBS"
28853
cristy8b350f62009-11-15 23:12:43 +000028854$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028855
28856 have_gslib='yes'
28857 fi
28858 else
cristy8b350f62009-11-15 23:12:43 +000028859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028860$as_echo "no" >&6; }
28861 fi
28862fi
cristy73bd4a52010-10-05 11:24:23 +000028863 if test "$have_gslib" = 'yes'; then
28864 GS_DELEGATE_TRUE=
28865 GS_DELEGATE_FALSE='#'
28866else
28867 GS_DELEGATE_TRUE='#'
28868 GS_DELEGATE_FALSE=
28869fi
28870
cristy3ed852e2009-09-05 21:47:34 +000028871
28872
28873# Set default font search path
28874
28875# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000028876if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028877 withval=$with_fontpath; with_fontpath=$withval
28878else
28879 with_fontpath=''
28880fi
28881
28882
28883if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28884 with_fontpath=''
28885else
28886
28887cat >>confdefs.h <<_ACEOF
28888#define MAGICK_FONT_PATH "$with_fontpath"
28889_ACEOF
28890
28891fi
28892if test "$with_fontpath=" != ''; then
28893 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28894fi
28895
28896# Set Ghostscript font directory
28897
28898# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028899if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028900 withval=$with_gs_font_dir; with_gs_font_dir=$withval
28901else
28902 with_gs_font_dir='default'
28903fi
28904
28905
28906if test "$with_gs_font_dir" != 'default'; then
28907 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28908fi
28909
28910
28911#
28912# Check for GVC delegate library.
28913#
28914
28915# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000028916if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028917 withval=$with_gvc; with_gvc=$withval
28918else
28919 with_gvc='yes'
28920fi
28921
28922
28923if test "$with_gvc" != 'yes'; then
28924 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28925fi
28926
28927GVC_PKG=""
28928if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028930$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028931
28932pkg_failed=no
28933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
28934$as_echo_n "checking for GVC... " >&6; }
28935
28936if test -n "$GVC_CFLAGS"; then
28937 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
28938 elif test -n "$PKG_CONFIG"; then
28939 if test -n "$PKG_CONFIG" && \
28940 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28941 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28942 ac_status=$?
28943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28944 test $ac_status = 0; }; then
28945 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
28946else
28947 pkg_failed=yes
28948fi
28949 else
28950 pkg_failed=untried
28951fi
28952if test -n "$GVC_LIBS"; then
28953 pkg_cv_GVC_LIBS="$GVC_LIBS"
28954 elif test -n "$PKG_CONFIG"; then
28955 if test -n "$PKG_CONFIG" && \
28956 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28957 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28958 ac_status=$?
28959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28960 test $ac_status = 0; }; then
28961 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
28962else
28963 pkg_failed=yes
28964fi
28965 else
28966 pkg_failed=untried
28967fi
28968
28969
28970
28971if test $pkg_failed = yes; then
28972
28973if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28974 _pkg_short_errors_supported=yes
28975else
28976 _pkg_short_errors_supported=no
28977fi
28978 if test $_pkg_short_errors_supported = yes; then
28979 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
28980 else
28981 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
28982 fi
28983 # Put the nasty error message in config.log where it belongs
28984 echo "$GVC_PKG_ERRORS" >&5
28985
28986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28987$as_echo "no" >&6; }
28988 have_gvc=no
28989elif test $pkg_failed = untried; then
28990 have_gvc=no
28991else
28992 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
28993 GVC_LIBS=$pkg_cv_GVC_LIBS
28994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28995$as_echo "yes" >&6; }
28996 have_gvc=yes
28997fi
cristy8b350f62009-11-15 23:12:43 +000028998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028999$as_echo "" >&6; }
29000fi
29001
29002if test "$have_gvc" = 'yes'; then
29003
cristy8b350f62009-11-15 23:12:43 +000029004$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029005
29006 if test "$with_modules" = 'no'; then
29007 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29008 fi
29009fi
29010
cristy73bd4a52010-10-05 11:24:23 +000029011 if test "$have_gvc" = 'yes'; then
29012 GVC_DELEGATE_TRUE=
29013 GVC_DELEGATE_FALSE='#'
29014else
29015 GVC_DELEGATE_TRUE='#'
29016 GVC_DELEGATE_FALSE=
29017fi
29018
cristy3ed852e2009-09-05 21:47:34 +000029019
29020
29021
29022
29023#
29024# Check for JBIG delegate library.
29025#
29026
29027
29028# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029029if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029030 withval=$with_jbig; with_jbig=$withval
29031else
29032 with_jbig='yes'
29033fi
29034
29035
29036have_jbig='no'
29037JBIG_LIBS=''
29038if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029040$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029042$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029044$as_echo "" >&6; }
29045 failed=0
29046 passed=0
cristy8b350f62009-11-15 23:12:43 +000029047 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029048if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029049 passed=`expr $passed + 1`
29050else
29051 failed=`expr $failed + 1`
29052fi
29053
29054
cristy8b350f62009-11-15 23:12:43 +000029055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029056$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029057if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029058 $as_echo_n "(cached) " >&6
29059else
29060 ac_check_lib_save_LIBS=$LIBS
29061LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029063/* end confdefs.h. */
29064
29065/* Override any GCC internal prototype to avoid an error.
29066 Use char because int might match the return type of a GCC
29067 builtin and then its argument prototype would still apply. */
29068#ifdef __cplusplus
29069extern "C"
29070#endif
29071char jbg_dec_init ();
29072int
29073main ()
29074{
29075return jbg_dec_init ();
29076 ;
29077 return 0;
29078}
29079_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029080if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029081 ac_cv_lib_jbig_jbg_dec_init=yes
29082else
cristy8b350f62009-11-15 23:12:43 +000029083 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029084fi
cristy8b350f62009-11-15 23:12:43 +000029085rm -f core conftest.err conftest.$ac_objext \
29086 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029087LIBS=$ac_check_lib_save_LIBS
29088fi
cristy8b350f62009-11-15 23:12:43 +000029089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029090$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029091if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029092 passed=`expr $passed + 1`
29093else
29094 failed=`expr $failed + 1`
29095fi
29096
cristy8b350f62009-11-15 23:12:43 +000029097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029098$as_echo_n "checking if JBIG package is complete... " >&6; }
29099 if test $passed -gt 0; then
29100 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029102$as_echo "no -- some components failed test" >&6; }
29103 have_jbig='no (failed tests)'
29104 else
29105 JBIG_LIBS='-ljbig'
29106 LIBS="$JBIG_LIBS $LIBS"
29107
cristy8b350f62009-11-15 23:12:43 +000029108$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029109
cristy8b350f62009-11-15 23:12:43 +000029110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029111$as_echo "yes" >&6; }
29112 have_jbig='yes'
29113 fi
29114 else
cristy8b350f62009-11-15 23:12:43 +000029115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029116$as_echo "no" >&6; }
29117 fi
29118fi
cristy73bd4a52010-10-05 11:24:23 +000029119 if test "$have_jbig" = 'yes'; then
29120 JBIG_DELEGATE_TRUE=
29121 JBIG_DELEGATE_FALSE='#'
29122else
29123 JBIG_DELEGATE_TRUE='#'
29124 JBIG_DELEGATE_FALSE=
29125fi
29126
cristy3ed852e2009-09-05 21:47:34 +000029127
29128
29129
29130#
29131# Check for JPEG delegate library.
29132#
29133
29134# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029135if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029136 withval=$with_jpeg; with_jpeg=$withval
29137else
29138 with_jpeg='yes'
29139fi
29140
29141
29142if test "$with_jpeg" != 'yes'; then
29143 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29144fi
29145
29146have_jpeg='no'
29147JPEG_LIBS=''
29148if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029150$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029152$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029154$as_echo "" >&6; }
29155 failed=0
29156 passed=0
cristy8b350f62009-11-15 23:12:43 +000029157 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029158if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029159 passed=`expr $passed + 1`
29160else
29161 failed=`expr $failed + 1`
29162fi
29163
29164
cristy8b350f62009-11-15 23:12:43 +000029165 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029166if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029167 passed=`expr $passed + 1`
29168else
29169 failed=`expr $failed + 1`
29170fi
29171
29172
cristy8b350f62009-11-15 23:12:43 +000029173 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029174if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029175 passed=`expr $passed + 1`
29176else
29177 failed=`expr $failed + 1`
29178fi
29179
29180
cristy8b350f62009-11-15 23:12:43 +000029181 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029182if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029183 passed=`expr $passed + 1`
29184else
29185 failed=`expr $failed + 1`
29186fi
29187
29188
cristy8b350f62009-11-15 23:12:43 +000029189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029190$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029191if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029192 $as_echo_n "(cached) " >&6
29193else
29194 ac_check_lib_save_LIBS=$LIBS
29195LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029197/* end confdefs.h. */
29198
29199/* Override any GCC internal prototype to avoid an error.
29200 Use char because int might match the return type of a GCC
29201 builtin and then its argument prototype would still apply. */
29202#ifdef __cplusplus
29203extern "C"
29204#endif
29205char jpeg_read_header ();
29206int
29207main ()
29208{
29209return jpeg_read_header ();
29210 ;
29211 return 0;
29212}
29213_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029214if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029215 ac_cv_lib_jpeg_jpeg_read_header=yes
29216else
cristy8b350f62009-11-15 23:12:43 +000029217 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029218fi
cristy8b350f62009-11-15 23:12:43 +000029219rm -f core conftest.err conftest.$ac_objext \
29220 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029221LIBS=$ac_check_lib_save_LIBS
29222fi
cristy8b350f62009-11-15 23:12:43 +000029223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029224$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029225if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029226 passed=`expr $passed + 1`
29227else
29228 failed=`expr $failed + 1`
29229fi
29230
29231
29232# Test for compatible JPEG library
29233if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029235$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029236if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029237 $as_echo_n "(cached) " >&6
29238else
cristy8b350f62009-11-15 23:12:43 +000029239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029240/* end confdefs.h. */
29241#include <stdio.h>
29242#include <stdlib.h>
29243#include <jpeglib.h>
29244
29245int
29246main ()
29247{
29248
29249#if JPEG_LIB_VERSION < 62
29250#error IJG JPEG library must be version 6b or newer!
29251#endif
29252return 0;
29253
29254 ;
29255 return 0;
29256}
29257_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029258if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029259 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29260else
cristy8b350f62009-11-15 23:12:43 +000029261 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029262fi
cristy3ed852e2009-09-05 21:47:34 +000029263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29264fi
cristy8b350f62009-11-15 23:12:43 +000029265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029266$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29267fi
cristy8b350f62009-11-15 23:12:43 +000029268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029269$as_echo_n "checking if JPEG package is complete... " >&6; }
29270 if test $passed -gt 0; then
29271 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029273$as_echo "no -- some components failed test" >&6; }
29274 have_jpeg='no (failed tests)'
29275 else
29276 JPEG_LIBS='-ljpeg'
29277 LIBS="$JPEG_LIBS $LIBS"
29278
cristy8b350f62009-11-15 23:12:43 +000029279$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029280
cristy8b350f62009-11-15 23:12:43 +000029281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029282$as_echo "yes" >&6; }
29283 have_jpeg='yes'
29284 fi
29285 else
cristy8b350f62009-11-15 23:12:43 +000029286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029287$as_echo "no" >&6; }
29288 fi
29289fi
cristy73bd4a52010-10-05 11:24:23 +000029290 if test "$have_jpeg" = 'yes'; then
29291 JPEG_DELEGATE_TRUE=
29292 JPEG_DELEGATE_FALSE='#'
29293else
29294 JPEG_DELEGATE_TRUE='#'
29295 JPEG_DELEGATE_FALSE=
29296fi
29297
cristy3ed852e2009-09-05 21:47:34 +000029298
29299
29300
29301#
29302# Check for JPEG Version 2 delegate library.
29303#
29304
29305# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029306if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029307 withval=$with_jp2; with_jp2=$withval
29308else
29309 with_jp2='yes'
29310fi
29311
29312
29313if test "$with_jp2" != 'yes'; then
29314 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29315fi
29316
29317have_jp2='no'
29318JP2_LIBS=''
29319if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029321$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029323$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029325$as_echo "" >&6; }
29326 failed=0
29327 passed=0
cristy8b350f62009-11-15 23:12:43 +000029328 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 +000029329if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029330 passed=`expr $passed + 1`
29331else
29332 failed=`expr $failed + 1`
29333fi
29334
29335
cristy8b350f62009-11-15 23:12:43 +000029336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029337$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029338if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029339 $as_echo_n "(cached) " >&6
29340else
29341 ac_check_lib_save_LIBS=$LIBS
29342LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029344/* end confdefs.h. */
29345
29346/* Override any GCC internal prototype to avoid an error.
29347 Use char because int might match the return type of a GCC
29348 builtin and then its argument prototype would still apply. */
29349#ifdef __cplusplus
29350extern "C"
29351#endif
29352char jas_stream_fopen ();
29353int
29354main ()
29355{
29356return jas_stream_fopen ();
29357 ;
29358 return 0;
29359}
29360_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029361if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029362 ac_cv_lib_jasper_jas_stream_fopen=yes
29363else
cristy8b350f62009-11-15 23:12:43 +000029364 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029365fi
cristy8b350f62009-11-15 23:12:43 +000029366rm -f core conftest.err conftest.$ac_objext \
29367 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029368LIBS=$ac_check_lib_save_LIBS
29369fi
cristy8b350f62009-11-15 23:12:43 +000029370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029371$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029372if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029373 passed=`expr $passed + 1`
29374else
29375 failed=`expr $failed + 1`
29376fi
29377
cristy8b350f62009-11-15 23:12:43 +000029378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029379$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29380 if test $passed -gt 0; then
29381 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029383$as_echo "no -- some components failed test" >&6; }
29384 have_jp2='no (failed tests)'
29385 else
29386 JP2_LIBS='-ljasper'
29387 LIBS="$JP2_LIBS $LIBS"
29388
cristy8b350f62009-11-15 23:12:43 +000029389$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029390
cristy8b350f62009-11-15 23:12:43 +000029391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029392$as_echo "yes" >&6; }
29393 have_jp2='yes'
29394 fi
29395 else
cristy8b350f62009-11-15 23:12:43 +000029396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029397$as_echo "no" >&6; }
29398 fi
29399fi
cristy73bd4a52010-10-05 11:24:23 +000029400 if test "$have_jp2" = 'yes'; then
29401 JP2_DELEGATE_TRUE=
29402 JP2_DELEGATE_FALSE='#'
29403else
29404 JP2_DELEGATE_TRUE='#'
29405 JP2_DELEGATE_FALSE=
29406fi
29407
cristy3ed852e2009-09-05 21:47:34 +000029408
29409
29410
29411#
29412# Check for LCMS delegate library.
29413#
cristy71203402010-06-18 13:12:03 +000029414# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029415
29416# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029417if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029418 withval=$with_lcms; with_lcms=$withval
29419else
29420 with_lcms='yes'
29421fi
29422
cristy71203402010-06-18 13:12:03 +000029423if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029424 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29425fi
29426
cristy71203402010-06-18 13:12:03 +000029427# Disable LCMS2.
29428
29429# Check whether --with-lcms2 was given.
29430if test "${with_lcms2+set}" = set; then :
29431 withval=$with_lcms2; with_lcms2=$withval
29432else
29433 with_lcms2='yes'
29434fi
29435
29436if test "$with_lcms2" != 'yes' ; then
29437 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29438fi
29439
29440have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029441LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029442if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029444$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29446$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029448$as_echo "" >&6; }
29449 failed=0
29450 passed=0
29451 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029452
29453 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029454 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029455if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029456 have_lcms_header='yes'
29457fi
29458
29459
29460 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029461
29462$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29463
cristy71203402010-06-18 13:12:03 +000029464 passed=`expr $passed + 1`
29465 fi
29466
29467 # Check for <lcms2/lcms2.h)
29468 if test "$have_lcms_header" != 'yes'; then
29469 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 +000029470if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029471 have_lcms_header='yes'
29472fi
29473
29474
cristy71203402010-06-18 13:12:03 +000029475 if test "$have_lcms_header" = 'yes'; then
29476 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029477
cristy71203402010-06-18 13:12:03 +000029478$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029479
cristy71203402010-06-18 13:12:03 +000029480 fi
cristyd09bcf92010-03-25 03:04:45 +000029481 fi
cristy71203402010-06-18 13:12:03 +000029482
29483 # Failed to find lcms header?
29484 if test "$have_lcms_header" != 'yes'; then
29485 failed=`expr $failed + 1`
29486 fi
29487
29488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29489$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029490if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029491 $as_echo_n "(cached) " >&6
29492else
29493 ac_check_lib_save_LIBS=$LIBS
29494LIBS="-llcms2 $LIBS"
29495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29496/* end confdefs.h. */
29497
29498/* Override any GCC internal prototype to avoid an error.
29499 Use char because int might match the return type of a GCC
29500 builtin and then its argument prototype would still apply. */
29501#ifdef __cplusplus
29502extern "C"
29503#endif
cristy71203402010-06-18 13:12:03 +000029504char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029505int
29506main ()
29507{
cristy71203402010-06-18 13:12:03 +000029508return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029509 ;
29510 return 0;
29511}
29512_ACEOF
29513if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029514 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029515else
cristy71203402010-06-18 13:12:03 +000029516 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029517fi
29518rm -f core conftest.err conftest.$ac_objext \
29519 conftest$ac_exeext conftest.$ac_ext
29520LIBS=$ac_check_lib_save_LIBS
29521fi
cristy71203402010-06-18 13:12:03 +000029522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29523$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029524if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029525 passed=`expr $passed + 1`
29526else
29527 failed=`expr $failed + 1`
29528fi
29529
cristy71203402010-06-18 13:12:03 +000029530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29531$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029532 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029533 if test $failed -gt 0; then
29534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000029535$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029536 have_lcms2='no (failed tests)'
29537 else
29538 LCMS_LIBS='-llcms2'
29539 LIBS="$LCMS_LIBS $LIBS"
29540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000029541$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029542 have_lcms2='yes'
29543 fi
cristyd09bcf92010-03-25 03:04:45 +000029544 else
cristy71203402010-06-18 13:12:03 +000029545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000029546$as_echo "no" >&6; }
29547 fi
29548fi
29549
cristy71203402010-06-18 13:12:03 +000029550#
29551# Check for LCMS v1 (1.11 or later)
29552#
29553if test $have_lcms2 = 'yes'; then
29554 with_lcms='no'
29555fi
29556
29557have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029558if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000029559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29560$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29562$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29564$as_echo "" >&6; }
29565 failed=0
29566 passed=0
29567 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029568
29569 # Check for <lcms.h>
29570 if test "$have_lcms_header" != 'yes'; then
29571 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029572if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029573 have_lcms_header='yes'
29574fi
29575
29576
cristy71203402010-06-18 13:12:03 +000029577 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029578 passed=`expr $passed + 1`
29579
cristy8b350f62009-11-15 23:12:43 +000029580$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029581
cristy71203402010-06-18 13:12:03 +000029582 fi
29583 fi
29584
29585 # Check for <lcms/lcms.h>
29586 if test "$have_lcms_header" != 'yes'; then
29587 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 +000029588if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029589 have_lcms_header='yes'
29590fi
29591
29592
cristy71203402010-06-18 13:12:03 +000029593 if test "$have_lcms_header" = 'yes'; then
29594 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029595
cristy8b350f62009-11-15 23:12:43 +000029596$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029597
cristy71203402010-06-18 13:12:03 +000029598 fi
cristy3ed852e2009-09-05 21:47:34 +000029599 fi
cristy71203402010-06-18 13:12:03 +000029600
29601 # Failed to find lcms header?
29602 if test "$have_lcms_header" != 'yes'; then
29603 failed=`expr $failed + 1`
29604 fi
29605
29606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29607$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029608if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029609 $as_echo_n "(cached) " >&6
29610else
29611 ac_check_lib_save_LIBS=$LIBS
29612LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029614/* end confdefs.h. */
29615
29616/* Override any GCC internal prototype to avoid an error.
29617 Use char because int might match the return type of a GCC
29618 builtin and then its argument prototype would still apply. */
29619#ifdef __cplusplus
29620extern "C"
29621#endif
cristy71203402010-06-18 13:12:03 +000029622char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029623int
29624main ()
29625{
cristy71203402010-06-18 13:12:03 +000029626return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029627 ;
29628 return 0;
29629}
29630_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029631if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029632 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029633else
cristy71203402010-06-18 13:12:03 +000029634 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029635fi
cristy8b350f62009-11-15 23:12:43 +000029636rm -f core conftest.err conftest.$ac_objext \
29637 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029638LIBS=$ac_check_lib_save_LIBS
29639fi
cristy71203402010-06-18 13:12:03 +000029640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29641$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029642if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029643 passed=`expr $passed + 1`
29644else
29645 failed=`expr $failed + 1`
29646fi
29647
cristy8b350f62009-11-15 23:12:43 +000029648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029649$as_echo_n "checking if LCMS package is complete... " >&6; }
29650 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029651 if test $failed -gt 0; then
29652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029653$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029654 have_lcms='no (failed tests)'
29655 else
29656 LCMS_LIBS='-llcms'
29657 LIBS="$LCMS_LIBS $LIBS"
29658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029659$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029660 have_lcms='yes'
29661 fi
cristy3ed852e2009-09-05 21:47:34 +000029662 else
cristy71203402010-06-18 13:12:03 +000029663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029664$as_echo "no" >&6; }
29665 fi
29666fi
cristy71203402010-06-18 13:12:03 +000029667
cristy73bd4a52010-10-05 11:24:23 +000029668 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29669 LCMS_DELEGATE_TRUE=
29670 LCMS_DELEGATE_FALSE='#'
29671else
29672 LCMS_DELEGATE_TRUE='#'
29673 LCMS_DELEGATE_FALSE=
29674fi
29675
cristy71203402010-06-18 13:12:03 +000029676if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29677
29678$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29679
29680fi
29681
cristy3ed852e2009-09-05 21:47:34 +000029682
29683
29684
29685#
29686# Check for the LQR (Liquid Rescale) delegate library.
29687#
29688
29689# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029690if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029691 withval=$with_lqr; with_lqr=$withval
29692else
29693 with_lqr='yes'
29694fi
29695
29696
29697if test "$with_lqr" != 'yes'; then
29698 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29699fi
29700
29701have_lqr='no'
29702LQR_CFLAGS=""
29703LQR_LIBS=""
29704LQR_PKG=""
29705if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029707$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029708
29709pkg_failed=no
29710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29711$as_echo_n "checking for LQR... " >&6; }
29712
29713if test -n "$LQR_CFLAGS"; then
29714 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29715 elif test -n "$PKG_CONFIG"; then
29716 if test -n "$PKG_CONFIG" && \
29717 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29718 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29719 ac_status=$?
29720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29721 test $ac_status = 0; }; then
29722 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29723else
29724 pkg_failed=yes
29725fi
29726 else
29727 pkg_failed=untried
29728fi
29729if test -n "$LQR_LIBS"; then
29730 pkg_cv_LQR_LIBS="$LQR_LIBS"
29731 elif test -n "$PKG_CONFIG"; then
29732 if test -n "$PKG_CONFIG" && \
29733 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29734 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29735 ac_status=$?
29736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29737 test $ac_status = 0; }; then
29738 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29739else
29740 pkg_failed=yes
29741fi
29742 else
29743 pkg_failed=untried
29744fi
29745
29746
29747
29748if test $pkg_failed = yes; then
29749
29750if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29751 _pkg_short_errors_supported=yes
29752else
29753 _pkg_short_errors_supported=no
29754fi
29755 if test $_pkg_short_errors_supported = yes; then
29756 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29757 else
29758 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29759 fi
29760 # Put the nasty error message in config.log where it belongs
29761 echo "$LQR_PKG_ERRORS" >&5
29762
29763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29764$as_echo "no" >&6; }
29765 have_lqr=no
29766elif test $pkg_failed = untried; then
29767 have_lqr=no
29768else
29769 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29770 LQR_LIBS=$pkg_cv_LQR_LIBS
29771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29772$as_echo "yes" >&6; }
29773 have_lqr=yes
29774fi
cristy8b350f62009-11-15 23:12:43 +000029775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029776$as_echo "" >&6; }
29777fi
29778
29779if test "$have_lqr" = 'yes'; then
29780
cristy8b350f62009-11-15 23:12:43 +000029781$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029782
29783 CFLAGS="$LQR_CFLAGS $CFLAGS"
29784fi
29785
cristy73bd4a52010-10-05 11:24:23 +000029786 if test "$have_lqr" = 'yes'; then
29787 LQR_DELEGATE_TRUE=
29788 LQR_DELEGATE_FALSE='#'
29789else
29790 LQR_DELEGATE_TRUE='#'
29791 LQR_DELEGATE_FALSE=
29792fi
29793
cristy3ed852e2009-09-05 21:47:34 +000029794
29795
29796
29797
cristyfbb0ef02010-12-19 02:32:11 +000029798# Disable LZMA (lzma library)
29799
29800# Check whether --with-lzma was given.
29801if test "${with_lzma+set}" = set; then :
29802 withval=$with_lzma; with_lzma=$withval
29803else
29804 with_lzma='yes'
29805fi
29806
29807if test "$with_lzma" != 'yes' ; then
29808 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29809fi
29810
29811#
29812# Check for LZMA
29813#
29814have_lzma='no'
29815LZMA_LIBS=''
29816if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
29817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29818$as_echo "-------------------------------------------------------------" >&6; }
29819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
29820$as_echo_n "checking for LZMA... " >&6; }
29821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29822$as_echo "" >&6; }
29823 failed=0
29824 passed=0
29825 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029826if test "x$ac_cv_header_lzma_h" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029827 passed=`expr $passed + 1`
29828else
29829 failed=`expr $failed + 1`
29830fi
29831
29832
29833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
29834$as_echo_n "checking for lzma_code in -llzma... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029835if ${ac_cv_lib_lzma_lzma_code+:} false; then :
cristyfbb0ef02010-12-19 02:32:11 +000029836 $as_echo_n "(cached) " >&6
29837else
29838 ac_check_lib_save_LIBS=$LIBS
29839LIBS="-llzma $LIBS"
29840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29841/* end confdefs.h. */
29842
29843/* Override any GCC internal prototype to avoid an error.
29844 Use char because int might match the return type of a GCC
29845 builtin and then its argument prototype would still apply. */
29846#ifdef __cplusplus
29847extern "C"
29848#endif
29849char lzma_code ();
29850int
29851main ()
29852{
29853return lzma_code ();
29854 ;
29855 return 0;
29856}
29857_ACEOF
29858if ac_fn_c_try_link "$LINENO"; then :
29859 ac_cv_lib_lzma_lzma_code=yes
29860else
29861 ac_cv_lib_lzma_lzma_code=no
29862fi
29863rm -f core conftest.err conftest.$ac_objext \
29864 conftest$ac_exeext conftest.$ac_ext
29865LIBS=$ac_check_lib_save_LIBS
29866fi
29867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
29868$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
cristyda16f162011-02-19 23:52:17 +000029869if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029870 passed=`expr $passed + 1`
29871else
29872 failed=`expr $failed + 1`
29873fi
29874
29875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
29876$as_echo_n "checking if LZMA package is complete... " >&6; }
29877 if test $passed -gt 0; then
29878 if test $failed -gt 0; then
29879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29880$as_echo "no -- some components failed test" >&6; }
29881 have_lzma='no (failed tests)'
29882 else
29883 LZMA_LIBS='-llzma'
29884 LIBS="$LZMA_LIBS $LIBS"
29885
29886$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29887
29888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29889$as_echo "yes" >&6; }
29890 have_lzma='yes'
29891 fi
29892 else
29893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29894$as_echo "no" >&6; }
29895 fi
29896fi
29897 if test "$have_lzma" = 'yes'; then
29898 LZMA_DELEGATE_TRUE=
29899 LZMA_DELEGATE_FALSE='#'
29900else
29901 LZMA_DELEGATE_TRUE='#'
29902 LZMA_DELEGATE_FALSE=
29903fi
29904
29905
29906
29907
cristy3ed852e2009-09-05 21:47:34 +000029908#
29909# Check for the OpenEXR delegate library.
29910#
29911
29912# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000029913if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029914 withval=$with_openexr; with_openexr=$withval
29915else
29916 with_openexr='yes'
29917fi
29918
29919
29920if test "$with_openexr" != 'yes'; then
29921 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
29922fi
29923
29924have_openexr='no'
29925OPENEXR_CFLAGS=""
29926OPENEXR_LIBS=""
29927OPENEXR_PKG=""
29928if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029930$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029931
29932pkg_failed=no
29933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
29934$as_echo_n "checking for OPENEXR... " >&6; }
29935
29936if test -n "$OPENEXR_CFLAGS"; then
29937 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
29938 elif test -n "$PKG_CONFIG"; then
29939 if test -n "$PKG_CONFIG" && \
29940 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29941 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29942 ac_status=$?
29943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29944 test $ac_status = 0; }; then
29945 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
29946else
29947 pkg_failed=yes
29948fi
29949 else
29950 pkg_failed=untried
29951fi
29952if test -n "$OPENEXR_LIBS"; then
29953 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
29954 elif test -n "$PKG_CONFIG"; then
29955 if test -n "$PKG_CONFIG" && \
29956 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29957 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29958 ac_status=$?
29959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29960 test $ac_status = 0; }; then
29961 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
29962else
29963 pkg_failed=yes
29964fi
29965 else
29966 pkg_failed=untried
29967fi
29968
29969
29970
29971if test $pkg_failed = yes; then
29972
29973if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29974 _pkg_short_errors_supported=yes
29975else
29976 _pkg_short_errors_supported=no
29977fi
29978 if test $_pkg_short_errors_supported = yes; then
29979 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
29980 else
29981 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
29982 fi
29983 # Put the nasty error message in config.log where it belongs
29984 echo "$OPENEXR_PKG_ERRORS" >&5
29985
29986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29987$as_echo "no" >&6; }
29988 have_openexr=no
29989elif test $pkg_failed = untried; then
29990 have_openexr=no
29991else
29992 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
29993 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
29994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29995$as_echo "yes" >&6; }
29996 have_openexr=yes
29997fi
cristy8b350f62009-11-15 23:12:43 +000029998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029999$as_echo "" >&6; }
30000fi
30001
30002if test "$have_openexr" = 'yes'; then
30003
cristy8b350f62009-11-15 23:12:43 +000030004$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030005
30006 if test "$with_modules" = 'no'; then
30007 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30008 fi
30009fi
30010
cristy73bd4a52010-10-05 11:24:23 +000030011 if test "$have_openexr" = 'yes'; then
30012 OPENEXR_DELEGATE_TRUE=
30013 OPENEXR_DELEGATE_FALSE='#'
30014else
30015 OPENEXR_DELEGATE_TRUE='#'
30016 OPENEXR_DELEGATE_FALSE=
30017fi
30018
cristy3ed852e2009-09-05 21:47:34 +000030019
30020
30021
30022
30023#
30024# Check for PNG delegate library.
30025#
30026
30027# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030028if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030029 withval=$with_png; with_png=$withval
30030else
30031 with_png='yes'
30032fi
30033
30034
30035if test "$with_png" != 'yes'; then
30036 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30037fi
30038
30039have_png='no'
30040PNG_LIBS=''
cristy64877302011-08-23 19:10:31 +000030041
cristy50d3f5c2011-09-10 20:09:06 +000030042if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy64877302011-08-23 19:10:31 +000030043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030044$as_echo "-------------------------------------------------------------" >&6; }
cristy64877302011-08-23 19:10:31 +000030045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30046$as_echo_n "checking for PNG support ... " >&6; }
30047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030048$as_echo "" >&6; }
cristy64877302011-08-23 19:10:31 +000030049 failed=0
30050 passed=0
30051 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030052if test "x$ac_cv_header_png_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030053 passed=`expr $passed + 1`
30054else
30055 failed=`expr $failed + 1`
30056fi
30057
30058
cristy64877302011-08-23 19:10:31 +000030059
30060 if test $passed -gt 0; then
30061 for var in 5 4 2 '' ; do
cristy64877302011-08-23 19:10:31 +000030062 if test "$have_png" == 'no' ; then
cristy50d3f5c2011-09-10 20:09:06 +000030063 if test "x${var}" == 'x' ; then
30064 pnglib='png'
30065 else
30066 pnglib="png1${var}"
30067 fi
cristy64877302011-08-23 19:10:31 +000030068
30069# Test for compatible LIBPNG library
30070 failed=0
30071 passed=0
30072 if test "$with_png" == 'yes' -o "$with_png" == "libpng1${var}" ; then
30073 if test "${pnglib}" != 'png' ; then
30074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30075$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30077/* end confdefs.h. */
30078#include <stdio.h>
30079#include <stdlib.h>
30080#include <png.h>
30081
30082int
30083main ()
30084{
30085
30086#if PNG_LIBPNG_VER_MINOR != ${var}
30087#error LIBPNG library must be version 1${var}!
30088Kaboom, Kaboom
30089#endif
30090return 0;
30091
30092 ;
30093 return 0;
30094}
30095_ACEOF
30096if ac_fn_c_try_compile "$LINENO"; then :
30097 ac_cv_libpng_ok='yes'
30098else
30099 ac_cv_libpng_ok='no'
30100fi
30101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30102 if test "$ac_cv_libpng_ok" = 'yes' ; then
30103 passed=`expr $passed + 1`
30104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30105$as_echo "yes" >&6; }
30106 else
30107 failed=`expr $failed + 1`
30108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30109$as_echo "no" >&6; }
30110 fi
30111 else
30112 passed=`expr $passed + 1`
30113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30114$as_echo "yes" >&6; }
30115 fi
30116 fi
30117
cristy47f21b02011-08-24 18:40:43 +000030118 if test $passed -gt 0 -a $failed -le 0; then
cristy64877302011-08-23 19:10:31 +000030119 if test "1${var}" = '15' ; then
30120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30121$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30122if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30123 $as_echo_n "(cached) " >&6
30124else
30125 ac_check_lib_save_LIBS=$LIBS
30126LIBS="-lpng15 $LIBS"
30127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30128/* end confdefs.h. */
30129
30130/* Override any GCC internal prototype to avoid an error.
30131 Use char because int might match the return type of a GCC
30132 builtin and then its argument prototype would still apply. */
30133#ifdef __cplusplus
30134extern "C"
30135#endif
30136char png_get_io_ptr ();
30137int
30138main ()
30139{
30140return png_get_io_ptr ();
30141 ;
30142 return 0;
30143}
30144_ACEOF
30145if ac_fn_c_try_link "$LINENO"; then :
30146 ac_cv_lib_png15_png_get_io_ptr=yes
30147else
30148 ac_cv_lib_png15_png_get_io_ptr=no
30149fi
30150rm -f core conftest.err conftest.$ac_objext \
30151 conftest$ac_exeext conftest.$ac_ext
30152LIBS=$ac_check_lib_save_LIBS
30153fi
30154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30155$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30156if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30157 passed=`expr $passed + 1`
30158else
30159 failed=`expr $failed + 1`
30160fi
30161
30162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30163$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30164if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30165 $as_echo_n "(cached) " >&6
30166else
30167 ac_check_lib_save_LIBS=$LIBS
30168LIBS="-lpng15 $LIBS"
30169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30170/* end confdefs.h. */
30171
30172/* Override any GCC internal prototype to avoid an error.
30173 Use char because int might match the return type of a GCC
30174 builtin and then its argument prototype would still apply. */
30175#ifdef __cplusplus
30176extern "C"
30177#endif
30178char png_longjmp ();
30179int
30180main ()
30181{
30182return png_longjmp ();
30183 ;
30184 return 0;
30185}
30186_ACEOF
30187if ac_fn_c_try_link "$LINENO"; then :
30188 ac_cv_lib_png15_png_longjmp=yes
30189else
30190 ac_cv_lib_png15_png_longjmp=no
30191fi
30192rm -f core conftest.err conftest.$ac_objext \
30193 conftest$ac_exeext conftest.$ac_ext
30194LIBS=$ac_check_lib_save_LIBS
30195fi
30196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30197$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30198if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30199 passed=`expr $passed + 1`
30200else
30201 failed=`expr $failed + 1`
30202fi
30203
30204 fi
30205 if test "1${var}" = '14' ; then
30206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30207$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30208if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30209 $as_echo_n "(cached) " >&6
30210else
30211 ac_check_lib_save_LIBS=$LIBS
30212LIBS="-lpng14 $LIBS"
30213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30214/* end confdefs.h. */
30215
30216/* Override any GCC internal prototype to avoid an error.
30217 Use char because int might match the return type of a GCC
30218 builtin and then its argument prototype would still apply. */
30219#ifdef __cplusplus
30220extern "C"
30221#endif
30222char png_get_io_ptr ();
30223int
30224main ()
30225{
30226return png_get_io_ptr ();
30227 ;
30228 return 0;
30229}
30230_ACEOF
30231if ac_fn_c_try_link "$LINENO"; then :
30232 ac_cv_lib_png14_png_get_io_ptr=yes
30233else
30234 ac_cv_lib_png14_png_get_io_ptr=no
30235fi
30236rm -f core conftest.err conftest.$ac_objext \
30237 conftest$ac_exeext conftest.$ac_ext
30238LIBS=$ac_check_lib_save_LIBS
30239fi
30240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30241$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30242if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30243 passed=`expr $passed + 1`
30244else
30245 failed=`expr $failed + 1`
30246fi
30247
30248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30249$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30250if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30251 $as_echo_n "(cached) " >&6
30252else
30253 ac_check_lib_save_LIBS=$LIBS
30254LIBS="-lpng14 $LIBS"
30255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30256/* end confdefs.h. */
30257
30258/* Override any GCC internal prototype to avoid an error.
30259 Use char because int might match the return type of a GCC
30260 builtin and then its argument prototype would still apply. */
30261#ifdef __cplusplus
30262extern "C"
30263#endif
30264char png_get_io_state ();
30265int
30266main ()
30267{
30268return png_get_io_state ();
30269 ;
30270 return 0;
30271}
30272_ACEOF
30273if ac_fn_c_try_link "$LINENO"; then :
30274 ac_cv_lib_png14_png_get_io_state=yes
30275else
30276 ac_cv_lib_png14_png_get_io_state=no
30277fi
30278rm -f core conftest.err conftest.$ac_objext \
30279 conftest$ac_exeext conftest.$ac_ext
30280LIBS=$ac_check_lib_save_LIBS
30281fi
30282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30283$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30284if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30285 passed=`expr $passed + 1`
30286else
30287 failed=`expr $failed + 1`
30288fi
30289
30290 fi
30291 if test "1${var}" = '12' ; then
30292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30293$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30294if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30295 $as_echo_n "(cached) " >&6
30296else
30297 ac_check_lib_save_LIBS=$LIBS
30298LIBS="-lpng12 $LIBS"
30299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30300/* end confdefs.h. */
30301
30302/* Override any GCC internal prototype to avoid an error.
30303 Use char because int might match the return type of a GCC
30304 builtin and then its argument prototype would still apply. */
30305#ifdef __cplusplus
30306extern "C"
30307#endif
30308char png_get_io_ptr ();
30309int
30310main ()
30311{
30312return png_get_io_ptr ();
30313 ;
30314 return 0;
30315}
30316_ACEOF
30317if ac_fn_c_try_link "$LINENO"; then :
30318 ac_cv_lib_png12_png_get_io_ptr=yes
30319else
30320 ac_cv_lib_png12_png_get_io_ptr=no
30321fi
30322rm -f core conftest.err conftest.$ac_objext \
30323 conftest$ac_exeext conftest.$ac_ext
30324LIBS=$ac_check_lib_save_LIBS
30325fi
30326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30327$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30328if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30329 passed=`expr $passed + 1`
30330else
30331 failed=`expr $failed + 1`
30332fi
30333
30334 fi
30335 if test "1${var}" = '1' ; then
30336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000030337$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030338if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030339 $as_echo_n "(cached) " >&6
30340else
30341 ac_check_lib_save_LIBS=$LIBS
30342LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030344/* end confdefs.h. */
30345
30346/* Override any GCC internal prototype to avoid an error.
30347 Use char because int might match the return type of a GCC
30348 builtin and then its argument prototype would still apply. */
30349#ifdef __cplusplus
30350extern "C"
30351#endif
30352char png_get_io_ptr ();
30353int
30354main ()
30355{
30356return png_get_io_ptr ();
30357 ;
30358 return 0;
30359}
30360_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030361if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030362 ac_cv_lib_png_png_get_io_ptr=yes
30363else
cristy8b350f62009-11-15 23:12:43 +000030364 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000030365fi
cristy8b350f62009-11-15 23:12:43 +000030366rm -f core conftest.err conftest.$ac_objext \
30367 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030368LIBS=$ac_check_lib_save_LIBS
30369fi
cristy8b350f62009-11-15 23:12:43 +000030370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000030371$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristyda16f162011-02-19 23:52:17 +000030372if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030373 passed=`expr $passed + 1`
30374else
30375 failed=`expr $failed + 1`
30376fi
30377
cristy64877302011-08-23 19:10:31 +000030378 fi
30379 if test $passed -gt 0 -a $failed -le 0 ; then
30380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30381$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30382 if test $passed -gt 0 ; then
30383 if test $failed -gt 0 ; then
cristy50d3f5c2011-09-10 20:09:06 +000030384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000030385$as_echo "no -- some components failed test" >&6; }
cristy50d3f5c2011-09-10 20:09:06 +000030386 have_png='no (failed tests)'
cristy64877302011-08-23 19:10:31 +000030387 else
cristy50d3f5c2011-09-10 20:09:06 +000030388 PNG_LIBS="-l${pnglib}"
30389 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030390
cristy8b350f62009-11-15 23:12:43 +000030391$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030392
cristy50d3f5c2011-09-10 20:09:06 +000030393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030394$as_echo "yes" >&6; }
cristy50d3f5c2011-09-10 20:09:06 +000030395 have_png='yes'
cristy64877302011-08-23 19:10:31 +000030396 fi
30397 fi
30398 fi
cristy3ed852e2009-09-05 21:47:34 +000030399 fi
cristy64877302011-08-23 19:10:31 +000030400 fi
30401 done
30402 fi
cristy3ed852e2009-09-05 21:47:34 +000030403fi
cristy64877302011-08-23 19:10:31 +000030404
cristy73bd4a52010-10-05 11:24:23 +000030405 if test "$have_png" = 'yes'; then
30406 PNG_DELEGATE_TRUE=
30407 PNG_DELEGATE_FALSE='#'
30408else
30409 PNG_DELEGATE_TRUE='#'
30410 PNG_DELEGATE_FALSE=
30411fi
30412
cristy3ed852e2009-09-05 21:47:34 +000030413
cristy50d3f5c2011-09-10 20:09:06 +000030414
cristy3ed852e2009-09-05 21:47:34 +000030415
30416
30417#
30418# Check for RSVG delegate library.
30419#
30420
30421# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030422if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030423 withval=$with_rsvg; with_rsvg=$withval
30424else
30425 with_rsvg=$have_x
30426fi
30427
30428
30429if test "$with_rsvg" != 'yes'; then
30430 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30431fi
30432
30433have_rsvg='no'
30434have_cairo='no'
30435RSVG_CFLAGS=""
30436RSVG_LIBS=""
30437RSVG_PKG=""
30438if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000030439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030440$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030441
30442pkg_failed=no
30443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30444$as_echo_n "checking for RSVG... " >&6; }
30445
30446if test -n "$RSVG_CFLAGS"; then
30447 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30448 elif test -n "$PKG_CONFIG"; then
30449 if test -n "$PKG_CONFIG" && \
30450 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30451 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30452 ac_status=$?
30453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30454 test $ac_status = 0; }; then
30455 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30456else
30457 pkg_failed=yes
30458fi
30459 else
30460 pkg_failed=untried
30461fi
30462if test -n "$RSVG_LIBS"; then
30463 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30464 elif test -n "$PKG_CONFIG"; then
30465 if test -n "$PKG_CONFIG" && \
30466 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30467 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30468 ac_status=$?
30469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30470 test $ac_status = 0; }; then
30471 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30472else
30473 pkg_failed=yes
30474fi
30475 else
30476 pkg_failed=untried
30477fi
30478
30479
30480
30481if test $pkg_failed = yes; then
30482
30483if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30484 _pkg_short_errors_supported=yes
30485else
30486 _pkg_short_errors_supported=no
30487fi
30488 if test $_pkg_short_errors_supported = yes; then
30489 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30490 else
30491 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30492 fi
30493 # Put the nasty error message in config.log where it belongs
30494 echo "$RSVG_PKG_ERRORS" >&5
30495
30496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30497$as_echo "no" >&6; }
30498 have_rsvg=no
30499elif test $pkg_failed = untried; then
30500 have_rsvg=no
30501else
30502 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30503 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30505$as_echo "yes" >&6; }
30506 have_rsvg=yes
30507fi
cristy8b350f62009-11-15 23:12:43 +000030508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030509$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030510
30511pkg_failed=no
30512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30513$as_echo_n "checking for CAIRO_SVG... " >&6; }
30514
30515if test -n "$CAIRO_SVG_CFLAGS"; then
30516 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30517 elif test -n "$PKG_CONFIG"; then
30518 if test -n "$PKG_CONFIG" && \
30519 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30520 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30521 ac_status=$?
30522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30523 test $ac_status = 0; }; then
30524 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30525else
30526 pkg_failed=yes
30527fi
30528 else
30529 pkg_failed=untried
30530fi
30531if test -n "$CAIRO_SVG_LIBS"; then
30532 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30533 elif test -n "$PKG_CONFIG"; then
30534 if test -n "$PKG_CONFIG" && \
30535 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30536 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30537 ac_status=$?
30538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30539 test $ac_status = 0; }; then
30540 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30541else
30542 pkg_failed=yes
30543fi
30544 else
30545 pkg_failed=untried
30546fi
30547
30548
30549
30550if test $pkg_failed = yes; then
30551
30552if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30553 _pkg_short_errors_supported=yes
30554else
30555 _pkg_short_errors_supported=no
30556fi
30557 if test $_pkg_short_errors_supported = yes; then
30558 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
30559 else
30560 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
30561 fi
30562 # Put the nasty error message in config.log where it belongs
30563 echo "$CAIRO_SVG_PKG_ERRORS" >&5
30564
30565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30566$as_echo "no" >&6; }
30567 have_cairo=no
30568elif test $pkg_failed = untried; then
30569 have_cairo=no
30570else
30571 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
30572 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
30573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30574$as_echo "yes" >&6; }
30575 have_cairo=yes
30576fi
cristy8b350f62009-11-15 23:12:43 +000030577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030578$as_echo "" >&6; }
30579fi
30580
30581if test "$have_rsvg" = 'yes'; then
30582
cristy8b350f62009-11-15 23:12:43 +000030583$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030584
30585 if test "$with_modules" = 'no'; then
30586 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
30587 fi
30588fi
30589
30590if test "$have_cairo" = 'yes'; then
30591
cristy8b350f62009-11-15 23:12:43 +000030592$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030593
30594 if test "$with_modules" = 'no'; then
30595 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
30596 fi
30597fi
30598
cristy73bd4a52010-10-05 11:24:23 +000030599 if test "$have_rsvg" = 'yes'; then
30600 RSVG_DELEGATE_TRUE=
30601 RSVG_DELEGATE_FALSE='#'
30602else
30603 RSVG_DELEGATE_TRUE='#'
30604 RSVG_DELEGATE_FALSE=
30605fi
30606
30607 if test "$have_cairo" = 'yes'; then
30608 CAIRO_DELEGATE_TRUE=
30609 CAIRO_DELEGATE_FALSE='#'
30610else
30611 CAIRO_DELEGATE_TRUE='#'
30612 CAIRO_DELEGATE_FALSE=
30613fi
30614
cristy3ed852e2009-09-05 21:47:34 +000030615
30616
30617
30618
30619#
30620# Check for TIFF delegate library.
30621#
30622
30623# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000030624if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030625 withval=$with_tiff; with_tiff=$withval
30626else
30627 with_tiff='yes'
30628fi
30629
30630
30631if test "$with_tiff" != 'yes'; then
30632 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
30633fi
30634
30635have_tiff='no'
30636TIFF_LIBS=''
30637if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030639$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000030641$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030643$as_echo "" >&6; }
30644 failed=0
30645 passed=0
cristy8b350f62009-11-15 23:12:43 +000030646 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030647if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030648 passed=`expr $passed + 1`
30649else
30650 failed=`expr $failed + 1`
30651fi
30652
30653
cristy8b350f62009-11-15 23:12:43 +000030654 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030655if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030656 passed=`expr $passed + 1`
30657else
30658 failed=`expr $failed + 1`
30659fi
30660
30661
cristy8b350f62009-11-15 23:12:43 +000030662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030663$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030664if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030665 $as_echo_n "(cached) " >&6
30666else
30667 ac_check_lib_save_LIBS=$LIBS
30668LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030670/* end confdefs.h. */
30671
30672/* Override any GCC internal prototype to avoid an error.
30673 Use char because int might match the return type of a GCC
30674 builtin and then its argument prototype would still apply. */
30675#ifdef __cplusplus
30676extern "C"
30677#endif
30678char TIFFOpen ();
30679int
30680main ()
30681{
30682return TIFFOpen ();
30683 ;
30684 return 0;
30685}
30686_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030687if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030688 ac_cv_lib_tiff_TIFFOpen=yes
30689else
cristy8b350f62009-11-15 23:12:43 +000030690 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000030691fi
cristy8b350f62009-11-15 23:12:43 +000030692rm -f core conftest.err conftest.$ac_objext \
30693 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030694LIBS=$ac_check_lib_save_LIBS
30695fi
cristy8b350f62009-11-15 23:12:43 +000030696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030697$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030698if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030699 passed=`expr $passed + 1`
30700else
30701 failed=`expr $failed + 1`
30702fi
30703
cristy8b350f62009-11-15 23:12:43 +000030704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030705$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030706if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030707 $as_echo_n "(cached) " >&6
30708else
30709 ac_check_lib_save_LIBS=$LIBS
30710LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030712/* end confdefs.h. */
30713
30714/* Override any GCC internal prototype to avoid an error.
30715 Use char because int might match the return type of a GCC
30716 builtin and then its argument prototype would still apply. */
30717#ifdef __cplusplus
30718extern "C"
30719#endif
30720char TIFFClientOpen ();
30721int
30722main ()
30723{
30724return TIFFClientOpen ();
30725 ;
30726 return 0;
30727}
30728_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030729if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030730 ac_cv_lib_tiff_TIFFClientOpen=yes
30731else
cristy8b350f62009-11-15 23:12:43 +000030732 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000030733fi
cristy8b350f62009-11-15 23:12:43 +000030734rm -f core conftest.err conftest.$ac_objext \
30735 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030736LIBS=$ac_check_lib_save_LIBS
30737fi
cristy8b350f62009-11-15 23:12:43 +000030738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030739$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030740if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030741 passed=`expr $passed + 1`
30742else
30743 failed=`expr $failed + 1`
30744fi
30745
cristyb97f1002010-07-26 14:02:57 +000030746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
30747$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030748if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
cristyb97f1002010-07-26 14:02:57 +000030749 $as_echo_n "(cached) " >&6
30750else
30751 ac_check_lib_save_LIBS=$LIBS
30752LIBS="-ltiff $LIBS"
30753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30754/* end confdefs.h. */
30755
30756/* Override any GCC internal prototype to avoid an error.
30757 Use char because int might match the return type of a GCC
30758 builtin and then its argument prototype would still apply. */
30759#ifdef __cplusplus
30760extern "C"
30761#endif
30762char TIFFIsBigEndian ();
30763int
30764main ()
30765{
30766return TIFFIsBigEndian ();
30767 ;
30768 return 0;
30769}
30770_ACEOF
30771if ac_fn_c_try_link "$LINENO"; then :
30772 ac_cv_lib_tiff_TIFFIsBigEndian=yes
30773else
30774 ac_cv_lib_tiff_TIFFIsBigEndian=no
30775fi
30776rm -f core conftest.err conftest.$ac_objext \
30777 conftest$ac_exeext conftest.$ac_ext
30778LIBS=$ac_check_lib_save_LIBS
30779fi
30780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
30781$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
cristyda16f162011-02-19 23:52:17 +000030782if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
cristyb97f1002010-07-26 14:02:57 +000030783 passed=`expr $passed + 1`
30784else
30785 failed=`expr $failed + 1`
30786fi
30787
cristy8b350f62009-11-15 23:12:43 +000030788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030789$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030790if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030791 $as_echo_n "(cached) " >&6
30792else
30793 ac_check_lib_save_LIBS=$LIBS
30794LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030796/* end confdefs.h. */
30797
30798/* Override any GCC internal prototype to avoid an error.
30799 Use char because int might match the return type of a GCC
30800 builtin and then its argument prototype would still apply. */
30801#ifdef __cplusplus
30802extern "C"
30803#endif
30804char TIFFIsByteSwapped ();
30805int
30806main ()
30807{
30808return TIFFIsByteSwapped ();
30809 ;
30810 return 0;
30811}
30812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030813if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030814 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
30815else
cristy8b350f62009-11-15 23:12:43 +000030816 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000030817fi
cristy8b350f62009-11-15 23:12:43 +000030818rm -f core conftest.err conftest.$ac_objext \
30819 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030820LIBS=$ac_check_lib_save_LIBS
30821fi
cristy8b350f62009-11-15 23:12:43 +000030822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000030823$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000030824if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030825 passed=`expr $passed + 1`
30826else
30827 failed=`expr $failed + 1`
30828fi
30829
cristy8b350f62009-11-15 23:12:43 +000030830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030831$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030832if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030833 $as_echo_n "(cached) " >&6
30834else
30835 ac_check_lib_save_LIBS=$LIBS
30836LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030838/* end confdefs.h. */
30839
30840/* Override any GCC internal prototype to avoid an error.
30841 Use char because int might match the return type of a GCC
30842 builtin and then its argument prototype would still apply. */
30843#ifdef __cplusplus
30844extern "C"
30845#endif
30846char TIFFReadRGBATile ();
30847int
30848main ()
30849{
30850return TIFFReadRGBATile ();
30851 ;
30852 return 0;
30853}
30854_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030855if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030856 ac_cv_lib_tiff_TIFFReadRGBATile=yes
30857else
cristy8b350f62009-11-15 23:12:43 +000030858 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000030859fi
cristy8b350f62009-11-15 23:12:43 +000030860rm -f core conftest.err conftest.$ac_objext \
30861 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030862LIBS=$ac_check_lib_save_LIBS
30863fi
cristy8b350f62009-11-15 23:12:43 +000030864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000030865$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000030866if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030867 passed=`expr $passed + 1`
30868else
30869 failed=`expr $failed + 1`
30870fi
30871
cristy8b350f62009-11-15 23:12:43 +000030872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030873$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030874if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030875 $as_echo_n "(cached) " >&6
30876else
30877 ac_check_lib_save_LIBS=$LIBS
30878LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030880/* end confdefs.h. */
30881
30882/* Override any GCC internal prototype to avoid an error.
30883 Use char because int might match the return type of a GCC
30884 builtin and then its argument prototype would still apply. */
30885#ifdef __cplusplus
30886extern "C"
30887#endif
30888char TIFFReadRGBAStrip ();
30889int
30890main ()
30891{
30892return TIFFReadRGBAStrip ();
30893 ;
30894 return 0;
30895}
30896_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030897if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030898 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
30899else
cristy8b350f62009-11-15 23:12:43 +000030900 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000030901fi
cristy8b350f62009-11-15 23:12:43 +000030902rm -f core conftest.err conftest.$ac_objext \
30903 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030904LIBS=$ac_check_lib_save_LIBS
30905fi
cristy8b350f62009-11-15 23:12:43 +000030906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000030907$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000030908if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030909 passed=`expr $passed + 1`
30910else
30911 failed=`expr $failed + 1`
30912fi
30913
cristy8b350f62009-11-15 23:12:43 +000030914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030915$as_echo_n "checking if TIFF package is complete... " >&6; }
30916 if test $passed -gt 0; then
30917 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000030918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000030919$as_echo "no -- some components failed test" >&6; }
30920 have_tiff='no (failed tests)'
30921 else
30922 TIFF_LIBS='-ltiff'
30923 LIBS="$TIFF_LIBS $LIBS"
30924
cristy8b350f62009-11-15 23:12:43 +000030925$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030926
cristy8b350f62009-11-15 23:12:43 +000030927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030928$as_echo "yes" >&6; }
30929 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000030930 for ac_header in tiffconf.h
30931do :
30932 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030933if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030934 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030935#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000030936_ACEOF
30937
30938fi
30939
30940done
30941
cristy8b350f62009-11-15 23:12:43 +000030942 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000030943 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
30944 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000030945do :
30946 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30947ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000030948if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000030949 cat >>confdefs.h <<_ACEOF
30950#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30951_ACEOF
30952
30953fi
30954done
30955
30956 fi
30957 else
cristy8b350f62009-11-15 23:12:43 +000030958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030959$as_echo "no" >&6; }
30960 fi
30961fi
cristy73bd4a52010-10-05 11:24:23 +000030962 if test "$have_tiff" = 'yes'; then
30963 TIFF_DELEGATE_TRUE=
30964 TIFF_DELEGATE_FALSE='#'
30965else
30966 TIFF_DELEGATE_TRUE='#'
30967 TIFF_DELEGATE_FALSE=
30968fi
30969
cristy3ed852e2009-09-05 21:47:34 +000030970
30971
30972
30973#
cristyb1860752011-03-14 00:27:46 +000030974# Check for WEBP delegate library.
30975#
30976
30977# Check whether --with-webp was given.
30978if test "${with_webp+set}" = set; then :
30979 withval=$with_webp; with_webp=$withval
30980else
30981 with_webp='yes'
30982fi
30983
30984
30985if test "$with_webp" != 'yes'; then
30986 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
30987fi
30988
30989have_webp='no'
30990WEBP_LIBS=''
30991if test "$with_webp" != 'no'; then
30992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30993$as_echo "-------------------------------------------------------------" >&6; }
30994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
30995$as_echo_n "checking for WEBP... " >&6; }
30996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30997$as_echo "" >&6; }
30998 failed=0
30999 passed=0
31000 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31001if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31002 passed=`expr $passed + 1`
31003else
31004 failed=`expr $failed + 1`
31005fi
31006
31007
31008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31009$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31010if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31011 $as_echo_n "(cached) " >&6
31012else
31013 ac_check_lib_save_LIBS=$LIBS
31014LIBS="-lwebp $LIBS"
31015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31016/* end confdefs.h. */
31017
31018/* Override any GCC internal prototype to avoid an error.
31019 Use char because int might match the return type of a GCC
31020 builtin and then its argument prototype would still apply. */
31021#ifdef __cplusplus
31022extern "C"
31023#endif
31024char WebPDecodeRGB ();
31025int
31026main ()
31027{
31028return WebPDecodeRGB ();
31029 ;
31030 return 0;
31031}
31032_ACEOF
31033if ac_fn_c_try_link "$LINENO"; then :
31034 ac_cv_lib_webp_WebPDecodeRGB=yes
31035else
31036 ac_cv_lib_webp_WebPDecodeRGB=no
31037fi
31038rm -f core conftest.err conftest.$ac_objext \
31039 conftest$ac_exeext conftest.$ac_ext
31040LIBS=$ac_check_lib_save_LIBS
31041fi
31042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31043$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31044if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31045 passed=`expr $passed + 1`
31046else
31047 failed=`expr $failed + 1`
31048fi
31049
31050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31051$as_echo_n "checking if WEBP package is complete... " >&6; }
31052 if test $passed -gt 0; then
31053 if test $failed -gt 0; then
31054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31055$as_echo "no -- some components failed test" >&6; }
31056 have_webp='no (failed tests)'
31057 else
31058 WEBP_LIBS='-lwebp'
31059 LIBS="$WEBP_LIBS $LIBS"
31060
31061$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31062
31063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31064$as_echo "yes" >&6; }
31065 have_webp='yes'
31066 fi
31067 else
31068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31069$as_echo "no" >&6; }
31070 fi
31071fi
31072 if test "$have_webp" = 'yes'; then
31073 WEBP_DELEGATE_TRUE=
31074 WEBP_DELEGATE_FALSE='#'
31075else
31076 WEBP_DELEGATE_TRUE='#'
31077 WEBP_DELEGATE_FALSE=
31078fi
31079
31080
31081
31082
31083#
cristy3ed852e2009-09-05 21:47:34 +000031084# Set Windows font directory.
31085#
31086
31087# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031088if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031089 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31090else
31091 with_windows_font_dir=''
31092fi
31093
31094if test "$with_windows_font_dir" != '' ; then
31095 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31096fi
31097
31098
31099#
31100# Check for WMF delegate library.
31101#
31102
31103# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031104if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031105 withval=$with_wmf; with_wmf=$withval
31106else
cristy8d63d1d2010-01-06 20:38:37 +000031107 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000031108fi
31109
31110
31111if test "$with_wmf" != 'yes'; then
31112 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31113fi
31114
31115have_wmf='no'
31116WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000031117if test "$with_wmf" != 'no'; then
glennrp33e524b2011-08-24 17:41:57 +000031118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031119$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031121$as_echo_n "checking for WMF... " >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031123$as_echo "" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031124 failed=0
31125 passed=0
31126 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
31127if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
31128 passed=`expr $passed + 1`
31129else
31130 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000031131fi
31132
31133
glennrp33e524b2011-08-24 17:41:57 +000031134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
31135$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
31136if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031137 $as_echo_n "(cached) " >&6
31138else
31139 ac_check_lib_save_LIBS=$LIBS
glennrp33e524b2011-08-24 17:41:57 +000031140LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031142/* end confdefs.h. */
31143
31144/* Override any GCC internal prototype to avoid an error.
31145 Use char because int might match the return type of a GCC
31146 builtin and then its argument prototype would still apply. */
31147#ifdef __cplusplus
31148extern "C"
31149#endif
glennrp33e524b2011-08-24 17:41:57 +000031150char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031151int
31152main ()
31153{
glennrp33e524b2011-08-24 17:41:57 +000031154return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031155 ;
31156 return 0;
31157}
31158_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031159if ac_fn_c_try_link "$LINENO"; then :
glennrp33e524b2011-08-24 17:41:57 +000031160 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000031161else
glennrp33e524b2011-08-24 17:41:57 +000031162 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000031163fi
cristy8b350f62009-11-15 23:12:43 +000031164rm -f core conftest.err conftest.$ac_objext \
31165 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031166LIBS=$ac_check_lib_save_LIBS
31167fi
glennrp33e524b2011-08-24 17:41:57 +000031168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
31169$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
31170if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
31171 passed=`expr $passed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031172else
glennrp33e524b2011-08-24 17:41:57 +000031173 failed=`expr $failed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031174fi
31175
glennrp33e524b2011-08-24 17:41:57 +000031176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31177$as_echo_n "checking if WMF package is complete... " >&6; }
31178 if test $passed -gt 0; then
31179 if test $failed -gt 0; then
31180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31181$as_echo "no -- some components failed test" >&6; }
31182 have_wmf='no (failed tests)'
31183 else
31184 WMF_LIBS='-lwmf -lwmflite'
31185 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031186
cristy8b350f62009-11-15 23:12:43 +000031187$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031188
glennrp33e524b2011-08-24 17:41:57 +000031189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy9243a2d2011-08-22 17:32:32 +000031190$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031191 have_wmf='yes'
31192 fi
31193 else
31194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy9243a2d2011-08-22 17:32:32 +000031195$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031196 fi
cristy3ed852e2009-09-05 21:47:34 +000031197fi
cristy73bd4a52010-10-05 11:24:23 +000031198 if test "$have_wmf" = 'yes'; then
31199 WMF_DELEGATE_TRUE=
31200 WMF_DELEGATE_FALSE='#'
31201else
31202 WMF_DELEGATE_TRUE='#'
31203 WMF_DELEGATE_FALSE=
31204fi
31205
cristy3ed852e2009-09-05 21:47:34 +000031206
31207
31208
31209
cristy735e8942010-04-02 20:32:57 +000031210
cristy3ed852e2009-09-05 21:47:34 +000031211#
31212# Check for XML delegate library.
31213#
31214
31215# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031216if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031217 withval=$with_xml; with_xml=$withval
31218else
31219 with_xml=$have_x
31220fi
31221
31222
31223if test "$with_xml" != 'yes' ; then
31224 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31225fi
31226
31227have_xml='no'
31228XML_LIBS=''
31229if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000031230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031231$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000031233$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031235$as_echo "" >&6; }
31236 PERSIST_LDFLAGS=$LDFLAGS
31237 PERSIST_CPPFLAGS=$CPPFLAGS
31238 xml2_config=''
31239 for ac_prog in xml2-config
31240do
31241 # Extract the first word of "$ac_prog", so it can be a program name with args.
31242set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031244$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031245if ${ac_cv_prog_xml2_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031246 $as_echo_n "(cached) " >&6
31247else
31248 if test -n "$xml2_config"; then
31249 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
31250else
31251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31252for as_dir in $PATH
31253do
31254 IFS=$as_save_IFS
31255 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031256 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31258 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031260 break 2
31261 fi
31262done
cristy8b350f62009-11-15 23:12:43 +000031263 done
cristy3ed852e2009-09-05 21:47:34 +000031264IFS=$as_save_IFS
31265
31266fi
31267fi
31268xml2_config=$ac_cv_prog_xml2_config
31269if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000031270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000031271$as_echo "$xml2_config" >&6; }
31272else
cristy8b350f62009-11-15 23:12:43 +000031273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031274$as_echo "no" >&6; }
31275fi
31276
31277
31278 test -n "$xml2_config" && break
31279done
31280 if test -n "$xml2_config"; then
31281 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31282 # the shared library installed under /usr/lib, whereas the package
31283 # installs itself under $prefix/libxml and $prefix/lib.
31284 xml2_prefix=`xml2-config --prefix`
31285 if test -d "${xml2_prefix}/include/libxml2"; then
31286 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31287 fi
31288 if test "${xml2_prefix}" != '/usr'; then
31289 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31290 fi
31291 fi
31292 failed=0
31293 passed=0
cristy8b350f62009-11-15 23:12:43 +000031294 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031295if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031296 passed=`expr $passed + 1`
31297else
31298 failed=`expr $failed + 1`
31299fi
31300
31301
cristy8b350f62009-11-15 23:12:43 +000031302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000031303$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031304if ${ac_cv_lib_xml2_xmlParseExternalEntity+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031305 $as_echo_n "(cached) " >&6
31306else
31307 ac_check_lib_save_LIBS=$LIBS
31308LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031310/* end confdefs.h. */
31311
31312/* Override any GCC internal prototype to avoid an error.
31313 Use char because int might match the return type of a GCC
31314 builtin and then its argument prototype would still apply. */
31315#ifdef __cplusplus
31316extern "C"
31317#endif
31318char xmlParseExternalEntity ();
31319int
31320main ()
31321{
31322return xmlParseExternalEntity ();
31323 ;
31324 return 0;
31325}
31326_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031327if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031328 ac_cv_lib_xml2_xmlParseExternalEntity=yes
31329else
cristy8b350f62009-11-15 23:12:43 +000031330 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000031331fi
cristy8b350f62009-11-15 23:12:43 +000031332rm -f core conftest.err conftest.$ac_objext \
31333 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031334LIBS=$ac_check_lib_save_LIBS
31335fi
cristy8b350f62009-11-15 23:12:43 +000031336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000031337$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristyda16f162011-02-19 23:52:17 +000031338if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031339 passed=`expr $passed + 1`
31340else
31341 failed=`expr $failed + 1`
31342fi
31343
cristy8b350f62009-11-15 23:12:43 +000031344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031345$as_echo_n "checking if XML package is complete... " >&6; }
31346 if test $passed -gt 0; then
31347 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000031348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000031349$as_echo "no -- some components failed test" >&6; }
31350 have_xml='no (failed tests)'
31351 LDFLAGS="$PERSIST_LDFLAGS"
31352 CPPFLAGS="$PERSIST_CPPFLAGS"
31353 else
31354 XML_LIBS='-lxml2'
31355 LIBS="$XML_LIBS $LIBS"
31356
cristy8b350f62009-11-15 23:12:43 +000031357$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031358
cristy8b350f62009-11-15 23:12:43 +000031359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000031360$as_echo "yes" >&6; }
31361 have_xml='yes'
31362 fi
31363 else
cristy8b350f62009-11-15 23:12:43 +000031364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031365$as_echo "no" >&6; }
31366 fi
31367fi
cristy73bd4a52010-10-05 11:24:23 +000031368 if test "$have_xml" = 'yes'; then
31369 XML_DELEGATE_TRUE=
31370 XML_DELEGATE_FALSE='#'
31371else
31372 XML_DELEGATE_TRUE='#'
31373 XML_DELEGATE_FALSE=
31374fi
31375
cristy3ed852e2009-09-05 21:47:34 +000031376
31377
31378
31379# Substitute compiler name to build/link PerlMagick
31380#
31381
31382
31383#
31384# Configure install Paths
31385#
31386
31387# Subdirectory under lib to place ImageMagick lib files
31388LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31389
31390cat >>confdefs.h <<_ACEOF
31391#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31392_ACEOF
31393
31394
31395# Path to ImageMagick bin directory
31396EXECUTABLE_PATH="${BIN_DIR}"
31397DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31398case "${build_os}" in
31399 mingw* )
31400 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31401 ;;
31402esac
31403
31404cat >>confdefs.h <<_ACEOF
31405#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31406_ACEOF
31407
31408
31409
31410# Path to ImageMagick lib
31411LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31412DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31413case "${build_os}" in
31414 mingw* )
31415 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31416 ;;
31417esac
31418
31419cat >>confdefs.h <<_ACEOF
31420#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31421_ACEOF
31422
31423
31424
cristy3ed852e2009-09-05 21:47:34 +000031425#
31426# Subdirectory under lib to place ImageMagick coder module files
31427CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31428
31429cat >>confdefs.h <<_ACEOF
31430#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31431_ACEOF
31432
31433CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31434DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31435case "${build_os}" in
31436 mingw* )
31437 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31438 ;;
31439esac
31440
31441cat >>confdefs.h <<_ACEOF
31442#define CODER_PATH "$DEFINE_CODER_PATH"
31443_ACEOF
31444
31445
31446
31447#
31448# Subdirectory under lib to place ImageMagick filter module files
31449FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31450
31451cat >>confdefs.h <<_ACEOF
31452#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31453_ACEOF
31454
31455FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31456DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31457case "${build_os}" in
31458 mingw* )
31459 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31460 ;;
31461esac
31462
31463cat >>confdefs.h <<_ACEOF
31464#define FILTER_PATH "$DEFINE_FILTER_PATH"
31465_ACEOF
31466
31467
31468
31469#
31470# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000031471DOCUMENTATION_RELATIVE_PATH=""
31472DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31473DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031474case "${build_os}" in
31475 mingw* )
31476 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
31477 ;;
31478esac
31479
31480cat >>confdefs.h <<_ACEOF
31481#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
31482_ACEOF
31483
31484
31485
cristy3cf8a722011-03-20 23:32:22 +000031486# Subdirectory to place ImageMagick configuration files
cristyba0f1972011-03-28 12:42:52 +000031487CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000031488
31489cat >>confdefs.h <<_ACEOF
31490#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
31491_ACEOF
31492
31493CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31494DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31495case "${build_os}" in
31496 mingw* )
31497 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
31498 ;;
31499esac
31500
31501cat >>confdefs.h <<_ACEOF
31502#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
31503_ACEOF
31504
31505
31506
31507# Subdirectory to place ImageMagick configuration files
cristy4f820712011-04-01 12:35:43 +000031508SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000031509
31510cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031511#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031512_ACEOF
31513
cristy4f820712011-04-01 12:35:43 +000031514SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
31515DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031516case "${build_os}" in
31517 mingw* )
cristy4f820712011-04-01 12:35:43 +000031518 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000031519 ;;
31520esac
31521
31522cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031523#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031524_ACEOF
31525
31526
31527
31528#
31529# program_transform_name is formed for use in a Makefile, so create a
31530# modified version for use in a shell script.
31531configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
31532
31533# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000031534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031535$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000031537$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031539$as_echo "" >&6; }
31540AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000031541BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000031542BZIPDelegateDefault='bzip2'
31543BrowseDelegateDefault='xdg-open'
31544CGMDecodeDelegateDefault='ralcgm'
31545CatDelegateDefault='cat'
31546DNGDecodeDelegateDefault='ufraw-batch'
31547GVCDecodeDelegateDefault='dot'
31548DVIDecodeDelegateDefault='dvips'
31549EchoDelegateDefault='echo'
31550EditorDelegateDefault='xterm'
31551FIGDecodeDelegateDefault='fig2dev'
31552ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
31553DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
31554MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
31555GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000031556HPGLDecodeDelegateDefault='hp2xx'
31557HTMLDecodeDelegateDefault='html2ps'
31558ILBMDecodeDelegateDefault='ilbmtoppm'
31559ILBMEncodeDelegateDefault='ppmtoilbm'
31560LPDelegateDefault='lp'
31561LPRDelegateDefault='lpr'
31562LZWDecodeDelegateDefault='uncompress'
31563LZWEncodeDelegateDefault='compress'
31564LaunchDelegateDefault='gimp'
31565MANDelegateDefault='groff'
31566MPEGDecodeDelegateDefault='ffmpeg'
31567MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000031568MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000031569MVDelegateDefault='mv'
31570PCLDelegateDefault='pcl6'
31571PGPDecodeDelegateDefault='pgpv'
31572POVDelegateDefault='povray'
31573if test "$native_win32_build" = 'yes'; then
31574 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000031575elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031576 PSDelegateDefault='gsc'
31577else
31578 PSDelegateDefault='gs'
31579fi
31580RLEEncodeDelegateDefault='rawtorle'
31581RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000031582RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000031583SCANDecodeDelegateDefault='scanimage'
31584TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000031585UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000031586WMFDecodeDelegateDefault='wmf2eps'
31587WWWDecodeDelegateDefault='curl'
31588XPSDelegateDefault='gxps'
31589ZipDelegateDefault='gzip'
31590
31591# Search for delegates
31592# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
31593set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031595$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031596if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031597 $as_echo_n "(cached) " >&6
31598else
31599 case $AutotraceDecodeDelegate in
31600 [\\/]* | ?:[\\/]*)
31601 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
31602 ;;
31603 *)
31604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31605for as_dir in $PATH
31606do
31607 IFS=$as_save_IFS
31608 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031609 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31611 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031613 break 2
31614 fi
31615done
cristy8b350f62009-11-15 23:12:43 +000031616 done
cristy3ed852e2009-09-05 21:47:34 +000031617IFS=$as_save_IFS
31618
31619 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
31620 ;;
31621esac
31622fi
31623AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
31624if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031626$as_echo "$AutotraceDecodeDelegate" >&6; }
31627else
cristy8b350f62009-11-15 23:12:43 +000031628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031629$as_echo "no" >&6; }
31630fi
31631
31632
cristy3ed852e2009-09-05 21:47:34 +000031633# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
31634set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031636$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031637if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031638 $as_echo_n "(cached) " >&6
31639else
31640 case $BlenderDecodeDelegate in
31641 [\\/]* | ?:[\\/]*)
31642 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
31643 ;;
31644 *)
31645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31646for as_dir in $PATH
31647do
31648 IFS=$as_save_IFS
31649 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031650 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31652 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031654 break 2
31655 fi
31656done
cristy8b350f62009-11-15 23:12:43 +000031657 done
cristy3ed852e2009-09-05 21:47:34 +000031658IFS=$as_save_IFS
31659
31660 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
31661 ;;
31662esac
31663fi
31664BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
31665if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031667$as_echo "$BlenderDecodeDelegate" >&6; }
31668else
cristy8b350f62009-11-15 23:12:43 +000031669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031670$as_echo "no" >&6; }
31671fi
31672
31673
31674# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
31675set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031677$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031678if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031679 $as_echo_n "(cached) " >&6
31680else
31681 case $BZIPDelegate in
31682 [\\/]* | ?:[\\/]*)
31683 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
31684 ;;
31685 *)
31686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31687for as_dir in $PATH
31688do
31689 IFS=$as_save_IFS
31690 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031691 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31693 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031695 break 2
31696 fi
31697done
cristy8b350f62009-11-15 23:12:43 +000031698 done
cristy3ed852e2009-09-05 21:47:34 +000031699IFS=$as_save_IFS
31700
31701 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
31702 ;;
31703esac
31704fi
31705BZIPDelegate=$ac_cv_path_BZIPDelegate
31706if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031708$as_echo "$BZIPDelegate" >&6; }
31709else
cristy8b350f62009-11-15 23:12:43 +000031710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031711$as_echo "no" >&6; }
31712fi
31713
31714
31715# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
31716set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031718$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031719if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031720 $as_echo_n "(cached) " >&6
31721else
31722 case $BrowseDelegate in
31723 [\\/]* | ?:[\\/]*)
31724 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
31725 ;;
31726 *)
31727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31728for as_dir in $PATH
31729do
31730 IFS=$as_save_IFS
31731 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031732 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31734 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031736 break 2
31737 fi
31738done
cristy8b350f62009-11-15 23:12:43 +000031739 done
cristy3ed852e2009-09-05 21:47:34 +000031740IFS=$as_save_IFS
31741
31742 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
31743 ;;
31744esac
31745fi
31746BrowseDelegate=$ac_cv_path_BrowseDelegate
31747if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031749$as_echo "$BrowseDelegate" >&6; }
31750else
cristy8b350f62009-11-15 23:12:43 +000031751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031752$as_echo "no" >&6; }
31753fi
31754
31755
31756# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
31757set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031759$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031760if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031761 $as_echo_n "(cached) " >&6
31762else
31763 case $CGMDecodeDelegate in
31764 [\\/]* | ?:[\\/]*)
31765 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
31766 ;;
31767 *)
31768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31769for as_dir in $PATH
31770do
31771 IFS=$as_save_IFS
31772 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031773 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31775 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031777 break 2
31778 fi
31779done
cristy8b350f62009-11-15 23:12:43 +000031780 done
cristy3ed852e2009-09-05 21:47:34 +000031781IFS=$as_save_IFS
31782
31783 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
31784 ;;
31785esac
31786fi
31787CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
31788if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031790$as_echo "$CGMDecodeDelegate" >&6; }
31791else
cristy8b350f62009-11-15 23:12:43 +000031792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031793$as_echo "no" >&6; }
31794fi
31795
31796
31797# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
31798set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031800$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031801if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031802 $as_echo_n "(cached) " >&6
31803else
31804 case $CatDelegate in
31805 [\\/]* | ?:[\\/]*)
31806 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
31807 ;;
31808 *)
31809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31810for as_dir in $PATH
31811do
31812 IFS=$as_save_IFS
31813 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031814 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31816 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031818 break 2
31819 fi
31820done
cristy8b350f62009-11-15 23:12:43 +000031821 done
cristy3ed852e2009-09-05 21:47:34 +000031822IFS=$as_save_IFS
31823
31824 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
31825 ;;
31826esac
31827fi
31828CatDelegate=$ac_cv_path_CatDelegate
31829if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031831$as_echo "$CatDelegate" >&6; }
31832else
cristy8b350f62009-11-15 23:12:43 +000031833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031834$as_echo "no" >&6; }
31835fi
31836
31837
31838# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
31839set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031841$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031842if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031843 $as_echo_n "(cached) " >&6
31844else
31845 case $DNGDecodeDelegate in
31846 [\\/]* | ?:[\\/]*)
31847 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
31848 ;;
31849 *)
31850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31851for as_dir in $PATH
31852do
31853 IFS=$as_save_IFS
31854 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031855 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31857 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031859 break 2
31860 fi
31861done
cristy8b350f62009-11-15 23:12:43 +000031862 done
cristy3ed852e2009-09-05 21:47:34 +000031863IFS=$as_save_IFS
31864
31865 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
31866 ;;
31867esac
31868fi
31869DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
31870if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031872$as_echo "$DNGDecodeDelegate" >&6; }
31873else
cristy8b350f62009-11-15 23:12:43 +000031874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031875$as_echo "no" >&6; }
31876fi
31877
31878
31879# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
31880set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031882$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031883if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031884 $as_echo_n "(cached) " >&6
31885else
31886 case $GVCDecodeDelegate in
31887 [\\/]* | ?:[\\/]*)
31888 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
31889 ;;
31890 *)
31891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31892for as_dir in $PATH
31893do
31894 IFS=$as_save_IFS
31895 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031896 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31898 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031900 break 2
31901 fi
31902done
cristy8b350f62009-11-15 23:12:43 +000031903 done
cristy3ed852e2009-09-05 21:47:34 +000031904IFS=$as_save_IFS
31905
31906 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
31907 ;;
31908esac
31909fi
31910GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
31911if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031913$as_echo "$GVCDecodeDelegate" >&6; }
31914else
cristy8b350f62009-11-15 23:12:43 +000031915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031916$as_echo "no" >&6; }
31917fi
31918
31919
31920# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
31921set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031923$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031924if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031925 $as_echo_n "(cached) " >&6
31926else
31927 case $DVIDecodeDelegate in
31928 [\\/]* | ?:[\\/]*)
31929 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
31930 ;;
31931 *)
31932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31933for as_dir in $PATH
31934do
31935 IFS=$as_save_IFS
31936 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031937 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31939 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031941 break 2
31942 fi
31943done
cristy8b350f62009-11-15 23:12:43 +000031944 done
cristy3ed852e2009-09-05 21:47:34 +000031945IFS=$as_save_IFS
31946
31947 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
31948 ;;
31949esac
31950fi
31951DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
31952if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031954$as_echo "$DVIDecodeDelegate" >&6; }
31955else
cristy8b350f62009-11-15 23:12:43 +000031956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031957$as_echo "no" >&6; }
31958fi
31959
31960
31961# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
31962set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031964$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031965if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031966 $as_echo_n "(cached) " >&6
31967else
31968 case $EchoDelegate in
31969 [\\/]* | ?:[\\/]*)
31970 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
31971 ;;
31972 *)
31973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31974for as_dir in $PATH
31975do
31976 IFS=$as_save_IFS
31977 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031978 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31980 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031982 break 2
31983 fi
31984done
cristy8b350f62009-11-15 23:12:43 +000031985 done
cristy3ed852e2009-09-05 21:47:34 +000031986IFS=$as_save_IFS
31987
31988 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
31989 ;;
31990esac
31991fi
31992EchoDelegate=$ac_cv_path_EchoDelegate
31993if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031995$as_echo "$EchoDelegate" >&6; }
31996else
cristy8b350f62009-11-15 23:12:43 +000031997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031998$as_echo "no" >&6; }
31999fi
32000
32001
32002# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32003set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032005$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032006if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032007 $as_echo_n "(cached) " >&6
32008else
32009 case $EditorDelegate in
32010 [\\/]* | ?:[\\/]*)
32011 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32012 ;;
32013 *)
32014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32015for as_dir in $PATH
32016do
32017 IFS=$as_save_IFS
32018 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032019 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32021 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032023 break 2
32024 fi
32025done
cristy8b350f62009-11-15 23:12:43 +000032026 done
cristy3ed852e2009-09-05 21:47:34 +000032027IFS=$as_save_IFS
32028
32029 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32030 ;;
32031esac
32032fi
32033EditorDelegate=$ac_cv_path_EditorDelegate
32034if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032036$as_echo "$EditorDelegate" >&6; }
32037else
cristy8b350f62009-11-15 23:12:43 +000032038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032039$as_echo "no" >&6; }
32040fi
32041
32042
32043# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32044set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032046$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032047if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032048 $as_echo_n "(cached) " >&6
32049else
32050 case $FIGDecodeDelegate in
32051 [\\/]* | ?:[\\/]*)
32052 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32053 ;;
32054 *)
32055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32056for as_dir in $PATH
32057do
32058 IFS=$as_save_IFS
32059 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032060 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32062 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032064 break 2
32065 fi
32066done
cristy8b350f62009-11-15 23:12:43 +000032067 done
cristy3ed852e2009-09-05 21:47:34 +000032068IFS=$as_save_IFS
32069
32070 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32071 ;;
32072esac
32073fi
32074FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32075if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032077$as_echo "$FIGDecodeDelegate" >&6; }
32078else
cristy8b350f62009-11-15 23:12:43 +000032079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032080$as_echo "no" >&6; }
32081fi
32082
32083
32084# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32085set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032087$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032088if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032089 $as_echo_n "(cached) " >&6
32090else
32091 case $ConvertDelegate in
32092 [\\/]* | ?:[\\/]*)
32093 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32094 ;;
32095 *)
32096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32097for as_dir in $PATH
32098do
32099 IFS=$as_save_IFS
32100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032101 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32103 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032105 break 2
32106 fi
32107done
cristy8b350f62009-11-15 23:12:43 +000032108 done
cristy3ed852e2009-09-05 21:47:34 +000032109IFS=$as_save_IFS
32110
32111 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32112 ;;
32113esac
32114fi
32115ConvertDelegate=$ac_cv_path_ConvertDelegate
32116if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032118$as_echo "$ConvertDelegate" >&6; }
32119else
cristy8b350f62009-11-15 23:12:43 +000032120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032121$as_echo "no" >&6; }
32122fi
32123
32124
32125# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32126set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032128$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032129if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032130 $as_echo_n "(cached) " >&6
32131else
32132 case $DisplayDelegate in
32133 [\\/]* | ?:[\\/]*)
32134 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32135 ;;
32136 *)
32137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32138for as_dir in $PATH
32139do
32140 IFS=$as_save_IFS
32141 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032142 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32144 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032146 break 2
32147 fi
32148done
cristy8b350f62009-11-15 23:12:43 +000032149 done
cristy3ed852e2009-09-05 21:47:34 +000032150IFS=$as_save_IFS
32151
32152 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32153 ;;
32154esac
32155fi
32156DisplayDelegate=$ac_cv_path_DisplayDelegate
32157if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032159$as_echo "$DisplayDelegate" >&6; }
32160else
cristy8b350f62009-11-15 23:12:43 +000032161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032162$as_echo "no" >&6; }
32163fi
32164
32165
32166# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32167set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032169$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032170if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032171 $as_echo_n "(cached) " >&6
32172else
32173 case $MogrifyDelegate in
32174 [\\/]* | ?:[\\/]*)
32175 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32176 ;;
32177 *)
32178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32179for as_dir in $PATH
32180do
32181 IFS=$as_save_IFS
32182 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032183 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32185 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032187 break 2
32188 fi
32189done
cristy8b350f62009-11-15 23:12:43 +000032190 done
cristy3ed852e2009-09-05 21:47:34 +000032191IFS=$as_save_IFS
32192
32193 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32194 ;;
32195esac
32196fi
32197MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32198if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032200$as_echo "$MogrifyDelegate" >&6; }
32201else
cristy8b350f62009-11-15 23:12:43 +000032202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032203$as_echo "no" >&6; }
32204fi
32205
32206
32207# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32208set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032210$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032211if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032212 $as_echo_n "(cached) " >&6
32213else
32214 case $GnuplotDecodeDelegate in
32215 [\\/]* | ?:[\\/]*)
32216 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32217 ;;
32218 *)
32219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32220for as_dir in $PATH
32221do
32222 IFS=$as_save_IFS
32223 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032224 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32226 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032228 break 2
32229 fi
32230done
cristy8b350f62009-11-15 23:12:43 +000032231 done
cristy3ed852e2009-09-05 21:47:34 +000032232IFS=$as_save_IFS
32233
32234 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32235 ;;
32236esac
32237fi
32238GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32239if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032241$as_echo "$GnuplotDecodeDelegate" >&6; }
32242else
cristy8b350f62009-11-15 23:12:43 +000032243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032244$as_echo "no" >&6; }
32245fi
32246
32247
cristy3ed852e2009-09-05 21:47:34 +000032248# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32249set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032251$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032252if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032253 $as_echo_n "(cached) " >&6
32254else
32255 case $HPGLDecodeDelegate in
32256 [\\/]* | ?:[\\/]*)
32257 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32258 ;;
32259 *)
32260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32261for as_dir in $PATH
32262do
32263 IFS=$as_save_IFS
32264 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032265 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32267 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032269 break 2
32270 fi
32271done
cristy8b350f62009-11-15 23:12:43 +000032272 done
cristy3ed852e2009-09-05 21:47:34 +000032273IFS=$as_save_IFS
32274
32275 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32276 ;;
32277esac
32278fi
32279HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32280if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032282$as_echo "$HPGLDecodeDelegate" >&6; }
32283else
cristy8b350f62009-11-15 23:12:43 +000032284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032285$as_echo "no" >&6; }
32286fi
32287
32288
32289# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32290set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032292$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032293if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032294 $as_echo_n "(cached) " >&6
32295else
32296 case $HTMLDecodeDelegate in
32297 [\\/]* | ?:[\\/]*)
32298 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32299 ;;
32300 *)
32301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32302for as_dir in $PATH
32303do
32304 IFS=$as_save_IFS
32305 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032306 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32308 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032310 break 2
32311 fi
32312done
cristy8b350f62009-11-15 23:12:43 +000032313 done
cristy3ed852e2009-09-05 21:47:34 +000032314IFS=$as_save_IFS
32315
32316 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32317 ;;
32318esac
32319fi
32320HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32321if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032323$as_echo "$HTMLDecodeDelegate" >&6; }
32324else
cristy8b350f62009-11-15 23:12:43 +000032325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032326$as_echo "no" >&6; }
32327fi
32328
32329
32330# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32331set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032333$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032334if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032335 $as_echo_n "(cached) " >&6
32336else
32337 case $ILBMDecodeDelegate in
32338 [\\/]* | ?:[\\/]*)
32339 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32340 ;;
32341 *)
32342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32343for as_dir in $PATH
32344do
32345 IFS=$as_save_IFS
32346 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032347 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32349 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032351 break 2
32352 fi
32353done
cristy8b350f62009-11-15 23:12:43 +000032354 done
cristy3ed852e2009-09-05 21:47:34 +000032355IFS=$as_save_IFS
32356
32357 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32358 ;;
32359esac
32360fi
32361ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32362if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032364$as_echo "$ILBMDecodeDelegate" >&6; }
32365else
cristy8b350f62009-11-15 23:12:43 +000032366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032367$as_echo "no" >&6; }
32368fi
32369
32370
32371# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32372set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032374$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032375if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032376 $as_echo_n "(cached) " >&6
32377else
32378 case $ILBMEncodeDelegate in
32379 [\\/]* | ?:[\\/]*)
32380 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32381 ;;
32382 *)
32383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32384for as_dir in $PATH
32385do
32386 IFS=$as_save_IFS
32387 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032388 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32390 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032392 break 2
32393 fi
32394done
cristy8b350f62009-11-15 23:12:43 +000032395 done
cristy3ed852e2009-09-05 21:47:34 +000032396IFS=$as_save_IFS
32397
32398 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32399 ;;
32400esac
32401fi
32402ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32403if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032405$as_echo "$ILBMEncodeDelegate" >&6; }
32406else
cristy8b350f62009-11-15 23:12:43 +000032407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032408$as_echo "no" >&6; }
32409fi
32410
32411
32412# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32413set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032415$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032416if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032417 $as_echo_n "(cached) " >&6
32418else
32419 case $LPDelegate in
32420 [\\/]* | ?:[\\/]*)
32421 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32422 ;;
32423 *)
32424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32425for as_dir in $PATH
32426do
32427 IFS=$as_save_IFS
32428 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032429 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32431 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032433 break 2
32434 fi
32435done
cristy8b350f62009-11-15 23:12:43 +000032436 done
cristy3ed852e2009-09-05 21:47:34 +000032437IFS=$as_save_IFS
32438
32439 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32440 ;;
32441esac
32442fi
32443LPDelegate=$ac_cv_path_LPDelegate
32444if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032446$as_echo "$LPDelegate" >&6; }
32447else
cristy8b350f62009-11-15 23:12:43 +000032448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032449$as_echo "no" >&6; }
32450fi
32451
32452
32453# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32454set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032456$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032457if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032458 $as_echo_n "(cached) " >&6
32459else
32460 case $LPRDelegate in
32461 [\\/]* | ?:[\\/]*)
32462 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32463 ;;
32464 *)
32465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32466for as_dir in $PATH
32467do
32468 IFS=$as_save_IFS
32469 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032470 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32472 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032474 break 2
32475 fi
32476done
cristy8b350f62009-11-15 23:12:43 +000032477 done
cristy3ed852e2009-09-05 21:47:34 +000032478IFS=$as_save_IFS
32479
32480 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
32481 ;;
32482esac
32483fi
32484LPRDelegate=$ac_cv_path_LPRDelegate
32485if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032487$as_echo "$LPRDelegate" >&6; }
32488else
cristy8b350f62009-11-15 23:12:43 +000032489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032490$as_echo "no" >&6; }
32491fi
32492
32493
32494# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
32495set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032497$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032498if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032499 $as_echo_n "(cached) " >&6
32500else
32501 case $LZWDecodeDelegate in
32502 [\\/]* | ?:[\\/]*)
32503 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
32504 ;;
32505 *)
32506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32507for as_dir in $PATH
32508do
32509 IFS=$as_save_IFS
32510 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032511 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32513 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032515 break 2
32516 fi
32517done
cristy8b350f62009-11-15 23:12:43 +000032518 done
cristy3ed852e2009-09-05 21:47:34 +000032519IFS=$as_save_IFS
32520
32521 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
32522 ;;
32523esac
32524fi
32525LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
32526if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032528$as_echo "$LZWDecodeDelegate" >&6; }
32529else
cristy8b350f62009-11-15 23:12:43 +000032530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032531$as_echo "no" >&6; }
32532fi
32533
32534
32535# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
32536set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032538$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032539if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032540 $as_echo_n "(cached) " >&6
32541else
32542 case $LZWEncodeDelegate in
32543 [\\/]* | ?:[\\/]*)
32544 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
32545 ;;
32546 *)
32547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32548for as_dir in $PATH
32549do
32550 IFS=$as_save_IFS
32551 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032552 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32554 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032556 break 2
32557 fi
32558done
cristy8b350f62009-11-15 23:12:43 +000032559 done
cristy3ed852e2009-09-05 21:47:34 +000032560IFS=$as_save_IFS
32561
32562 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
32563 ;;
32564esac
32565fi
32566LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
32567if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032569$as_echo "$LZWEncodeDelegate" >&6; }
32570else
cristy8b350f62009-11-15 23:12:43 +000032571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032572$as_echo "no" >&6; }
32573fi
32574
32575
32576# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
32577set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032579$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032580if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032581 $as_echo_n "(cached) " >&6
32582else
32583 case $LaunchDelegate in
32584 [\\/]* | ?:[\\/]*)
32585 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
32586 ;;
32587 *)
32588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32589for as_dir in $PATH
32590do
32591 IFS=$as_save_IFS
32592 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032593 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32595 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032597 break 2
32598 fi
32599done
cristy8b350f62009-11-15 23:12:43 +000032600 done
cristy3ed852e2009-09-05 21:47:34 +000032601IFS=$as_save_IFS
32602
32603 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
32604 ;;
32605esac
32606fi
32607LaunchDelegate=$ac_cv_path_LaunchDelegate
32608if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032610$as_echo "$LaunchDelegate" >&6; }
32611else
cristy8b350f62009-11-15 23:12:43 +000032612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032613$as_echo "no" >&6; }
32614fi
32615
32616
32617# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
32618set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032620$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032621if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032622 $as_echo_n "(cached) " >&6
32623else
32624 case $MANDelegate in
32625 [\\/]* | ?:[\\/]*)
32626 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
32627 ;;
32628 *)
32629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32630for as_dir in $PATH
32631do
32632 IFS=$as_save_IFS
32633 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032634 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32636 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032638 break 2
32639 fi
32640done
cristy8b350f62009-11-15 23:12:43 +000032641 done
cristy3ed852e2009-09-05 21:47:34 +000032642IFS=$as_save_IFS
32643
32644 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
32645 ;;
32646esac
32647fi
32648MANDelegate=$ac_cv_path_MANDelegate
32649if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032651$as_echo "$MANDelegate" >&6; }
32652else
cristy8b350f62009-11-15 23:12:43 +000032653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032654$as_echo "no" >&6; }
32655fi
32656
32657
32658# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
32659set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032661$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032662if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032663 $as_echo_n "(cached) " >&6
32664else
32665 case $MPEGDecodeDelegate in
32666 [\\/]* | ?:[\\/]*)
32667 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
32668 ;;
32669 *)
32670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32671for as_dir in $PATH
32672do
32673 IFS=$as_save_IFS
32674 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032675 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32677 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032679 break 2
32680 fi
32681done
cristy8b350f62009-11-15 23:12:43 +000032682 done
cristy3ed852e2009-09-05 21:47:34 +000032683IFS=$as_save_IFS
32684
32685 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
32686 ;;
32687esac
32688fi
32689MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
32690if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032692$as_echo "$MPEGDecodeDelegate" >&6; }
32693else
cristy8b350f62009-11-15 23:12:43 +000032694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032695$as_echo "no" >&6; }
32696fi
32697
32698
32699# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
32700set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032702$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032703if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032704 $as_echo_n "(cached) " >&6
32705else
32706 case $MPEGEncodeDelegate in
32707 [\\/]* | ?:[\\/]*)
32708 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
32709 ;;
32710 *)
32711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32712for as_dir in $PATH
32713do
32714 IFS=$as_save_IFS
32715 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032716 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32718 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032720 break 2
32721 fi
32722done
cristy8b350f62009-11-15 23:12:43 +000032723 done
cristy3ed852e2009-09-05 21:47:34 +000032724IFS=$as_save_IFS
32725
32726 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
32727 ;;
32728esac
32729fi
32730MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
32731if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032733$as_echo "$MPEGEncodeDelegate" >&6; }
32734else
cristy8b350f62009-11-15 23:12:43 +000032735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032736$as_echo "no" >&6; }
32737fi
32738
32739
cristy935c86e2010-06-05 23:50:07 +000032740# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
32741set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
32742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32743$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032744if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000032745 $as_echo_n "(cached) " >&6
32746else
32747 case $MrSIDDecodeDelegate in
32748 [\\/]* | ?:[\\/]*)
32749 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
32750 ;;
32751 *)
32752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32753for as_dir in $PATH
32754do
32755 IFS=$as_save_IFS
32756 test -z "$as_dir" && as_dir=.
32757 for ac_exec_ext in '' $ac_executable_extensions; do
32758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32759 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32761 break 2
32762 fi
32763done
32764 done
32765IFS=$as_save_IFS
32766
32767 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
32768 ;;
32769esac
32770fi
32771MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
32772if test -n "$MrSIDDecodeDelegate"; then
32773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
32774$as_echo "$MrSIDDecodeDelegate" >&6; }
32775else
32776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32777$as_echo "no" >&6; }
32778fi
32779
32780
cristy3ed852e2009-09-05 21:47:34 +000032781# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
32782set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032784$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032785if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032786 $as_echo_n "(cached) " >&6
32787else
32788 case $MVDelegate in
32789 [\\/]* | ?:[\\/]*)
32790 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
32791 ;;
32792 *)
32793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32794for as_dir in $PATH
32795do
32796 IFS=$as_save_IFS
32797 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032798 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32800 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032802 break 2
32803 fi
32804done
cristy8b350f62009-11-15 23:12:43 +000032805 done
cristy3ed852e2009-09-05 21:47:34 +000032806IFS=$as_save_IFS
32807
32808 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
32809 ;;
32810esac
32811fi
32812MVDelegate=$ac_cv_path_MVDelegate
32813if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032815$as_echo "$MVDelegate" >&6; }
32816else
cristy8b350f62009-11-15 23:12:43 +000032817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032818$as_echo "no" >&6; }
32819fi
32820
32821
32822# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
32823set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032825$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032826if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032827 $as_echo_n "(cached) " >&6
32828else
32829 case $PCLDelegate in
32830 [\\/]* | ?:[\\/]*)
32831 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
32832 ;;
32833 *)
32834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32835for as_dir in $PATH
32836do
32837 IFS=$as_save_IFS
32838 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032839 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32841 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032843 break 2
32844 fi
32845done
cristy8b350f62009-11-15 23:12:43 +000032846 done
cristy3ed852e2009-09-05 21:47:34 +000032847IFS=$as_save_IFS
32848
32849 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
32850 ;;
32851esac
32852fi
32853PCLDelegate=$ac_cv_path_PCLDelegate
32854if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032856$as_echo "$PCLDelegate" >&6; }
32857else
cristy8b350f62009-11-15 23:12:43 +000032858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032859$as_echo "no" >&6; }
32860fi
32861
32862
32863# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
32864set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032866$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032867if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032868 $as_echo_n "(cached) " >&6
32869else
32870 case $PGPDecodeDelegate in
32871 [\\/]* | ?:[\\/]*)
32872 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
32873 ;;
32874 *)
32875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32876for as_dir in $PATH
32877do
32878 IFS=$as_save_IFS
32879 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032880 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32882 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032884 break 2
32885 fi
32886done
cristy8b350f62009-11-15 23:12:43 +000032887 done
cristy3ed852e2009-09-05 21:47:34 +000032888IFS=$as_save_IFS
32889
32890 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
32891 ;;
32892esac
32893fi
32894PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
32895if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032897$as_echo "$PGPDecodeDelegate" >&6; }
32898else
cristy8b350f62009-11-15 23:12:43 +000032899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032900$as_echo "no" >&6; }
32901fi
32902
32903
32904# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
32905set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032907$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032908if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032909 $as_echo_n "(cached) " >&6
32910else
32911 case $POVDelegate in
32912 [\\/]* | ?:[\\/]*)
32913 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
32914 ;;
32915 *)
32916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32917for as_dir in $PATH
32918do
32919 IFS=$as_save_IFS
32920 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032921 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32923 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032925 break 2
32926 fi
32927done
cristy8b350f62009-11-15 23:12:43 +000032928 done
cristy3ed852e2009-09-05 21:47:34 +000032929IFS=$as_save_IFS
32930
32931 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
32932 ;;
32933esac
32934fi
32935POVDelegate=$ac_cv_path_POVDelegate
32936if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032938$as_echo "$POVDelegate" >&6; }
32939else
cristy8b350f62009-11-15 23:12:43 +000032940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032941$as_echo "no" >&6; }
32942fi
32943
32944
32945for ac_prog in gsx gsc "$PSDelegateDefault"
32946do
32947 # Extract the first word of "$ac_prog", so it can be a program name with args.
32948set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032950$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032951if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032952 $as_echo_n "(cached) " >&6
32953else
32954 case $PSDelegate in
32955 [\\/]* | ?:[\\/]*)
32956 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
32957 ;;
32958 *)
32959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32960for as_dir in $PATH
32961do
32962 IFS=$as_save_IFS
32963 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032964 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32966 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032968 break 2
32969 fi
32970done
cristy8b350f62009-11-15 23:12:43 +000032971 done
cristy3ed852e2009-09-05 21:47:34 +000032972IFS=$as_save_IFS
32973
32974 ;;
32975esac
32976fi
32977PSDelegate=$ac_cv_path_PSDelegate
32978if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032980$as_echo "$PSDelegate" >&6; }
32981else
cristy8b350f62009-11-15 23:12:43 +000032982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032983$as_echo "no" >&6; }
32984fi
32985
32986
32987 test -n "$PSDelegate" && break
32988done
32989test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
32990
32991# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
32992set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032994$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032995if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032996 $as_echo_n "(cached) " >&6
32997else
32998 case $RLEEncodeDelegate in
32999 [\\/]* | ?:[\\/]*)
33000 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33001 ;;
33002 *)
33003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33004for as_dir in $PATH
33005do
33006 IFS=$as_save_IFS
33007 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033008 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33010 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033012 break 2
33013 fi
33014done
cristy8b350f62009-11-15 23:12:43 +000033015 done
cristy3ed852e2009-09-05 21:47:34 +000033016IFS=$as_save_IFS
33017
33018 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33019 ;;
33020esac
33021fi
33022RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33023if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033025$as_echo "$RLEEncodeDelegate" >&6; }
33026else
cristy8b350f62009-11-15 23:12:43 +000033027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033028$as_echo "no" >&6; }
33029fi
33030
33031
33032# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33033set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033035$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033036if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033037 $as_echo_n "(cached) " >&6
33038else
33039 case $RMDelegate in
33040 [\\/]* | ?:[\\/]*)
33041 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33042 ;;
33043 *)
33044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33045for as_dir in $PATH
33046do
33047 IFS=$as_save_IFS
33048 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033049 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33051 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033053 break 2
33054 fi
33055done
cristy8b350f62009-11-15 23:12:43 +000033056 done
cristy3ed852e2009-09-05 21:47:34 +000033057IFS=$as_save_IFS
33058
33059 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33060 ;;
33061esac
33062fi
33063RMDelegate=$ac_cv_path_RMDelegate
33064if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033066$as_echo "$RMDelegate" >&6; }
33067else
cristy8b350f62009-11-15 23:12:43 +000033068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033069$as_echo "no" >&6; }
33070fi
33071
33072
cristy4689cf02010-02-17 21:15:45 +000033073# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33074set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33076$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033077if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033078 $as_echo_n "(cached) " >&6
33079else
33080 case $RSVGDecodeDelegate in
33081 [\\/]* | ?:[\\/]*)
33082 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33083 ;;
33084 *)
33085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33086for as_dir in $PATH
33087do
33088 IFS=$as_save_IFS
33089 test -z "$as_dir" && as_dir=.
33090 for ac_exec_ext in '' $ac_executable_extensions; do
33091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33092 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33094 break 2
33095 fi
33096done
33097 done
33098IFS=$as_save_IFS
33099
33100 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33101 ;;
33102esac
33103fi
33104RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33105if test -n "$RSVGDecodeDelegate"; then
33106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33107$as_echo "$RSVGDecodeDelegate" >&6; }
33108else
33109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33110$as_echo "no" >&6; }
33111fi
33112
33113
cristy3ed852e2009-09-05 21:47:34 +000033114# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33115set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033117$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033118if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033119 $as_echo_n "(cached) " >&6
33120else
33121 case $SCANDecodeDelegate in
33122 [\\/]* | ?:[\\/]*)
33123 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33124 ;;
33125 *)
33126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33127for as_dir in $PATH
33128do
33129 IFS=$as_save_IFS
33130 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033131 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33133 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033135 break 2
33136 fi
33137done
cristy8b350f62009-11-15 23:12:43 +000033138 done
cristy3ed852e2009-09-05 21:47:34 +000033139IFS=$as_save_IFS
33140
33141 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33142 ;;
33143esac
33144fi
33145SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33146if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033148$as_echo "$SCANDecodeDelegate" >&6; }
33149else
cristy8b350f62009-11-15 23:12:43 +000033150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033151$as_echo "no" >&6; }
33152fi
33153
33154
33155# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33156set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033158$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033159if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033160 $as_echo_n "(cached) " >&6
33161else
33162 case $TXTDelegate in
33163 [\\/]* | ?:[\\/]*)
33164 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33165 ;;
33166 *)
33167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33168for as_dir in $PATH
33169do
33170 IFS=$as_save_IFS
33171 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033172 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33174 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033176 break 2
33177 fi
33178done
cristy8b350f62009-11-15 23:12:43 +000033179 done
cristy3ed852e2009-09-05 21:47:34 +000033180IFS=$as_save_IFS
33181
33182 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33183 ;;
33184esac
33185fi
33186TXTDelegate=$ac_cv_path_TXTDelegate
33187if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033189$as_echo "$TXTDelegate" >&6; }
33190else
cristy8b350f62009-11-15 23:12:43 +000033191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033192$as_echo "no" >&6; }
33193fi
33194
33195
cristy5ac9ac82010-07-29 13:24:24 +000033196# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33197set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33199$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033200if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033201 $as_echo_n "(cached) " >&6
33202else
33203 case $UniconvertorDelegate in
33204 [\\/]* | ?:[\\/]*)
33205 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33206 ;;
33207 *)
33208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33209for as_dir in $PATH
33210do
33211 IFS=$as_save_IFS
33212 test -z "$as_dir" && as_dir=.
33213 for ac_exec_ext in '' $ac_executable_extensions; do
33214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33215 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33217 break 2
33218 fi
33219done
33220 done
33221IFS=$as_save_IFS
33222
33223 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33224 ;;
33225esac
33226fi
33227UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33228if test -n "$UniconvertorDelegate"; then
33229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33230$as_echo "$UniconvertorDelegate" >&6; }
33231else
33232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33233$as_echo "no" >&6; }
33234fi
33235
33236
cristy3ed852e2009-09-05 21:47:34 +000033237# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33238set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033240$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033241if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033242 $as_echo_n "(cached) " >&6
33243else
33244 case $WMFDecodeDelegate in
33245 [\\/]* | ?:[\\/]*)
33246 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33247 ;;
33248 *)
33249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33250for as_dir in $PATH
33251do
33252 IFS=$as_save_IFS
33253 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033254 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33256 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033258 break 2
33259 fi
33260done
cristy8b350f62009-11-15 23:12:43 +000033261 done
cristy3ed852e2009-09-05 21:47:34 +000033262IFS=$as_save_IFS
33263
33264 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33265 ;;
33266esac
33267fi
33268WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33269if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033271$as_echo "$WMFDecodeDelegate" >&6; }
33272else
cristy8b350f62009-11-15 23:12:43 +000033273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033274$as_echo "no" >&6; }
33275fi
33276
33277
33278# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33279set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033281$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033282if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033283 $as_echo_n "(cached) " >&6
33284else
33285 case $WWWDecodeDelegate in
33286 [\\/]* | ?:[\\/]*)
33287 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33288 ;;
33289 *)
33290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33291for as_dir in $PATH
33292do
33293 IFS=$as_save_IFS
33294 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033295 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33297 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033299 break 2
33300 fi
33301done
cristy8b350f62009-11-15 23:12:43 +000033302 done
cristy3ed852e2009-09-05 21:47:34 +000033303IFS=$as_save_IFS
33304
33305 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33306 ;;
33307esac
33308fi
33309WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33310if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033312$as_echo "$WWWDecodeDelegate" >&6; }
33313else
cristy8b350f62009-11-15 23:12:43 +000033314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033315$as_echo "no" >&6; }
33316fi
33317
33318
33319# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33320set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033322$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033323if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033324 $as_echo_n "(cached) " >&6
33325else
33326 case $XPSDelegate in
33327 [\\/]* | ?:[\\/]*)
33328 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33329 ;;
33330 *)
33331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33332for as_dir in $PATH
33333do
33334 IFS=$as_save_IFS
33335 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033336 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33338 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033340 break 2
33341 fi
33342done
cristy8b350f62009-11-15 23:12:43 +000033343 done
cristy3ed852e2009-09-05 21:47:34 +000033344IFS=$as_save_IFS
33345
33346 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33347 ;;
33348esac
33349fi
33350XPSDelegate=$ac_cv_path_XPSDelegate
33351if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033353$as_echo "$XPSDelegate" >&6; }
33354else
cristy8b350f62009-11-15 23:12:43 +000033355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033356$as_echo "no" >&6; }
33357fi
33358
33359
33360# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33361set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033363$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033364if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033365 $as_echo_n "(cached) " >&6
33366else
33367 case $ZipDelegate in
33368 [\\/]* | ?:[\\/]*)
33369 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33370 ;;
33371 *)
33372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33373for as_dir in $PATH
33374do
33375 IFS=$as_save_IFS
33376 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033377 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33379 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033381 break 2
33382 fi
33383done
cristy8b350f62009-11-15 23:12:43 +000033384 done
cristy3ed852e2009-09-05 21:47:34 +000033385IFS=$as_save_IFS
33386
33387 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33388 ;;
33389esac
33390fi
33391ZipDelegate=$ac_cv_path_ZipDelegate
33392if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033394$as_echo "$ZipDelegate" >&6; }
33395else
cristy8b350f62009-11-15 23:12:43 +000033396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033397$as_echo "no" >&6; }
33398fi
33399
33400
33401
33402# Prefer lpr to lp; lp needs options tacked on.
33403if test "$LPRDelegate" != no; then
33404 PrintDelegate="$LPRDelegate"
33405else
33406 PrintDelegate="$LPDelegate -c -s"
33407fi
33408
33409
33410# Installed ImageMagick utiltity paths
33411ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33412DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33413MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33414
33415# Set delegate booleans
33416have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33417have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33418have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33419have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33420have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000033421have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033422have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33423have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033424have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33425have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33426
33427#
33428# Test for font directories
33429#
33430type_include_files=''
33431
cristy430a7312010-01-21 20:44:04 +000033432# Dejavu fonts.
33433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33434$as_echo_n "checking for Dejavu fonts directory... " >&6; }
33435dejavu_font_dir=''
33436if test "${with_dejavu_font_dir}" != 'default'; then
33437 dejavu_font_dir="${with_dejavu_font_dir}/"
33438else
33439 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33440 if test -f "${font_dir}DejaVuSerif.ttf"; then
33441 dejavu_font_dir="${font_dir}"
33442 break 1
33443 fi
33444 done
33445fi
33446if test "${dejavu_font_dir}x" != 'x'; then
33447 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
33448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
33449$as_echo "$dejavu_font_dir" >&6; }
33450else
33451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
33452$as_echo "not found!" >&6; };
33453fi
33454
33455
cristy3ed852e2009-09-05 21:47:34 +000033456# Windows
33457windows_font_dir=''
33458if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33459 windows_font_dir="${with_windows_font_dir}/"
33460fi
cristy430a7312010-01-21 20:44:04 +000033461if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033462 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33463 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33464 fi
33465 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33466 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33467 fi
33468 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33469 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33470 fi
33471fi
cristy430a7312010-01-21 20:44:04 +000033472if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033473 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
33474fi
33475
33476
33477# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000033478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000033479$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
33480ghostscript_font_dir=''
33481if test "${with_gs_font_dir}" != 'default'; then
33482 ghostscript_font_dir="${with_gs_font_dir}/"
33483else
33484 if test "${native_win32_build}" = 'yes'; then
33485 # Native Windows Build
33486 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
33487 if test -f "${font_dir}a010013l.pfb"; then
33488 ghostscript_font_dir="$font_dir"
33489 break 1
33490 fi
33491 done
33492 if test "${PSDelegate}" != 'gswin32c'; then
33493 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
33494 fi
33495 else
33496 # Linux / Mac OS X / Unix Build
33497 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
33498 if test -f "${font_dir}a010013l.pfb"; then
33499 ghostscript_font_dir="${font_dir}"
33500 break 1
33501 fi
33502 done
33503 if test "${ghostscript_font_dir}x" = 'x'; then
33504 if test "$PSDelegate" != 'gs'; then
33505 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
33506 fi
33507 fi
33508 fi
33509fi
33510if test "${ghostscript_font_dir}x" != 'x'; then
33511 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000033512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000033513$as_echo "$ghostscript_font_dir" >&6; }
33514else
cristy8b350f62009-11-15 23:12:43 +000033515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000033516$as_echo "not found!" >&6; };
33517fi
33518
33519case "${build_os}" in
33520 mingw* )
33521 PSDelegate=`$WinPathScript "$PSDelegate" 1`
33522 ;;
33523esac
33524
33525
33526
33527#
33528# Handle case where user doesn't want frozen paths
33529#
33530if test "$with_frozenpaths" != 'yes'; then
33531 # Re-set delegate definitions to default (no paths)
33532 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033533 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
33534 BZIPDelegate="$BZIPDelegateDefault"
33535 BrowseDelegate="$BrowseDelegateDefault"
33536 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
33537 CatDelegate="$CatDelegateDefault"
33538 ConvertDelegate="$ConvertDelegateDefault"
33539 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
33540 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
33541 EchoDelegate="$EchoDelegateDefault"
33542 EditorDelegate="$EditorDelegateDefault"
33543 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
33544 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
33545 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
33546 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
33547 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
33548 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
33549 LPDelegate="$LPDelegateDefault"
33550 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
33551 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
33552 LaunchDelegate="$LaunchDelegateDefault"
33553 MANDelegate="$MANDelegateDefault"
33554 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
33555 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033556 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000033557 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
33558 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033559 PCLDelegate="$PCLDelegateDefault"
33560 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
33561 POVDelegate="$POVDelegateDefault"
33562 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033563 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
33564 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000033565 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033566 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
33567 ShowImageDelegate="$ShowImageDelegateDefault"
33568 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000033569 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033570 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
33571 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
33572 XPSDelegate="$XPSDelegateDefault"
33573 ZipDelegate="$ZipDelegateDefault"
33574fi
33575
33576# Delegate substitutions
33577
33578
33579
33580
33581
33582
33583
33584
33585
33586
33587
33588
33589
33590
33591
33592
33593
33594
33595
33596
33597
33598
33599
33600
33601
33602
33603
33604
33605
33606
33607
33608
33609
33610
33611
33612
33613
33614
33615
33616
33617
33618
33619#
33620# RPM support.
33621#
33622RPM=''
33623for ac_prog in gnutar gtar tar
33624do
33625 # Extract the first word of "$ac_prog", so it can be a program name with args.
33626set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033628$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033629if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033630 $as_echo_n "(cached) " >&6
33631else
33632 if test -n "$TAR"; then
33633 ac_cv_prog_TAR="$TAR" # Let the user override the test.
33634else
33635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33636for as_dir in $PATH
33637do
33638 IFS=$as_save_IFS
33639 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033640 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33642 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033644 break 2
33645 fi
33646done
cristy8b350f62009-11-15 23:12:43 +000033647 done
cristy3ed852e2009-09-05 21:47:34 +000033648IFS=$as_save_IFS
33649
33650fi
33651fi
33652TAR=$ac_cv_prog_TAR
33653if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000033654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000033655$as_echo "$TAR" >&6; }
33656else
cristy8b350f62009-11-15 23:12:43 +000033657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033658$as_echo "no" >&6; }
33659fi
33660
33661
33662 test -n "$TAR" && break
33663done
33664
33665for ac_prog in perl
33666do
33667 # Extract the first word of "$ac_prog", so it can be a program name with args.
33668set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033670$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033671if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033672 $as_echo_n "(cached) " >&6
33673else
33674 if test -n "$PERL"; then
33675 ac_cv_prog_PERL="$PERL" # Let the user override the test.
33676else
33677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33678for as_dir in $PATH
33679do
33680 IFS=$as_save_IFS
33681 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033682 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33684 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033686 break 2
33687 fi
33688done
cristy8b350f62009-11-15 23:12:43 +000033689 done
cristy3ed852e2009-09-05 21:47:34 +000033690IFS=$as_save_IFS
33691
33692fi
33693fi
33694PERL=$ac_cv_prog_PERL
33695if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000033696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033697$as_echo "$PERL" >&6; }
33698else
cristy8b350f62009-11-15 23:12:43 +000033699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033700$as_echo "no" >&6; }
33701fi
33702
33703
33704 test -n "$PERL" && break
33705done
33706
33707for ac_prog in rpmbuild rpm
33708do
33709 # Extract the first word of "$ac_prog", so it can be a program name with args.
33710set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033712$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033713if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033714 $as_echo_n "(cached) " >&6
33715else
33716 if test -n "$RPM"; then
33717 ac_cv_prog_RPM="$RPM" # Let the user override the test.
33718else
33719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33720for as_dir in $PATH
33721do
33722 IFS=$as_save_IFS
33723 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033724 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33726 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033728 break 2
33729 fi
33730done
cristy8b350f62009-11-15 23:12:43 +000033731 done
cristy3ed852e2009-09-05 21:47:34 +000033732IFS=$as_save_IFS
33733
33734fi
33735fi
33736RPM=$ac_cv_prog_RPM
33737if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000033738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000033739$as_echo "$RPM" >&6; }
33740else
cristy8b350f62009-11-15 23:12:43 +000033741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033742$as_echo "no" >&6; }
33743fi
33744
33745
33746 test -n "$RPM" && break
33747done
33748
33749
cristy73bd4a52010-10-05 11:24:23 +000033750ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
33751
33752
33753AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
33754
33755
33756AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
33757
33758
33759AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
33760
33761
33762 if test "x$RPM" != "x" ; then
33763 RPM_DELEGATE_TRUE=
33764 RPM_DELEGATE_FALSE='#'
33765else
33766 RPM_DELEGATE_TRUE='#'
33767 RPM_DELEGATE_FALSE=
33768fi
33769
cristy3ed852e2009-09-05 21:47:34 +000033770
33771#
33772# 7ZIP support (http://p7zip.sourceforge.net/)
33773#
33774P7ZIP=''
33775for ac_prog in 7za
33776do
33777 # Extract the first word of "$ac_prog", so it can be a program name with args.
33778set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033780$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033781if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033782 $as_echo_n "(cached) " >&6
33783else
33784 if test -n "$P7ZIP"; then
33785 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
33786else
33787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33788for as_dir in $PATH
33789do
33790 IFS=$as_save_IFS
33791 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033792 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33794 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033796 break 2
33797 fi
33798done
cristy8b350f62009-11-15 23:12:43 +000033799 done
cristy3ed852e2009-09-05 21:47:34 +000033800IFS=$as_save_IFS
33801
33802fi
33803fi
33804P7ZIP=$ac_cv_prog_P7ZIP
33805if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000033806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000033807$as_echo "$P7ZIP" >&6; }
33808else
cristy8b350f62009-11-15 23:12:43 +000033809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033810$as_echo "no" >&6; }
33811fi
33812
33813
33814 test -n "$P7ZIP" && break
33815done
33816
33817
cristy73bd4a52010-10-05 11:24:23 +000033818 if test "x$P7ZIP" != "x" ; then
33819 P7ZIP_DELEGATE_TRUE=
33820 P7ZIP_DELEGATE_FALSE='#'
33821else
33822 P7ZIP_DELEGATE_TRUE='#'
33823 P7ZIP_DELEGATE_FALSE=
33824fi
33825
cristy3ed852e2009-09-05 21:47:34 +000033826
33827#
33828# ZIP support (http://www.info-zip.org/Zip.html)
33829#
33830ZIP=''
33831for ac_prog in zip
33832do
33833 # Extract the first word of "$ac_prog", so it can be a program name with args.
33834set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033836$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033837if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033838 $as_echo_n "(cached) " >&6
33839else
33840 if test -n "$ZIP"; then
33841 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
33842else
33843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33844for as_dir in $PATH
33845do
33846 IFS=$as_save_IFS
33847 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033848 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33850 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033852 break 2
33853 fi
33854done
cristy8b350f62009-11-15 23:12:43 +000033855 done
cristy3ed852e2009-09-05 21:47:34 +000033856IFS=$as_save_IFS
33857
33858fi
33859fi
33860ZIP=$ac_cv_prog_ZIP
33861if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000033862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000033863$as_echo "$ZIP" >&6; }
33864else
cristy8b350f62009-11-15 23:12:43 +000033865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033866$as_echo "no" >&6; }
33867fi
33868
33869
33870 test -n "$ZIP" && break
33871done
33872
33873
cristy73bd4a52010-10-05 11:24:23 +000033874 if test "x$ZIP" != "x" ; then
33875 ZIP_DELEGATE_TRUE=
33876 ZIP_DELEGATE_FALSE='#'
33877else
33878 ZIP_DELEGATE_TRUE='#'
33879 ZIP_DELEGATE_FALSE=
33880fi
33881
cristy3ed852e2009-09-05 21:47:34 +000033882
33883#
33884# GhostPCL related configuration.
33885#
33886PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000033887PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000033888PCLMonoDevice=pbmraw
33889if test -z "$PCLVersion"; then
33890 PCLVersion='unknown'
33891fi
33892if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033894$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033896$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033898$as_echo "" >&6; }
33899 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000033900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033901$as_echo_n "checking for pcl color device... " >&6; }
33902 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33903 :
33904 else
33905 PCLColorDevice=ppmraw
33906 fi
cristy8b350f62009-11-15 23:12:43 +000033907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033908$as_echo "$PCLColorDevice" >&6; }
33909
33910 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000033911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033912$as_echo_n "checking for pcl CMYK device... " >&6; }
33913 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33914 :
33915 else
33916 PCLCMYKDevice=$PCLColorDevice
33917 fi
cristy8b350f62009-11-15 23:12:43 +000033918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033919$as_echo "$PCLCMYKDevice" >&6; }
33920
33921 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000033922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033923$as_echo_n "checking for pcl mono device... " >&6; }
33924 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33925 :
33926 else
33927 PCLMonoDevice=$PCLColorDevice
33928 fi
cristy8b350f62009-11-15 23:12:43 +000033929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033930$as_echo "$PCLMonoDevice" >&6; }
33931fi
33932
33933
33934
33935
33936
33937
33938#
33939# GhostXPS related configuration.
33940#
33941XPSColorDevice=ppmraw
33942XPSCMYKDevice=bmpsep8
33943XPSMonoDevice=pbmraw
33944if test -z "$XPSVersion"; then
33945 XPSVersion='unknown'
33946fi
33947if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033949$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000033951$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033953$as_echo "" >&6; }
33954 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000033955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033956$as_echo_n "checking for xps color device... " >&6; }
33957 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33958 :
33959 else
33960 XPSColorDevice=ppmraw
33961 fi
cristy8b350f62009-11-15 23:12:43 +000033962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033963$as_echo "$XPSColorDevice" >&6; }
33964
33965 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000033966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033967$as_echo_n "checking for xps CMYK device... " >&6; }
33968 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33969 :
33970 else
33971 XPSCMYKDevice=$XPSColorDevice
33972 fi
cristy8b350f62009-11-15 23:12:43 +000033973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033974$as_echo "$XPSCMYKDevice" >&6; }
33975
33976 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000033977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033978$as_echo_n "checking for xps mono device... " >&6; }
33979 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33980 :
33981 else
33982 XPSMonoDevice=$XPSColorDevice
33983 fi
cristy8b350f62009-11-15 23:12:43 +000033984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033985$as_echo "$XPSMonoDevice" >&6; }
33986fi
33987
33988
33989
33990
33991
33992
33993#
33994# Ghostscript related configuration.
33995#
cristya97426c2011-02-04 01:41:27 +000033996GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000033997GSColorDevice=pnmraw
33998GSCMYKDevice=pam
33999GSMonoDevice=pbmraw
34000GSPDFDevice=pdfwrite
34001GSPSDevice=pswrite
34002GSEPSDevice=epswrite
34003GSVersion='unknown'
34004if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000034006$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034008$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000034009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000034010$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034012$as_echo_n "checking for Ghostscript version... " >&6; }
34013 if GSVersion=`$PSDelegate --version`; then
34014 :
34015 else
34016 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34017 fi
cristy8b350f62009-11-15 23:12:43 +000034018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000034019$as_echo "$GSVersion" >&6; }
34020
34021 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034023$as_echo_n "checking for gs alpha device... " >&6; }
34024 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34025 :
34026 else
34027 GSAlphaDevice=pnmraw
34028 fi
cristy8b350f62009-11-15 23:12:43 +000034029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034030$as_echo "$GSAlphaDevice" >&6; }
34031
34032 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034034$as_echo_n "checking for gs color device... " >&6; }
34035 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34036 :
34037 else
34038 GSColorDevice=pnmraw
34039 fi
cristy8b350f62009-11-15 23:12:43 +000034040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034041$as_echo "$GSColorDevice" >&6; }
34042
34043 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034045$as_echo_n "checking for gs CMYK device... " >&6; }
34046 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34047 :
34048 else
34049 GSCMYKDevice=bmpsep8
34050 fi
cristy8b350f62009-11-15 23:12:43 +000034051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034052$as_echo "$GSCMYKDevice" >&6; }
34053
34054 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034056$as_echo_n "checking for gs mono device... " >&6; }
34057 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34058 :
34059 else
34060 GSMonoDevice=$GSColorDevice
34061 fi
cristy8b350f62009-11-15 23:12:43 +000034062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034063$as_echo "$GSMonoDevice" >&6; }
34064
34065 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034067$as_echo_n "checking for gs PDF writing device... " >&6; }
34068 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34069 :
34070 else
34071 GSPDFDevice=nodevice
34072 fi
cristy8b350f62009-11-15 23:12:43 +000034073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034074$as_echo "$GSPDFDevice" >&6; }
34075
34076 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034078$as_echo_n "checking for gs PS writing device... " >&6; }
34079 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34080 :
34081 else
34082 GSPSDevice=nodevice
34083 fi
cristy8b350f62009-11-15 23:12:43 +000034084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034085$as_echo "$GSPSDevice" >&6; }
34086
34087 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034089$as_echo_n "checking for gs EPS writing device... " >&6; }
34090 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34091 :
34092 else
34093 GSEPSDevice=nodevice
34094 fi
cristy8b350f62009-11-15 23:12:43 +000034095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034096$as_echo "$GSEPSDevice" >&6; }
34097fi
34098
34099
34100
34101
34102
34103
34104
34105
34106
34107
34108#
34109# PerlMagick-related configuration
34110#
34111
34112# Look for PERL if PerlMagick requested
34113# If name/path of desired PERL interpreter is specified, look for that one first
34114have_perl='no'
34115if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000034116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000034117$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034119$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000034120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000034121$as_echo "" >&6; }
34122 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034124$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034125if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034126 $as_echo_n "(cached) " >&6
34127else
34128 ac_cv_path_PERL="$with_perl"
34129fi
cristy8b350f62009-11-15 23:12:43 +000034130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034131$as_echo "$ac_cv_path_PERL" >&6; };
34132 PERL=$ac_cv_path_PERL
34133 have_perl="$ac_cv_path_PERL"
34134 else
34135 for ac_prog in perl perl5
34136do
34137 # Extract the first word of "$ac_prog", so it can be a program name with args.
34138set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034140$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034141if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034142 $as_echo_n "(cached) " >&6
34143else
34144 case $PERL in
34145 [\\/]* | ?:[\\/]*)
34146 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34147 ;;
34148 *)
34149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34150for as_dir in $PATH
34151do
34152 IFS=$as_save_IFS
34153 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034154 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34156 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034158 break 2
34159 fi
34160done
cristy8b350f62009-11-15 23:12:43 +000034161 done
cristy3ed852e2009-09-05 21:47:34 +000034162IFS=$as_save_IFS
34163
34164 ;;
34165esac
34166fi
34167PERL=$ac_cv_path_PERL
34168if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034170$as_echo "$PERL" >&6; }
34171else
cristy8b350f62009-11-15 23:12:43 +000034172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034173$as_echo "no" >&6; }
34174fi
34175
34176
34177 test -n "$PERL" && break
34178done
34179 if test "$ac_cv_path_PERL"; then
34180 have_perl="$ac_cv_path_PERL"
34181 fi
34182 fi
34183fi
34184
cristy949301e2010-01-06 01:38:40 +000034185if test "$with_perl" != 'yes' ; then
34186 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34187fi
34188
34189PERL_SUPPORTS_DESTDIR='no'
34190
cristy3ed852e2009-09-05 21:47:34 +000034191with_perl_static='no'
34192with_perl_dynamic='no'
34193if test "$have_perl" != 'no'; then
34194 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34195 with_perl_static='yes'
34196 fi
34197 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34198 with_perl_dynamic='yes'
34199 fi
34200 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034201
34202
34203
34204
34205 if test -n "$PERL"; then :
34206
34207 ax_perl_version="5.8.1"
34208
34209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34210$as_echo_n "checking for perl version... " >&6; }
34211
34212 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34213
34214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34215$as_echo "$perl_version" >&6; }
34216
34217 PERL_VERSION=$perl_version
34218
34219
34220
34221
34222
34223 # Used to indicate true or false condition
34224 ax_compare_version=false
34225
34226 # Convert the two version strings to be compared into a format that
34227 # allows a simple string comparison. The end result is that a version
34228 # string of the form 1.12.5-r617 will be converted to the form
34229 # 0001001200050617. In other words, each number is zero padded to four
34230 # digits, and non digits are removed.
34231
34232 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34233 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34234 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34235 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34236 -e 's/[^0-9]//g'`
34237
34238
34239 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34240 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34241 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34242 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34243 -e 's/[^0-9]//g'`
34244
34245
34246 ax_compare_version=`echo "x$ax_compare_version_A
34247x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34248
34249
34250
34251 if test "$ax_compare_version" = "true" ; then
34252
34253 :
34254 PERL_SUPPORTS_DESTDIR='yes'
34255
34256 else
34257 :
34258 PERL_SUPPORTS_DESTDIR='no'
34259
34260 fi
34261
34262
34263else
34264
34265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34266$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34267 PERL_SUPPORTS_DESTDIR='no'
34268
cristy3ed852e2009-09-05 21:47:34 +000034269fi
cristy73bd4a52010-10-05 11:24:23 +000034270
34271fi
34272 if test "$have_perl" != 'no'; then
34273 WITH_PERL_TRUE=
34274 WITH_PERL_FALSE='#'
34275else
34276 WITH_PERL_TRUE='#'
34277 WITH_PERL_FALSE=
34278fi
34279
34280 if test $with_perl_static = 'yes'; then
34281 WITH_PERL_STATIC_TRUE=
34282 WITH_PERL_STATIC_FALSE='#'
34283else
34284 WITH_PERL_STATIC_TRUE='#'
34285 WITH_PERL_STATIC_FALSE=
34286fi
34287
34288 if test $with_perl_dynamic = 'yes'; then
34289 WITH_PERL_DYNAMIC_TRUE=
34290 WITH_PERL_DYNAMIC_FALSE='#'
34291else
34292 WITH_PERL_DYNAMIC_TRUE='#'
34293 WITH_PERL_DYNAMIC_FALSE=
34294fi
34295
cristy3ed852e2009-09-05 21:47:34 +000034296
34297
34298# Determine path to pick up MagickCore library from for use with building PerlMagick
34299MAGICKCORE_PATH="${LIB_DIR}"
34300if test $with_perl_static = 'yes'; then
34301 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34302 libtool_objdir=$objdir
34303
34304 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000034305 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000034306fi
34307
34308
34309# Create a simple string containing format names for all delegate libraries
34310DELEGATES=''
34311if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34312if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34313if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34314if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34315if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34316if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34317if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34318if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34319if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34320if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34321if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34322if test "$have_jpeg" = 'yes'; then
34323 DELEGATES="$DELEGATES jpeg";
34324 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34325fi
34326if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000034327if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000034328if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34329if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000034330if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000034331if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34332if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
34333if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34334if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34335if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34336if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34337if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34338if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34339if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34340
34341
34342
34343#
34344# Handle special compiler flags
34345#
34346
34347# Add '-p' if prof source profiling support enabled
34348if test "$enable_prof" = 'yes'; then
34349 CFLAGS="-p $CFLAGS"
34350 CXXFLAGS="-p $CXXFLAGS"
34351 LDFLAGS="-p $LDFLAGS"
34352fi
34353
34354# Add '-pg' if gprof source profiling support enabled
34355if test "$enable_gprof" = 'yes'; then
34356 CFLAGS="-pg $CFLAGS"
34357 CXXFLAGS="-pg $CXXFLAGS"
34358 LDFLAGS="-pg $LDFLAGS"
34359fi
34360
34361# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34362# This is a gcc-specific feature
34363if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034365$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034366if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034367 $as_echo_n "(cached) " >&6
34368else
34369 ac_check_lib_save_LIBS=$LIBS
34370LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034372/* end confdefs.h. */
34373
34374/* Override any GCC internal prototype to avoid an error.
34375 Use char because int might match the return type of a GCC
34376 builtin and then its argument prototype would still apply. */
34377#ifdef __cplusplus
34378extern "C"
34379#endif
34380char _gcov_init ();
34381int
34382main ()
34383{
34384return _gcov_init ();
34385 ;
34386 return 0;
34387}
34388_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034389if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034390 ac_cv_lib_gcov__gcov_init=yes
34391else
cristy8b350f62009-11-15 23:12:43 +000034392 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034393fi
cristy8b350f62009-11-15 23:12:43 +000034394rm -f core conftest.err conftest.$ac_objext \
34395 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034396LIBS=$ac_check_lib_save_LIBS
34397fi
cristy8b350f62009-11-15 23:12:43 +000034398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034399$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034400if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034401 cat >>confdefs.h <<_ACEOF
34402#define HAVE_LIBGCOV 1
34403_ACEOF
34404
34405 LIBS="-lgcov $LIBS"
34406
34407fi
34408
cristy8b350f62009-11-15 23:12:43 +000034409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034410$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034411if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034412 $as_echo_n "(cached) " >&6
34413else
34414 ac_check_lib_save_LIBS=$LIBS
34415LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034417/* end confdefs.h. */
34418
34419/* Override any GCC internal prototype to avoid an error.
34420 Use char because int might match the return type of a GCC
34421 builtin and then its argument prototype would still apply. */
34422#ifdef __cplusplus
34423extern "C"
34424#endif
34425char __gcov_init ();
34426int
34427main ()
34428{
34429return __gcov_init ();
34430 ;
34431 return 0;
34432}
34433_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034434if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034435 ac_cv_lib_gcov___gcov_init=yes
34436else
cristy8b350f62009-11-15 23:12:43 +000034437 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034438fi
cristy8b350f62009-11-15 23:12:43 +000034439rm -f core conftest.err conftest.$ac_objext \
34440 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034441LIBS=$ac_check_lib_save_LIBS
34442fi
cristy8b350f62009-11-15 23:12:43 +000034443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034444$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034445if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034446 cat >>confdefs.h <<_ACEOF
34447#define HAVE_LIBGCOV 1
34448_ACEOF
34449
34450 LIBS="-lgcov $LIBS"
34451
34452fi
34453
34454 case "$target_os" in
34455 darwin*)
34456 OSX_GCOV_LDFLAG="-Wl,-single_module"
34457 ;;
34458 *)
34459 OSX_GCOV_LDFLAG=""
34460 ;;
34461 esac
34462
34463 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
34464 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
34465 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
34466fi
34467
34468#
34469# Build library dependency list for libMagickCore
34470#
34471
34472MAGICK_LIBLTDL='' # Libltdl for build
34473MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
34474MAGICK_LTDLDEPS='' # extra libltdl dependencies
34475if test "$with_ltdl" != 'no'
34476then
34477 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
34478 MAGICK_API_LIBLTDL='-lltdl'
34479 fi
34480 MAGICK_LIBLTDL=${LIBLTDL}
34481 MAGICK_LTDLDEPS=${LTDLDEPS}
34482fi
34483
34484
34485
34486if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000034487 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 +000034488else
cristyb1860752011-03-14 00:27:46 +000034489 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000034490fi
34491
34492
34493#
34494# Remove extraneous spaces from output variables (asthetic)
34495#
34496X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
34497X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
34498X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
34499X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
34500
34501CC=`echo $CC | sed -e 's/ */ /g'`
34502CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
34503CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
34504CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
34505DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
34506DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
34507LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
34508TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34509MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
34510#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34511
34512# Pass only user-provided LIBS as "global" libraries
34513LIBS=$USER_LIBS
34514
34515#AC_SUBST(CPPFLAGS)
34516
34517#AC_SUBST(LDFLAGS)
34518#AC_SUBST(X_PRE_LIBS)
34519#AC_SUBST(X_LIBS)
34520#AC_SUBST(X_EXTRA_LIBS)
34521
34522MAGICK_CFLAGS=$CFLAGS
34523MAGICK_CXXFLAGS="$CXXFLAGS"
34524MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
34525MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
34526MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
34527MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
34528
34529
34530
34531
34532
34533
34534
34535
cristyfd9dcd42010-08-08 18:07:02 +000034536
cristy3ed852e2009-09-05 21:47:34 +000034537# Set configured scripts to executable.
34538ac_config_commands="$ac_config_commands default"
34539
34540ac_config_commands="$ac_config_commands MagickCore-config.in"
34541
cristy3ed852e2009-09-05 21:47:34 +000034542ac_config_commands="$ac_config_commands MagickWand-config.in"
34543
cristy3ed852e2009-09-05 21:47:34 +000034544ac_config_commands="$ac_config_commands Magick++-config.in"
34545
34546ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
34547
34548
cristy8b350f62009-11-15 23:12:43 +000034549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000034550$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000034552$as_echo "Update ImageMagick configuration" >&6; }
34553cat >confcache <<\_ACEOF
34554# This file is a shell script that caches the results of configure
34555# tests run on this system so they can be shared between configure
34556# scripts and configure runs, see configure's option --config-cache.
34557# It is not useful on other systems. If it contains results you don't
34558# want to keep, you may remove or edit it.
34559#
34560# config.status only pays attention to the cache file if you give it
34561# the --recheck option to rerun configure.
34562#
34563# `ac_cv_env_foo' variables (set or unset) will be overridden when
34564# loading this file, other *unset* `ac_cv_foo' will be assigned the
34565# following values.
34566
34567_ACEOF
34568
34569# The following way of writing the cache mishandles newlines in values,
34570# but we know of no workaround that is simple, portable, and efficient.
34571# So, we kill variables containing newlines.
34572# Ultrix sh set writes to stderr and can't be redirected directly,
34573# and sets the high bit in the cache file unless we assign to the vars.
34574(
34575 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34576 eval ac_val=\$$ac_var
34577 case $ac_val in #(
34578 *${as_nl}*)
34579 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000034580 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000034581$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34582 esac
34583 case $ac_var in #(
34584 _ | IFS | as_nl) ;; #(
34585 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000034586 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000034587 esac ;;
34588 esac
34589 done
34590
34591 (set) 2>&1 |
34592 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34593 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000034594 # `set' does not quote correctly, so add quotes: double-quote
34595 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000034596 sed -n \
34597 "s/'/'\\\\''/g;
34598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34599 ;; #(
34600 *)
34601 # `set' quotes correctly as required by POSIX, so do not add quotes.
34602 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34603 ;;
34604 esac |
34605 sort
34606) |
34607 sed '
34608 /^ac_cv_env_/b end
34609 t clear
34610 :clear
34611 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34612 t end
34613 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34614 :end' >>confcache
34615if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34616 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000034617 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000034618 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034619$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000034620 if test ! -f "$cache_file" || test -h "$cache_file"; then
34621 cat confcache >"$cache_file"
34622 else
34623 case $cache_file in #(
34624 */* | ?:*)
34625 mv -f confcache "$cache_file"$$ &&
34626 mv -f "$cache_file"$$ "$cache_file" ;; #(
34627 *)
34628 mv -f confcache "$cache_file" ;;
34629 esac
34630 fi
34631 fi
cristy3ed852e2009-09-05 21:47:34 +000034632 else
cristy8b350f62009-11-15 23:12:43 +000034633 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034634$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34635 fi
34636fi
34637rm -f confcache
34638
34639test "x$prefix" = xNONE && prefix=$ac_default_prefix
34640# Let make expand exec_prefix.
34641test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34642
34643DEFS=-DHAVE_CONFIG_H
34644
34645ac_libobjs=
34646ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000034647U=
cristy3ed852e2009-09-05 21:47:34 +000034648for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34649 # 1. Remove the extension, and $U if already installed.
34650 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34651 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34652 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34653 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000034654 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34655 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000034656done
34657LIBOBJS=$ac_libobjs
34658
34659LTLIBOBJS=$ac_ltlibobjs
34660
34661
cristy73bd4a52010-10-05 11:24:23 +000034662 if test -n "$EXEEXT"; then
34663 am__EXEEXT_TRUE=
34664 am__EXEEXT_FALSE='#'
34665else
34666 am__EXEEXT_TRUE='#'
34667 am__EXEEXT_FALSE=
34668fi
cristy3ed852e2009-09-05 21:47:34 +000034669
cristy73bd4a52010-10-05 11:24:23 +000034670if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034671 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034672Usually this means the macro was only invoked conditionally." "$LINENO" 5
34673fi
34674if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034675 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034676Usually this means the macro was only invoked conditionally." "$LINENO" 5
34677fi
34678if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034679 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034680Usually this means the macro was only invoked conditionally." "$LINENO" 5
34681fi
34682if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034683 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034684Usually this means the macro was only invoked conditionally." "$LINENO" 5
34685fi
34686if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034687 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034688Usually this means the macro was only invoked conditionally." "$LINENO" 5
34689fi
34690if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034691 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034692Usually this means the macro was only invoked conditionally." "$LINENO" 5
34693fi
34694if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034695 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034696Usually this means the macro was only invoked conditionally." "$LINENO" 5
34697fi
34698if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034699 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034700Usually this means the macro was only invoked conditionally." "$LINENO" 5
34701fi
cristy73bd4a52010-10-05 11:24:23 +000034702if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034703 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034704Usually this means the macro was only invoked conditionally." "$LINENO" 5
34705fi
34706if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034707 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034708Usually this means the macro was only invoked conditionally." "$LINENO" 5
34709fi
34710LT_CONFIG_H=config/config.h
34711
34712 _ltdl_libobjs=
34713 _ltdl_ltlibobjs=
34714 if test -n "$_LT_LIBOBJS"; then
34715 # Remove the extension.
34716 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
34717 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
34718 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
34719 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
34720 done
34721 fi
34722 ltdl_LIBOBJS=$_ltdl_libobjs
34723
34724 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
34725
34726
34727if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034728 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034729Usually this means the macro was only invoked conditionally." "$LINENO" 5
34730fi
34731if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034732 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034733Usually this means the macro was only invoked conditionally." "$LINENO" 5
34734fi
34735if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034736 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034737Usually this means the macro was only invoked conditionally." "$LINENO" 5
34738fi
34739if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034740 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034741Usually this means the macro was only invoked conditionally." "$LINENO" 5
34742fi
34743
34744if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034745 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034746Usually this means the macro was only invoked conditionally." "$LINENO" 5
34747fi
34748if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034749 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034750Usually this means the macro was only invoked conditionally." "$LINENO" 5
34751fi
34752if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034753 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034754Usually this means the macro was only invoked conditionally." "$LINENO" 5
34755fi
34756if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034757 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034758Usually this means the macro was only invoked conditionally." "$LINENO" 5
34759fi
34760if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034761 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034762Usually this means the macro was only invoked conditionally." "$LINENO" 5
34763fi
34764if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034765 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034766Usually this means the macro was only invoked conditionally." "$LINENO" 5
34767fi
34768if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034769 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034770Usually this means the macro was only invoked conditionally." "$LINENO" 5
34771fi
34772if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034773 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034774Usually this means the macro was only invoked conditionally." "$LINENO" 5
34775fi
34776if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034777 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034778Usually this means the macro was only invoked conditionally." "$LINENO" 5
34779fi
34780if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034781 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034782Usually this means the macro was only invoked conditionally." "$LINENO" 5
34783fi
34784if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034785 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034786Usually this means the macro was only invoked conditionally." "$LINENO" 5
34787fi
34788if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034789 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034790Usually this means the macro was only invoked conditionally." "$LINENO" 5
34791fi
34792if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034793 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034794Usually this means the macro was only invoked conditionally." "$LINENO" 5
34795fi
34796if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034797 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034798Usually this means the macro was only invoked conditionally." "$LINENO" 5
34799fi
34800if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034801 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034802Usually this means the macro was only invoked conditionally." "$LINENO" 5
34803fi
34804if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034805 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034806Usually this means the macro was only invoked conditionally." "$LINENO" 5
34807fi
34808if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034809 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034810Usually this means the macro was only invoked conditionally." "$LINENO" 5
34811fi
34812if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034813 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034814Usually this means the macro was only invoked conditionally." "$LINENO" 5
34815fi
34816if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034817 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034818Usually this means the macro was only invoked conditionally." "$LINENO" 5
34819fi
34820if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034821 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034822Usually this means the macro was only invoked conditionally." "$LINENO" 5
34823fi
cristyfbb0ef02010-12-19 02:32:11 +000034824if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
34825 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
34826Usually this means the macro was only invoked conditionally." "$LINENO" 5
34827fi
cristy73bd4a52010-10-05 11:24:23 +000034828if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034829 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034830Usually this means the macro was only invoked conditionally." "$LINENO" 5
34831fi
34832if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034833 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034834Usually this means the macro was only invoked conditionally." "$LINENO" 5
34835fi
34836if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034837 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034838Usually this means the macro was only invoked conditionally." "$LINENO" 5
34839fi
34840if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034841 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034842Usually this means the macro was only invoked conditionally." "$LINENO" 5
34843fi
34844if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034845 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034846Usually this means the macro was only invoked conditionally." "$LINENO" 5
34847fi
cristyb1860752011-03-14 00:27:46 +000034848if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
34849 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
34850Usually this means the macro was only invoked conditionally." "$LINENO" 5
34851fi
cristy73bd4a52010-10-05 11:24:23 +000034852if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034853 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034854Usually this means the macro was only invoked conditionally." "$LINENO" 5
34855fi
34856if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034857 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034858Usually this means the macro was only invoked conditionally." "$LINENO" 5
34859fi
34860if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034861 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034862Usually this means the macro was only invoked conditionally." "$LINENO" 5
34863fi
34864if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034865 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034866Usually this means the macro was only invoked conditionally." "$LINENO" 5
34867fi
34868if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034869 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034870Usually this means the macro was only invoked conditionally." "$LINENO" 5
34871fi
34872if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034873 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034874Usually this means the macro was only invoked conditionally." "$LINENO" 5
34875fi
34876if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034877 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034878Usually this means the macro was only invoked conditionally." "$LINENO" 5
34879fi
34880if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034881 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034882Usually this means the macro was only invoked conditionally." "$LINENO" 5
34883fi
cristy3ed852e2009-09-05 21:47:34 +000034884
cristyda16f162011-02-19 23:52:17 +000034885: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000034886ac_write_fail=0
34887ac_clean_files_save=$ac_clean_files
34888ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000034889{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034890$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034891as_write_fail=0
34892cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000034893#! $SHELL
34894# Generated by $as_me.
34895# Run this file to recreate the current configuration.
34896# Compiler output produced by configure, useful for debugging
34897# configure, is in config.log if it exists.
34898
34899debug=false
34900ac_cs_recheck=false
34901ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000034902
cristy8b350f62009-11-15 23:12:43 +000034903SHELL=\${CONFIG_SHELL-$SHELL}
34904export SHELL
34905_ASEOF
34906cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
34907## -------------------- ##
34908## M4sh Initialization. ##
34909## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000034910
34911# Be more Bourne compatible
34912DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000034913if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000034914 emulate sh
34915 NULLCMD=:
34916 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34917 # is contrary to our usage. Disable this feature.
34918 alias -g '${1+"$@"}'='"$@"'
34919 setopt NO_GLOB_SUBST
34920else
cristy8b350f62009-11-15 23:12:43 +000034921 case `(set -o) 2>/dev/null` in #(
34922 *posix*) :
34923 set -o posix ;; #(
34924 *) :
34925 ;;
cristy3ed852e2009-09-05 21:47:34 +000034926esac
cristy3ed852e2009-09-05 21:47:34 +000034927fi
34928
34929
cristy3ed852e2009-09-05 21:47:34 +000034930as_nl='
34931'
34932export as_nl
34933# Printing a long string crashes Solaris 7 /usr/bin/printf.
34934as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
34935as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
34936as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000034937# Prefer a ksh shell builtin over an external printf program on Solaris,
34938# but without wasting forks for bash or zsh.
34939if test -z "$BASH_VERSION$ZSH_VERSION" \
34940 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
34941 as_echo='print -r --'
34942 as_echo_n='print -rn --'
34943elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000034944 as_echo='printf %s\n'
34945 as_echo_n='printf %s'
34946else
34947 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
34948 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
34949 as_echo_n='/usr/ucb/echo -n'
34950 else
34951 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
34952 as_echo_n_body='eval
34953 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000034954 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000034955 *"$as_nl"*)
34956 expr "X$arg" : "X\\(.*\\)$as_nl";
34957 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
34958 esac;
34959 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
34960 '
34961 export as_echo_n_body
34962 as_echo_n='sh -c $as_echo_n_body as_echo'
34963 fi
34964 export as_echo_body
34965 as_echo='sh -c $as_echo_body as_echo'
34966fi
34967
34968# The user is always right.
34969if test "${PATH_SEPARATOR+set}" != set; then
34970 PATH_SEPARATOR=:
34971 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
34972 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
34973 PATH_SEPARATOR=';'
34974 }
34975fi
34976
cristy3ed852e2009-09-05 21:47:34 +000034977
34978# IFS
34979# We need space, tab and new line, in precisely that order. Quoting is
34980# there to prevent editors from complaining about space-tab.
34981# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34982# splitting by setting IFS to empty value.)
34983IFS=" "" $as_nl"
34984
34985# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000034986as_myself=
cristy8b350f62009-11-15 23:12:43 +000034987case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000034988 *[\\/]* ) as_myself=$0 ;;
34989 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34990for as_dir in $PATH
34991do
34992 IFS=$as_save_IFS
34993 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034994 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34995 done
cristy3ed852e2009-09-05 21:47:34 +000034996IFS=$as_save_IFS
34997
34998 ;;
34999esac
35000# We did not find ourselves, most probably we were run as `sh COMMAND'
35001# in which case we are not to be found in the path.
35002if test "x$as_myself" = x; then
35003 as_myself=$0
35004fi
35005if test ! -f "$as_myself"; then
35006 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035007 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035008fi
35009
cristy8b350f62009-11-15 23:12:43 +000035010# Unset variables that we do not need and which cause bugs (e.g. in
35011# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35012# suppresses any "Segmentation fault" message there. '((' could
35013# trigger a bug in pdksh 5.2.14.
35014for as_var in BASH_ENV ENV MAIL MAILPATH
35015do eval test x\${$as_var+set} = xset \
35016 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035017done
35018PS1='$ '
35019PS2='> '
35020PS4='+ '
35021
35022# NLS nuisances.
35023LC_ALL=C
35024export LC_ALL
35025LANGUAGE=C
35026export LANGUAGE
35027
cristy8b350f62009-11-15 23:12:43 +000035028# CDPATH.
35029(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35030
35031
cristy98dddb52010-11-04 00:30:15 +000035032# as_fn_error STATUS ERROR [LINENO LOG_FD]
35033# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035034# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35035# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035036# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035037as_fn_error ()
35038{
cristy98dddb52010-11-04 00:30:15 +000035039 as_status=$1; test $as_status -eq 0 && as_status=1
35040 if test "$4"; then
35041 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35042 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035043 fi
cristy98dddb52010-11-04 00:30:15 +000035044 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035045 as_fn_exit $as_status
35046} # as_fn_error
35047
35048
35049# as_fn_set_status STATUS
35050# -----------------------
35051# Set $? to STATUS, without forking.
35052as_fn_set_status ()
35053{
35054 return $1
35055} # as_fn_set_status
35056
35057# as_fn_exit STATUS
35058# -----------------
35059# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35060as_fn_exit ()
35061{
35062 set +e
35063 as_fn_set_status $1
35064 exit $1
35065} # as_fn_exit
35066
35067# as_fn_unset VAR
35068# ---------------
35069# Portably unset VAR.
35070as_fn_unset ()
35071{
35072 { eval $1=; unset $1;}
35073}
35074as_unset=as_fn_unset
35075# as_fn_append VAR VALUE
35076# ----------------------
35077# Append the text in VALUE to the end of the definition contained in VAR. Take
35078# advantage of any shell optimizations that allow amortized linear growth over
35079# repeated appends, instead of the typical quadratic growth present in naive
35080# implementations.
35081if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35082 eval 'as_fn_append ()
35083 {
35084 eval $1+=\$2
35085 }'
35086else
35087 as_fn_append ()
35088 {
35089 eval $1=\$$1\$2
35090 }
35091fi # as_fn_append
35092
35093# as_fn_arith ARG...
35094# ------------------
35095# Perform arithmetic evaluation on the ARGs, and store the result in the
35096# global $as_val. Take advantage of shells that can avoid forks. The arguments
35097# must be portable across $(()) and expr.
35098if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35099 eval 'as_fn_arith ()
35100 {
35101 as_val=$(( $* ))
35102 }'
35103else
35104 as_fn_arith ()
35105 {
35106 as_val=`expr "$@" || test $? -eq 1`
35107 }
35108fi # as_fn_arith
35109
35110
cristy3ed852e2009-09-05 21:47:34 +000035111if expr a : '\(a\)' >/dev/null 2>&1 &&
35112 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35113 as_expr=expr
35114else
35115 as_expr=false
35116fi
35117
35118if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35119 as_basename=basename
35120else
35121 as_basename=false
35122fi
35123
cristy8b350f62009-11-15 23:12:43 +000035124if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35125 as_dirname=dirname
35126else
35127 as_dirname=false
35128fi
cristy3ed852e2009-09-05 21:47:34 +000035129
cristy3ed852e2009-09-05 21:47:34 +000035130as_me=`$as_basename -- "$0" ||
35131$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35132 X"$0" : 'X\(//\)$' \| \
35133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35134$as_echo X/"$0" |
35135 sed '/^.*\/\([^/][^/]*\)\/*$/{
35136 s//\1/
35137 q
35138 }
35139 /^X\/\(\/\/\)$/{
35140 s//\1/
35141 q
35142 }
35143 /^X\/\(\/\).*/{
35144 s//\1/
35145 q
35146 }
35147 s/.*/./; q'`
35148
cristy8b350f62009-11-15 23:12:43 +000035149# Avoid depending upon Character Ranges.
35150as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35151as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35152as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35153as_cr_digits='0123456789'
35154as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035155
35156ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035157case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035158-n*)
cristy8b350f62009-11-15 23:12:43 +000035159 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035160 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035161 xy) ECHO_C='\c';;
35162 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35163 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035164 esac;;
35165*)
35166 ECHO_N='-n';;
35167esac
cristy3ed852e2009-09-05 21:47:34 +000035168
35169rm -f conf$$ conf$$.exe conf$$.file
35170if test -d conf$$.dir; then
35171 rm -f conf$$.dir/conf$$.file
35172else
35173 rm -f conf$$.dir
35174 mkdir conf$$.dir 2>/dev/null
35175fi
35176if (echo >conf$$.file) 2>/dev/null; then
35177 if ln -s conf$$.file conf$$ 2>/dev/null; then
35178 as_ln_s='ln -s'
35179 # ... but there are two gotchas:
35180 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35181 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35182 # In both cases, we have to default to `cp -p'.
35183 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35184 as_ln_s='cp -p'
35185 elif ln conf$$.file conf$$ 2>/dev/null; then
35186 as_ln_s=ln
35187 else
35188 as_ln_s='cp -p'
35189 fi
35190else
35191 as_ln_s='cp -p'
35192fi
35193rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35194rmdir conf$$.dir 2>/dev/null
35195
cristy8b350f62009-11-15 23:12:43 +000035196
35197# as_fn_mkdir_p
35198# -------------
35199# Create "$as_dir" as a directory, including parents if necessary.
35200as_fn_mkdir_p ()
35201{
35202
35203 case $as_dir in #(
35204 -*) as_dir=./$as_dir;;
35205 esac
35206 test -d "$as_dir" || eval $as_mkdir_p || {
35207 as_dirs=
35208 while :; do
35209 case $as_dir in #(
35210 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35211 *) as_qdir=$as_dir;;
35212 esac
35213 as_dirs="'$as_qdir' $as_dirs"
35214 as_dir=`$as_dirname -- "$as_dir" ||
35215$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35216 X"$as_dir" : 'X\(//\)[^/]' \| \
35217 X"$as_dir" : 'X\(//\)$' \| \
35218 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35219$as_echo X"$as_dir" |
35220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35221 s//\1/
35222 q
35223 }
35224 /^X\(\/\/\)[^/].*/{
35225 s//\1/
35226 q
35227 }
35228 /^X\(\/\/\)$/{
35229 s//\1/
35230 q
35231 }
35232 /^X\(\/\).*/{
35233 s//\1/
35234 q
35235 }
35236 s/.*/./; q'`
35237 test -d "$as_dir" && break
35238 done
35239 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035240 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035241
35242
35243} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035244if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035245 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035246else
35247 test -d ./-p && rmdir ./-p
35248 as_mkdir_p=false
35249fi
35250
35251if test -x / >/dev/null 2>&1; then
35252 as_test_x='test -x'
35253else
35254 if ls -dL / >/dev/null 2>&1; then
35255 as_ls_L_option=L
35256 else
35257 as_ls_L_option=
35258 fi
35259 as_test_x='
35260 eval sh -c '\''
35261 if test -d "$1"; then
35262 test -d "$1/.";
35263 else
cristy8b350f62009-11-15 23:12:43 +000035264 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000035265 -*)set "./$1";;
35266 esac;
cristy8b350f62009-11-15 23:12:43 +000035267 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000035268 ???[sx]*):;;*)false;;esac;fi
35269 '\'' sh
35270 '
35271fi
35272as_executable_p=$as_test_x
35273
35274# Sed expression to map a string onto a valid CPP name.
35275as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35276
35277# Sed expression to map a string onto a valid variable name.
35278as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35279
35280
35281exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035282## ----------------------------------- ##
35283## Main body of $CONFIG_STATUS script. ##
35284## ----------------------------------- ##
35285_ASEOF
35286test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035287
cristy8b350f62009-11-15 23:12:43 +000035288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35289# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035290# report actual input values of CONFIG_FILES etc. instead of their
35291# values after options handling.
35292ac_log="
cristy4c08aed2011-07-01 19:47:50 +000035293This file was extended by ImageMagick $as_me 7.0.0, which was
cristyda16f162011-02-19 23:52:17 +000035294generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035295
35296 CONFIG_FILES = $CONFIG_FILES
35297 CONFIG_HEADERS = $CONFIG_HEADERS
35298 CONFIG_LINKS = $CONFIG_LINKS
35299 CONFIG_COMMANDS = $CONFIG_COMMANDS
35300 $ $0 $@
35301
35302on `(hostname || uname -n) 2>/dev/null | sed 1q`
35303"
35304
35305_ACEOF
35306
35307case $ac_config_files in *"
35308"*) set x $ac_config_files; shift; ac_config_files=$*;;
35309esac
35310
35311case $ac_config_headers in *"
35312"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35313esac
35314
35315
35316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35317# Files that config.status was made for.
35318config_files="$ac_config_files"
35319config_headers="$ac_config_headers"
35320config_commands="$ac_config_commands"
35321
35322_ACEOF
35323
35324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35325ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035326\`$as_me' instantiates files and other configuration actions
35327from templates according to the current configuration. Unless the files
35328and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035329
cristy8b350f62009-11-15 23:12:43 +000035330Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035331
35332 -h, --help print this help, then exit
35333 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035334 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035335 -q, --quiet, --silent
35336 do not print progress messages
35337 -d, --debug don't remove temporary files
35338 --recheck update $as_me by reconfiguring in the same conditions
35339 --file=FILE[:TEMPLATE]
35340 instantiate the configuration file FILE
35341 --header=FILE[:TEMPLATE]
35342 instantiate the configuration header FILE
35343
35344Configuration files:
35345$config_files
35346
35347Configuration headers:
35348$config_headers
35349
35350Configuration commands:
35351$config_commands
35352
cristy8b350f62009-11-15 23:12:43 +000035353Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035354
35355_ACEOF
35356cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035357ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035358ac_cs_version="\\
cristy4c08aed2011-07-01 19:47:50 +000035359ImageMagick config.status 7.0.0
cristyda16f162011-02-19 23:52:17 +000035360configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000035361 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035362
cristy98dddb52010-11-04 00:30:15 +000035363Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035364This config.status script is free software; the Free Software Foundation
35365gives unlimited permission to copy, distribute and modify it."
35366
35367ac_pwd='$ac_pwd'
35368srcdir='$srcdir'
35369INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035370MKDIR_P='$MKDIR_P'
35371AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035372test -n "\$AWK" || AWK=awk
35373_ACEOF
35374
35375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35376# The default lists apply if the user does not specify any file.
35377ac_need_defaults=:
35378while test $# != 0
35379do
35380 case $1 in
cristyda16f162011-02-19 23:52:17 +000035381 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035382 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35383 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35384 ac_shift=:
35385 ;;
cristyda16f162011-02-19 23:52:17 +000035386 --*=)
35387 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35388 ac_optarg=
35389 ac_shift=:
35390 ;;
cristy3ed852e2009-09-05 21:47:34 +000035391 *)
35392 ac_option=$1
35393 ac_optarg=$2
35394 ac_shift=shift
35395 ;;
35396 esac
35397
35398 case $ac_option in
35399 # Handling of the options.
35400 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35401 ac_cs_recheck=: ;;
35402 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35403 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035404 --config | --confi | --conf | --con | --co | --c )
35405 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035406 --debug | --debu | --deb | --de | --d | -d )
35407 debug=: ;;
35408 --file | --fil | --fi | --f )
35409 $ac_shift
35410 case $ac_optarg in
35411 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035412 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035413 esac
cristy8b350f62009-11-15 23:12:43 +000035414 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035415 ac_need_defaults=false;;
35416 --header | --heade | --head | --hea )
35417 $ac_shift
35418 case $ac_optarg in
35419 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35420 esac
cristy8b350f62009-11-15 23:12:43 +000035421 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035422 ac_need_defaults=false;;
35423 --he | --h)
35424 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000035425 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035426Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000035427 --help | --hel | -h )
35428 $as_echo "$ac_cs_usage"; exit ;;
35429 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35430 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35431 ac_cs_silent=: ;;
35432
35433 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000035434 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035435Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000035436
cristy8b350f62009-11-15 23:12:43 +000035437 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000035438 ac_need_defaults=false ;;
35439
35440 esac
35441 shift
35442done
35443
35444ac_configure_extra_args=
35445
35446if $ac_cs_silent; then
35447 exec 6>/dev/null
35448 ac_configure_extra_args="$ac_configure_extra_args --silent"
35449fi
35450
35451_ACEOF
35452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35453if \$ac_cs_recheck; then
35454 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35455 shift
35456 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35457 CONFIG_SHELL='$SHELL'
35458 export CONFIG_SHELL
35459 exec "\$@"
35460fi
35461
35462_ACEOF
35463cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35464exec 5>>config.log
35465{
35466 echo
35467 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35468## Running $as_me. ##
35469_ASBOX
35470 $as_echo "$ac_log"
35471} >&5
35472
35473_ACEOF
35474cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000035475#
35476# INIT-COMMANDS
35477#
35478PACKAGE="$PACKAGE"
35479AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35480
35481
35482# The HP-UX ksh and POSIX shell print the target directory to stdout
35483# if CDPATH is set.
35484(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35485
35486sed_quote_subst='$sed_quote_subst'
35487double_quote_subst='$double_quote_subst'
35488delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000035489SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
35490Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
35491GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
35492EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
35493FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
35494SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
35495ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
35496LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
35497macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
35498macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
35499AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
35500DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
35501OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
35502enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
35503enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
35504pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
35505enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
35506host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
35507host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
35508host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
35509build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
35510build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
35511build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
35512NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
35513LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
35514max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
35515ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
35516exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
35517lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
35518lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
35519lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035520lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
35521lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035522reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
35523reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
35524deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
35525file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035526file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
35527want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
35528sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035529AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
35530AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035531archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035532STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
35533RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
35534old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35535old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35536old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
35537lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
35538CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
35539CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
35540compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
35541GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
35542lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
35543lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
35544lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
35545lt_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 +000035546nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
35547lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035548objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
35549MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
35550lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035551lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035552lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035553lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
35554lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
35555need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035556MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035557DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
35558NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
35559LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
35560OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
35561OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
35562libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
35563shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
35564extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35565archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
35566enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
35567export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
35568whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
35569compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
35570old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
35571old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35572archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
35573archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35574module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
35575module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35576with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
35577allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
35578no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
35579hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
35580hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
35581hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
35582hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
35583hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
35584hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
35585hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
35586hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
35587inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
35588link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035589always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
35590export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
35591exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
35592include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
35593prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035594postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035595file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
35596variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
35597need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
35598need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
35599version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
35600runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
35601shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
35602shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
35603libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
35604library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
35605soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
35606install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
35607postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35608postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35609finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
35610finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
35611hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
35612sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
35613sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
35614hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
35615enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
35616enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
35617enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
35618old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
35619striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
35620compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
35621predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
35622postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
35623predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
35624postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
35625compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
35626LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
35627reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
35628reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35629old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35630compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
35631GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
35632lt_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 +000035633lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035634lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035635lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
35636lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
35637archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
35638enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
35639export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35640whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35641compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
35642old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35643old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35644archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35645archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35646module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35647module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35648with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
35649allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35650no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35651hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35652hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
35653hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
35654hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
35655hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
35656hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
35657hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
35658hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
35659inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
35660link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035661always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
35662export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35663exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35664include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35665prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035666postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035667file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
35668hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
35669compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
35670predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35671postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35672predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
35673postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
35674compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000035675
35676LTCC='$LTCC'
35677LTCFLAGS='$LTCFLAGS'
35678compiler='$compiler_DEFAULT'
35679
cristy0c60a692010-11-04 01:09:47 +000035680# A function that is used when there is no print builtin or printf.
35681func_fallback_echo ()
35682{
35683 eval 'cat <<_LTECHO_EOF
35684\$1
35685_LTECHO_EOF'
35686}
35687
cristy73bd4a52010-10-05 11:24:23 +000035688# Quote evaled strings.
35689for var in SED \
35690GREP \
35691EGREP \
35692FGREP \
cristy0c60a692010-11-04 01:09:47 +000035693SHELL \
35694ECHO \
cristy73bd4a52010-10-05 11:24:23 +000035695LD \
cristy0c60a692010-11-04 01:09:47 +000035696AS \
35697DLLTOOL \
35698OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000035699NM \
35700LN_S \
35701lt_SP2NL \
35702lt_NL2SP \
35703reload_flag \
35704deplibs_check_method \
35705file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000035706file_magic_glob \
35707want_nocaseglob \
35708sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000035709AR \
35710AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000035711archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000035712STRIP \
35713RANLIB \
35714CC \
35715CFLAGS \
35716compiler \
35717lt_cv_sys_global_symbol_pipe \
35718lt_cv_sys_global_symbol_to_cdecl \
35719lt_cv_sys_global_symbol_to_c_name_address \
35720lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000035721nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000035722lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000035723lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000035724lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000035725lt_prog_compiler_static \
35726lt_cv_prog_compiler_c_o \
35727need_locks \
cristyda16f162011-02-19 23:52:17 +000035728MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000035729DSYMUTIL \
35730NMEDIT \
35731LIPO \
35732OTOOL \
35733OTOOL64 \
35734shrext_cmds \
35735export_dynamic_flag_spec \
35736whole_archive_flag_spec \
35737compiler_needs_object \
35738with_gnu_ld \
35739allow_undefined_flag \
35740no_undefined_flag \
35741hardcode_libdir_flag_spec \
35742hardcode_libdir_flag_spec_ld \
35743hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000035744exclude_expsyms \
35745include_expsyms \
35746file_list_spec \
35747variables_saved_for_relink \
35748libname_spec \
35749library_names_spec \
35750soname_spec \
cristy0c60a692010-11-04 01:09:47 +000035751install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000035752finish_eval \
35753old_striplib \
35754striplib \
35755compiler_lib_search_dirs \
35756predep_objects \
35757postdep_objects \
35758predeps \
35759postdeps \
35760compiler_lib_search_path \
35761LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000035762reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035763compiler_CXX \
35764lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035765lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000035766lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035767lt_prog_compiler_static_CXX \
35768lt_cv_prog_compiler_c_o_CXX \
35769export_dynamic_flag_spec_CXX \
35770whole_archive_flag_spec_CXX \
35771compiler_needs_object_CXX \
35772with_gnu_ld_CXX \
35773allow_undefined_flag_CXX \
35774no_undefined_flag_CXX \
35775hardcode_libdir_flag_spec_CXX \
35776hardcode_libdir_flag_spec_ld_CXX \
35777hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035778exclude_expsyms_CXX \
35779include_expsyms_CXX \
35780file_list_spec_CXX \
35781compiler_lib_search_dirs_CXX \
35782predep_objects_CXX \
35783postdep_objects_CXX \
35784predeps_CXX \
35785postdeps_CXX \
35786compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000035787 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000035788 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000035789 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000035790 ;;
35791 *)
35792 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35793 ;;
35794 esac
35795done
35796
35797# Double-quote double-evaled strings.
35798for var in reload_cmds \
35799old_postinstall_cmds \
35800old_postuninstall_cmds \
35801old_archive_cmds \
35802extract_expsyms_cmds \
35803old_archive_from_new_cmds \
35804old_archive_from_expsyms_cmds \
35805archive_cmds \
35806archive_expsym_cmds \
35807module_cmds \
35808module_expsym_cmds \
35809export_symbols_cmds \
35810prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000035811postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000035812postinstall_cmds \
35813postuninstall_cmds \
35814finish_cmds \
35815sys_lib_search_path_spec \
35816sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000035817reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035818old_archive_cmds_CXX \
35819old_archive_from_new_cmds_CXX \
35820old_archive_from_expsyms_cmds_CXX \
35821archive_cmds_CXX \
35822archive_expsym_cmds_CXX \
35823module_cmds_CXX \
35824module_expsym_cmds_CXX \
35825export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000035826prelink_cmds_CXX \
35827postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000035828 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000035829 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000035830 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000035831 ;;
35832 *)
35833 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35834 ;;
35835 esac
35836done
35837
cristy73bd4a52010-10-05 11:24:23 +000035838ac_aux_dir='$ac_aux_dir'
35839xsi_shell='$xsi_shell'
35840lt_shell_append='$lt_shell_append'
35841
35842# See if we are running on zsh, and set the options which allow our
35843# commands through without removal of \ escapes INIT.
35844if test -n "\${ZSH_VERSION+set}" ; then
35845 setopt NO_GLOB_SUBST
35846fi
35847
35848
35849 PACKAGE='$PACKAGE'
35850 VERSION='$VERSION'
35851 TIMESTAMP='$TIMESTAMP'
35852 RM='$RM'
35853 ofile='$ofile'
35854
35855
35856
35857
35858
35859
cristy3ed852e2009-09-05 21:47:34 +000035860_ACEOF
35861
35862cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35863
35864# Handling of arguments.
35865for ac_config_target in $ac_config_targets
35866do
35867 case $ac_config_target in
35868 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000035869 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000035870 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
35871 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
35872 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
35873 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
35874 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000035875 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000035876 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
35877 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
35878 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
35879 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
35880 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000035881 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000035882 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
35883 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000035884 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
35885 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
35886 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000035887 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35888 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
35889 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
35890 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
35891 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
35892 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
35893 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
35894 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
35895 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
35896 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
35897 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
35898 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
35899 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
35900 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
35901 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
35902 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
35903 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000035904 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
35905 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000035906 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35907 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000035908 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35909 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000035910 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000035911 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
35912 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
35913
cristy98dddb52010-11-04 00:30:15 +000035914 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035915 esac
35916done
35917
35918
35919# If the user did not use the arguments to specify the items to instantiate,
35920# then the envvar interface is used. Set only those that are not.
35921# We use the long form for the default assignment because of an extremely
35922# bizarre bug on SunOS 4.1.3.
35923if $ac_need_defaults; then
35924 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35925 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35926 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35927fi
35928
35929# Have a temporary directory for convenience. Make it in the build tree
35930# simply because there is no reason against having it here, and in addition,
35931# creating and moving files from /tmp can sometimes cause problems.
35932# Hook for its removal unless debugging.
35933# Note that there is a small window in which the directory will not be cleaned:
35934# after its creation but before its name has been assigned to `$tmp'.
35935$debug ||
35936{
cristyda16f162011-02-19 23:52:17 +000035937 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000035938 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000035939 : "${ac_tmp:=$tmp}"
35940 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000035941' 0
cristy8b350f62009-11-15 23:12:43 +000035942 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000035943}
35944# Create a (secure) tmp directory for tmp files.
35945
35946{
35947 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000035948 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000035949} ||
35950{
35951 tmp=./conf$$-$RANDOM
35952 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000035953} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000035954ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000035955
35956# Set up the scripts for CONFIG_FILES section.
35957# No need to generate them if there are no CONFIG_FILES.
35958# This happens for instance with `./config.status config.h'.
35959if test -n "$CONFIG_FILES"; then
35960
35961
cristy8b350f62009-11-15 23:12:43 +000035962ac_cr=`echo X | tr X '\015'`
35963# On cygwin, bash can eat \r inside `` if the user requested igncr.
35964# But we know of no other shell where ac_cr would be empty at this
35965# point, so we can use a bashism as a fallback.
35966if test "x$ac_cr" = x; then
35967 eval ac_cr=\$\'\\r\'
35968fi
cristy3ed852e2009-09-05 21:47:34 +000035969ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35970if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000035971 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000035972else
35973 ac_cs_awk_cr=$ac_cr
35974fi
35975
cristyda16f162011-02-19 23:52:17 +000035976echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000035977_ACEOF
35978
35979
35980{
35981 echo "cat >conf$$subs.awk <<_ACEOF" &&
35982 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35983 echo "_ACEOF"
35984} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000035985 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35986ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000035987ac_delim='%!_!# '
35988for ac_last_try in false false false false false :; do
35989 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000035990 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035991
35992 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35993 if test $ac_delim_n = $ac_delim_num; then
35994 break
35995 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000035996 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035997 else
35998 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35999 fi
36000done
36001rm -f conf$$subs.sh
36002
36003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036004cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036005_ACEOF
36006sed -n '
36007h
36008s/^/S["/; s/!.*/"]=/
36009p
36010g
36011s/^[^!]*!//
36012:repl
36013t repl
36014s/'"$ac_delim"'$//
36015t delim
36016:nl
36017h
cristycd4c5312009-11-22 01:19:08 +000036018s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036019t more1
36020s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36021p
36022n
36023b repl
36024:more1
36025s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36026p
36027g
36028s/.\{148\}//
36029t nl
36030:delim
36031h
cristycd4c5312009-11-22 01:19:08 +000036032s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036033t more2
36034s/["\\]/\\&/g; s/^/"/; s/$/"/
36035p
36036b
36037:more2
36038s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36039p
36040g
36041s/.\{148\}//
36042t delim
36043' <conf$$subs.awk | sed '
36044/^[^""]/{
36045 N
36046 s/\n//
36047}
36048' >>$CONFIG_STATUS || ac_write_fail=1
36049rm -f conf$$subs.awk
36050cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36051_ACAWK
cristyda16f162011-02-19 23:52:17 +000036052cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036053 for (key in S) S_is_set[key] = 1
36054 FS = ""
36055
36056}
36057{
36058 line = $ 0
36059 nfields = split(line, field, "@")
36060 substed = 0
36061 len = length(field[1])
36062 for (i = 2; i < nfields; i++) {
36063 key = field[i]
36064 keylen = length(key)
36065 if (S_is_set[key]) {
36066 value = S[key]
36067 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36068 len += length(value) + length(field[++i])
36069 substed = 1
36070 } else
36071 len += 1 + keylen
36072 }
36073
36074 print line
36075}
36076
36077_ACAWK
36078_ACEOF
36079cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36080if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36081 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36082else
36083 cat
cristyda16f162011-02-19 23:52:17 +000036084fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036085 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036086_ACEOF
36087
cristy98dddb52010-11-04 00:30:15 +000036088# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36089# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036090# trailing colons and then remove the whole line if VPATH becomes empty
36091# (actually we leave an empty line to preserve line numbers).
36092if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036093 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36094h
36095s///
36096s/^/:/
36097s/[ ]*$/:/
36098s/:\$(srcdir):/:/g
36099s/:\${srcdir}:/:/g
36100s/:@srcdir@:/:/g
36101s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036102s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036103x
36104s/\(=[ ]*\).*/\1/
36105G
36106s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036107s/^[^=]*=[ ]*$//
36108}'
36109fi
36110
36111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36112fi # test -n "$CONFIG_FILES"
36113
36114# Set up the scripts for CONFIG_HEADERS section.
36115# No need to generate them if there are no CONFIG_HEADERS.
36116# This happens for instance with `./config.status Makefile'.
36117if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036118cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036119BEGIN {
36120_ACEOF
36121
36122# Transform confdefs.h into an awk script `defines.awk', embedded as
36123# here-document in config.status, that substitutes the proper values into
36124# config.h.in to produce config.h.
36125
36126# Create a delimiter string that does not exist in confdefs.h, to ease
36127# handling of long lines.
36128ac_delim='%!_!# '
36129for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036130 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36131 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036132 break
36133 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036134 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036135 else
36136 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36137 fi
36138done
36139
36140# For the awk script, D is an array of macro values keyed by name,
36141# likewise P contains macro parameters if any. Preserve backslash
36142# newline sequences.
36143
36144ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36145sed -n '
36146s/.\{148\}/&'"$ac_delim"'/g
36147t rset
36148:rset
36149s/^[ ]*#[ ]*define[ ][ ]*/ /
36150t def
36151d
36152:def
36153s/\\$//
36154t bsnl
36155s/["\\]/\\&/g
36156s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36157D["\1"]=" \3"/p
36158s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36159d
36160:bsnl
36161s/["\\]/\\&/g
36162s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36163D["\1"]=" \3\\\\\\n"\\/p
36164t cont
36165s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36166t cont
36167d
36168:cont
36169n
36170s/.\{148\}/&'"$ac_delim"'/g
36171t clear
36172:clear
36173s/\\$//
36174t bsnlc
36175s/["\\]/\\&/g; s/^/"/; s/$/"/p
36176d
36177:bsnlc
36178s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36179b cont
36180' <confdefs.h | sed '
36181s/'"$ac_delim"'/"\\\
36182"/g' >>$CONFIG_STATUS || ac_write_fail=1
36183
36184cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36185 for (key in D) D_is_set[key] = 1
36186 FS = ""
36187}
36188/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36189 line = \$ 0
36190 split(line, arg, " ")
36191 if (arg[1] == "#") {
36192 defundef = arg[2]
36193 mac1 = arg[3]
36194 } else {
36195 defundef = substr(arg[1], 2)
36196 mac1 = arg[2]
36197 }
36198 split(mac1, mac2, "(") #)
36199 macro = mac2[1]
36200 prefix = substr(line, 1, index(line, defundef) - 1)
36201 if (D_is_set[macro]) {
36202 # Preserve the white space surrounding the "#".
36203 print prefix "define", macro P[macro] D[macro]
36204 next
36205 } else {
36206 # Replace #undef with comments. This is necessary, for example,
36207 # in the case of _POSIX_SOURCE, which is predefined and required
36208 # on some systems where configure will not decide to define it.
36209 if (defundef == "undef") {
36210 print "/*", prefix defundef, macro, "*/"
36211 next
36212 }
36213 }
36214}
36215{ print }
36216_ACAWK
36217_ACEOF
36218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036219 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036220fi # test -n "$CONFIG_HEADERS"
36221
36222
36223eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36224shift
36225for ac_tag
36226do
36227 case $ac_tag in
36228 :[FHLC]) ac_mode=$ac_tag; continue;;
36229 esac
36230 case $ac_mode$ac_tag in
36231 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036232 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036233 :[FH]-) ac_tag=-:-;;
36234 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36235 esac
36236 ac_save_IFS=$IFS
36237 IFS=:
36238 set x $ac_tag
36239 IFS=$ac_save_IFS
36240 shift
36241 ac_file=$1
36242 shift
36243
36244 case $ac_mode in
36245 :L) ac_source=$1;;
36246 :[FH])
36247 ac_file_inputs=
36248 for ac_f
36249 do
36250 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036251 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036252 *) # Look for the file first in the build tree, then in the source tree
36253 # (if the path is not absolute). The absolute path cannot be DOS-style,
36254 # because $ac_f cannot contain `:'.
36255 test -f "$ac_f" ||
36256 case $ac_f in
36257 [\\/$]*) false;;
36258 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36259 esac ||
cristy98dddb52010-11-04 00:30:15 +000036260 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036261 esac
36262 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036263 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036264 done
36265
36266 # Let's still pretend it is `configure' which instantiates (i.e., don't
36267 # use $as_me), people would be surprised to read:
36268 # /* config.h. Generated by config.status. */
36269 configure_input='Generated from '`
36270 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36271 `' by configure.'
36272 if test x"$ac_file" != x-; then
36273 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036274 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036275$as_echo "$as_me: creating $ac_file" >&6;}
36276 fi
36277 # Neutralize special characters interpreted by sed in replacement strings.
36278 case $configure_input in #(
36279 *\&* | *\|* | *\\* )
36280 ac_sed_conf_input=`$as_echo "$configure_input" |
36281 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36282 *) ac_sed_conf_input=$configure_input;;
36283 esac
36284
36285 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036286 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036287 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036288 esac
36289 ;;
36290 esac
36291
36292 ac_dir=`$as_dirname -- "$ac_file" ||
36293$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36294 X"$ac_file" : 'X\(//\)[^/]' \| \
36295 X"$ac_file" : 'X\(//\)$' \| \
36296 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36297$as_echo X"$ac_file" |
36298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36299 s//\1/
36300 q
36301 }
36302 /^X\(\/\/\)[^/].*/{
36303 s//\1/
36304 q
36305 }
36306 /^X\(\/\/\)$/{
36307 s//\1/
36308 q
36309 }
36310 /^X\(\/\).*/{
36311 s//\1/
36312 q
36313 }
36314 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036315 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036316 ac_builddir=.
36317
36318case "$ac_dir" in
36319.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36320*)
36321 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36322 # A ".." for each directory in $ac_dir_suffix.
36323 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36324 case $ac_top_builddir_sub in
36325 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36326 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36327 esac ;;
36328esac
36329ac_abs_top_builddir=$ac_pwd
36330ac_abs_builddir=$ac_pwd$ac_dir_suffix
36331# for backward compatibility:
36332ac_top_builddir=$ac_top_build_prefix
36333
36334case $srcdir in
36335 .) # We are building in place.
36336 ac_srcdir=.
36337 ac_top_srcdir=$ac_top_builddir_sub
36338 ac_abs_top_srcdir=$ac_pwd ;;
36339 [\\/]* | ?:[\\/]* ) # Absolute name.
36340 ac_srcdir=$srcdir$ac_dir_suffix;
36341 ac_top_srcdir=$srcdir
36342 ac_abs_top_srcdir=$srcdir ;;
36343 *) # Relative name.
36344 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36345 ac_top_srcdir=$ac_top_build_prefix$srcdir
36346 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36347esac
36348ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36349
36350
36351 case $ac_mode in
36352 :F)
36353 #
36354 # CONFIG_FILE
36355 #
36356
36357 case $INSTALL in
36358 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36359 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36360 esac
cristy73bd4a52010-10-05 11:24:23 +000036361 ac_MKDIR_P=$MKDIR_P
36362 case $MKDIR_P in
36363 [\\/$]* | ?:[\\/]* ) ;;
36364 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36365 esac
cristy3ed852e2009-09-05 21:47:34 +000036366_ACEOF
36367
36368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36369# If the template does not know about datarootdir, expand it.
36370# FIXME: This hack should be removed a few years after 2.60.
36371ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036372ac_sed_dataroot='
36373/datarootdir/ {
36374 p
36375 q
36376}
36377/@datadir@/p
36378/@docdir@/p
36379/@infodir@/p
36380/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036381/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036382case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36383*datarootdir*) ac_datarootdir_seen=yes;;
36384*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036386$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36387_ACEOF
36388cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36389 ac_datarootdir_hack='
36390 s&@datadir@&$datadir&g
36391 s&@docdir@&$docdir&g
36392 s&@infodir@&$infodir&g
36393 s&@localedir@&$localedir&g
36394 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036395 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036396esac
36397_ACEOF
36398
36399# Neutralize VPATH when `$srcdir' = `.'.
36400# Shell code in configure.ac might set extrasub.
36401# FIXME: do we really want to maintain this feature?
36402cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36403ac_sed_extra="$ac_vpsub
36404$extrasub
36405_ACEOF
36406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36407:t
36408/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36409s|@configure_input@|$ac_sed_conf_input|;t t
36410s&@top_builddir@&$ac_top_builddir_sub&;t t
36411s&@top_build_prefix@&$ac_top_build_prefix&;t t
36412s&@srcdir@&$ac_srcdir&;t t
36413s&@abs_srcdir@&$ac_abs_srcdir&;t t
36414s&@top_srcdir@&$ac_top_srcdir&;t t
36415s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36416s&@builddir@&$ac_builddir&;t t
36417s&@abs_builddir@&$ac_abs_builddir&;t t
36418s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36419s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036420s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036421$ac_datarootdir_hack
36422"
cristyda16f162011-02-19 23:52:17 +000036423eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36424 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036425
36426test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000036427 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36428 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36429 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000036430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036431which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000036432$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036433which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000036434
cristyda16f162011-02-19 23:52:17 +000036435 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000036436 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000036437 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36438 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000036439 esac \
cristy98dddb52010-11-04 00:30:15 +000036440 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036441 ;;
36442 :H)
36443 #
36444 # CONFIG_HEADER
36445 #
36446 if test x"$ac_file" != x-; then
36447 {
36448 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036449 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36450 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000036451 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036452 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000036453 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000036454$as_echo "$as_me: $ac_file is unchanged" >&6;}
36455 else
36456 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000036457 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000036458 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036459 fi
36460 else
36461 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036462 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000036463 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036464 fi
cristy73bd4a52010-10-05 11:24:23 +000036465# Compute "$ac_file"'s index in $config_headers.
36466_am_arg="$ac_file"
36467_am_stamp_count=1
36468for _am_header in $config_headers :; do
36469 case $_am_header in
36470 $_am_arg | $_am_arg:* )
36471 break ;;
36472 * )
36473 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36474 esac
36475done
36476echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36477$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36478 X"$_am_arg" : 'X\(//\)[^/]' \| \
36479 X"$_am_arg" : 'X\(//\)$' \| \
36480 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
36481$as_echo X"$_am_arg" |
36482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36483 s//\1/
36484 q
36485 }
36486 /^X\(\/\/\)[^/].*/{
36487 s//\1/
36488 q
36489 }
36490 /^X\(\/\/\)$/{
36491 s//\1/
36492 q
36493 }
36494 /^X\(\/\).*/{
36495 s//\1/
36496 q
36497 }
36498 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000036499 ;;
36500
cristy8b350f62009-11-15 23:12:43 +000036501 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000036502$as_echo "$as_me: executing $ac_file commands" >&6;}
36503 ;;
36504 esac
36505
36506
36507 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000036508 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000036509ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
36510ac_prefix_conf_PKG=`echo MagickCore`
36511ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
36512ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
36513ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
36514if test ".$ac_prefix_conf_INP" = "."; then
36515 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
36516 case "$ac_file" in
36517 *.h) ac_prefix_conf_INP=$ac_file ;;
36518 *)
36519 esac
36520 test ".$ac_prefix_conf_INP" != "." && break
36521 done
36522fi
36523if test ".$ac_prefix_conf_INP" = "."; then
36524 case "$ac_prefix_conf_OUT" in
36525 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
36526 ;;
36527 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
36528 ;;
36529 *) ac_prefix_conf_INP=config.h
36530 ;;
36531 esac
36532fi
36533if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000036534 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000036535else
36536 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
36537 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
36538 fi fi
36539 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
36540$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
36541 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000036542 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
36543 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
36544 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
36545 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
36546 $as_echo "#endif/" >> conftest.prefix
36547 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
36548 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
36549 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000036550 # now executing _script on _DEF input to create _OUT output file
36551 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
36552 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
36553 echo ' ' >>$tmp/pconfig.h
36554 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
36555
36556 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
36557 echo ' ' >>$tmp/pconfig.h
36558 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
36559 echo "#endif" >>$tmp/pconfig.h
36560 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
36561 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
36562$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
36563 else
36564 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
36565$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36566 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
36567 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
36568 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
36569$as_echo X"$ac_prefix_conf_OUT" |
36570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36571 s//\1/
36572 q
36573 }
36574 /^X\(\/\/\)[^/].*/{
36575 s//\1/
36576 q
36577 }
36578 /^X\(\/\/\)$/{
36579 s//\1/
36580 q
36581 }
36582 /^X\(\/\).*/{
36583 s//\1/
36584 q
36585 }
36586 s/.*/./; q'`
36587 as_dir="$ac_dir"; as_fn_mkdir_p
36588 rm -f "$ac_prefix_conf_OUT"
36589 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
36590 fi
36591 cp conftest.prefix _configs.sed
36592 else
cristy98dddb52010-11-04 00:30:15 +000036593 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 +000036594 fi
36595 rm -f conftest.*
36596fi
36597 ;;
36598 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
36599 # Autoconf 2.62 quotes --file arguments for eval, but not when files
36600 # are listed without --file. Let's play safe and only enable the eval
36601 # if we detect the quoting.
36602 case $CONFIG_FILES in
36603 *\'*) eval set x "$CONFIG_FILES" ;;
36604 *) set x $CONFIG_FILES ;;
36605 esac
36606 shift
36607 for mf
36608 do
36609 # Strip MF so we end up with the name of the file.
36610 mf=`echo "$mf" | sed -e 's/:.*$//'`
36611 # Check whether this is an Automake generated Makefile or not.
36612 # We used to match only the files named `Makefile.in', but
36613 # some people rename them; so instead we look at the file content.
36614 # Grep'ing the first line is not enough: some people post-process
36615 # each Makefile.in and add a new line on top of each file to say so.
36616 # Grep'ing the whole file is not good either: AIX grep has a line
36617 # limit of 2048, but all sed's we know have understand at least 4000.
36618 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
36619 dirpart=`$as_dirname -- "$mf" ||
36620$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36621 X"$mf" : 'X\(//\)[^/]' \| \
36622 X"$mf" : 'X\(//\)$' \| \
36623 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
36624$as_echo X"$mf" |
36625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36626 s//\1/
36627 q
36628 }
36629 /^X\(\/\/\)[^/].*/{
36630 s//\1/
36631 q
36632 }
36633 /^X\(\/\/\)$/{
36634 s//\1/
36635 q
36636 }
36637 /^X\(\/\).*/{
36638 s//\1/
36639 q
36640 }
36641 s/.*/./; q'`
36642 else
36643 continue
36644 fi
36645 # Extract the definition of DEPDIR, am__include, and am__quote
36646 # from the Makefile without running `make'.
36647 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
36648 test -z "$DEPDIR" && continue
36649 am__include=`sed -n 's/^am__include = //p' < "$mf"`
36650 test -z "am__include" && continue
36651 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
36652 # When using ansi2knr, U may be empty or an underscore; expand it
36653 U=`sed -n 's/^U = //p' < "$mf"`
36654 # Find all dependency output files, they are included files with
36655 # $(DEPDIR) in their names. We invoke sed twice because it is the
36656 # simplest approach to changing $(DEPDIR) to its actual value in the
36657 # expansion.
36658 for file in `sed -n "
36659 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
36660 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
36661 # Make sure the directory exists.
36662 test -f "$dirpart/$file" && continue
36663 fdir=`$as_dirname -- "$file" ||
36664$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36665 X"$file" : 'X\(//\)[^/]' \| \
36666 X"$file" : 'X\(//\)$' \| \
36667 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
36668$as_echo X"$file" |
36669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36670 s//\1/
36671 q
36672 }
36673 /^X\(\/\/\)[^/].*/{
36674 s//\1/
36675 q
36676 }
36677 /^X\(\/\/\)$/{
36678 s//\1/
36679 q
36680 }
36681 /^X\(\/\).*/{
36682 s//\1/
36683 q
36684 }
36685 s/.*/./; q'`
36686 as_dir=$dirpart/$fdir; as_fn_mkdir_p
36687 # echo "creating $dirpart/$file"
36688 echo '# dummy' > "$dirpart/$file"
36689 done
36690 done
36691}
36692 ;;
36693 "libtool":C)
36694
36695 # See if we are running on zsh, and set the options which allow our
36696 # commands through without removal of \ escapes.
36697 if test -n "${ZSH_VERSION+set}" ; then
36698 setopt NO_GLOB_SUBST
36699 fi
36700
36701 cfgfile="${ofile}T"
36702 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
36703 $RM "$cfgfile"
36704
36705 cat <<_LT_EOF >> "$cfgfile"
36706#! $SHELL
36707
36708# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
36709# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
36710# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
36711# NOTE: Changes made to this file will be lost: look at ltmain.sh.
36712#
36713# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000036714# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
36715# Inc.
cristy73bd4a52010-10-05 11:24:23 +000036716# Written by Gordon Matzigkeit, 1996
36717#
36718# This file is part of GNU Libtool.
36719#
36720# GNU Libtool is free software; you can redistribute it and/or
36721# modify it under the terms of the GNU General Public License as
36722# published by the Free Software Foundation; either version 2 of
36723# the License, or (at your option) any later version.
36724#
36725# As a special exception to the GNU General Public License,
36726# if you distribute this file as part of a program or library that
36727# is built using GNU Libtool, you may include this file under the
36728# same distribution terms that you use for the rest of that program.
36729#
36730# GNU Libtool is distributed in the hope that it will be useful,
36731# but WITHOUT ANY WARRANTY; without even the implied warranty of
36732# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36733# GNU General Public License for more details.
36734#
36735# You should have received a copy of the GNU General Public License
36736# along with GNU Libtool; see the file COPYING. If not, a copy
36737# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
36738# obtained by writing to the Free Software Foundation, Inc.,
36739# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
36740
36741
36742# The names of the tagged configurations supported by this script.
36743available_tags="CXX "
36744
36745# ### BEGIN LIBTOOL CONFIG
36746
36747# A sed program that does not truncate output.
36748SED=$lt_SED
36749
36750# Sed that helps us avoid accidentally triggering echo(1) options like -n.
36751Xsed="\$SED -e 1s/^X//"
36752
36753# A grep program that handles long lines.
36754GREP=$lt_GREP
36755
36756# An ERE matcher.
36757EGREP=$lt_EGREP
36758
36759# A literal string matcher.
36760FGREP=$lt_FGREP
36761
cristy0c60a692010-11-04 01:09:47 +000036762# Shell to use when invoking shell scripts.
36763SHELL=$lt_SHELL
36764
36765# An echo program that protects backslashes.
36766ECHO=$lt_ECHO
36767
cristy73bd4a52010-10-05 11:24:23 +000036768# Which release of libtool.m4 was used?
36769macro_version=$macro_version
36770macro_revision=$macro_revision
36771
36772# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000036773AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000036774
36775# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000036776DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000036777
36778# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000036779OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000036780
36781# Whether or not to build shared libraries.
36782build_libtool_libs=$enable_shared
36783
36784# Whether or not to build static libraries.
36785build_old_libs=$enable_static
36786
36787# What type of objects to build.
36788pic_mode=$pic_mode
36789
36790# Whether or not to optimize for fast installation.
36791fast_install=$enable_fast_install
36792
36793# The host system.
36794host_alias=$host_alias
36795host=$host
36796host_os=$host_os
36797
36798# The build system.
36799build_alias=$build_alias
36800build=$build
36801build_os=$build_os
36802
36803# A BSD- or MS-compatible name lister.
36804NM=$lt_NM
36805
36806# Whether we need soft or hard links.
36807LN_S=$lt_LN_S
36808
36809# What is the maximum length of a command?
36810max_cmd_len=$max_cmd_len
36811
36812# Object file suffix (normally "o").
36813objext=$ac_objext
36814
36815# Executable file suffix (normally "").
36816exeext=$exeext
36817
36818# whether the shell understands "unset".
36819lt_unset=$lt_unset
36820
36821# turn spaces into newlines.
36822SP2NL=$lt_lt_SP2NL
36823
36824# turn newlines into spaces.
36825NL2SP=$lt_lt_NL2SP
36826
cristyda16f162011-02-19 23:52:17 +000036827# convert \$build file names to \$host format.
36828to_host_file_cmd=$lt_cv_to_host_file_cmd
36829
36830# convert \$build files to toolchain format.
36831to_tool_file_cmd=$lt_cv_to_tool_file_cmd
36832
cristy73bd4a52010-10-05 11:24:23 +000036833# Method to check whether dependent libraries are shared objects.
36834deplibs_check_method=$lt_deplibs_check_method
36835
cristyda16f162011-02-19 23:52:17 +000036836# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000036837file_magic_cmd=$lt_file_magic_cmd
36838
cristyda16f162011-02-19 23:52:17 +000036839# How to find potential files when deplibs_check_method = "file_magic".
36840file_magic_glob=$lt_file_magic_glob
36841
36842# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
36843want_nocaseglob=$lt_want_nocaseglob
36844
36845# Command to associate shared and link libraries.
36846sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
36847
cristy73bd4a52010-10-05 11:24:23 +000036848# The archiver.
36849AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000036850
36851# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000036852AR_FLAGS=$lt_AR_FLAGS
36853
cristyda16f162011-02-19 23:52:17 +000036854# How to feed a file listing to the archiver.
36855archiver_list_spec=$lt_archiver_list_spec
36856
cristy73bd4a52010-10-05 11:24:23 +000036857# A symbol stripping program.
36858STRIP=$lt_STRIP
36859
36860# Commands used to install an old-style archive.
36861RANLIB=$lt_RANLIB
36862old_postinstall_cmds=$lt_old_postinstall_cmds
36863old_postuninstall_cmds=$lt_old_postuninstall_cmds
36864
cristy0c60a692010-11-04 01:09:47 +000036865# Whether to use a lock for old archive extraction.
36866lock_old_archive_extraction=$lock_old_archive_extraction
36867
cristy73bd4a52010-10-05 11:24:23 +000036868# A C compiler.
36869LTCC=$lt_CC
36870
36871# LTCC compiler flags.
36872LTCFLAGS=$lt_CFLAGS
36873
36874# Take the output of nm and produce a listing of raw symbols and C names.
36875global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
36876
36877# Transform the output of nm in a proper C declaration.
36878global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
36879
36880# Transform the output of nm in a C name address pair.
36881global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
36882
36883# Transform the output of nm in a C name address pair when lib prefix is needed.
36884global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
36885
cristyda16f162011-02-19 23:52:17 +000036886# Specify filename containing input files for \$NM.
36887nm_file_list_spec=$lt_nm_file_list_spec
36888
36889# The root where to search for dependent libraries,and in which our libraries should be installed.
36890lt_sysroot=$lt_sysroot
36891
cristy73bd4a52010-10-05 11:24:23 +000036892# The name of the directory that contains temporary libtool files.
36893objdir=$objdir
36894
cristy73bd4a52010-10-05 11:24:23 +000036895# Used to examine libraries when file_magic_cmd begins with "file".
36896MAGIC_CMD=$MAGIC_CMD
36897
36898# Must we lock files when doing compilation?
36899need_locks=$lt_need_locks
36900
cristyda16f162011-02-19 23:52:17 +000036901# Manifest tool.
36902MANIFEST_TOOL=$lt_MANIFEST_TOOL
36903
cristy73bd4a52010-10-05 11:24:23 +000036904# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
36905DSYMUTIL=$lt_DSYMUTIL
36906
36907# Tool to change global to local symbols on Mac OS X.
36908NMEDIT=$lt_NMEDIT
36909
36910# Tool to manipulate fat objects and archives on Mac OS X.
36911LIPO=$lt_LIPO
36912
36913# ldd/readelf like tool for Mach-O binaries on Mac OS X.
36914OTOOL=$lt_OTOOL
36915
36916# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
36917OTOOL64=$lt_OTOOL64
36918
36919# Old archive suffix (normally "a").
36920libext=$libext
36921
36922# Shared library suffix (normally ".so").
36923shrext_cmds=$lt_shrext_cmds
36924
36925# The commands to extract the exported symbol list from a shared archive.
36926extract_expsyms_cmds=$lt_extract_expsyms_cmds
36927
36928# Variables whose values should be saved in libtool wrapper scripts and
36929# restored at link time.
36930variables_saved_for_relink=$lt_variables_saved_for_relink
36931
36932# Do we need the "lib" prefix for modules?
36933need_lib_prefix=$need_lib_prefix
36934
36935# Do we need a version for libraries?
36936need_version=$need_version
36937
36938# Library versioning type.
36939version_type=$version_type
36940
36941# Shared library runtime path variable.
36942runpath_var=$runpath_var
36943
36944# Shared library path variable.
36945shlibpath_var=$shlibpath_var
36946
36947# Is shlibpath searched before the hard-coded library search path?
36948shlibpath_overrides_runpath=$shlibpath_overrides_runpath
36949
36950# Format of library name prefix.
36951libname_spec=$lt_libname_spec
36952
36953# List of archive names. First name is the real one, the rest are links.
36954# The last name is the one that the linker finds with -lNAME
36955library_names_spec=$lt_library_names_spec
36956
36957# The coded name of the library, if different from the real name.
36958soname_spec=$lt_soname_spec
36959
cristy0c60a692010-11-04 01:09:47 +000036960# Permission mode override for installation of shared libraries.
36961install_override_mode=$lt_install_override_mode
36962
cristy73bd4a52010-10-05 11:24:23 +000036963# Command to use after installation of a shared archive.
36964postinstall_cmds=$lt_postinstall_cmds
36965
36966# Command to use after uninstallation of a shared archive.
36967postuninstall_cmds=$lt_postuninstall_cmds
36968
36969# Commands used to finish a libtool library installation in a directory.
36970finish_cmds=$lt_finish_cmds
36971
36972# As "finish_cmds", except a single script fragment to be evaled but
36973# not shown.
36974finish_eval=$lt_finish_eval
36975
36976# Whether we should hardcode library paths into libraries.
36977hardcode_into_libs=$hardcode_into_libs
36978
36979# Compile-time system search path for libraries.
36980sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
36981
36982# Run-time system search path for libraries.
36983sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
36984
36985# Whether dlopen is supported.
36986dlopen_support=$enable_dlopen
36987
36988# Whether dlopen of programs is supported.
36989dlopen_self=$enable_dlopen_self
36990
36991# Whether dlopen of statically linked programs is supported.
36992dlopen_self_static=$enable_dlopen_self_static
36993
36994# Commands to strip libraries.
36995old_striplib=$lt_old_striplib
36996striplib=$lt_striplib
36997
36998
36999# The linker used to build libraries.
37000LD=$lt_LD
37001
cristy0c60a692010-11-04 01:09:47 +000037002# How to create reloadable object files.
37003reload_flag=$lt_reload_flag
37004reload_cmds=$lt_reload_cmds
37005
cristy73bd4a52010-10-05 11:24:23 +000037006# Commands used to build an old-style archive.
37007old_archive_cmds=$lt_old_archive_cmds
37008
37009# A language specific compiler.
37010CC=$lt_compiler
37011
37012# Is the compiler the GNU compiler?
37013with_gcc=$GCC
37014
37015# Compiler flag to turn off builtin functions.
37016no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37017
cristy73bd4a52010-10-05 11:24:23 +000037018# Additional compiler flags for building library objects.
37019pic_flag=$lt_lt_prog_compiler_pic
37020
cristyda16f162011-02-19 23:52:17 +000037021# How to pass a linker flag through the compiler.
37022wl=$lt_lt_prog_compiler_wl
37023
cristy73bd4a52010-10-05 11:24:23 +000037024# Compiler flag to prevent dynamic linking.
37025link_static_flag=$lt_lt_prog_compiler_static
37026
37027# Does compiler simultaneously support -c and -o options?
37028compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37029
37030# Whether or not to add -lc for building shared libraries.
37031build_libtool_need_lc=$archive_cmds_need_lc
37032
37033# Whether or not to disallow shared libs when runtime libs are static.
37034allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37035
37036# Compiler flag to allow reflexive dlopens.
37037export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37038
37039# Compiler flag to generate shared objects directly from archives.
37040whole_archive_flag_spec=$lt_whole_archive_flag_spec
37041
37042# Whether the compiler copes with passing no objects directly.
37043compiler_needs_object=$lt_compiler_needs_object
37044
37045# Create an old-style archive from a shared archive.
37046old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37047
37048# Create a temporary old-style archive to link instead of a shared archive.
37049old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37050
37051# Commands used to build a shared archive.
37052archive_cmds=$lt_archive_cmds
37053archive_expsym_cmds=$lt_archive_expsym_cmds
37054
37055# Commands used to build a loadable module if different from building
37056# a shared archive.
37057module_cmds=$lt_module_cmds
37058module_expsym_cmds=$lt_module_expsym_cmds
37059
37060# Whether we are building with GNU ld or not.
37061with_gnu_ld=$lt_with_gnu_ld
37062
37063# Flag that allows shared libraries with undefined symbols to be built.
37064allow_undefined_flag=$lt_allow_undefined_flag
37065
37066# Flag that enforces no undefined symbols.
37067no_undefined_flag=$lt_no_undefined_flag
37068
37069# Flag to hardcode \$libdir into a binary during linking.
37070# This must work even if \$libdir does not exist
37071hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37072
37073# If ld is used when linking, flag to hardcode \$libdir into a binary
37074# during linking. This must work even if \$libdir does not exist.
37075hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
37076
37077# Whether we need a single "-rpath" flag with a separated argument.
37078hardcode_libdir_separator=$lt_hardcode_libdir_separator
37079
37080# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37081# DIR into the resulting binary.
37082hardcode_direct=$hardcode_direct
37083
37084# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37085# DIR into the resulting binary and the resulting library dependency is
37086# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37087# library is relocated.
37088hardcode_direct_absolute=$hardcode_direct_absolute
37089
37090# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37091# into the resulting binary.
37092hardcode_minus_L=$hardcode_minus_L
37093
37094# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37095# into the resulting binary.
37096hardcode_shlibpath_var=$hardcode_shlibpath_var
37097
37098# Set to "yes" if building a shared library automatically hardcodes DIR
37099# into the library and all subsequent libraries and executables linked
37100# against it.
37101hardcode_automatic=$hardcode_automatic
37102
37103# Set to yes if linker adds runtime paths of dependent libraries
37104# to runtime path list.
37105inherit_rpath=$inherit_rpath
37106
37107# Whether libtool must link a program against all its dependency libraries.
37108link_all_deplibs=$link_all_deplibs
37109
cristy73bd4a52010-10-05 11:24:23 +000037110# Set to "yes" if exported symbols are required.
37111always_export_symbols=$always_export_symbols
37112
37113# The commands to list exported symbols.
37114export_symbols_cmds=$lt_export_symbols_cmds
37115
37116# Symbols that should not be listed in the preloaded symbols.
37117exclude_expsyms=$lt_exclude_expsyms
37118
37119# Symbols that must always be exported.
37120include_expsyms=$lt_include_expsyms
37121
37122# Commands necessary for linking programs (against libraries) with templates.
37123prelink_cmds=$lt_prelink_cmds
37124
cristyda16f162011-02-19 23:52:17 +000037125# Commands necessary for finishing linking programs.
37126postlink_cmds=$lt_postlink_cmds
37127
cristy73bd4a52010-10-05 11:24:23 +000037128# Specify filename containing input files.
37129file_list_spec=$lt_file_list_spec
37130
37131# How to hardcode a shared library path into an executable.
37132hardcode_action=$hardcode_action
37133
37134# The directories searched by this compiler when creating a shared library.
37135compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37136
37137# Dependencies to place before and after the objects being linked to
37138# create a shared library.
37139predep_objects=$lt_predep_objects
37140postdep_objects=$lt_postdep_objects
37141predeps=$lt_predeps
37142postdeps=$lt_postdeps
37143
37144# The library search path used internally by the compiler when linking
37145# a shared library.
37146compiler_lib_search_path=$lt_compiler_lib_search_path
37147
37148# ### END LIBTOOL CONFIG
37149
37150_LT_EOF
37151
37152 case $host_os in
37153 aix3*)
37154 cat <<\_LT_EOF >> "$cfgfile"
37155# AIX sometimes has problems with the GCC collect2 program. For some
37156# reason, if we set the COLLECT_NAMES environment variable, the problems
37157# vanish in a puff of smoke.
37158if test "X${COLLECT_NAMES+set}" != Xset; then
37159 COLLECT_NAMES=
37160 export COLLECT_NAMES
37161fi
37162_LT_EOF
37163 ;;
37164 esac
37165
37166
37167ltmain="$ac_aux_dir/ltmain.sh"
37168
37169
37170 # We use sed instead of cat because bash on DJGPP gets confused if
37171 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37172 # text mode, it properly converts lines to CR/LF. This bash problem
37173 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037174 sed '$q' "$ltmain" >> "$cfgfile" \
37175 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037176
cristyda16f162011-02-19 23:52:17 +000037177 if test x"$xsi_shell" = xyes; then
37178 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37179func_dirname ()\
37180{\
37181\ case ${1} in\
37182\ */*) func_dirname_result="${1%/*}${2}" ;;\
37183\ * ) func_dirname_result="${3}" ;;\
37184\ esac\
37185} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37186 && mv -f "$cfgfile.tmp" "$cfgfile" \
37187 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37188test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037189
37190
cristyda16f162011-02-19 23:52:17 +000037191 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37192func_basename ()\
37193{\
37194\ func_basename_result="${1##*/}"\
37195} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37196 && mv -f "$cfgfile.tmp" "$cfgfile" \
37197 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37198test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037199
37200
cristyda16f162011-02-19 23:52:17 +000037201 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37202func_dirname_and_basename ()\
37203{\
37204\ case ${1} in\
37205\ */*) func_dirname_result="${1%/*}${2}" ;;\
37206\ * ) func_dirname_result="${3}" ;;\
37207\ esac\
37208\ func_basename_result="${1##*/}"\
37209} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37210 && mv -f "$cfgfile.tmp" "$cfgfile" \
37211 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37212test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037213
cristyda16f162011-02-19 23:52:17 +000037214
37215 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37216func_stripname ()\
37217{\
37218\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37219\ # positional parameters, so assign one to ordinary parameter first.\
37220\ func_stripname_result=${3}\
37221\ func_stripname_result=${func_stripname_result#"${1}"}\
37222\ func_stripname_result=${func_stripname_result%"${2}"}\
37223} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37224 && mv -f "$cfgfile.tmp" "$cfgfile" \
37225 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37226test 0 -eq $? || _lt_function_replace_fail=:
37227
37228
37229 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37230func_split_long_opt ()\
37231{\
37232\ func_split_long_opt_name=${1%%=*}\
37233\ func_split_long_opt_arg=${1#*=}\
37234} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37235 && mv -f "$cfgfile.tmp" "$cfgfile" \
37236 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37237test 0 -eq $? || _lt_function_replace_fail=:
37238
37239
37240 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37241func_split_short_opt ()\
37242{\
37243\ func_split_short_opt_arg=${1#??}\
37244\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37245} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37246 && mv -f "$cfgfile.tmp" "$cfgfile" \
37247 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37248test 0 -eq $? || _lt_function_replace_fail=:
37249
37250
37251 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37252func_lo2o ()\
37253{\
37254\ case ${1} in\
37255\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37256\ *) func_lo2o_result=${1} ;;\
37257\ esac\
37258} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37259 && mv -f "$cfgfile.tmp" "$cfgfile" \
37260 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37261test 0 -eq $? || _lt_function_replace_fail=:
37262
37263
37264 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37265func_xform ()\
37266{\
37267 func_xform_result=${1%.*}.lo\
37268} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37269 && mv -f "$cfgfile.tmp" "$cfgfile" \
37270 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37271test 0 -eq $? || _lt_function_replace_fail=:
37272
37273
37274 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37275func_arith ()\
37276{\
37277 func_arith_result=$(( $* ))\
37278} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37279 && mv -f "$cfgfile.tmp" "$cfgfile" \
37280 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37281test 0 -eq $? || _lt_function_replace_fail=:
37282
37283
37284 sed -e '/^func_len ()$/,/^} # func_len /c\
37285func_len ()\
37286{\
37287 func_len_result=${#1}\
37288} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37289 && mv -f "$cfgfile.tmp" "$cfgfile" \
37290 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37291test 0 -eq $? || _lt_function_replace_fail=:
37292
37293fi
37294
37295if test x"$lt_shell_append" = xyes; then
37296 sed -e '/^func_append ()$/,/^} # func_append /c\
37297func_append ()\
37298{\
37299 eval "${1}+=\\${2}"\
37300} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37301 && mv -f "$cfgfile.tmp" "$cfgfile" \
37302 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37303test 0 -eq $? || _lt_function_replace_fail=:
37304
37305
37306 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37307func_append_quoted ()\
37308{\
37309\ func_quote_for_eval "${2}"\
37310\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37311} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37312 && mv -f "$cfgfile.tmp" "$cfgfile" \
37313 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37314test 0 -eq $? || _lt_function_replace_fail=:
37315
37316
37317 # Save a `func_append' function call where possible by direct use of '+='
37318 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37319 && mv -f "$cfgfile.tmp" "$cfgfile" \
37320 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37321 test 0 -eq $? || _lt_function_replace_fail=:
37322else
37323 # Save a `func_append' function call even when '+=' is not available
37324 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37325 && mv -f "$cfgfile.tmp" "$cfgfile" \
37326 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37327 test 0 -eq $? || _lt_function_replace_fail=:
37328fi
37329
37330if test x"$_lt_function_replace_fail" = x":"; then
37331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37332$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37333fi
37334
37335
37336 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037337 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37338 chmod +x "$ofile"
37339
37340
37341 cat <<_LT_EOF >> "$ofile"
37342
37343# ### BEGIN LIBTOOL TAG CONFIG: CXX
37344
37345# The linker used to build libraries.
37346LD=$lt_LD_CXX
37347
cristy0c60a692010-11-04 01:09:47 +000037348# How to create reloadable object files.
37349reload_flag=$lt_reload_flag_CXX
37350reload_cmds=$lt_reload_cmds_CXX
37351
cristy73bd4a52010-10-05 11:24:23 +000037352# Commands used to build an old-style archive.
37353old_archive_cmds=$lt_old_archive_cmds_CXX
37354
37355# A language specific compiler.
37356CC=$lt_compiler_CXX
37357
37358# Is the compiler the GNU compiler?
37359with_gcc=$GCC_CXX
37360
37361# Compiler flag to turn off builtin functions.
37362no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37363
cristy73bd4a52010-10-05 11:24:23 +000037364# Additional compiler flags for building library objects.
37365pic_flag=$lt_lt_prog_compiler_pic_CXX
37366
cristyda16f162011-02-19 23:52:17 +000037367# How to pass a linker flag through the compiler.
37368wl=$lt_lt_prog_compiler_wl_CXX
37369
cristy73bd4a52010-10-05 11:24:23 +000037370# Compiler flag to prevent dynamic linking.
37371link_static_flag=$lt_lt_prog_compiler_static_CXX
37372
37373# Does compiler simultaneously support -c and -o options?
37374compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37375
37376# Whether or not to add -lc for building shared libraries.
37377build_libtool_need_lc=$archive_cmds_need_lc_CXX
37378
37379# Whether or not to disallow shared libs when runtime libs are static.
37380allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37381
37382# Compiler flag to allow reflexive dlopens.
37383export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37384
37385# Compiler flag to generate shared objects directly from archives.
37386whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37387
37388# Whether the compiler copes with passing no objects directly.
37389compiler_needs_object=$lt_compiler_needs_object_CXX
37390
37391# Create an old-style archive from a shared archive.
37392old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37393
37394# Create a temporary old-style archive to link instead of a shared archive.
37395old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37396
37397# Commands used to build a shared archive.
37398archive_cmds=$lt_archive_cmds_CXX
37399archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37400
37401# Commands used to build a loadable module if different from building
37402# a shared archive.
37403module_cmds=$lt_module_cmds_CXX
37404module_expsym_cmds=$lt_module_expsym_cmds_CXX
37405
37406# Whether we are building with GNU ld or not.
37407with_gnu_ld=$lt_with_gnu_ld_CXX
37408
37409# Flag that allows shared libraries with undefined symbols to be built.
37410allow_undefined_flag=$lt_allow_undefined_flag_CXX
37411
37412# Flag that enforces no undefined symbols.
37413no_undefined_flag=$lt_no_undefined_flag_CXX
37414
37415# Flag to hardcode \$libdir into a binary during linking.
37416# This must work even if \$libdir does not exist
37417hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37418
37419# If ld is used when linking, flag to hardcode \$libdir into a binary
37420# during linking. This must work even if \$libdir does not exist.
37421hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37422
37423# Whether we need a single "-rpath" flag with a separated argument.
37424hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37425
37426# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37427# DIR into the resulting binary.
37428hardcode_direct=$hardcode_direct_CXX
37429
37430# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37431# DIR into the resulting binary and the resulting library dependency is
37432# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37433# library is relocated.
37434hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37435
37436# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37437# into the resulting binary.
37438hardcode_minus_L=$hardcode_minus_L_CXX
37439
37440# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37441# into the resulting binary.
37442hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37443
37444# Set to "yes" if building a shared library automatically hardcodes DIR
37445# into the library and all subsequent libraries and executables linked
37446# against it.
37447hardcode_automatic=$hardcode_automatic_CXX
37448
37449# Set to yes if linker adds runtime paths of dependent libraries
37450# to runtime path list.
37451inherit_rpath=$inherit_rpath_CXX
37452
37453# Whether libtool must link a program against all its dependency libraries.
37454link_all_deplibs=$link_all_deplibs_CXX
37455
cristy73bd4a52010-10-05 11:24:23 +000037456# Set to "yes" if exported symbols are required.
37457always_export_symbols=$always_export_symbols_CXX
37458
37459# The commands to list exported symbols.
37460export_symbols_cmds=$lt_export_symbols_cmds_CXX
37461
37462# Symbols that should not be listed in the preloaded symbols.
37463exclude_expsyms=$lt_exclude_expsyms_CXX
37464
37465# Symbols that must always be exported.
37466include_expsyms=$lt_include_expsyms_CXX
37467
37468# Commands necessary for linking programs (against libraries) with templates.
37469prelink_cmds=$lt_prelink_cmds_CXX
37470
cristyda16f162011-02-19 23:52:17 +000037471# Commands necessary for finishing linking programs.
37472postlink_cmds=$lt_postlink_cmds_CXX
37473
cristy73bd4a52010-10-05 11:24:23 +000037474# Specify filename containing input files.
37475file_list_spec=$lt_file_list_spec_CXX
37476
37477# How to hardcode a shared library path into an executable.
37478hardcode_action=$hardcode_action_CXX
37479
37480# The directories searched by this compiler when creating a shared library.
37481compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
37482
37483# Dependencies to place before and after the objects being linked to
37484# create a shared library.
37485predep_objects=$lt_predep_objects_CXX
37486postdep_objects=$lt_postdep_objects_CXX
37487predeps=$lt_predeps_CXX
37488postdeps=$lt_postdeps_CXX
37489
37490# The library search path used internally by the compiler when linking
37491# a shared library.
37492compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
37493
37494# ### END LIBTOOL TAG CONFIG: CXX
37495_LT_EOF
37496
37497 ;;
cristy4c08aed2011-07-01 19:47:50 +000037498 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000037499 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000037500 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
37501 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
37502
37503 esac
37504done # for ac_tag
37505
37506
cristy8b350f62009-11-15 23:12:43 +000037507as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000037508_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000037509ac_clean_files=$ac_clean_files_save
37510
37511test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000037512 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037513
37514
37515# configure is writing to config.log, and then calls config.status.
37516# config.status does its own redirection, appending to config.log.
37517# Unfortunately, on DOS this fails, as config.log is still kept open
37518# by configure, so config.status won't be able to write to it; its
37519# output is simply discarded. So we exec the FD to /dev/null,
37520# effectively closing config.log, so it can be properly (re)opened and
37521# appended to by config.status. When coming back to configure, we
37522# need to make the FD available again.
37523if test "$no_create" != yes; then
37524 ac_cs_success=:
37525 ac_config_status_args=
37526 test "$silent" = yes &&
37527 ac_config_status_args="$ac_config_status_args --quiet"
37528 exec 5>/dev/null
37529 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37530 exec 5>>config.log
37531 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37532 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000037533 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000037534fi
37535if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000037536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000037537$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
37538fi
37539
37540
37541rm -f magick-version
37542
cristy430a7312010-01-21 20:44:04 +000037543result_dejavu_font_dir='none'
37544if test "${dejavu_font_dir}x" != 'x'; then
37545 result_dejavu_font_dir=$dejavu_font_dir
37546fi
37547
cristy3ed852e2009-09-05 21:47:34 +000037548result_ghostscript_font_dir='none'
37549if test "${ghostscript_font_dir}x" != 'x'; then
37550 result_ghostscript_font_dir=$ghostscript_font_dir
37551fi
37552
37553result_windows_font_dir='none'
37554if test "${windows_font_dir}x" != 'x'; then
37555 result_windows_font_dir=${windows_font_dir}
37556fi
37557
cristy8b350f62009-11-15 23:12:43 +000037558{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000037559ImageMagick is configured as follows. Please verify that this configuration
37560matches your expectations.
37561
37562Host system type: $host
37563Build system type: $build
37564
37565 Option Value
37566-------------------------------------------------------------------------------
37567Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37568Static libraries --enable-static=$enable_static $libtool_build_static_libs
37569Module support --with-modules=$with_modules $with_modules
37570GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37571Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37572High Dynamic Range Imagery
37573 --enable-hdri=$enable_hdri $enable_hdri
37574
37575Delegate Configuration:
37576BZLIB --with-bzlib=$with_bzlib $have_bzlib
37577Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000037578Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000037579DJVU --with-djvu=$with_djvu $have_djvu
37580DPS --with-dps=$with_dps $have_dps
37581FFTW --with-fftw=$with_fftw $have_fftw
37582FlashPIX --with-fpx=$with_fpx $have_fpx
37583FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37584FreeType --with-freetype=$with_freetype $have_freetype
37585GhostPCL None $PCLDelegate ($PCLVersion)
37586GhostXPS None $XPSDelegate ($XPSVersion)
37587Ghostscript None $PSDelegate ($GSVersion)
37588Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37589Ghostscript lib --with-gslib=$with_gslib $have_gslib
37590Graphviz --with-gvc=$with_gvc $have_gvc
37591JBIG --with-jbig=$with_jbig $have_jbig
37592JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37593JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000037594LCMS v1 --with-lcms=$with_lcms $have_lcms
37595LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000037596LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000037597LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000037598Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37599OpenEXR --with-openexr=$with_openexr $have_openexr
37600PERL --with-perl=$with_perl $have_perl
37601PNG --with-png=$with_png $have_png
37602RSVG --with-rsvg=$with_rsvg $have_rsvg
37603TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000037604WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000037605Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
37606WMF --with-wmf=$with_wmf $have_wmf
37607X11 --with-x=$with_x $have_x
37608XML --with-xml=$with_xml $have_xml
37609ZLIB --with-zlib=$with_zlib $have_zlib
37610
37611X11 Configuration:
37612 X_CFLAGS = $X_CFLAGS
37613 X_PRE_LIBS = $X_PRE_LIBS
37614 X_LIBS = $X_LIBS
37615 X_EXTRA_LIBS = $X_EXTRA_LIBS
37616
37617Options used to compile and link:
37618 PREFIX = $PREFIX_DIR
37619 EXEC-PREFIX = $EXEC_PREFIX_DIR
37620 VERSION = $PACKAGE_VERSION
37621 CC = $CC
37622 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000037623 CPPFLAGS = $MAGICK_CPPFLAGS
37624 PCFLAGS = $MAGICK_PCFLAGS
37625 DEFS = $DEFS
37626 LDFLAGS = $LDFLAGS
37627 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37628 LIBS = $MAGICK_LIBS
37629 CXX = $CXX
37630 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000037631 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000037632" >&5
37633$as_echo "
37634ImageMagick is configured as follows. Please verify that this configuration
37635matches your expectations.
37636
37637Host system type: $host
37638Build system type: $build
37639
37640 Option Value
37641-------------------------------------------------------------------------------
37642Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37643Static libraries --enable-static=$enable_static $libtool_build_static_libs
37644Module support --with-modules=$with_modules $with_modules
37645GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37646Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37647High Dynamic Range Imagery
37648 --enable-hdri=$enable_hdri $enable_hdri
37649
37650Delegate Configuration:
37651BZLIB --with-bzlib=$with_bzlib $have_bzlib
37652Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000037653Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000037654DJVU --with-djvu=$with_djvu $have_djvu
37655DPS --with-dps=$with_dps $have_dps
37656FFTW --with-fftw=$with_fftw $have_fftw
37657FlashPIX --with-fpx=$with_fpx $have_fpx
37658FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37659FreeType --with-freetype=$with_freetype $have_freetype
37660GhostPCL None $PCLDelegate ($PCLVersion)
37661GhostXPS None $XPSDelegate ($XPSVersion)
37662Ghostscript None $PSDelegate ($GSVersion)
37663Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37664Ghostscript lib --with-gslib=$with_gslib $have_gslib
37665Graphviz --with-gvc=$with_gvc $have_gvc
37666JBIG --with-jbig=$with_jbig $have_jbig
37667JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37668JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000037669LCMS v1 --with-lcms=$with_lcms $have_lcms
37670LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000037671LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000037672LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000037673Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37674OpenEXR --with-openexr=$with_openexr $have_openexr
37675PERL --with-perl=$with_perl $have_perl
37676PNG --with-png=$with_png $have_png
37677RSVG --with-rsvg=$with_rsvg $have_rsvg
37678TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000037679WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000037680Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
37681WMF --with-wmf=$with_wmf $have_wmf
37682X11 --with-x=$with_x $have_x
37683XML --with-xml=$with_xml $have_xml
37684ZLIB --with-zlib=$with_zlib $have_zlib
37685
37686X11 Configuration:
37687 X_CFLAGS = $X_CFLAGS
37688 X_PRE_LIBS = $X_PRE_LIBS
37689 X_LIBS = $X_LIBS
37690 X_EXTRA_LIBS = $X_EXTRA_LIBS
37691
37692Options used to compile and link:
37693 PREFIX = $PREFIX_DIR
37694 EXEC-PREFIX = $EXEC_PREFIX_DIR
37695 VERSION = $PACKAGE_VERSION
37696 CC = $CC
37697 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000037698 CPPFLAGS = $MAGICK_CPPFLAGS
37699 PCFLAGS = $MAGICK_PCFLAGS
37700 DEFS = $DEFS
37701 LDFLAGS = $LDFLAGS
37702 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37703 LIBS = $MAGICK_LIBS
37704 CXX = $CXX
37705 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000037706 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000037707" >&6; }