blob: 86bb0d317a700867bcc0af3d728151fbd3c69880 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy45dbd322011-03-27 16:40:38 +00003# Generated by GNU Autoconf 2.68 for ImageMagick 6.6.9.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristy98dddb52010-11-04 00:30:15 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +000011#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000094as_myself=
cristy8b350f62009-11-15 23:12:43 +000095case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000096 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
cristy3ed852e2009-09-05 21:47:34 +0000104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000115 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000116fi
117
cristy8b350f62009-11-15 23:12:43 +0000118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
cristy8b350f62009-11-15 23:12:43 +0000136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000177test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188else
189 as_have_required=no
190fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211fi
212fi
213 done;;
214 esac
215 as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
cristyda16f162011-02-19 23:52:17 +0000228 # Preserve -v and -x to the replacement shell.
cristy8b350f62009-11-15 23:12:43 +0000229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
cristyda16f162011-02-19 23:52:17 +0000233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
cristy8b350f62009-11-15 23:12:43 +0000240fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: http://www.imagemagick.org about your system, including
251$0: any error possibly output before this message. Then
252$0: install a modern shell, or manually run the script
253$0: under such a shell if you do have one."
254 fi
255 exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273 { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282 return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290 set +e
291 as_fn_set_status $1
292 exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375fi # as_fn_arith
376
377
cristy98dddb52010-11-04 00:30:15 +0000378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000382# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000383as_fn_error ()
384{
cristy98dddb52010-11-04 00:30:15 +0000385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000389 fi
cristy98dddb52010-11-04 00:30:15 +0000390 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000391 as_fn_exit $as_status
392} # as_fn_error
393
cristy3ed852e2009-09-05 21:47:34 +0000394if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397else
398 as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403else
404 as_basename=false
405fi
406
cristy8b350f62009-11-15 23:12:43 +0000407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409else
410 as_dirname=false
411fi
cristy3ed852e2009-09-05 21:47:34 +0000412
cristy3ed852e2009-09-05 21:47:34 +0000413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
cristy8b350f62009-11-15 23:12:43 +0000432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000438
439
cristy8b350f62009-11-15 23:12:43 +0000440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469}
470
cristy3ed852e2009-09-05 21:47:34 +0000471ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000472case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000473-n*)
cristy8b350f62009-11-15 23:12:43 +0000474 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000479 esac;;
480*)
481 ECHO_N='-n';;
482esac
cristy3ed852e2009-09-05 21:47:34 +0000483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505else
506 as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000512 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000513else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
cristy8b350f62009-11-15 23:12:43 +0000531 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000532 -*)set "./$1";;
533 esac;
cristy8b350f62009-11-15 23:12:43 +0000534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
cristy73bd4a52010-10-05 11:24:23 +0000547SHELL=${CONFIG_SHELL-/bin/sh}
548
cristy73bd4a52010-10-05 11:24:23 +0000549lt_ltdl_dir='ltdl'
550
551lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
552
cristy0c60a692010-11-04 01:09:47 +0000553
cristycd4c5312009-11-22 01:19:08 +0000554test -n "$DJDIR" || exec 7<&0 </dev/null
555exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000556
557# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000558# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000573
574# Identity of this package.
575PACKAGE_NAME='ImageMagick'
cristy45dbd322011-03-27 16:40:38 +0000576PACKAGE_TARNAME='ImageMagick-6.6.9'
577PACKAGE_VERSION='6.6.9'
578PACKAGE_STRING='ImageMagick 6.6.9'
cristy3ed852e2009-09-05 21:47:34 +0000579PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000580PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000581
582ac_unique_file="magick/MagickCore.h"
583ac_config_libobj_dir=ltdl
584# Factoring default headers for most tests.
585ac_includes_default="\
586#include <stdio.h>
587#ifdef HAVE_SYS_TYPES_H
588# include <sys/types.h>
589#endif
590#ifdef HAVE_SYS_STAT_H
591# include <sys/stat.h>
592#endif
593#ifdef STDC_HEADERS
594# include <stdlib.h>
595# include <stddef.h>
596#else
597# ifdef HAVE_STDLIB_H
598# include <stdlib.h>
599# endif
600#endif
601#ifdef HAVE_STRING_H
602# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603# include <memory.h>
604# endif
605# include <string.h>
606#endif
607#ifdef HAVE_STRINGS_H
608# include <strings.h>
609#endif
610#ifdef HAVE_INTTYPES_H
611# include <inttypes.h>
612#endif
613#ifdef HAVE_STDINT_H
614# include <stdint.h>
615#endif
616#ifdef HAVE_UNISTD_H
617# include <unistd.h>
618#endif"
619
cristycd4c5312009-11-22 01:19:08 +0000620ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000621ac_subst_vars='ltdl_LTLIBOBJS
622ltdl_LIBOBJS
623am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000626MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000627MAGICK_LIBS
628MAGICK_LDFLAGS
629MAGICK_PCFLAGS
630MAGICK_CPPFLAGS
631MAGICK_CXXFLAGS
632MAGICK_CFLAGS
633MAGICK_DEP_LIBS
634MAGICK_LTDLDEPS
635MAGICK_LIBLTDL
636OSX_GCOV_LDFLAG
637DELEGATES
638MAGICKCORE_PATH
639PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000640WITH_PERL_DYNAMIC_FALSE
641WITH_PERL_DYNAMIC_TRUE
642WITH_PERL_STATIC_FALSE
643WITH_PERL_STATIC_TRUE
644WITH_PERL_FALSE
645WITH_PERL_TRUE
646PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000647GSVersion
648GSPSDevice
649GSPDFDevice
650GSMonoDevice
651GSEPSDevice
652GSColorDevice
653GSCMYKDevice
654GSAlphaDevice
655XPSVersion
656XPSCMYKDevice
657XPSColorDevice
658XPSMonoDevice
659PCLVersion
660PCLCMYKDevice
661PCLColorDevice
662PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000663ZIP_DELEGATE_FALSE
664ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000665ZIP
cristy73bd4a52010-10-05 11:24:23 +0000666P7ZIP_DELEGATE_FALSE
667P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000668P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000669RPM_DELEGATE_FALSE
670RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000671RPM
672PERL
673TAR
674ShowImageDelegate
675type_include_files
676ghostscript_font_dir
677windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000678dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000679PrintDelegate
680ZipDelegate
681XPSDelegate
682WWWDecodeDelegate
683WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000684UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000685TXTDelegate
686SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000687RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000688RMDelegate
689RLEEncodeDelegate
690PSDelegate
691POVDelegate
692PGPDecodeDelegate
693PCLDelegate
694MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000695MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696MPEGEncodeDelegate
697MPEGDecodeDelegate
698MANDelegate
699LaunchDelegate
700LZWEncodeDelegate
701LZWDecodeDelegate
702LPRDelegate
703LPDelegate
704ILBMEncodeDelegate
705ILBMDecodeDelegate
706HTMLDecodeDelegate
707HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708GnuplotDecodeDelegate
709MogrifyDelegate
710DisplayDelegate
711ConvertDelegate
712FIGDecodeDelegate
713EditorDelegate
714EchoDelegate
715DVIDecodeDelegate
716GVCDecodeDelegate
717DNGDecodeDelegate
718CatDelegate
719CGMDecodeDelegate
720BrowseDelegate
721BZIPDelegate
722BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000723AutotraceDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000724SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000725CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000726DOCUMENTATION_PATH
727FILTER_PATH
728CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000729LIBRARY_PATH
730EXECUTABLE_PATH
731PERLMAINCC
732XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000733XML_DELEGATE_FALSE
734XML_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000735xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000736WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000737WMF_DELEGATE_FALSE
738WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000739WEBP_LIBS
740WEBP_DELEGATE_FALSE
741WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000742TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000743TIFF_DELEGATE_FALSE
744TIFF_DELEGATE_TRUE
745CAIRO_DELEGATE_FALSE
746CAIRO_DELEGATE_TRUE
747RSVG_DELEGATE_FALSE
748RSVG_DELEGATE_TRUE
749CAIRO_SVG_LIBS
750CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000751RSVG_LIBS
752RSVG_CFLAGS
753PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000754PNG_DELEGATE_FALSE
755PNG_DELEGATE_TRUE
756OPENEXR_DELEGATE_FALSE
757OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000758OPENEXR_LIBS
759OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000760LZMA_LIBS
761LZMA_DELEGATE_FALSE
762LZMA_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000763LQR_DELEGATE_FALSE
764LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000765LQR_LIBS
766LQR_CFLAGS
767LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000768LCMS_DELEGATE_FALSE
769LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000770JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000771JP2_DELEGATE_FALSE
772JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000773JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000774JPEG_DELEGATE_FALSE
775JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000776JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777JBIG_DELEGATE_FALSE
778JBIG_DELEGATE_TRUE
779GVC_DELEGATE_FALSE
780GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000781GVC_LIBS
782GVC_CFLAGS
783GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000784GS_DELEGATE_FALSE
785GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000786FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000787FREETYPE_DELEGATE_FALSE
788FREETYPE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000789freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000790FONTCONFIG_DELEGATE_FALSE
791FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000792FONTCONFIG_LIBS
793FONTCONFIG_CFLAGS
794FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000795FPX_DELEGATE_FALSE
796FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000797FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000798FFTW_DELEGATE_FALSE
799FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000801DJVU_DELEGATE_FALSE
802DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804DPS_DELEGATE_FALSE
805DPS_DELEGATE_TRUE
806AUTOTRACE_DELEGATE_FALSE
807AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000808AUTOTRACE_LIBS
809AUTOTRACE_CFLAGS
810LIB_DL
811ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000812ZLIB_DELEGATE_FALSE
813ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000814XEXT_LIBS
815X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000816X11_DELEGATE_FALSE
817X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000818X_EXTRA_LIBS
819X_LIBS
820X_PRE_LIBS
821X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000822XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000823BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824BZLIB_DELEGATE_FALSE
825BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000826CCMALLOCDelegate
827UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000828HasUMEM_FALSE
829HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000830THREAD_LIBS
831GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000832WITH_MAGICK_PLUS_PLUS_FALSE
833WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000834OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000835MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000836POW_LIB
837LIBOBJS
838UINTPTR_T
839UINTMAX_T
840UINT64_T
841INT64_T
842UINT32_T
843INT32_T
844UINT16_T
845INT16_T
846UINT8_T
847INT8_T
848LIBRARY_EXTRA_CPPFLAGS
849MODULE_EXTRA_CPPFLAGS
850LIBSTDCLDFLAGS
851PERL_MAKE_OPTIONS
852QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000853MAINT
854MAINTAINER_MODE_FALSE
855MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000856MAGICK_HDRI
857DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000858WITH_LTDL_FALSE
859WITH_LTDL_TRUE
860WITH_MODULES_FALSE
861WITH_MODULES_TRUE
862WITH_SHARED_LIBS_FALSE
863WITH_SHARED_LIBS_TRUE
864LTDLOPEN
865LT_CONFIG_H
866CONVENIENCE_LTDL_FALSE
867CONVENIENCE_LTDL_TRUE
868INSTALL_LTDL_FALSE
869INSTALL_LTDL_TRUE
870ARGZ_H
871sys_symbol_underscore
872LIBADD_DL
873LT_DLPREOPEN
874LIBADD_DLD_LINK
875LIBADD_SHL_LOAD
876LIBADD_DLOPEN
877LT_DLLOADERS
878INCLTDL
879LTDLINCL
880LTDLDEPS
881LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000882LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000883CXXCPP
884OTOOL64
885OTOOL
886LIPO
887NMEDIT
888DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000889MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000890RANLIB
cristyda16f162011-02-19 23:52:17 +0000891ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000892AR
893NM
894ac_ct_DUMPBIN
895DUMPBIN
896LIBTOOL
897OBJDUMP
898DLLTOOL
899AS
cristy3ed852e2009-09-05 21:47:34 +0000900LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000901CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000902CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000903OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000904PTHREAD_CFLAGS
905PTHREAD_LIBS
906PTHREAD_CC
907ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000908WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000909USING_CL_FALSE
910USING_CL_TRUE
911CYGWIN_BUILD_FALSE
912CYGWIN_BUILD_TRUE
913WIN32_NATIVE_BUILD_FALSE
914WIN32_NATIVE_BUILD_TRUE
915WINGDI32_DELEGATE_FALSE
916WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000917GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000918PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000919LN_S
cristy3ed852e2009-09-05 21:47:34 +0000920LD
cristy73bd4a52010-10-05 11:24:23 +0000921FGREP
922SED
923am__fastdepCXX_FALSE
924am__fastdepCXX_TRUE
925CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000926ac_ct_CXX
927CXXFLAGS
928CXX
cristya0b81c32010-01-22 02:54:33 +0000929EGREP
930GREP
931CPP
cristy73bd4a52010-10-05 11:24:23 +0000932am__fastdepCC_FALSE
933am__fastdepCC_TRUE
934CCDEPMODE
935AMDEPBACKSLASH
936AMDEP_FALSE
937AMDEP_TRUE
938am__quote
939am__include
940DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000941OBJEXT
942EXEEXT
943ac_ct_CC
944CPPFLAGS
945LDFLAGS
946CFLAGS
947CC
948DIRSEP
949MAGICK_FILTER_MODULE_PATH
950MAGICK_CONFIGURE_BUILD_PATH
951MAGICK_CONFIGURE_SRC_PATH
952MAGICK_CODER_MODULE_PATH
953MAN_DIR
954INFO_DIR
955PERSISTINCLUDE_DIR
956INCLUDE_DIR
957LIB_DIR
958LOCALSTATE_DIR
959SHAREDSTATE_DIR
960SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000961DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000962DATA_DIR
963LIBEXEC_DIR
964SBIN_DIR
965BIN_DIR
966EXEC_PREFIX_DIR
967PREFIX_DIR
968CONFIG_STATUS_DEPENDENCIES
969MAGICK_LIB_VERSION_NUMBER
970MAGICK_LIB_VERSION_TEXT
971MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000972AM_BACKSLASH
973AM_DEFAULT_VERBOSITY
974am__untar
975am__tar
976AMTAR
977am__leading_dot
978SET_MAKE
979AWK
980mkdir_p
981MKDIR_P
982INSTALL_STRIP_PROGRAM
983STRIP
984install_sh
985MAKEINFO
986AUTOHEADER
987AUTOMAKE
988AUTOCONF
989ACLOCAL
990VERSION
991PACKAGE
992CYGPATH_W
993am__isrc
994INSTALL_DATA
995INSTALL_SCRIPT
996INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +0000997PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +0000998PACKAGE_RELEASE_DATE
999PACKAGE_LIB_VERSION_NUMBER
1000PACKAGE_LIB_VERSION
1001PACKAGE_CHANGE_DATE
1002PACKAGE_RELEASE
cristyd694ca32011-03-27 21:42:54 +00001003MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001004MAGICK_LIBRARY_VERSION_INFO
1005MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001006MAGICK_LIBRARY_AGE
1007MAGICK_LIBRARY_REVISION
1008MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001009MAGICK_TARGET_OS
1010MAGICK_TARGET_VENDOR
1011MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001012target_os
1013target_vendor
1014target_cpu
1015target
1016host_os
1017host_vendor
1018host_cpu
1019host
1020build_os
1021build_vendor
1022build_cpu
1023build
1024CONFIGURE_ARGS
1025DISTCHECK_CONFIG_FLAGS
1026target_alias
1027host_alias
1028build_alias
1029LIBS
1030ECHO_T
1031ECHO_N
1032ECHO_C
1033DEFS
1034mandir
1035localedir
1036libdir
1037psdir
1038pdfdir
1039dvidir
1040htmldir
1041infodir
1042docdir
1043oldincludedir
1044includedir
1045localstatedir
1046sharedstatedir
1047sysconfdir
1048datadir
1049datarootdir
1050libexecdir
1051sbindir
1052bindir
1053program_transform_name
1054prefix
1055exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001056PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001057PACKAGE_BUGREPORT
1058PACKAGE_STRING
1059PACKAGE_VERSION
1060PACKAGE_TARNAME
1061PACKAGE_NAME
1062PATH_SEPARATOR
1063SHELL'
1064ac_subst_files=''
1065ac_user_opts='
1066enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001067enable_silent_rules
1068enable_dependency_tracking
1069with_gnu_ld
1070with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001071enable_bounds_checking
1072enable_osx_universal_binary
1073with_threads
1074enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001075enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001076enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001077enable_shared
1078enable_static
1079with_pic
1080enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001081with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001082enable_libtool_lock
1083with_included_ltdl
1084with_ltdl_include
1085with_ltdl_lib
1086enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001087with_modules
1088enable_delegate_build
1089enable_deprecated
1090enable_installed
1091enable_cipher
1092enable_embeddable
1093enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001094enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001095enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001096enable_ccmalloc
1097enable_efence
1098enable_prof
1099enable_gprof
1100enable_gcov
1101with_method_prefix
1102with_quantum_depth
1103with_cache
1104with_frozenpaths
1105with_magick_plus_plus
1106with_perl
1107with_perl_options
1108with_umem
1109with_libstdc
1110with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001111with_x
cristy3ed852e2009-09-05 21:47:34 +00001112with_zlib
1113with_autotrace
1114with_dps
1115with_djvu
cristy430a7312010-01-21 20:44:04 +00001116with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001117with_fftw
1118with_fpx
1119with_fontconfig
1120with_freetype
1121with_gslib
1122with_fontpath
1123with_gs_font_dir
1124with_gvc
1125with_jbig
1126with_jpeg
1127with_jp2
1128with_lcms
cristy71203402010-06-18 13:12:03 +00001129with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001130with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001131with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001132with_openexr
1133with_png
1134with_rsvg
1135with_tiff
cristyb1860752011-03-14 00:27:46 +00001136with_webp
cristy3ed852e2009-09-05 21:47:34 +00001137with_windows_font_dir
1138with_wmf
1139with_xml
1140'
1141 ac_precious_vars='build_alias
1142host_alias
1143target_alias
1144CC
1145CFLAGS
1146LDFLAGS
1147LIBS
1148CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001149CPP
cristy3ed852e2009-09-05 21:47:34 +00001150CXX
1151CXXFLAGS
1152CCC
cristy73bd4a52010-10-05 11:24:23 +00001153PKG_CONFIG
1154CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001155XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001156AUTOTRACE_CFLAGS
1157AUTOTRACE_LIBS
1158FONTCONFIG_CFLAGS
1159FONTCONFIG_LIBS
1160GVC_CFLAGS
1161GVC_LIBS
1162LQR_CFLAGS
1163LQR_LIBS
1164OPENEXR_CFLAGS
1165OPENEXR_LIBS
1166RSVG_CFLAGS
1167RSVG_LIBS
1168CAIRO_SVG_CFLAGS
1169CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001170
1171
1172# Initialize some variables set by options.
1173ac_init_help=
1174ac_init_version=false
1175ac_unrecognized_opts=
1176ac_unrecognized_sep=
1177# The variables have the same names as the options, with
1178# dashes changed to underlines.
1179cache_file=/dev/null
1180exec_prefix=NONE
1181no_create=
1182no_recursion=
1183prefix=NONE
1184program_prefix=NONE
1185program_suffix=NONE
1186program_transform_name=s,x,x,
1187silent=
1188site=
1189srcdir=
1190verbose=
1191x_includes=NONE
1192x_libraries=NONE
1193
1194# Installation directory options.
1195# These are left unexpanded so users can "make install exec_prefix=/foo"
1196# and all the variables that are supposed to be based on exec_prefix
1197# by default will actually change.
1198# Use braces instead of parens because sh, perl, etc. also accept them.
1199# (The list follows the same order as the GNU Coding Standards.)
1200bindir='${exec_prefix}/bin'
1201sbindir='${exec_prefix}/sbin'
1202libexecdir='${exec_prefix}/libexec'
1203datarootdir='${prefix}/share'
1204datadir='${datarootdir}'
1205sysconfdir='${prefix}/etc'
1206sharedstatedir='${prefix}/com'
1207localstatedir='${prefix}/var'
1208includedir='${prefix}/include'
1209oldincludedir='/usr/include'
1210docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1211infodir='${datarootdir}/info'
1212htmldir='${docdir}'
1213dvidir='${docdir}'
1214pdfdir='${docdir}'
1215psdir='${docdir}'
1216libdir='${exec_prefix}/lib'
1217localedir='${datarootdir}/locale'
1218mandir='${datarootdir}/man'
1219
1220ac_prev=
1221ac_dashdash=
1222for ac_option
1223do
1224 # If the previous option needs an argument, assign it.
1225 if test -n "$ac_prev"; then
1226 eval $ac_prev=\$ac_option
1227 ac_prev=
1228 continue
1229 fi
1230
1231 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001232 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1233 *=) ac_optarg= ;;
1234 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001235 esac
1236
1237 # Accept the important Cygnus configure options, so we can diagnose typos.
1238
1239 case $ac_dashdash$ac_option in
1240 --)
1241 ac_dashdash=yes ;;
1242
1243 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1244 ac_prev=bindir ;;
1245 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1246 bindir=$ac_optarg ;;
1247
1248 -build | --build | --buil | --bui | --bu)
1249 ac_prev=build_alias ;;
1250 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1251 build_alias=$ac_optarg ;;
1252
1253 -cache-file | --cache-file | --cache-fil | --cache-fi \
1254 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1255 ac_prev=cache_file ;;
1256 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1257 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1258 cache_file=$ac_optarg ;;
1259
1260 --config-cache | -C)
1261 cache_file=config.cache ;;
1262
1263 -datadir | --datadir | --datadi | --datad)
1264 ac_prev=datadir ;;
1265 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1266 datadir=$ac_optarg ;;
1267
1268 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1269 | --dataroo | --dataro | --datar)
1270 ac_prev=datarootdir ;;
1271 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1272 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1273 datarootdir=$ac_optarg ;;
1274
1275 -disable-* | --disable-*)
1276 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001279 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1283 *"
1284"enable_$ac_useropt"
1285"*) ;;
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1288 esac
1289 eval enable_$ac_useropt=no ;;
1290
1291 -docdir | --docdir | --docdi | --doc | --do)
1292 ac_prev=docdir ;;
1293 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1294 docdir=$ac_optarg ;;
1295
1296 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1297 ac_prev=dvidir ;;
1298 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1299 dvidir=$ac_optarg ;;
1300
1301 -enable-* | --enable-*)
1302 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001305 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1309 *"
1310"enable_$ac_useropt"
1311"*) ;;
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1314 esac
1315 eval enable_$ac_useropt=\$ac_optarg ;;
1316
1317 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1318 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1319 | --exec | --exe | --ex)
1320 ac_prev=exec_prefix ;;
1321 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1322 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1323 | --exec=* | --exe=* | --ex=*)
1324 exec_prefix=$ac_optarg ;;
1325
1326 -gas | --gas | --ga | --g)
1327 # Obsolete; use --with-gas.
1328 with_gas=yes ;;
1329
1330 -help | --help | --hel | --he | -h)
1331 ac_init_help=long ;;
1332 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1333 ac_init_help=recursive ;;
1334 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1335 ac_init_help=short ;;
1336
1337 -host | --host | --hos | --ho)
1338 ac_prev=host_alias ;;
1339 -host=* | --host=* | --hos=* | --ho=*)
1340 host_alias=$ac_optarg ;;
1341
1342 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1343 ac_prev=htmldir ;;
1344 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1345 | --ht=*)
1346 htmldir=$ac_optarg ;;
1347
1348 -includedir | --includedir | --includedi | --included | --include \
1349 | --includ | --inclu | --incl | --inc)
1350 ac_prev=includedir ;;
1351 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1352 | --includ=* | --inclu=* | --incl=* | --inc=*)
1353 includedir=$ac_optarg ;;
1354
1355 -infodir | --infodir | --infodi | --infod | --info | --inf)
1356 ac_prev=infodir ;;
1357 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1358 infodir=$ac_optarg ;;
1359
1360 -libdir | --libdir | --libdi | --libd)
1361 ac_prev=libdir ;;
1362 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1363 libdir=$ac_optarg ;;
1364
1365 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1366 | --libexe | --libex | --libe)
1367 ac_prev=libexecdir ;;
1368 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1369 | --libexe=* | --libex=* | --libe=*)
1370 libexecdir=$ac_optarg ;;
1371
1372 -localedir | --localedir | --localedi | --localed | --locale)
1373 ac_prev=localedir ;;
1374 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1375 localedir=$ac_optarg ;;
1376
1377 -localstatedir | --localstatedir | --localstatedi | --localstated \
1378 | --localstate | --localstat | --localsta | --localst | --locals)
1379 ac_prev=localstatedir ;;
1380 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1381 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1382 localstatedir=$ac_optarg ;;
1383
1384 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1385 ac_prev=mandir ;;
1386 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1387 mandir=$ac_optarg ;;
1388
1389 -nfp | --nfp | --nf)
1390 # Obsolete; use --without-fp.
1391 with_fp=no ;;
1392
1393 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1394 | --no-cr | --no-c | -n)
1395 no_create=yes ;;
1396
1397 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1398 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1399 no_recursion=yes ;;
1400
1401 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1402 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1403 | --oldin | --oldi | --old | --ol | --o)
1404 ac_prev=oldincludedir ;;
1405 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1406 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1407 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1408 oldincludedir=$ac_optarg ;;
1409
1410 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1411 ac_prev=prefix ;;
1412 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1413 prefix=$ac_optarg ;;
1414
1415 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1416 | --program-pre | --program-pr | --program-p)
1417 ac_prev=program_prefix ;;
1418 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1419 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1420 program_prefix=$ac_optarg ;;
1421
1422 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1423 | --program-suf | --program-su | --program-s)
1424 ac_prev=program_suffix ;;
1425 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1426 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1427 program_suffix=$ac_optarg ;;
1428
1429 -program-transform-name | --program-transform-name \
1430 | --program-transform-nam | --program-transform-na \
1431 | --program-transform-n | --program-transform- \
1432 | --program-transform | --program-transfor \
1433 | --program-transfo | --program-transf \
1434 | --program-trans | --program-tran \
1435 | --progr-tra | --program-tr | --program-t)
1436 ac_prev=program_transform_name ;;
1437 -program-transform-name=* | --program-transform-name=* \
1438 | --program-transform-nam=* | --program-transform-na=* \
1439 | --program-transform-n=* | --program-transform-=* \
1440 | --program-transform=* | --program-transfor=* \
1441 | --program-transfo=* | --program-transf=* \
1442 | --program-trans=* | --program-tran=* \
1443 | --progr-tra=* | --program-tr=* | --program-t=*)
1444 program_transform_name=$ac_optarg ;;
1445
1446 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1447 ac_prev=pdfdir ;;
1448 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1449 pdfdir=$ac_optarg ;;
1450
1451 -psdir | --psdir | --psdi | --psd | --ps)
1452 ac_prev=psdir ;;
1453 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1454 psdir=$ac_optarg ;;
1455
1456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1457 | -silent | --silent | --silen | --sile | --sil)
1458 silent=yes ;;
1459
1460 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1461 ac_prev=sbindir ;;
1462 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1463 | --sbi=* | --sb=*)
1464 sbindir=$ac_optarg ;;
1465
1466 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1467 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1468 | --sharedst | --shareds | --shared | --share | --shar \
1469 | --sha | --sh)
1470 ac_prev=sharedstatedir ;;
1471 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1472 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1473 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1474 | --sha=* | --sh=*)
1475 sharedstatedir=$ac_optarg ;;
1476
1477 -site | --site | --sit)
1478 ac_prev=site ;;
1479 -site=* | --site=* | --sit=*)
1480 site=$ac_optarg ;;
1481
1482 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1483 ac_prev=srcdir ;;
1484 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1485 srcdir=$ac_optarg ;;
1486
1487 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1488 | --syscon | --sysco | --sysc | --sys | --sy)
1489 ac_prev=sysconfdir ;;
1490 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1491 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1492 sysconfdir=$ac_optarg ;;
1493
1494 -target | --target | --targe | --targ | --tar | --ta | --t)
1495 ac_prev=target_alias ;;
1496 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1497 target_alias=$ac_optarg ;;
1498
1499 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1500 verbose=yes ;;
1501
1502 -version | --version | --versio | --versi | --vers | -V)
1503 ac_init_version=: ;;
1504
1505 -with-* | --with-*)
1506 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1507 # Reject names that are not valid shell variable names.
1508 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001509 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001510 ac_useropt_orig=$ac_useropt
1511 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1512 case $ac_user_opts in
1513 *"
1514"with_$ac_useropt"
1515"*) ;;
1516 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1517 ac_unrecognized_sep=', ';;
1518 esac
1519 eval with_$ac_useropt=\$ac_optarg ;;
1520
1521 -without-* | --without-*)
1522 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1523 # Reject names that are not valid shell variable names.
1524 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001525 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001526 ac_useropt_orig=$ac_useropt
1527 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1528 case $ac_user_opts in
1529 *"
1530"with_$ac_useropt"
1531"*) ;;
1532 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1533 ac_unrecognized_sep=', ';;
1534 esac
1535 eval with_$ac_useropt=no ;;
1536
1537 --x)
1538 # Obsolete; use --with-x.
1539 with_x=yes ;;
1540
1541 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1542 | --x-incl | --x-inc | --x-in | --x-i)
1543 ac_prev=x_includes ;;
1544 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1545 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1546 x_includes=$ac_optarg ;;
1547
1548 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1549 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1550 ac_prev=x_libraries ;;
1551 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1552 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1553 x_libraries=$ac_optarg ;;
1554
cristy98dddb52010-11-04 00:30:15 +00001555 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1556Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001557 ;;
1558
1559 *=*)
1560 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1561 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001562 case $ac_envvar in #(
1563 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001564 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001565 esac
cristy3ed852e2009-09-05 21:47:34 +00001566 eval $ac_envvar=\$ac_optarg
1567 export $ac_envvar ;;
1568
1569 *)
1570 # FIXME: should be removed in autoconf 3.0.
1571 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1572 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1573 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001574 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001575 ;;
1576
1577 esac
1578done
1579
1580if test -n "$ac_prev"; then
1581 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001582 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001583fi
1584
1585if test -n "$ac_unrecognized_opts"; then
1586 case $enable_option_checking in
1587 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001588 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001589 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1590 esac
1591fi
1592
1593# Check all directory arguments for consistency.
1594for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1595 datadir sysconfdir sharedstatedir localstatedir includedir \
1596 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1597 libdir localedir mandir
1598do
1599 eval ac_val=\$$ac_var
1600 # Remove trailing slashes.
1601 case $ac_val in
1602 */ )
1603 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1604 eval $ac_var=\$ac_val;;
1605 esac
1606 # Be sure to have absolute directory names.
1607 case $ac_val in
1608 [\\/$]* | ?:[\\/]* ) continue;;
1609 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1610 esac
cristy98dddb52010-11-04 00:30:15 +00001611 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001612done
1613
1614# There might be people who depend on the old broken behavior: `$host'
1615# used to hold the argument of --host etc.
1616# FIXME: To remove some day.
1617build=$build_alias
1618host=$host_alias
1619target=$target_alias
1620
1621# FIXME: To remove some day.
1622if test "x$host_alias" != x; then
1623 if test "x$build_alias" = x; then
1624 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001625 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1626 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001627 elif test "x$build_alias" != "x$host_alias"; then
1628 cross_compiling=yes
1629 fi
1630fi
1631
1632ac_tool_prefix=
1633test -n "$host_alias" && ac_tool_prefix=$host_alias-
1634
1635test "$silent" = yes && exec 6>/dev/null
1636
1637
1638ac_pwd=`pwd` && test -n "$ac_pwd" &&
1639ac_ls_di=`ls -di .` &&
1640ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001641 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001642test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001643 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001644
1645
1646# Find the source files, if location was not specified.
1647if test -z "$srcdir"; then
1648 ac_srcdir_defaulted=yes
1649 # Try the directory containing this script, then the parent directory.
1650 ac_confdir=`$as_dirname -- "$as_myself" ||
1651$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1652 X"$as_myself" : 'X\(//\)[^/]' \| \
1653 X"$as_myself" : 'X\(//\)$' \| \
1654 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1655$as_echo X"$as_myself" |
1656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1657 s//\1/
1658 q
1659 }
1660 /^X\(\/\/\)[^/].*/{
1661 s//\1/
1662 q
1663 }
1664 /^X\(\/\/\)$/{
1665 s//\1/
1666 q
1667 }
1668 /^X\(\/\).*/{
1669 s//\1/
1670 q
1671 }
1672 s/.*/./; q'`
1673 srcdir=$ac_confdir
1674 if test ! -r "$srcdir/$ac_unique_file"; then
1675 srcdir=..
1676 fi
1677else
1678 ac_srcdir_defaulted=no
1679fi
1680if test ! -r "$srcdir/$ac_unique_file"; then
1681 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001682 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001683fi
1684ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1685ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001686 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001687 pwd)`
1688# When building in place, set srcdir=.
1689if test "$ac_abs_confdir" = "$ac_pwd"; then
1690 srcdir=.
1691fi
1692# Remove unnecessary trailing slashes from srcdir.
1693# Double slashes in file names in object file debugging info
1694# mess up M-x gdb in Emacs.
1695case $srcdir in
1696*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1697esac
1698for ac_var in $ac_precious_vars; do
1699 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1700 eval ac_env_${ac_var}_value=\$${ac_var}
1701 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1702 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1703done
1704
1705#
1706# Report the --help message.
1707#
1708if test "$ac_init_help" = "long"; then
1709 # Omit some internal or obsolete options to make the list less imposing.
1710 # This message is too long to be a string in the A/UX 3.1 sh.
1711 cat <<_ACEOF
cristy45dbd322011-03-27 16:40:38 +00001712\`configure' configures ImageMagick 6.6.9 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001713
1714Usage: $0 [OPTION]... [VAR=VALUE]...
1715
1716To assign environment variables (e.g., CC, CFLAGS...), specify them as
1717VAR=VALUE. See below for descriptions of some of the useful variables.
1718
1719Defaults for the options are specified in brackets.
1720
1721Configuration:
1722 -h, --help display this help and exit
1723 --help=short display options specific to this package
1724 --help=recursive display the short help of all the included packages
1725 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001726 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001727 --cache-file=FILE cache test results in FILE [disabled]
1728 -C, --config-cache alias for \`--cache-file=config.cache'
1729 -n, --no-create do not create output files
1730 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1731
1732Installation directories:
1733 --prefix=PREFIX install architecture-independent files in PREFIX
1734 [$ac_default_prefix]
1735 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1736 [PREFIX]
1737
1738By default, \`make install' will install all the files in
1739\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1740an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1741for instance \`--prefix=\$HOME'.
1742
1743For better control, use the options below.
1744
1745Fine tuning of the installation directories:
1746 --bindir=DIR user executables [EPREFIX/bin]
1747 --sbindir=DIR system admin executables [EPREFIX/sbin]
1748 --libexecdir=DIR program executables [EPREFIX/libexec]
1749 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1750 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1751 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1752 --libdir=DIR object code libraries [EPREFIX/lib]
1753 --includedir=DIR C header files [PREFIX/include]
1754 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1755 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1756 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1757 --infodir=DIR info documentation [DATAROOTDIR/info]
1758 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1759 --mandir=DIR man documentation [DATAROOTDIR/man]
cristyd55889c2011-03-27 00:50:24 +00001760 --docdir=DIR documentation root
cristy45dbd322011-03-27 16:40:38 +00001761 [DATAROOTDIR/doc/ImageMagick-6.6.9]
cristy3ed852e2009-09-05 21:47:34 +00001762 --htmldir=DIR html documentation [DOCDIR]
1763 --dvidir=DIR dvi documentation [DOCDIR]
1764 --pdfdir=DIR pdf documentation [DOCDIR]
1765 --psdir=DIR ps documentation [DOCDIR]
1766_ACEOF
1767
1768 cat <<\_ACEOF
1769
cristy73bd4a52010-10-05 11:24:23 +00001770Program names:
1771 --program-prefix=PREFIX prepend PREFIX to installed program names
1772 --program-suffix=SUFFIX append SUFFIX to installed program names
1773 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1774
cristy3ed852e2009-09-05 21:47:34 +00001775X features:
1776 --x-includes=DIR X include files are in DIR
1777 --x-libraries=DIR X library files are in DIR
1778
1779System types:
1780 --build=BUILD configure for building on BUILD [guessed]
1781 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1782 --target=TARGET configure for building compilers for TARGET [HOST]
1783_ACEOF
1784fi
1785
1786if test -n "$ac_init_help"; then
1787 case $ac_init_help in
cristy45dbd322011-03-27 16:40:38 +00001788 short | recursive ) echo "Configuration of ImageMagick 6.6.9:";;
cristy3ed852e2009-09-05 21:47:34 +00001789 esac
1790 cat <<\_ACEOF
1791
1792Optional Features:
1793 --disable-option-checking ignore unrecognized --enable/--with options
1794 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1795 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001796 --enable-silent-rules less verbose build output (undo: `make V=1')
1797 --disable-silent-rules verbose build output (undo: `make V=0')
1798 --disable-dependency-tracking speeds up one-time build
1799 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001800 --bounds-checking enable run-time bounds-checking
1801 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001802 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001803 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001804 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001805 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001806 --enable-shared[=PKGS] build shared libraries [default=yes]
1807 --enable-static[=PKGS] build static libraries [default=yes]
1808 --enable-fast-install[=PKGS]
1809 optimize for fast installation [default=yes]
1810 --disable-libtool-lock avoid locking (might break parallel builds)
1811 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001812 --enable-delegate-build look for delegate libraries in build directory
1813 --disable-deprecated exclude deprecated methods in MagickCore and
1814 MagickWand API's
1815 --disable-installed Formally install ImageMagick under PREFIX
1816 --disable-cipher disable enciphering and deciphering image pixels
1817 --enable-embeddable enable self-contained, embeddable,
1818 zero-configuration ImageMagick
1819 --enable-hdri accurately represent the wide range of intensity
1820 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001821 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001822 --enable-maintainer-mode enable make rules and dependencies not useful
1823 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001824 --enable-ccmalloc enable 'ccmalloc' memory debug support
1825 --enable-efence enable 'efence' memory debug support
1826 --enable-prof enable 'prof' profiling support
1827 --enable-gprof enable 'gprof' profiling support
1828 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001829 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001830
1831Optional Packages:
1832 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1833 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001834 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1835 --with-dmalloc use dmalloc, as in
1836 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001837 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001838 --with-pic try to use only PIC/non-PIC objects [default=use
1839 both]
cristyda16f162011-02-19 23:52:17 +00001840 --with-sysroot=DIR Search for dependent libraries within DIR
1841 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001842 --with-included-ltdl use the GNU ltdl sources included here
1843 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1844 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001845 --with-modules enable building dynamically loadable modules
1846 --with-method-prefix=PREFIX
1847 prefix MagickCore API methods
1848 --with-quantum-depth=DEPTH
1849 number of bits in a pixel quantum (default 16)
1850 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1851 memory)
1852 --with-frozenpaths freeze delegate paths
1853 --without-magick-plus-plus
1854 disable build/install of Magick++
1855 --with-perl enable build/install of PerlMagick
1856 --with-perl-options=OPTIONS
1857 options to pass on command-line when generating
1858 PerlMagick's build file
1859 --with-umem enable umem memory allocation library support
1860 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1861 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001862 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001863 --without-zlib disable ZLIB support
1864 --with-autotrace enable autotrace support
1865 --without-dps disable Display Postscript support
1866 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001867 --with-dejavu-font-dir=DIR
1868 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001869 --without-fftw disable FFTW support
1870 --without-fpx disable FlashPIX support
1871 --without-fontconfig disable fontconfig support
1872 --without-freetype disable Freetype support
1873 --without-gslib enable Ghostscript library support
1874 --with-fontpath=DIR prepend to default font search path
1875 --with-gs-font-dir=DIR Ghostscript font directory
1876 --without-gvc disable GVC support
1877 --without-jbig disable JBIG support
1878 --without-jpeg disable JPEG support
1879 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001880 --without-lcms disable lcms (v1.1X) support
1881 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001882 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001883 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001884 --without-openexr disable OpenEXR support
1885 --without-png disable PNG support
1886 --without-rsvg disable RSVG support
1887 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001888 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001889 --with-windows-font-dir=DIR
1890 directory containing MS-Windows fonts
1891 --without-wmf disable WMF support
1892 --without-xml disable XML support
1893
1894Some influential environment variables:
1895 CC C compiler command
1896 CFLAGS C compiler flags
1897 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1898 nonstandard directory <lib dir>
1899 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001900 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001901 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001902 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001903 CXX C++ compiler command
1904 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001905 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001906 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001907 XMKMF Path to xmkmf, Makefile generator for X Window System
1908 AUTOTRACE_CFLAGS
1909 C compiler flags for AUTOTRACE, overriding pkg-config
1910 AUTOTRACE_LIBS
1911 linker flags for AUTOTRACE, overriding pkg-config
1912 FONTCONFIG_CFLAGS
1913 C compiler flags for FONTCONFIG, overriding pkg-config
1914 FONTCONFIG_LIBS
1915 linker flags for FONTCONFIG, overriding pkg-config
1916 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1917 GVC_LIBS linker flags for GVC, overriding pkg-config
1918 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1919 LQR_LIBS linker flags for LQR, overriding pkg-config
1920 OPENEXR_CFLAGS
1921 C compiler flags for OPENEXR, overriding pkg-config
1922 OPENEXR_LIBS
1923 linker flags for OPENEXR, overriding pkg-config
1924 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1925 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1926 CAIRO_SVG_CFLAGS
1927 C compiler flags for CAIRO_SVG, overriding pkg-config
1928 CAIRO_SVG_LIBS
1929 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001930
1931Use these variables to override the choices made by `configure' or to help
1932it to find libraries and programs with nonstandard names/locations.
1933
1934Report bugs to <http://www.imagemagick.org>.
1935_ACEOF
1936ac_status=$?
1937fi
1938
1939if test "$ac_init_help" = "recursive"; then
1940 # If there are subdirs, report their specific --help.
1941 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1942 test -d "$ac_dir" ||
1943 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1944 continue
1945 ac_builddir=.
1946
1947case "$ac_dir" in
1948.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1949*)
1950 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1951 # A ".." for each directory in $ac_dir_suffix.
1952 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1953 case $ac_top_builddir_sub in
1954 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1955 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1956 esac ;;
1957esac
1958ac_abs_top_builddir=$ac_pwd
1959ac_abs_builddir=$ac_pwd$ac_dir_suffix
1960# for backward compatibility:
1961ac_top_builddir=$ac_top_build_prefix
1962
1963case $srcdir in
1964 .) # We are building in place.
1965 ac_srcdir=.
1966 ac_top_srcdir=$ac_top_builddir_sub
1967 ac_abs_top_srcdir=$ac_pwd ;;
1968 [\\/]* | ?:[\\/]* ) # Absolute name.
1969 ac_srcdir=$srcdir$ac_dir_suffix;
1970 ac_top_srcdir=$srcdir
1971 ac_abs_top_srcdir=$srcdir ;;
1972 *) # Relative name.
1973 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1974 ac_top_srcdir=$ac_top_build_prefix$srcdir
1975 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1976esac
1977ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1978
1979 cd "$ac_dir" || { ac_status=$?; continue; }
1980 # Check for guested configure.
1981 if test -f "$ac_srcdir/configure.gnu"; then
1982 echo &&
1983 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1984 elif test -f "$ac_srcdir/configure"; then
1985 echo &&
1986 $SHELL "$ac_srcdir/configure" --help=recursive
1987 else
1988 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1989 fi || ac_status=$?
1990 cd "$ac_pwd" || { ac_status=$?; break; }
1991 done
1992fi
1993
1994test -n "$ac_init_help" && exit $ac_status
1995if $ac_init_version; then
1996 cat <<\_ACEOF
cristy45dbd322011-03-27 16:40:38 +00001997ImageMagick configure 6.6.9
cristyda16f162011-02-19 23:52:17 +00001998generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00001999
cristy98dddb52010-11-04 00:30:15 +00002000Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002001This configure script is free software; the Free Software Foundation
2002gives unlimited permission to copy, distribute and modify it.
2003_ACEOF
2004 exit
2005fi
cristy8b350f62009-11-15 23:12:43 +00002006
2007## ------------------------ ##
2008## Autoconf initialization. ##
2009## ------------------------ ##
2010
2011# ac_fn_c_try_compile LINENO
2012# --------------------------
2013# Try to compile conftest.$ac_ext, and return whether this succeeded.
2014ac_fn_c_try_compile ()
2015{
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 rm -f conftest.$ac_objext
2018 if { { ac_try="$ac_compile"
2019case "(($ac_try" in
2020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021 *) ac_try_echo=$ac_try;;
2022esac
2023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024$as_echo "$ac_try_echo"; } >&5
2025 (eval "$ac_compile") 2>conftest.err
2026 ac_status=$?
2027 if test -s conftest.err; then
2028 grep -v '^ *+' conftest.err >conftest.er1
2029 cat conftest.er1 >&5
2030 mv -f conftest.er1 conftest.err
2031 fi
2032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033 test $ac_status = 0; } && {
2034 test -z "$ac_c_werror_flag" ||
2035 test ! -s conftest.err
2036 } && test -s conftest.$ac_objext; then :
2037 ac_retval=0
2038else
2039 $as_echo "$as_me: failed program was:" >&5
2040sed 's/^/| /' conftest.$ac_ext >&5
2041
2042 ac_retval=1
2043fi
cristyda16f162011-02-19 23:52:17 +00002044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002045 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002046
2047} # ac_fn_c_try_compile
2048
cristy95646052009-11-28 23:05:30 +00002049# ac_fn_c_try_cpp LINENO
2050# ----------------------
2051# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2052ac_fn_c_try_cpp ()
2053{
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 if { { ac_try="$ac_cpp conftest.$ac_ext"
2056case "(($ac_try" in
2057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058 *) ac_try_echo=$ac_try;;
2059esac
2060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061$as_echo "$ac_try_echo"; } >&5
2062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2063 ac_status=$?
2064 if test -s conftest.err; then
2065 grep -v '^ *+' conftest.err >conftest.er1
2066 cat conftest.er1 >&5
2067 mv -f conftest.er1 conftest.err
2068 fi
2069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002070 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2072 test ! -s conftest.err
2073 }; then :
2074 ac_retval=0
2075else
2076 $as_echo "$as_me: failed program was:" >&5
2077sed 's/^/| /' conftest.$ac_ext >&5
2078
2079 ac_retval=1
2080fi
cristyda16f162011-02-19 23:52:17 +00002081 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002082 as_fn_set_status $ac_retval
2083
2084} # ac_fn_c_try_cpp
2085
cristy8b350f62009-11-15 23:12:43 +00002086# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2087# -------------------------------------------------------
2088# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2089# the include files in INCLUDES and setting the cache variable VAR
2090# accordingly.
2091ac_fn_c_check_header_mongrel ()
2092{
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002094 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2096$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002097if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002098 $as_echo_n "(cached) " >&6
2099fi
2100eval ac_res=\$$3
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102$as_echo "$ac_res" >&6; }
2103else
2104 # Is the header compilable?
2105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2106$as_echo_n "checking $2 usability... " >&6; }
2107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108/* end confdefs.h. */
2109$4
2110#include <$2>
2111_ACEOF
2112if ac_fn_c_try_compile "$LINENO"; then :
2113 ac_header_compiler=yes
2114else
2115 ac_header_compiler=no
2116fi
2117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2119$as_echo "$ac_header_compiler" >&6; }
2120
2121# Is the header present?
2122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2123$as_echo_n "checking $2 presence... " >&6; }
2124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125/* end confdefs.h. */
2126#include <$2>
2127_ACEOF
2128if ac_fn_c_try_cpp "$LINENO"; then :
2129 ac_header_preproc=yes
2130else
2131 ac_header_preproc=no
2132fi
cristyda16f162011-02-19 23:52:17 +00002133rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2135$as_echo "$ac_header_preproc" >&6; }
2136
2137# So? What about this header?
2138case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2139 yes:no: )
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2141$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2143$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2144 ;;
2145 no:yes:* )
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2147$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2149$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2151$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2153$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2155$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002156( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002157## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002158## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002159 ) | sed "s/^/$as_me: WARNING: /" >&2
2160 ;;
2161esac
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2163$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002164if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002165 $as_echo_n "(cached) " >&6
2166else
2167 eval "$3=\$ac_header_compiler"
2168fi
2169eval ac_res=\$$3
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171$as_echo "$ac_res" >&6; }
2172fi
cristyda16f162011-02-19 23:52:17 +00002173 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002174
2175} # ac_fn_c_check_header_mongrel
2176
2177# ac_fn_c_try_run LINENO
2178# ----------------------
2179# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2180# that executables *can* be run.
2181ac_fn_c_try_run ()
2182{
2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184 if { { ac_try="$ac_link"
2185case "(($ac_try" in
2186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2187 *) ac_try_echo=$ac_try;;
2188esac
2189eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2190$as_echo "$ac_try_echo"; } >&5
2191 (eval "$ac_link") 2>&5
2192 ac_status=$?
2193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2194 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2195 { { case "(($ac_try" in
2196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2197 *) ac_try_echo=$ac_try;;
2198esac
2199eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2200$as_echo "$ac_try_echo"; } >&5
2201 (eval "$ac_try") 2>&5
2202 ac_status=$?
2203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2204 test $ac_status = 0; }; }; then :
2205 ac_retval=0
2206else
2207 $as_echo "$as_me: program exited with status $ac_status" >&5
2208 $as_echo "$as_me: failed program was:" >&5
2209sed 's/^/| /' conftest.$ac_ext >&5
2210
2211 ac_retval=$ac_status
2212fi
2213 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002214 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002215 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002216
2217} # ac_fn_c_try_run
2218
2219# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2220# -------------------------------------------------------
2221# Tests whether HEADER exists and can be compiled using the include files in
2222# INCLUDES, setting the cache variable VAR accordingly.
2223ac_fn_c_check_header_compile ()
2224{
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002228if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002229 $as_echo_n "(cached) " >&6
2230else
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232/* end confdefs.h. */
2233$4
2234#include <$2>
2235_ACEOF
2236if ac_fn_c_try_compile "$LINENO"; then :
2237 eval "$3=yes"
2238else
2239 eval "$3=no"
2240fi
2241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2242fi
2243eval ac_res=\$$3
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2245$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002246 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002247
2248} # ac_fn_c_check_header_compile
2249
cristya0b81c32010-01-22 02:54:33 +00002250# ac_fn_cxx_try_compile LINENO
2251# ----------------------------
2252# Try to compile conftest.$ac_ext, and return whether this succeeded.
2253ac_fn_cxx_try_compile ()
2254{
2255 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256 rm -f conftest.$ac_objext
2257 if { { ac_try="$ac_compile"
2258case "(($ac_try" in
2259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260 *) ac_try_echo=$ac_try;;
2261esac
2262eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2263$as_echo "$ac_try_echo"; } >&5
2264 (eval "$ac_compile") 2>conftest.err
2265 ac_status=$?
2266 if test -s conftest.err; then
2267 grep -v '^ *+' conftest.err >conftest.er1
2268 cat conftest.er1 >&5
2269 mv -f conftest.er1 conftest.err
2270 fi
2271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2272 test $ac_status = 0; } && {
2273 test -z "$ac_cxx_werror_flag" ||
2274 test ! -s conftest.err
2275 } && test -s conftest.$ac_objext; then :
2276 ac_retval=0
2277else
2278 $as_echo "$as_me: failed program was:" >&5
2279sed 's/^/| /' conftest.$ac_ext >&5
2280
2281 ac_retval=1
2282fi
cristyda16f162011-02-19 23:52:17 +00002283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002284 as_fn_set_status $ac_retval
2285
2286} # ac_fn_cxx_try_compile
2287
cristy8b350f62009-11-15 23:12:43 +00002288# ac_fn_c_try_link LINENO
2289# -----------------------
2290# Try to link conftest.$ac_ext, and return whether this succeeded.
2291ac_fn_c_try_link ()
2292{
2293 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2294 rm -f conftest.$ac_objext conftest$ac_exeext
2295 if { { ac_try="$ac_link"
2296case "(($ac_try" in
2297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298 *) ac_try_echo=$ac_try;;
2299esac
2300eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2301$as_echo "$ac_try_echo"; } >&5
2302 (eval "$ac_link") 2>conftest.err
2303 ac_status=$?
2304 if test -s conftest.err; then
2305 grep -v '^ *+' conftest.err >conftest.er1
2306 cat conftest.er1 >&5
2307 mv -f conftest.er1 conftest.err
2308 fi
2309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2310 test $ac_status = 0; } && {
2311 test -z "$ac_c_werror_flag" ||
2312 test ! -s conftest.err
2313 } && test -s conftest$ac_exeext && {
2314 test "$cross_compiling" = yes ||
2315 $as_test_x conftest$ac_exeext
2316 }; then :
2317 ac_retval=0
2318else
2319 $as_echo "$as_me: failed program was:" >&5
2320sed 's/^/| /' conftest.$ac_ext >&5
2321
2322 ac_retval=1
2323fi
2324 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2325 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2326 # interfere with the next link command; also delete a directory that is
2327 # left behind by Apple's compiler. We do this before executing the actions.
2328 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002329 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002330 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002331
2332} # ac_fn_c_try_link
2333
cristy73bd4a52010-10-05 11:24:23 +00002334# ac_fn_c_check_func LINENO FUNC VAR
2335# ----------------------------------
2336# Tests whether FUNC exists, setting the cache variable VAR accordingly
2337ac_fn_c_check_func ()
2338{
2339 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2341$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002342if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002343 $as_echo_n "(cached) " >&6
2344else
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346/* end confdefs.h. */
2347/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2349#define $2 innocuous_$2
2350
2351/* System header to define __stub macros and hopefully few prototypes,
2352 which can conflict with char $2 (); below.
2353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2354 <limits.h> exists even on freestanding compilers. */
2355
2356#ifdef __STDC__
2357# include <limits.h>
2358#else
2359# include <assert.h>
2360#endif
2361
2362#undef $2
2363
2364/* Override any GCC internal prototype to avoid an error.
2365 Use char because int might match the return type of a GCC
2366 builtin and then its argument prototype would still apply. */
2367#ifdef __cplusplus
2368extern "C"
2369#endif
2370char $2 ();
2371/* The GNU C library defines this for functions which it implements
2372 to always fail with ENOSYS. Some functions are actually named
2373 something starting with __ and the normal name is an alias. */
2374#if defined __stub_$2 || defined __stub___$2
2375choke me
2376#endif
2377
2378int
2379main ()
2380{
2381return $2 ();
2382 ;
2383 return 0;
2384}
2385_ACEOF
2386if ac_fn_c_try_link "$LINENO"; then :
2387 eval "$3=yes"
2388else
2389 eval "$3=no"
2390fi
2391rm -f core conftest.err conftest.$ac_objext \
2392 conftest$ac_exeext conftest.$ac_ext
2393fi
2394eval ac_res=\$$3
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2396$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002397 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002398
2399} # ac_fn_c_check_func
2400
2401# ac_fn_cxx_try_cpp LINENO
2402# ------------------------
2403# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2404ac_fn_cxx_try_cpp ()
2405{
2406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2407 if { { ac_try="$ac_cpp conftest.$ac_ext"
2408case "(($ac_try" in
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2411esac
2412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2413$as_echo "$ac_try_echo"; } >&5
2414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2415 ac_status=$?
2416 if test -s conftest.err; then
2417 grep -v '^ *+' conftest.err >conftest.er1
2418 cat conftest.er1 >&5
2419 mv -f conftest.er1 conftest.err
2420 fi
2421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002422 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002423 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2424 test ! -s conftest.err
2425 }; then :
2426 ac_retval=0
2427else
2428 $as_echo "$as_me: failed program was:" >&5
2429sed 's/^/| /' conftest.$ac_ext >&5
2430
2431 ac_retval=1
2432fi
cristyda16f162011-02-19 23:52:17 +00002433 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002434 as_fn_set_status $ac_retval
2435
2436} # ac_fn_cxx_try_cpp
2437
2438# ac_fn_cxx_try_link LINENO
2439# -------------------------
2440# Try to link conftest.$ac_ext, and return whether this succeeded.
2441ac_fn_cxx_try_link ()
2442{
2443 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2444 rm -f conftest.$ac_objext conftest$ac_exeext
2445 if { { ac_try="$ac_link"
2446case "(($ac_try" in
2447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448 *) ac_try_echo=$ac_try;;
2449esac
2450eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2451$as_echo "$ac_try_echo"; } >&5
2452 (eval "$ac_link") 2>conftest.err
2453 ac_status=$?
2454 if test -s conftest.err; then
2455 grep -v '^ *+' conftest.err >conftest.er1
2456 cat conftest.er1 >&5
2457 mv -f conftest.er1 conftest.err
2458 fi
2459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2460 test $ac_status = 0; } && {
2461 test -z "$ac_cxx_werror_flag" ||
2462 test ! -s conftest.err
2463 } && test -s conftest$ac_exeext && {
2464 test "$cross_compiling" = yes ||
2465 $as_test_x conftest$ac_exeext
2466 }; then :
2467 ac_retval=0
2468else
2469 $as_echo "$as_me: failed program was:" >&5
2470sed 's/^/| /' conftest.$ac_ext >&5
2471
2472 ac_retval=1
2473fi
2474 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2475 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2476 # interfere with the next link command; also delete a directory that is
2477 # left behind by Apple's compiler. We do this before executing the actions.
2478 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002479 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002480 as_fn_set_status $ac_retval
2481
2482} # ac_fn_cxx_try_link
2483
cristy98dddb52010-11-04 00:30:15 +00002484# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2485# ---------------------------------------------
2486# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2487# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002488ac_fn_c_check_decl ()
2489{
2490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002491 as_decl_name=`echo $2|sed 's/ *(.*//'`
2492 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2494$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002495if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002496 $as_echo_n "(cached) " >&6
2497else
2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499/* end confdefs.h. */
2500$4
2501int
2502main ()
2503{
cristy98dddb52010-11-04 00:30:15 +00002504#ifndef $as_decl_name
2505#ifdef __cplusplus
2506 (void) $as_decl_use;
2507#else
2508 (void) $as_decl_name;
2509#endif
cristy73bd4a52010-10-05 11:24:23 +00002510#endif
2511
2512 ;
2513 return 0;
2514}
2515_ACEOF
2516if ac_fn_c_try_compile "$LINENO"; then :
2517 eval "$3=yes"
2518else
2519 eval "$3=no"
2520fi
2521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2522fi
2523eval ac_res=\$$3
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2525$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002526 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002527
2528} # ac_fn_c_check_decl
2529
cristy8b350f62009-11-15 23:12:43 +00002530# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2531# -------------------------------------------
2532# Tests whether TYPE exists after having included INCLUDES, setting cache
2533# variable VAR accordingly.
2534ac_fn_c_check_type ()
2535{
2536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2538$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002539if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002540 $as_echo_n "(cached) " >&6
2541else
2542 eval "$3=no"
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544/* end confdefs.h. */
2545$4
2546int
2547main ()
2548{
2549if (sizeof ($2))
2550 return 0;
2551 ;
2552 return 0;
2553}
2554_ACEOF
2555if ac_fn_c_try_compile "$LINENO"; then :
2556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2557/* end confdefs.h. */
2558$4
2559int
2560main ()
2561{
2562if (sizeof (($2)))
2563 return 0;
2564 ;
2565 return 0;
2566}
2567_ACEOF
2568if ac_fn_c_try_compile "$LINENO"; then :
2569
2570else
2571 eval "$3=yes"
2572fi
2573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574fi
2575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2576fi
2577eval ac_res=\$$3
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2579$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002581
2582} # ac_fn_c_check_type
2583
cristy92703d82010-04-26 00:18:18 +00002584# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2585# ----------------------------------------------------
2586# Tries to find if the field MEMBER exists in type AGGR, after including
2587# INCLUDES, setting cache variable VAR accordingly.
2588ac_fn_c_check_member ()
2589{
2590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2592$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002593if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002594 $as_echo_n "(cached) " >&6
2595else
2596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597/* end confdefs.h. */
2598$5
2599int
2600main ()
2601{
2602static $2 ac_aggr;
2603if (ac_aggr.$3)
2604return 0;
2605 ;
2606 return 0;
2607}
2608_ACEOF
2609if ac_fn_c_try_compile "$LINENO"; then :
2610 eval "$4=yes"
2611else
2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613/* end confdefs.h. */
2614$5
2615int
2616main ()
2617{
2618static $2 ac_aggr;
2619if (sizeof ac_aggr.$3)
2620return 0;
2621 ;
2622 return 0;
2623}
2624_ACEOF
2625if ac_fn_c_try_compile "$LINENO"; then :
2626 eval "$4=yes"
2627else
2628 eval "$4=no"
2629fi
2630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631fi
2632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633fi
2634eval ac_res=\$$4
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2636$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002638
2639} # ac_fn_c_check_member
2640
cristy8b350f62009-11-15 23:12:43 +00002641# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2642# --------------------------------------------
2643# Tries to find the compile-time value of EXPR in a program that includes
2644# INCLUDES, setting VAR accordingly. Returns whether the value could be
2645# computed
2646ac_fn_c_compute_int ()
2647{
2648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2649 if test "$cross_compiling" = yes; then
2650 # Depending upon the size, compute the lo and hi bounds.
2651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652/* end confdefs.h. */
2653$4
2654int
2655main ()
2656{
2657static int test_array [1 - 2 * !(($2) >= 0)];
2658test_array [0] = 0
2659
2660 ;
2661 return 0;
2662}
2663_ACEOF
2664if ac_fn_c_try_compile "$LINENO"; then :
2665 ac_lo=0 ac_mid=0
2666 while :; do
2667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668/* end confdefs.h. */
2669$4
2670int
2671main ()
2672{
2673static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2674test_array [0] = 0
2675
2676 ;
2677 return 0;
2678}
2679_ACEOF
2680if ac_fn_c_try_compile "$LINENO"; then :
2681 ac_hi=$ac_mid; break
2682else
2683 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2684 if test $ac_lo -le $ac_mid; then
2685 ac_lo= ac_hi=
2686 break
2687 fi
2688 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2689fi
2690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2691 done
2692else
2693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694/* end confdefs.h. */
2695$4
2696int
2697main ()
2698{
2699static int test_array [1 - 2 * !(($2) < 0)];
2700test_array [0] = 0
2701
2702 ;
2703 return 0;
2704}
2705_ACEOF
2706if ac_fn_c_try_compile "$LINENO"; then :
2707 ac_hi=-1 ac_mid=-1
2708 while :; do
2709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2710/* end confdefs.h. */
2711$4
2712int
2713main ()
2714{
2715static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2716test_array [0] = 0
2717
2718 ;
2719 return 0;
2720}
2721_ACEOF
2722if ac_fn_c_try_compile "$LINENO"; then :
2723 ac_lo=$ac_mid; break
2724else
2725 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2726 if test $ac_mid -le $ac_hi; then
2727 ac_lo= ac_hi=
2728 break
2729 fi
2730 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2731fi
2732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2733 done
2734else
2735 ac_lo= ac_hi=
2736fi
2737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738fi
2739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740# Binary search between lo and hi bounds.
2741while test "x$ac_lo" != "x$ac_hi"; do
2742 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2744/* end confdefs.h. */
2745$4
2746int
2747main ()
2748{
2749static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2750test_array [0] = 0
2751
2752 ;
2753 return 0;
2754}
2755_ACEOF
2756if ac_fn_c_try_compile "$LINENO"; then :
2757 ac_hi=$ac_mid
2758else
2759 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2760fi
2761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2762done
2763case $ac_lo in #((
2764?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2765'') ac_retval=1 ;;
2766esac
2767 else
2768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2769/* end confdefs.h. */
2770$4
2771static long int longval () { return $2; }
2772static unsigned long int ulongval () { return $2; }
2773#include <stdio.h>
2774#include <stdlib.h>
2775int
2776main ()
2777{
2778
2779 FILE *f = fopen ("conftest.val", "w");
2780 if (! f)
2781 return 1;
2782 if (($2) < 0)
2783 {
2784 long int i = longval ();
2785 if (i != ($2))
2786 return 1;
2787 fprintf (f, "%ld", i);
2788 }
2789 else
2790 {
2791 unsigned long int i = ulongval ();
2792 if (i != ($2))
2793 return 1;
2794 fprintf (f, "%lu", i);
2795 }
2796 /* Do not output a trailing newline, as this causes \r\n confusion
2797 on some platforms. */
2798 return ferror (f) || fclose (f) != 0;
2799
2800 ;
2801 return 0;
2802}
2803_ACEOF
2804if ac_fn_c_try_run "$LINENO"; then :
2805 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2806else
2807 ac_retval=1
2808fi
2809rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2810 conftest.$ac_objext conftest.beam conftest.$ac_ext
2811rm -f conftest.val
2812
2813 fi
cristyda16f162011-02-19 23:52:17 +00002814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002815 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002816
2817} # ac_fn_c_compute_int
2818
2819# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2820# ---------------------------------------------------------
2821# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2822# the include files in INCLUDES and setting the cache variable VAR
2823# accordingly.
2824ac_fn_cxx_check_header_mongrel ()
2825{
2826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002827 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2829$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002830if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002831 $as_echo_n "(cached) " >&6
2832fi
2833eval ac_res=\$$3
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2835$as_echo "$ac_res" >&6; }
2836else
2837 # Is the header compilable?
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2839$as_echo_n "checking $2 usability... " >&6; }
2840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2841/* end confdefs.h. */
2842$4
2843#include <$2>
2844_ACEOF
2845if ac_fn_cxx_try_compile "$LINENO"; then :
2846 ac_header_compiler=yes
2847else
2848 ac_header_compiler=no
2849fi
2850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2852$as_echo "$ac_header_compiler" >&6; }
2853
2854# Is the header present?
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2856$as_echo_n "checking $2 presence... " >&6; }
2857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2858/* end confdefs.h. */
2859#include <$2>
2860_ACEOF
2861if ac_fn_cxx_try_cpp "$LINENO"; then :
2862 ac_header_preproc=yes
2863else
2864 ac_header_preproc=no
2865fi
cristyda16f162011-02-19 23:52:17 +00002866rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2868$as_echo "$ac_header_preproc" >&6; }
2869
2870# So? What about this header?
2871case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2872 yes:no: )
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2874$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2876$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2877 ;;
2878 no:yes:* )
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2880$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2882$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2884$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2886$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2888$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002889( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002890## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002891## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002892 ) | sed "s/^/$as_me: WARNING: /" >&2
2893 ;;
2894esac
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2896$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002897if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002898 $as_echo_n "(cached) " >&6
2899else
2900 eval "$3=\$ac_header_compiler"
2901fi
2902eval ac_res=\$$3
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2904$as_echo "$ac_res" >&6; }
2905fi
cristyda16f162011-02-19 23:52:17 +00002906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002907
2908} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002909cat >config.log <<_ACEOF
2910This file contains any messages produced by compilers while
2911running configure, to aid debugging if configure makes a mistake.
2912
cristy45dbd322011-03-27 16:40:38 +00002913It was created by ImageMagick $as_me 6.6.9, which was
cristyda16f162011-02-19 23:52:17 +00002914generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002915
2916 $ $0 $@
2917
2918_ACEOF
2919exec 5>>config.log
2920{
2921cat <<_ASUNAME
2922## --------- ##
2923## Platform. ##
2924## --------- ##
2925
2926hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2927uname -m = `(uname -m) 2>/dev/null || echo unknown`
2928uname -r = `(uname -r) 2>/dev/null || echo unknown`
2929uname -s = `(uname -s) 2>/dev/null || echo unknown`
2930uname -v = `(uname -v) 2>/dev/null || echo unknown`
2931
2932/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2933/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2934
2935/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2936/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2937/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2938/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2939/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2940/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2941/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2942
2943_ASUNAME
2944
2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946for as_dir in $PATH
2947do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002950 $as_echo "PATH: $as_dir"
2951 done
cristy3ed852e2009-09-05 21:47:34 +00002952IFS=$as_save_IFS
2953
2954} >&5
2955
2956cat >&5 <<_ACEOF
2957
2958
2959## ----------- ##
2960## Core tests. ##
2961## ----------- ##
2962
2963_ACEOF
2964
2965
2966# Keep a trace of the command line.
2967# Strip out --no-create and --no-recursion so they do not pile up.
2968# Strip out --silent because we don't want to record it for future runs.
2969# Also quote any args containing shell meta-characters.
2970# Make two passes to allow for proper duplicate-argument suppression.
2971ac_configure_args=
2972ac_configure_args0=
2973ac_configure_args1=
2974ac_must_keep_next=false
2975for ac_pass in 1 2
2976do
2977 for ac_arg
2978 do
2979 case $ac_arg in
2980 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2982 | -silent | --silent | --silen | --sile | --sil)
2983 continue ;;
2984 *\'*)
2985 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2986 esac
2987 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00002988 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00002989 2)
cristy8b350f62009-11-15 23:12:43 +00002990 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002991 if test $ac_must_keep_next = true; then
2992 ac_must_keep_next=false # Got value, back to normal.
2993 else
2994 case $ac_arg in
2995 *=* | --config-cache | -C | -disable-* | --disable-* \
2996 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2997 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2998 | -with-* | --with-* | -without-* | --without-* | --x)
2999 case "$ac_configure_args0 " in
3000 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3001 esac
3002 ;;
3003 -* ) ac_must_keep_next=true ;;
3004 esac
3005 fi
cristy8b350f62009-11-15 23:12:43 +00003006 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003007 ;;
3008 esac
3009 done
3010done
cristy8b350f62009-11-15 23:12:43 +00003011{ ac_configure_args0=; unset ac_configure_args0;}
3012{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003013
3014# When interrupted or exit'd, cleanup temporary files, and complete
3015# config.log. We remove comments because anyway the quotes in there
3016# would cause problems or look ugly.
3017# WARNING: Use '\'' to represent an apostrophe within the trap.
3018# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3019trap 'exit_status=$?
3020 # Save into config.log some information that might help in debugging.
3021 {
3022 echo
3023
cristy98dddb52010-11-04 00:30:15 +00003024 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003025## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003026## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003027 echo
3028 # The following way of writing the cache mishandles newlines in values,
3029(
3030 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3031 eval ac_val=\$$ac_var
3032 case $ac_val in #(
3033 *${as_nl}*)
3034 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003035 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003036$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3037 esac
3038 case $ac_var in #(
3039 _ | IFS | as_nl) ;; #(
3040 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003041 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003042 esac ;;
3043 esac
3044 done
3045 (set) 2>&1 |
3046 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3047 *${as_nl}ac_space=\ *)
3048 sed -n \
3049 "s/'\''/'\''\\\\'\'''\''/g;
3050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3051 ;; #(
3052 *)
3053 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3054 ;;
3055 esac |
3056 sort
3057)
3058 echo
3059
cristy98dddb52010-11-04 00:30:15 +00003060 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003061## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003062## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003063 echo
3064 for ac_var in $ac_subst_vars
3065 do
3066 eval ac_val=\$$ac_var
3067 case $ac_val in
3068 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3069 esac
3070 $as_echo "$ac_var='\''$ac_val'\''"
3071 done | sort
3072 echo
3073
3074 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003075 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003076## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003077## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003078 echo
3079 for ac_var in $ac_subst_files
3080 do
3081 eval ac_val=\$$ac_var
3082 case $ac_val in
3083 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3084 esac
3085 $as_echo "$ac_var='\''$ac_val'\''"
3086 done | sort
3087 echo
3088 fi
3089
3090 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003091 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003092## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003093## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003094 echo
3095 cat confdefs.h
3096 echo
3097 fi
3098 test "$ac_signal" != 0 &&
3099 $as_echo "$as_me: caught signal $ac_signal"
3100 $as_echo "$as_me: exit $exit_status"
3101 } >&5
3102 rm -f core *.core core.conftest.* &&
3103 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3104 exit $exit_status
3105' 0
3106for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003107 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003108done
3109ac_signal=0
3110
3111# confdefs.h avoids OS command line length limits that DEFS can exceed.
3112rm -f -r conftest* confdefs.h
3113
cristy8b350f62009-11-15 23:12:43 +00003114$as_echo "/* confdefs.h */" > confdefs.h
3115
cristy3ed852e2009-09-05 21:47:34 +00003116# Predefined preprocessor variables.
3117
3118cat >>confdefs.h <<_ACEOF
3119#define PACKAGE_NAME "$PACKAGE_NAME"
3120_ACEOF
3121
cristy3ed852e2009-09-05 21:47:34 +00003122cat >>confdefs.h <<_ACEOF
3123#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3124_ACEOF
3125
cristy3ed852e2009-09-05 21:47:34 +00003126cat >>confdefs.h <<_ACEOF
3127#define PACKAGE_VERSION "$PACKAGE_VERSION"
3128_ACEOF
3129
cristy3ed852e2009-09-05 21:47:34 +00003130cat >>confdefs.h <<_ACEOF
3131#define PACKAGE_STRING "$PACKAGE_STRING"
3132_ACEOF
3133
cristy3ed852e2009-09-05 21:47:34 +00003134cat >>confdefs.h <<_ACEOF
3135#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3136_ACEOF
3137
cristy8b350f62009-11-15 23:12:43 +00003138cat >>confdefs.h <<_ACEOF
3139#define PACKAGE_URL "$PACKAGE_URL"
3140_ACEOF
3141
cristy3ed852e2009-09-05 21:47:34 +00003142
3143# Let the site file select an alternate cache file if it wants to.
3144# Prefer an explicitly selected file to automatically selected ones.
3145ac_site_file1=NONE
3146ac_site_file2=NONE
3147if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003148 # We do not want a PATH search for config.site.
3149 case $CONFIG_SITE in #((
3150 -*) ac_site_file1=./$CONFIG_SITE;;
3151 */*) ac_site_file1=$CONFIG_SITE;;
3152 *) ac_site_file1=./$CONFIG_SITE;;
3153 esac
cristy3ed852e2009-09-05 21:47:34 +00003154elif test "x$prefix" != xNONE; then
3155 ac_site_file1=$prefix/share/config.site
3156 ac_site_file2=$prefix/etc/config.site
3157else
3158 ac_site_file1=$ac_default_prefix/share/config.site
3159 ac_site_file2=$ac_default_prefix/etc/config.site
3160fi
3161for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3162do
3163 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003164 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003165 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003166$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3167 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003168 . "$ac_site_file" \
3169 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3171as_fn_error $? "failed to load site script $ac_site_file
3172See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003173 fi
3174done
3175
3176if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003177 # Some versions of bash will fail to source /dev/null (special files
3178 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3179 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003180 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003181$as_echo "$as_me: loading cache $cache_file" >&6;}
3182 case $cache_file in
3183 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3184 *) . "./$cache_file";;
3185 esac
3186 fi
3187else
cristy8b350f62009-11-15 23:12:43 +00003188 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003189$as_echo "$as_me: creating cache $cache_file" >&6;}
3190 >$cache_file
3191fi
3192
cristycd4c5312009-11-22 01:19:08 +00003193as_fn_append ac_header_list " stdlib.h"
3194as_fn_append ac_header_list " unistd.h"
3195as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003196# Check that the precious variables saved in the cache have kept the same
3197# value.
3198ac_cache_corrupted=false
3199for ac_var in $ac_precious_vars; do
3200 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3201 eval ac_new_set=\$ac_env_${ac_var}_set
3202 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3203 eval ac_new_val=\$ac_env_${ac_var}_value
3204 case $ac_old_set,$ac_new_set in
3205 set,)
cristy8b350f62009-11-15 23:12:43 +00003206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003207$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3208 ac_cache_corrupted=: ;;
3209 ,set)
cristy8b350f62009-11-15 23:12:43 +00003210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003211$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3212 ac_cache_corrupted=: ;;
3213 ,);;
3214 *)
3215 if test "x$ac_old_val" != "x$ac_new_val"; then
3216 # differences in whitespace do not lead to failure.
3217 ac_old_val_w=`echo x $ac_old_val`
3218 ac_new_val_w=`echo x $ac_new_val`
3219 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003221$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3222 ac_cache_corrupted=:
3223 else
cristy8b350f62009-11-15 23:12:43 +00003224 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003225$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3226 eval $ac_var=\$ac_old_val
3227 fi
cristy8b350f62009-11-15 23:12:43 +00003228 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003229$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003230 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003231$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3232 fi;;
3233 esac
3234 # Pass precious variables to config.status.
3235 if test "$ac_new_set" = set; then
3236 case $ac_new_val in
3237 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3238 *) ac_arg=$ac_var=$ac_new_val ;;
3239 esac
3240 case " $ac_configure_args " in
3241 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003242 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003243 esac
3244 fi
3245done
3246if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003250$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003251 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003252fi
cristy8b350f62009-11-15 23:12:43 +00003253## -------------------- ##
3254## Main body of script. ##
3255## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003256
3257ac_ext=c
3258ac_cpp='$CPP $CPPFLAGS'
3259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262
3263
3264
3265ac_aux_dir=
3266for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003267 if test -f "$ac_dir/install-sh"; then
3268 ac_aux_dir=$ac_dir
3269 ac_install_sh="$ac_aux_dir/install-sh -c"
3270 break
3271 elif test -f "$ac_dir/install.sh"; then
3272 ac_aux_dir=$ac_dir
3273 ac_install_sh="$ac_aux_dir/install.sh -c"
3274 break
3275 elif test -f "$ac_dir/shtool"; then
3276 ac_aux_dir=$ac_dir
3277 ac_install_sh="$ac_aux_dir/shtool install -c"
3278 break
3279 fi
cristy3ed852e2009-09-05 21:47:34 +00003280done
3281if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003282 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003283fi
3284
3285# These three variables are undocumented and unsupported,
3286# and are intended to be withdrawn in a future Autoconf release.
3287# They can cause serious problems if a builder's source tree is in a directory
3288# whose full name contains unusual characters.
3289ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3290ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3291ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3292
3293
3294
3295
3296ac_config_headers="$ac_config_headers config/config.h"
3297
cristy24fc1fe2010-10-23 21:13:01 +00003298
cristy73bd4a52010-10-05 11:24:23 +00003299ac_config_commands="$ac_config_commands magick/magick-config.h"
3300
cristy430a7312010-01-21 20:44:04 +00003301ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003302
3303
3304#
3305# Save initial user-tunable values
3306#
3307USER_LIBS=$LIBS
3308for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3309 eval isset=\${$var+set}
3310 if test "$isset" = 'set'; then
3311 eval val=$`echo $var`
3312 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3313 fi
3314done
3315
3316
3317CONFIGURE_ARGS="$0 ${ac_configure_args}"
3318
3319
3320# Source file containing package/library versioning information.
3321. ${srcdir}/version.sh
3322
cristy15a88782010-01-31 23:24:49 +00003323echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003324# Make sure we can run config.sub.
3325$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003326 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003327
cristy8b350f62009-11-15 23:12:43 +00003328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003329$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003330if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003331 $as_echo_n "(cached) " >&6
3332else
3333 ac_build_alias=$build_alias
3334test "x$ac_build_alias" = x &&
3335 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3336test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003337 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003338ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003339 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003340
3341fi
cristy8b350f62009-11-15 23:12:43 +00003342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003343$as_echo "$ac_cv_build" >&6; }
3344case $ac_cv_build in
3345*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003346*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003347esac
3348build=$ac_cv_build
3349ac_save_IFS=$IFS; IFS='-'
3350set x $ac_cv_build
3351shift
3352build_cpu=$1
3353build_vendor=$2
3354shift; shift
3355# Remember, the first character of IFS is used to create $*,
3356# except with old shells:
3357build_os=$*
3358IFS=$ac_save_IFS
3359case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3360
3361
cristy8b350f62009-11-15 23:12:43 +00003362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003363$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003364if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003365 $as_echo_n "(cached) " >&6
3366else
3367 if test "x$host_alias" = x; then
3368 ac_cv_host=$ac_cv_build
3369else
3370 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003371 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003372fi
3373
3374fi
cristy8b350f62009-11-15 23:12:43 +00003375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003376$as_echo "$ac_cv_host" >&6; }
3377case $ac_cv_host in
3378*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003379*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003380esac
3381host=$ac_cv_host
3382ac_save_IFS=$IFS; IFS='-'
3383set x $ac_cv_host
3384shift
3385host_cpu=$1
3386host_vendor=$2
3387shift; shift
3388# Remember, the first character of IFS is used to create $*,
3389# except with old shells:
3390host_os=$*
3391IFS=$ac_save_IFS
3392case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3393
3394
cristy8b350f62009-11-15 23:12:43 +00003395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003396$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003397if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003398 $as_echo_n "(cached) " >&6
3399else
3400 if test "x$target_alias" = x; then
3401 ac_cv_target=$ac_cv_host
3402else
3403 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003404 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003405fi
3406
3407fi
cristy8b350f62009-11-15 23:12:43 +00003408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003409$as_echo "$ac_cv_target" >&6; }
3410case $ac_cv_target in
3411*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003412*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003413esac
3414target=$ac_cv_target
3415ac_save_IFS=$IFS; IFS='-'
3416set x $ac_cv_target
3417shift
3418target_cpu=$1
3419target_vendor=$2
3420shift; shift
3421# Remember, the first character of IFS is used to create $*,
3422# except with old shells:
3423target_os=$*
3424IFS=$ac_save_IFS
3425case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3426
3427
3428# The aliases save the names the user supplied, while $host etc.
3429# will get canonicalized.
3430test -n "$target_alias" &&
3431 test "$program_prefix$program_suffix$program_transform_name" = \
3432 NONENONEs,x,x, &&
3433 program_prefix=${target_alias}-
3434
cristy837d6dc2010-02-27 01:16:57 +00003435
3436
3437
3438
cristy3225a072010-04-17 01:47:28 +00003439MAGICK_TARGET_CPU=$target_cpu
3440
3441
3442MAGICK_TARGET_VENDOR=$target_vendor
3443
3444
3445MAGICK_TARGET_OS=$target_os
3446
3447
cristy3ed852e2009-09-05 21:47:34 +00003448# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003449MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3450
3451MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3452
cristy4f820712011-04-01 12:35:43 +00003453MAGICK_SVN_REVISION=4138
cristyd694ca32011-03-27 21:42:54 +00003454
3455
cristy3ed852e2009-09-05 21:47:34 +00003456
3457
3458# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3460$as_echo_n "checking whether build environment is sane... " >&6; }
3461# Just in case
3462sleep 1
3463echo timestamp > conftest.file
3464# Reject unsafe characters in $srcdir or the absolute working directory
3465# name. Accept space and tab only in the latter.
3466am_lf='
3467'
3468case `pwd` in
3469 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003470 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003471esac
3472case $srcdir in
3473 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003474 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003475esac
cristy3ed852e2009-09-05 21:47:34 +00003476
cristy73bd4a52010-10-05 11:24:23 +00003477# Do `set' in a subshell so we don't clobber the current shell's
3478# arguments. Must try -L first in case configure is actually a
3479# symlink; some systems play weird games with the mod time of symlinks
3480# (eg FreeBSD returns the mod time of the symlink's containing
3481# directory).
3482if (
3483 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3484 if test "$*" = "X"; then
3485 # -L didn't work.
3486 set X `ls -t "$srcdir/configure" conftest.file`
3487 fi
3488 rm -f conftest.file
3489 if test "$*" != "X $srcdir/configure conftest.file" \
3490 && test "$*" != "X conftest.file $srcdir/configure"; then
3491
3492 # If neither matched, then we have a broken ls. This can happen
3493 # if, for instance, CONFIG_SHELL is bash and it inherits a
3494 # broken ls alias from the environment. This has actually
3495 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003496 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003497alias in your environment" "$LINENO" 5
3498 fi
3499
3500 test "$2" = conftest.file
3501 )
3502then
3503 # Ok.
3504 :
3505else
cristy98dddb52010-11-04 00:30:15 +00003506 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003507Check your system clock" "$LINENO" 5
3508fi
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3510$as_echo "yes" >&6; }
3511
3512am__api_version='1.11'
3513
3514# Find a good install program. We prefer a C program (faster),
3515# so one script is as good as another. But avoid the broken or
3516# incompatible versions:
3517# SysV /etc/install, /usr/sbin/install
3518# SunOS /usr/etc/install
3519# IRIX /sbin/install
3520# AIX /bin/install
3521# AmigaOS /C/install, which installs bootblocks on floppy discs
3522# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3523# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3524# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3525# OS/2's system install, which has a completely different semantic
3526# ./install, which can be erroneously created by make from ./install.sh.
3527# Reject install programs that cannot install multiple files.
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3529$as_echo_n "checking for a BSD-compatible install... " >&6; }
3530if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003531if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003532 $as_echo_n "(cached) " >&6
3533else
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535for as_dir in $PATH
3536do
3537 IFS=$as_save_IFS
3538 test -z "$as_dir" && as_dir=.
3539 # Account for people who put trailing slashes in PATH elements.
3540case $as_dir/ in #((
3541 ./ | .// | /[cC]/* | \
3542 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3543 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3544 /usr/ucb/* ) ;;
3545 *)
3546 # OSF1 and SCO ODT 3.0 have their own names for install.
3547 # Don't use installbsd from OSF since it installs stuff as root
3548 # by default.
3549 for ac_prog in ginstall scoinst install; do
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3552 if test $ac_prog = install &&
3553 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3554 # AIX install. It has an incompatible calling convention.
3555 :
3556 elif test $ac_prog = install &&
3557 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3558 # program-specific install script used by HP pwplus--don't use.
3559 :
3560 else
3561 rm -rf conftest.one conftest.two conftest.dir
3562 echo one > conftest.one
3563 echo two > conftest.two
3564 mkdir conftest.dir
3565 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3566 test -s conftest.one && test -s conftest.two &&
3567 test -s conftest.dir/conftest.one &&
3568 test -s conftest.dir/conftest.two
3569 then
3570 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3571 break 3
3572 fi
3573 fi
3574 fi
3575 done
3576 done
3577 ;;
3578esac
3579
3580 done
3581IFS=$as_save_IFS
3582
3583rm -rf conftest.one conftest.two conftest.dir
3584
3585fi
3586 if test "${ac_cv_path_install+set}" = set; then
3587 INSTALL=$ac_cv_path_install
3588 else
3589 # As a last resort, use the slow shell script. Don't cache a
3590 # value for INSTALL within a source directory, because that will
3591 # break other packages using the cache if that directory is
3592 # removed, or if the value is a relative name.
3593 INSTALL=$ac_install_sh
3594 fi
3595fi
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3597$as_echo "$INSTALL" >&6; }
3598
3599# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3600# It thinks the first close brace ends the variable substitution.
3601test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3602
3603test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3604
3605test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3606
3607test "$program_prefix" != NONE &&
3608 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3609# Use a double $ so make ignores it.
3610test "$program_suffix" != NONE &&
3611 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3612# Double any \ or $.
3613# By default was `s,x,x', remove it if useless.
3614ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3615program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3616
3617# expand $ac_aux_dir to an absolute path
3618am_aux_dir=`cd $ac_aux_dir && pwd`
3619
3620if test x"${MISSING+set}" != xset; then
3621 case $am_aux_dir in
3622 *\ * | *\ *)
3623 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3624 *)
3625 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3626 esac
3627fi
3628# Use eval to expand $SHELL
3629if eval "$MISSING --run true"; then
3630 am_missing_run="$MISSING --run "
3631else
3632 am_missing_run=
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3634$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3635fi
3636
3637if test x"${install_sh}" != xset; then
3638 case $am_aux_dir in
3639 *\ * | *\ *)
3640 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3641 *)
3642 install_sh="\${SHELL} $am_aux_dir/install-sh"
3643 esac
3644fi
3645
3646# Installed binaries are usually stripped using `strip' when the user
3647# run `make install-strip'. However `strip' might not be the right
3648# tool to use in cross-compilation environments, therefore Automake
3649# will honor the `STRIP' environment variable to overrule this program.
3650if test "$cross_compiling" != no; then
3651 if test -n "$ac_tool_prefix"; then
3652 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3653set dummy ${ac_tool_prefix}strip; ac_word=$2
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003656if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003657 $as_echo_n "(cached) " >&6
3658else
3659 if test -n "$STRIP"; then
3660 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3661else
3662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663for as_dir in $PATH
3664do
3665 IFS=$as_save_IFS
3666 test -z "$as_dir" && as_dir=.
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3669 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3671 break 2
3672 fi
3673done
3674 done
3675IFS=$as_save_IFS
3676
3677fi
3678fi
3679STRIP=$ac_cv_prog_STRIP
3680if test -n "$STRIP"; then
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3682$as_echo "$STRIP" >&6; }
3683else
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685$as_echo "no" >&6; }
3686fi
3687
3688
3689fi
3690if test -z "$ac_cv_prog_STRIP"; then
3691 ac_ct_STRIP=$STRIP
3692 # Extract the first word of "strip", so it can be a program name with args.
3693set dummy strip; ac_word=$2
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003696if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003697 $as_echo_n "(cached) " >&6
3698else
3699 if test -n "$ac_ct_STRIP"; then
3700 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3701else
3702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703for as_dir in $PATH
3704do
3705 IFS=$as_save_IFS
3706 test -z "$as_dir" && as_dir=.
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3709 ac_cv_prog_ac_ct_STRIP="strip"
3710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3711 break 2
3712 fi
3713done
3714 done
3715IFS=$as_save_IFS
3716
3717fi
3718fi
3719ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3720if test -n "$ac_ct_STRIP"; then
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3722$as_echo "$ac_ct_STRIP" >&6; }
3723else
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725$as_echo "no" >&6; }
3726fi
3727
3728 if test "x$ac_ct_STRIP" = x; then
3729 STRIP=":"
3730 else
3731 case $cross_compiling:$ac_tool_warned in
3732yes:)
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3735ac_tool_warned=yes ;;
3736esac
3737 STRIP=$ac_ct_STRIP
3738 fi
3739else
3740 STRIP="$ac_cv_prog_STRIP"
3741fi
3742
3743fi
3744INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3745
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3747$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3748if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003749 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003750 $as_echo_n "(cached) " >&6
3751else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3754do
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_prog in mkdir gmkdir; do
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3760 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3761 'mkdir (GNU coreutils) '* | \
3762 'mkdir (coreutils) '* | \
3763 'mkdir (fileutils) '4.1*)
3764 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3765 break 3;;
3766 esac
3767 done
3768 done
3769 done
3770IFS=$as_save_IFS
3771
3772fi
3773
3774 test -d ./--version && rmdir ./--version
3775 if test "${ac_cv_path_mkdir+set}" = set; then
3776 MKDIR_P="$ac_cv_path_mkdir -p"
3777 else
3778 # As a last resort, use the slow shell script. Don't cache a
3779 # value for MKDIR_P within a source directory, because that will
3780 # break other packages using the cache if that directory is
3781 # removed, or if the value is a relative name.
3782 MKDIR_P="$ac_install_sh -d"
3783 fi
3784fi
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3786$as_echo "$MKDIR_P" >&6; }
3787
3788mkdir_p="$MKDIR_P"
3789case $mkdir_p in
3790 [\\/$]* | ?:[\\/]*) ;;
3791 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3792esac
3793
3794for ac_prog in gawk mawk nawk awk
3795do
3796 # Extract the first word of "$ac_prog", so it can be a program name with args.
3797set dummy $ac_prog; ac_word=$2
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003800if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003801 $as_echo_n "(cached) " >&6
3802else
3803 if test -n "$AWK"; then
3804 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3805else
3806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807for as_dir in $PATH
3808do
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3813 ac_cv_prog_AWK="$ac_prog"
3814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3815 break 2
3816 fi
3817done
3818 done
3819IFS=$as_save_IFS
3820
3821fi
3822fi
3823AWK=$ac_cv_prog_AWK
3824if test -n "$AWK"; then
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3826$as_echo "$AWK" >&6; }
3827else
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829$as_echo "no" >&6; }
3830fi
3831
3832
3833 test -n "$AWK" && break
3834done
3835
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3837$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3838set x ${MAKE-make}
3839ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00003840if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003841 $as_echo_n "(cached) " >&6
3842else
3843 cat >conftest.make <<\_ACEOF
3844SHELL = /bin/sh
3845all:
3846 @echo '@@@%%%=$(MAKE)=@@@%%%'
3847_ACEOF
cristy98dddb52010-11-04 00:30:15 +00003848# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00003849case `${MAKE-make} -f conftest.make 2>/dev/null` in
3850 *@@@%%%=?*=@@@%%%*)
3851 eval ac_cv_prog_make_${ac_make}_set=yes;;
3852 *)
3853 eval ac_cv_prog_make_${ac_make}_set=no;;
3854esac
3855rm -f conftest.make
3856fi
3857if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3859$as_echo "yes" >&6; }
3860 SET_MAKE=
3861else
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3863$as_echo "no" >&6; }
3864 SET_MAKE="MAKE=${MAKE-make}"
3865fi
3866
3867rm -rf .tst 2>/dev/null
3868mkdir .tst 2>/dev/null
3869if test -d .tst; then
3870 am__leading_dot=.
3871else
3872 am__leading_dot=_
3873fi
3874rmdir .tst 2>/dev/null
3875
3876if test "`cd $srcdir && pwd`" != "`pwd`"; then
3877 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3878 # is not polluted with repeated "-I."
3879 am__isrc=' -I$(srcdir)'
3880 # test to see if srcdir already configured
3881 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00003882 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00003883 fi
3884fi
3885
3886# test whether we have cygpath
3887if test -z "$CYGPATH_W"; then
3888 if (cygpath --version) >/dev/null 2>/dev/null; then
3889 CYGPATH_W='cygpath -w'
3890 else
3891 CYGPATH_W=echo
3892 fi
3893fi
3894
3895
3896# Define the identity of the package.
3897 PACKAGE=$PACKAGE_NAME
3898 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3899
3900
3901# Some tools Automake needs.
3902
3903ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3904
3905
3906AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3907
3908
3909AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3910
3911
3912AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3913
3914
3915MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3916
3917# We need awk for the "check" target. The system "awk" is bad on
3918# some platforms.
3919# Always define AMTAR for backward compatibility.
3920
3921AMTAR=${AMTAR-"${am_missing_run}tar"}
3922
3923am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3924
3925
3926
3927
3928
cristy3ed852e2009-09-05 21:47:34 +00003929
3930# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00003931# Check whether --enable-silent-rules was given.
3932if test "${enable_silent_rules+set}" = set; then :
3933 enableval=$enable_silent_rules;
3934fi
3935
3936case $enable_silent_rules in
3937yes) AM_DEFAULT_VERBOSITY=0;;
3938no) AM_DEFAULT_VERBOSITY=1;;
3939*) AM_DEFAULT_VERBOSITY=0;;
3940esac
3941AM_BACKSLASH='\'
3942
cristy3ed852e2009-09-05 21:47:34 +00003943
3944MAGICK_LIB_VERSION="0x"
3945if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3946 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3947fi
3948MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3949if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3950 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3951fi
3952MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3953if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3954 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3955fi
3956MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3957
3958
3959# Definition used to define MagickLibVersionText in version.h
3960MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3961
3962
3963# Definition used to define MagickLibVersionNumber in version.h
3964MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3965
3966
3967# Regenerate config.status if ChangeLog or version.sh is updated.
3968CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3969
3970
3971PERLMAINCC=$CC
3972
3973MAGICK_CFLAGS=''
3974MAGICK_CPPFLAGS=$CPPFLAGS_USER
3975MAGICK_PCFLAGS=$CPPFLAGS_USER
3976MAGICK_LDFLAGS=''
3977MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00003978MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00003979
3980#
3981# Evaluate shell variable equivalents to Makefile directory variables
3982#
3983if test "x$prefix" = xNONE; then
3984 prefix=$ac_default_prefix
3985fi
3986# Let make expand exec_prefix.
3987if test "x$exec_prefix" = xNONE; then
3988 exec_prefix='${prefix}'
3989fi
3990
3991#
3992eval "eval PREFIX_DIR=${prefix}"
3993
3994eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3995
3996eval "eval BIN_DIR=$bindir"
3997
3998eval "eval SBIN_DIR=$sbindir"
3999
4000eval "eval LIBEXEC_DIR=$libexecdir"
4001
4002eval "eval DATA_DIR=$datadir"
4003
cristyd55889c2011-03-27 00:50:24 +00004004eval "eval DOC_DIR=$docdir"
4005
cristy3ed852e2009-09-05 21:47:34 +00004006eval "eval SYSCONF_DIR=$sysconfdir"
4007
4008eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4009
4010eval "eval LOCALSTATE_DIR=$localstatedir"
4011
4012eval "eval LIB_DIR=$libdir"
4013
4014eval "eval INCLUDE_DIR=$includedir"
4015
4016eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4017
4018eval "eval INFO_DIR=$infodir"
4019
4020eval "eval MAN_DIR=$mandir"
4021
4022
4023# Get full paths to source and build directories
4024srcdirfull="`cd $srcdir && pwd`"
4025builddir="`pwd`"
4026
4027#
4028# Compute variables useful for running uninstalled software.
4029#
4030MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4031MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4032MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4033MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4034DIRSEP=':'
4035case "${build_os}" in
4036 mingw* )
4037 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4038 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4039 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4040 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4041 DIRSEP=';'
4042 ;;
4043esac
4044case "${host_os}" in
4045 mingw* )
4046 DIRSEP=';'
4047 ;;
4048esac
4049
4050
4051
4052
4053
4054
cristya0b81c32010-01-22 02:54:33 +00004055
4056#
4057# Enable OS features.
4058#
cristy73bd4a52010-10-05 11:24:23 +00004059DEPDIR="${am__leading_dot}deps"
4060
4061ac_config_commands="$ac_config_commands depfiles"
4062
4063
4064am_make=${MAKE-make}
4065cat > confinc << 'END'
4066am__doit:
4067 @echo this is the am__doit target
4068.PHONY: am__doit
4069END
4070# If we don't find an include directive, just comment out the code.
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4072$as_echo_n "checking for style of include used by $am_make... " >&6; }
4073am__include="#"
4074am__quote=
4075_am_result=none
4076# First try GNU make style include.
4077echo "include confinc" > confmf
4078# Ignore all kinds of additional output from `make'.
4079case `$am_make -s -f confmf 2> /dev/null` in #(
4080*the\ am__doit\ target*)
4081 am__include=include
4082 am__quote=
4083 _am_result=GNU
4084 ;;
4085esac
4086# Now try BSD make style include.
4087if test "$am__include" = "#"; then
4088 echo '.include "confinc"' > confmf
4089 case `$am_make -s -f confmf 2> /dev/null` in #(
4090 *the\ am__doit\ target*)
4091 am__include=.include
4092 am__quote="\""
4093 _am_result=BSD
4094 ;;
4095 esac
4096fi
4097
4098
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4100$as_echo "$_am_result" >&6; }
4101rm -f confinc confmf
4102
4103# Check whether --enable-dependency-tracking was given.
4104if test "${enable_dependency_tracking+set}" = set; then :
4105 enableval=$enable_dependency_tracking;
4106fi
4107
4108if test "x$enable_dependency_tracking" != xno; then
4109 am_depcomp="$ac_aux_dir/depcomp"
4110 AMDEPBACKSLASH='\'
4111fi
4112 if test "x$enable_dependency_tracking" != xno; then
4113 AMDEP_TRUE=
4114 AMDEP_FALSE='#'
4115else
4116 AMDEP_TRUE='#'
4117 AMDEP_FALSE=
4118fi
4119
4120
cristy3ed852e2009-09-05 21:47:34 +00004121ac_ext=c
4122ac_cpp='$CPP $CPPFLAGS'
4123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126if test -n "$ac_tool_prefix"; then
4127 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4128set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004130$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004131if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004132 $as_echo_n "(cached) " >&6
4133else
4134 if test -n "$CC"; then
4135 ac_cv_prog_CC="$CC" # Let the user override the test.
4136else
4137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138for as_dir in $PATH
4139do
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004142 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4144 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004146 break 2
4147 fi
4148done
cristy8b350f62009-11-15 23:12:43 +00004149 done
cristy3ed852e2009-09-05 21:47:34 +00004150IFS=$as_save_IFS
4151
4152fi
4153fi
4154CC=$ac_cv_prog_CC
4155if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004157$as_echo "$CC" >&6; }
4158else
cristy8b350f62009-11-15 23:12:43 +00004159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004160$as_echo "no" >&6; }
4161fi
4162
4163
4164fi
4165if test -z "$ac_cv_prog_CC"; then
4166 ac_ct_CC=$CC
4167 # Extract the first word of "gcc", so it can be a program name with args.
4168set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004170$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004171if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004172 $as_echo_n "(cached) " >&6
4173else
4174 if test -n "$ac_ct_CC"; then
4175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4176else
4177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178for as_dir in $PATH
4179do
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004182 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4184 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004186 break 2
4187 fi
4188done
cristy8b350f62009-11-15 23:12:43 +00004189 done
cristy3ed852e2009-09-05 21:47:34 +00004190IFS=$as_save_IFS
4191
4192fi
4193fi
4194ac_ct_CC=$ac_cv_prog_ac_ct_CC
4195if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004197$as_echo "$ac_ct_CC" >&6; }
4198else
cristy8b350f62009-11-15 23:12:43 +00004199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004200$as_echo "no" >&6; }
4201fi
4202
4203 if test "x$ac_ct_CC" = x; then
4204 CC=""
4205 else
4206 case $cross_compiling:$ac_tool_warned in
4207yes:)
cristy8b350f62009-11-15 23:12:43 +00004208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4210ac_tool_warned=yes ;;
4211esac
4212 CC=$ac_ct_CC
4213 fi
4214else
4215 CC="$ac_cv_prog_CC"
4216fi
4217
4218if test -z "$CC"; then
4219 if test -n "$ac_tool_prefix"; then
4220 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4221set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004223$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004224if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004225 $as_echo_n "(cached) " >&6
4226else
4227 if test -n "$CC"; then
4228 ac_cv_prog_CC="$CC" # Let the user override the test.
4229else
4230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231for as_dir in $PATH
4232do
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004235 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4237 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004239 break 2
4240 fi
4241done
cristy8b350f62009-11-15 23:12:43 +00004242 done
cristy3ed852e2009-09-05 21:47:34 +00004243IFS=$as_save_IFS
4244
4245fi
4246fi
4247CC=$ac_cv_prog_CC
4248if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004250$as_echo "$CC" >&6; }
4251else
cristy8b350f62009-11-15 23:12:43 +00004252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004253$as_echo "no" >&6; }
4254fi
4255
4256
4257 fi
4258fi
4259if test -z "$CC"; then
4260 # Extract the first word of "cc", so it can be a program name with args.
4261set dummy cc; 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
4270 ac_prog_rejected=no
4271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272for as_dir in $PATH
4273do
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004276 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4278 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4279 ac_prog_rejected=yes
4280 continue
4281 fi
4282 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004284 break 2
4285 fi
4286done
cristy8b350f62009-11-15 23:12:43 +00004287 done
cristy3ed852e2009-09-05 21:47:34 +00004288IFS=$as_save_IFS
4289
4290if test $ac_prog_rejected = yes; then
4291 # We found a bogon in the path, so make sure we never use it.
4292 set dummy $ac_cv_prog_CC
4293 shift
4294 if test $# != 0; then
4295 # We chose a different compiler from the bogus one.
4296 # However, it has the same basename, so the bogon will be chosen
4297 # first if we set CC to just the basename; use the full file name.
4298 shift
4299 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4300 fi
4301fi
4302fi
4303fi
4304CC=$ac_cv_prog_CC
4305if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004307$as_echo "$CC" >&6; }
4308else
cristy8b350f62009-11-15 23:12:43 +00004309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004310$as_echo "no" >&6; }
4311fi
4312
4313
4314fi
4315if test -z "$CC"; then
4316 if test -n "$ac_tool_prefix"; then
4317 for ac_prog in cl.exe
4318 do
4319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4320set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004322$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004323if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004324 $as_echo_n "(cached) " >&6
4325else
4326 if test -n "$CC"; then
4327 ac_cv_prog_CC="$CC" # Let the user override the test.
4328else
4329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330for as_dir in $PATH
4331do
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004334 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4336 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004338 break 2
4339 fi
4340done
cristy8b350f62009-11-15 23:12:43 +00004341 done
cristy3ed852e2009-09-05 21:47:34 +00004342IFS=$as_save_IFS
4343
4344fi
4345fi
4346CC=$ac_cv_prog_CC
4347if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004349$as_echo "$CC" >&6; }
4350else
cristy8b350f62009-11-15 23:12:43 +00004351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004352$as_echo "no" >&6; }
4353fi
4354
4355
4356 test -n "$CC" && break
4357 done
4358fi
4359if test -z "$CC"; then
4360 ac_ct_CC=$CC
4361 for ac_prog in cl.exe
4362do
4363 # Extract the first word of "$ac_prog", so it can be a program name with args.
4364set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004366$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004367if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004368 $as_echo_n "(cached) " >&6
4369else
4370 if test -n "$ac_ct_CC"; then
4371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4372else
4373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374for as_dir in $PATH
4375do
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004378 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4380 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004382 break 2
4383 fi
4384done
cristy8b350f62009-11-15 23:12:43 +00004385 done
cristy3ed852e2009-09-05 21:47:34 +00004386IFS=$as_save_IFS
4387
4388fi
4389fi
4390ac_ct_CC=$ac_cv_prog_ac_ct_CC
4391if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004393$as_echo "$ac_ct_CC" >&6; }
4394else
cristy8b350f62009-11-15 23:12:43 +00004395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004396$as_echo "no" >&6; }
4397fi
4398
4399
4400 test -n "$ac_ct_CC" && break
4401done
4402
4403 if test "x$ac_ct_CC" = x; then
4404 CC=""
4405 else
4406 case $cross_compiling:$ac_tool_warned in
4407yes:)
cristy8b350f62009-11-15 23:12:43 +00004408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4410ac_tool_warned=yes ;;
4411esac
4412 CC=$ac_ct_CC
4413 fi
4414fi
4415
4416fi
4417
4418
cristy8b350f62009-11-15 23:12:43 +00004419test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004421as_fn_error $? "no acceptable C compiler found in \$PATH
4422See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004423
4424# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004425$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004426set X $ac_compile
4427ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004428for ac_option in --version -v -V -qversion; do
4429 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004430case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433esac
cristy8b350f62009-11-15 23:12:43 +00004434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4435$as_echo "$ac_try_echo"; } >&5
4436 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004437 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004438 if test -s conftest.err; then
4439 sed '10a\
4440... rest of stderr output deleted ...
4441 10q' conftest.err >conftest.er1
4442 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004443 fi
cristycd4c5312009-11-22 01:19:08 +00004444 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446 test $ac_status = 0; }
4447done
cristy3ed852e2009-09-05 21:47:34 +00004448
cristy8b350f62009-11-15 23:12:43 +00004449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004450/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004451
cristy3ed852e2009-09-05 21:47:34 +00004452int
4453main ()
4454{
4455
4456 ;
4457 return 0;
4458}
4459_ACEOF
4460ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004461ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004462# Try to create an executable without -o first, disregard a.out.
4463# It will help us diagnose broken compilers, and finding out an intuition
4464# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4466$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004467ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4468
4469# The possible output files:
4470ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4471
4472ac_rmfiles=
4473for ac_file in $ac_files
4474do
4475 case $ac_file in
4476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4477 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4478 esac
4479done
4480rm -f $ac_rmfiles
4481
cristy8b350f62009-11-15 23:12:43 +00004482if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004483case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4486esac
cristy8b350f62009-11-15 23:12:43 +00004487eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4488$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004489 (eval "$ac_link_default") 2>&5
4490 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4492 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004493 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4494# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4495# in a Makefile. We should not override ac_cv_exeext if it was cached,
4496# so that the user can short-circuit this test for compilers unknown to
4497# Autoconf.
4498for ac_file in $ac_files ''
4499do
4500 test -f "$ac_file" || continue
4501 case $ac_file in
4502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4503 ;;
4504 [ab].out )
4505 # We found the default executable, but exeext='' is most
4506 # certainly right.
4507 break;;
4508 *.* )
cristy8b350f62009-11-15 23:12:43 +00004509 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004510 then :; else
4511 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4512 fi
4513 # We set ac_cv_exeext here because the later test for it is not
4514 # safe: cross compilers may not add the suffix if given an `-o'
4515 # argument, so we may need to know it at that point already.
4516 # Even if this section looks crufty: it has the advantage of
4517 # actually working.
4518 break;;
4519 * )
4520 break;;
4521 esac
4522done
4523test "$ac_cv_exeext" = no && ac_cv_exeext=
4524
4525else
4526 ac_file=''
4527fi
cristy8b350f62009-11-15 23:12:43 +00004528if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530$as_echo "no" >&6; }
4531$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004532sed 's/^/| /' conftest.$ac_ext >&5
4533
cristy8b350f62009-11-15 23:12:43 +00004534{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004536as_fn_error 77 "C compiler cannot create executables
4537See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004538else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4540$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004541fi
cristycd4c5312009-11-22 01:19:08 +00004542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4543$as_echo_n "checking for C compiler default output file name... " >&6; }
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4545$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004546ac_exeext=$ac_cv_exeext
4547
cristycd4c5312009-11-22 01:19:08 +00004548rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004549ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004551$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004552if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004553case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4556esac
cristy8b350f62009-11-15 23:12:43 +00004557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4558$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004559 (eval "$ac_link") 2>&5
4560 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4562 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004563 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4564# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4565# work properly (i.e., refer to `conftest.exe'), while it won't with
4566# `rm'.
4567for ac_file in conftest.exe conftest conftest.*; do
4568 test -f "$ac_file" || continue
4569 case $ac_file in
4570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4571 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4572 break;;
4573 * ) break;;
4574 esac
4575done
4576else
cristy8b350f62009-11-15 23:12:43 +00004577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004579as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4580See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004581fi
cristycd4c5312009-11-22 01:19:08 +00004582rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004584$as_echo "$ac_cv_exeext" >&6; }
4585
4586rm -f conftest.$ac_ext
4587EXEEXT=$ac_cv_exeext
4588ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590/* end confdefs.h. */
4591#include <stdio.h>
4592int
4593main ()
4594{
4595FILE *f = fopen ("conftest.out", "w");
4596 return ferror (f) || fclose (f) != 0;
4597
4598 ;
4599 return 0;
4600}
4601_ACEOF
4602ac_clean_files="$ac_clean_files conftest.out"
4603# Check that the compiler produces executables we can run. If not, either
4604# the compiler is broken, or we cross compile.
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4606$as_echo_n "checking whether we are cross compiling... " >&6; }
4607if test "$cross_compiling" != yes; then
4608 { { ac_try="$ac_link"
4609case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4612esac
4613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4614$as_echo "$ac_try_echo"; } >&5
4615 (eval "$ac_link") 2>&5
4616 ac_status=$?
4617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4618 test $ac_status = 0; }
4619 if { ac_try='./conftest$ac_cv_exeext'
4620 { { case "(($ac_try" in
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4623esac
4624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4625$as_echo "$ac_try_echo"; } >&5
4626 (eval "$ac_try") 2>&5
4627 ac_status=$?
4628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629 test $ac_status = 0; }; }; then
4630 cross_compiling=no
4631 else
4632 if test "$cross_compiling" = maybe; then
4633 cross_compiling=yes
4634 else
4635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004637as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004638If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004639See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004640 fi
4641 fi
4642fi
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4644$as_echo "$cross_compiling" >&6; }
4645
4646rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4647ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004649$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004650if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004651 $as_echo_n "(cached) " >&6
4652else
cristy8b350f62009-11-15 23:12:43 +00004653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004654/* end confdefs.h. */
4655
4656int
4657main ()
4658{
4659
4660 ;
4661 return 0;
4662}
4663_ACEOF
4664rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004665if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004666case "(($ac_try" in
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4669esac
cristy8b350f62009-11-15 23:12:43 +00004670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4671$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004672 (eval "$ac_compile") 2>&5
4673 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4675 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004676 for ac_file in conftest.o conftest.obj conftest.*; do
4677 test -f "$ac_file" || continue;
4678 case $ac_file in
4679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4680 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4681 break;;
4682 esac
4683done
4684else
4685 $as_echo "$as_me: failed program was:" >&5
4686sed 's/^/| /' conftest.$ac_ext >&5
4687
cristy8b350f62009-11-15 23:12:43 +00004688{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004690as_fn_error $? "cannot compute suffix of object files: cannot compile
4691See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004692fi
cristy3ed852e2009-09-05 21:47:34 +00004693rm -f conftest.$ac_cv_objext conftest.$ac_ext
4694fi
cristy8b350f62009-11-15 23:12:43 +00004695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004696$as_echo "$ac_cv_objext" >&6; }
4697OBJEXT=$ac_cv_objext
4698ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004700$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004701if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004702 $as_echo_n "(cached) " >&6
4703else
cristy8b350f62009-11-15 23:12:43 +00004704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004705/* end confdefs.h. */
4706
4707int
4708main ()
4709{
4710#ifndef __GNUC__
4711 choke me
4712#endif
4713
4714 ;
4715 return 0;
4716}
4717_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004718if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004719 ac_compiler_gnu=yes
4720else
cristy8b350f62009-11-15 23:12:43 +00004721 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004722fi
cristy3ed852e2009-09-05 21:47:34 +00004723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724ac_cv_c_compiler_gnu=$ac_compiler_gnu
4725
4726fi
cristy8b350f62009-11-15 23:12:43 +00004727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004728$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4729if test $ac_compiler_gnu = yes; then
4730 GCC=yes
4731else
4732 GCC=
4733fi
4734ac_test_CFLAGS=${CFLAGS+set}
4735ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004737$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004738if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004739 $as_echo_n "(cached) " >&6
4740else
4741 ac_save_c_werror_flag=$ac_c_werror_flag
4742 ac_c_werror_flag=yes
4743 ac_cv_prog_cc_g=no
4744 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004746/* end confdefs.h. */
4747
4748int
4749main ()
4750{
4751
4752 ;
4753 return 0;
4754}
4755_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004756if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004757 ac_cv_prog_cc_g=yes
4758else
cristy8b350f62009-11-15 23:12:43 +00004759 CFLAGS=""
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004761/* end confdefs.h. */
4762
4763int
4764main ()
4765{
4766
4767 ;
4768 return 0;
4769}
4770_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004771if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004772
cristy8b350f62009-11-15 23:12:43 +00004773else
4774 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004775 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004777/* end confdefs.h. */
4778
4779int
4780main ()
4781{
4782
4783 ;
4784 return 0;
4785}
4786_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004787if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004788 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004789fi
cristy3ed852e2009-09-05 21:47:34 +00004790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791fi
cristy3ed852e2009-09-05 21:47:34 +00004792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793fi
cristy3ed852e2009-09-05 21:47:34 +00004794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 ac_c_werror_flag=$ac_save_c_werror_flag
4796fi
cristy8b350f62009-11-15 23:12:43 +00004797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004798$as_echo "$ac_cv_prog_cc_g" >&6; }
4799if test "$ac_test_CFLAGS" = set; then
4800 CFLAGS=$ac_save_CFLAGS
4801elif test $ac_cv_prog_cc_g = yes; then
4802 if test "$GCC" = yes; then
4803 CFLAGS="-g -O2"
4804 else
4805 CFLAGS="-g"
4806 fi
4807else
4808 if test "$GCC" = yes; then
4809 CFLAGS="-O2"
4810 else
4811 CFLAGS=
4812 fi
4813fi
cristy8b350f62009-11-15 23:12:43 +00004814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004815$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004816if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004817 $as_echo_n "(cached) " >&6
4818else
4819 ac_cv_prog_cc_c89=no
4820ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004822/* end confdefs.h. */
4823#include <stdarg.h>
4824#include <stdio.h>
4825#include <sys/types.h>
4826#include <sys/stat.h>
4827/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4828struct buf { int x; };
4829FILE * (*rcsopen) (struct buf *, struct stat *, int);
4830static char *e (p, i)
4831 char **p;
4832 int i;
4833{
4834 return p[i];
4835}
4836static char *f (char * (*g) (char **, int), char **p, ...)
4837{
4838 char *s;
4839 va_list v;
4840 va_start (v,p);
4841 s = g (p, va_arg (v,int));
4842 va_end (v);
4843 return s;
4844}
4845
4846/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4847 function prototypes and stuff, but not '\xHH' hex character constants.
4848 These don't provoke an error unfortunately, instead are silently treated
4849 as 'x'. The following induces an error, until -std is added to get
4850 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4851 array size at least. It's necessary to write '\x00'==0 to get something
4852 that's true only with -std. */
4853int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4854
4855/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4856 inside strings and character constants. */
4857#define FOO(x) 'x'
4858int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4859
4860int test (int i, double x);
4861struct s1 {int (*f) (int a);};
4862struct s2 {int (*f) (double a);};
4863int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4864int argc;
4865char **argv;
4866int
4867main ()
4868{
4869return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4870 ;
4871 return 0;
4872}
4873_ACEOF
4874for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4875 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4876do
4877 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004878 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004879 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004880fi
cristy3ed852e2009-09-05 21:47:34 +00004881rm -f core conftest.err conftest.$ac_objext
4882 test "x$ac_cv_prog_cc_c89" != "xno" && break
4883done
4884rm -f conftest.$ac_ext
4885CC=$ac_save_CC
4886
4887fi
4888# AC_CACHE_VAL
4889case "x$ac_cv_prog_cc_c89" in
4890 x)
cristy8b350f62009-11-15 23:12:43 +00004891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004892$as_echo "none needed" >&6; } ;;
4893 xno)
cristy8b350f62009-11-15 23:12:43 +00004894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004895$as_echo "unsupported" >&6; } ;;
4896 *)
4897 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004899$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4900esac
cristy8b350f62009-11-15 23:12:43 +00004901if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004902
cristy8b350f62009-11-15 23:12:43 +00004903fi
cristy3ed852e2009-09-05 21:47:34 +00004904
4905ac_ext=c
4906ac_cpp='$CPP $CPPFLAGS'
4907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4909ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004910
cristy73bd4a52010-10-05 11:24:23 +00004911depcc="$CC" am_compiler_list=
4912
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4914$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004915if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004916 $as_echo_n "(cached) " >&6
4917else
4918 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4919 # We make a subdir and do the tests there. Otherwise we can end up
4920 # making bogus files that we don't know about and never remove. For
4921 # instance it was reported that on HP-UX the gcc test will end up
4922 # making a dummy file named `D' -- because `-MD' means `put the output
4923 # in D'.
4924 mkdir conftest.dir
4925 # Copy depcomp to subdir because otherwise we won't find it if we're
4926 # using a relative directory.
4927 cp "$am_depcomp" conftest.dir
4928 cd conftest.dir
4929 # We will build objects and dependencies in a subdirectory because
4930 # it helps to detect inapplicable dependency modes. For instance
4931 # both Tru64's cc and ICC support -MD to output dependencies as a
4932 # side effect of compilation, but ICC will put the dependencies in
4933 # the current directory while Tru64 will put them in the object
4934 # directory.
4935 mkdir sub
4936
4937 am_cv_CC_dependencies_compiler_type=none
4938 if test "$am_compiler_list" = ""; then
4939 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4940 fi
4941 am__universal=false
4942 case " $depcc " in #(
4943 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4944 esac
4945
4946 for depmode in $am_compiler_list; do
4947 # Setup a source with many dependencies, because some compilers
4948 # like to wrap large dependency lists on column 80 (with \), and
4949 # we should not choose a depcomp mode which is confused by this.
4950 #
4951 # We need to recreate these files for each test, as the compiler may
4952 # overwrite some of them when testing with obscure command lines.
4953 # This happens at least with the AIX C compiler.
4954 : > sub/conftest.c
4955 for i in 1 2 3 4 5 6; do
4956 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4957 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4958 # Solaris 8's {/usr,}/bin/sh.
4959 touch sub/conftst$i.h
4960 done
4961 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4962
4963 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4964 # mode. It turns out that the SunPro C++ compiler does not properly
4965 # handle `-M -o', and we need to detect this. Also, some Intel
4966 # versions had trouble with output in subdirs
4967 am__obj=sub/conftest.${OBJEXT-o}
4968 am__minus_obj="-o $am__obj"
4969 case $depmode in
4970 gcc)
4971 # This depmode causes a compiler race in universal mode.
4972 test "$am__universal" = false || continue
4973 ;;
4974 nosideeffect)
4975 # after this tag, mechanisms are not by side-effect, so they'll
4976 # only be used when explicitly requested
4977 if test "x$enable_dependency_tracking" = xyes; then
4978 continue
4979 else
4980 break
4981 fi
4982 ;;
4983 msvisualcpp | msvcmsys)
4984 # This compiler won't grok `-c -o', but also, the minuso test has
4985 # not run yet. These depmodes are late enough in the game, and
4986 # so weak that their functioning should not be impacted.
4987 am__obj=conftest.${OBJEXT-o}
4988 am__minus_obj=
4989 ;;
4990 none) break ;;
4991 esac
4992 if depmode=$depmode \
4993 source=sub/conftest.c object=$am__obj \
4994 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4995 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4996 >/dev/null 2>conftest.err &&
4997 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4998 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4999 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5000 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5001 # icc doesn't choke on unknown options, it will just issue warnings
5002 # or remarks (even with -Werror). So we grep stderr for any message
5003 # that says an option was ignored or not supported.
5004 # When given -MP, icc 7.0 and 7.1 complain thusly:
5005 # icc: Command line warning: ignoring option '-M'; no argument required
5006 # The diagnosis changed in icc 8.0:
5007 # icc: Command line remark: option '-MP' not supported
5008 if (grep 'ignoring option' conftest.err ||
5009 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5010 am_cv_CC_dependencies_compiler_type=$depmode
5011 break
5012 fi
5013 fi
5014 done
5015
5016 cd ..
5017 rm -rf conftest.dir
5018else
5019 am_cv_CC_dependencies_compiler_type=none
5020fi
5021
5022fi
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5024$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5025CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5026
5027 if
5028 test "x$enable_dependency_tracking" != xno \
5029 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5030 am__fastdepCC_TRUE=
5031 am__fastdepCC_FALSE='#'
5032else
5033 am__fastdepCC_TRUE='#'
5034 am__fastdepCC_FALSE=
5035fi
5036
5037
cristy3ed852e2009-09-05 21:47:34 +00005038
cristya0b81c32010-01-22 02:54:33 +00005039ac_ext=c
5040ac_cpp='$CPP $CPPFLAGS'
5041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5043ac_compiler_gnu=$ac_cv_c_compiler_gnu
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5045$as_echo_n "checking how to run the C preprocessor... " >&6; }
5046# On Suns, sometimes $CPP names a directory.
5047if test -n "$CPP" && test -d "$CPP"; then
5048 CPP=
5049fi
5050if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005051 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005052 $as_echo_n "(cached) " >&6
5053else
5054 # Double quotes because CPP needs to be expanded
5055 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5056 do
5057 ac_preproc_ok=false
5058for ac_c_preproc_warn_flag in '' yes
5059do
5060 # Use a header file that comes with gcc, so configuring glibc
5061 # with a fresh cross-compiler works.
5062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5063 # <limits.h> exists even on freestanding compilers.
5064 # On the NeXT, cc -E runs the code through the compiler's parser,
5065 # not just through cpp. "Syntax error" is here to catch this case.
5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067/* end confdefs.h. */
5068#ifdef __STDC__
5069# include <limits.h>
5070#else
5071# include <assert.h>
5072#endif
5073 Syntax error
5074_ACEOF
5075if ac_fn_c_try_cpp "$LINENO"; then :
5076
5077else
5078 # Broken: fails on valid input.
5079continue
5080fi
cristyda16f162011-02-19 23:52:17 +00005081rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005082
5083 # OK, works on sane cases. Now check whether nonexistent headers
5084 # can be detected and how.
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086/* end confdefs.h. */
5087#include <ac_nonexistent.h>
5088_ACEOF
5089if ac_fn_c_try_cpp "$LINENO"; then :
5090 # Broken: success on invalid input.
5091continue
5092else
5093 # Passes both tests.
5094ac_preproc_ok=:
5095break
5096fi
cristyda16f162011-02-19 23:52:17 +00005097rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005098
5099done
5100# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005101rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005102if $ac_preproc_ok; then :
5103 break
5104fi
5105
5106 done
5107 ac_cv_prog_CPP=$CPP
5108
5109fi
5110 CPP=$ac_cv_prog_CPP
5111else
5112 ac_cv_prog_CPP=$CPP
5113fi
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5115$as_echo "$CPP" >&6; }
5116ac_preproc_ok=false
5117for ac_c_preproc_warn_flag in '' yes
5118do
5119 # Use a header file that comes with gcc, so configuring glibc
5120 # with a fresh cross-compiler works.
5121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5122 # <limits.h> exists even on freestanding compilers.
5123 # On the NeXT, cc -E runs the code through the compiler's parser,
5124 # not just through cpp. "Syntax error" is here to catch this case.
5125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5126/* end confdefs.h. */
5127#ifdef __STDC__
5128# include <limits.h>
5129#else
5130# include <assert.h>
5131#endif
5132 Syntax error
5133_ACEOF
5134if ac_fn_c_try_cpp "$LINENO"; then :
5135
5136else
5137 # Broken: fails on valid input.
5138continue
5139fi
cristyda16f162011-02-19 23:52:17 +00005140rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005141
5142 # OK, works on sane cases. Now check whether nonexistent headers
5143 # can be detected and how.
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145/* end confdefs.h. */
5146#include <ac_nonexistent.h>
5147_ACEOF
5148if ac_fn_c_try_cpp "$LINENO"; then :
5149 # Broken: success on invalid input.
5150continue
5151else
5152 # Passes both tests.
5153ac_preproc_ok=:
5154break
5155fi
cristyda16f162011-02-19 23:52:17 +00005156rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005157
5158done
5159# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005160rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005161if $ac_preproc_ok; then :
5162
5163else
5164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005166as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5167See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005168fi
5169
5170ac_ext=c
5171ac_cpp='$CPP $CPPFLAGS'
5172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5174ac_compiler_gnu=$ac_cv_c_compiler_gnu
5175
5176
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5178$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005179if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005180 $as_echo_n "(cached) " >&6
5181else
5182 if test -z "$GREP"; then
5183 ac_path_GREP_found=false
5184 # Loop through the user's path and test for each of PROGNAME-LIST
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5187do
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_prog in grep ggrep; do
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5193 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5194# Check for GNU ac_path_GREP and select it if it is found.
5195 # Check for GNU $ac_path_GREP
5196case `"$ac_path_GREP" --version 2>&1` in
5197*GNU*)
5198 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5199*)
5200 ac_count=0
5201 $as_echo_n 0123456789 >"conftest.in"
5202 while :
5203 do
5204 cat "conftest.in" "conftest.in" >"conftest.tmp"
5205 mv "conftest.tmp" "conftest.in"
5206 cp "conftest.in" "conftest.nl"
5207 $as_echo 'GREP' >> "conftest.nl"
5208 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5210 as_fn_arith $ac_count + 1 && ac_count=$as_val
5211 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5212 # Best one so far, save it but keep looking for a better one
5213 ac_cv_path_GREP="$ac_path_GREP"
5214 ac_path_GREP_max=$ac_count
5215 fi
5216 # 10*(2^10) chars as input seems more than enough
5217 test $ac_count -gt 10 && break
5218 done
5219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5220esac
5221
5222 $ac_path_GREP_found && break 3
5223 done
5224 done
5225 done
5226IFS=$as_save_IFS
5227 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005228 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005229 fi
5230else
5231 ac_cv_path_GREP=$GREP
5232fi
5233
5234fi
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5236$as_echo "$ac_cv_path_GREP" >&6; }
5237 GREP="$ac_cv_path_GREP"
5238
5239
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5241$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005242if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005243 $as_echo_n "(cached) " >&6
5244else
5245 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5246 then ac_cv_path_EGREP="$GREP -E"
5247 else
5248 if test -z "$EGREP"; then
5249 ac_path_EGREP_found=false
5250 # Loop through the user's path and test for each of PROGNAME-LIST
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5253do
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_prog in egrep; do
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5259 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5260# Check for GNU ac_path_EGREP and select it if it is found.
5261 # Check for GNU $ac_path_EGREP
5262case `"$ac_path_EGREP" --version 2>&1` in
5263*GNU*)
5264 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5265*)
5266 ac_count=0
5267 $as_echo_n 0123456789 >"conftest.in"
5268 while :
5269 do
5270 cat "conftest.in" "conftest.in" >"conftest.tmp"
5271 mv "conftest.tmp" "conftest.in"
5272 cp "conftest.in" "conftest.nl"
5273 $as_echo 'EGREP' >> "conftest.nl"
5274 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5276 as_fn_arith $ac_count + 1 && ac_count=$as_val
5277 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5278 # Best one so far, save it but keep looking for a better one
5279 ac_cv_path_EGREP="$ac_path_EGREP"
5280 ac_path_EGREP_max=$ac_count
5281 fi
5282 # 10*(2^10) chars as input seems more than enough
5283 test $ac_count -gt 10 && break
5284 done
5285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5286esac
5287
5288 $ac_path_EGREP_found && break 3
5289 done
5290 done
5291 done
5292IFS=$as_save_IFS
5293 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005294 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005295 fi
5296else
5297 ac_cv_path_EGREP=$EGREP
5298fi
5299
5300 fi
5301fi
5302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5303$as_echo "$ac_cv_path_EGREP" >&6; }
5304 EGREP="$ac_cv_path_EGREP"
5305
5306
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5308$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005309if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005310 $as_echo_n "(cached) " >&6
5311else
5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313/* end confdefs.h. */
5314#include <stdlib.h>
5315#include <stdarg.h>
5316#include <string.h>
5317#include <float.h>
5318
5319int
5320main ()
5321{
5322
5323 ;
5324 return 0;
5325}
5326_ACEOF
5327if ac_fn_c_try_compile "$LINENO"; then :
5328 ac_cv_header_stdc=yes
5329else
5330 ac_cv_header_stdc=no
5331fi
5332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5333
5334if test $ac_cv_header_stdc = yes; then
5335 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337/* end confdefs.h. */
5338#include <string.h>
5339
5340_ACEOF
5341if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5342 $EGREP "memchr" >/dev/null 2>&1; then :
5343
5344else
5345 ac_cv_header_stdc=no
5346fi
5347rm -f conftest*
5348
5349fi
5350
5351if test $ac_cv_header_stdc = yes; then
5352 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354/* end confdefs.h. */
5355#include <stdlib.h>
5356
5357_ACEOF
5358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5359 $EGREP "free" >/dev/null 2>&1; then :
5360
5361else
5362 ac_cv_header_stdc=no
5363fi
5364rm -f conftest*
5365
5366fi
5367
5368if test $ac_cv_header_stdc = yes; then
5369 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5370 if test "$cross_compiling" = yes; then :
5371 :
5372else
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374/* end confdefs.h. */
5375#include <ctype.h>
5376#include <stdlib.h>
5377#if ((' ' & 0x0FF) == 0x020)
5378# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5379# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5380#else
5381# define ISLOWER(c) \
5382 (('a' <= (c) && (c) <= 'i') \
5383 || ('j' <= (c) && (c) <= 'r') \
5384 || ('s' <= (c) && (c) <= 'z'))
5385# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5386#endif
5387
5388#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5389int
5390main ()
5391{
5392 int i;
5393 for (i = 0; i < 256; i++)
5394 if (XOR (islower (i), ISLOWER (i))
5395 || toupper (i) != TOUPPER (i))
5396 return 2;
5397 return 0;
5398}
5399_ACEOF
5400if ac_fn_c_try_run "$LINENO"; then :
5401
5402else
5403 ac_cv_header_stdc=no
5404fi
5405rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5406 conftest.$ac_objext conftest.beam conftest.$ac_ext
5407fi
5408
5409fi
5410fi
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5412$as_echo "$ac_cv_header_stdc" >&6; }
5413if test $ac_cv_header_stdc = yes; then
5414
5415$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5416
5417fi
5418
5419# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5420for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5421 inttypes.h stdint.h unistd.h
5422do :
5423 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5424ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5425"
cristy98dddb52010-11-04 00:30:15 +00005426if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005427 cat >>confdefs.h <<_ACEOF
5428#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5429_ACEOF
5430
5431fi
5432
5433done
5434
5435
5436
5437 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 +00005438if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005439 MINIX=yes
5440else
5441 MINIX=
5442fi
5443
5444
5445 if test "$MINIX" = yes; then
5446
5447$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5448
5449
5450$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5451
5452
5453$as_echo "#define _MINIX 1" >>confdefs.h
5454
5455 fi
5456
5457
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5459$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005460if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005461 $as_echo_n "(cached) " >&6
5462else
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464/* end confdefs.h. */
5465
5466# define __EXTENSIONS__ 1
5467 $ac_includes_default
5468int
5469main ()
5470{
5471
5472 ;
5473 return 0;
5474}
5475_ACEOF
5476if ac_fn_c_try_compile "$LINENO"; then :
5477 ac_cv_safe_to_define___extensions__=yes
5478else
5479 ac_cv_safe_to_define___extensions__=no
5480fi
5481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482fi
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5484$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5485 test $ac_cv_safe_to_define___extensions__ = yes &&
5486 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5487
5488 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5489
5490 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5491
5492 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5493
5494 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5495
5496
5497
5498# Check for programs
5499ac_ext=c
5500ac_cpp='$CPP $CPPFLAGS'
5501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5503ac_compiler_gnu=$ac_cv_c_compiler_gnu
5504if test -n "$ac_tool_prefix"; then
5505 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5506set dummy ${ac_tool_prefix}gcc; ac_word=$2
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005509if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005510 $as_echo_n "(cached) " >&6
5511else
5512 if test -n "$CC"; then
5513 ac_cv_prog_CC="$CC" # Let the user override the test.
5514else
5515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516for as_dir in $PATH
5517do
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5522 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 break 2
5525 fi
5526done
5527 done
5528IFS=$as_save_IFS
5529
5530fi
5531fi
5532CC=$ac_cv_prog_CC
5533if test -n "$CC"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5535$as_echo "$CC" >&6; }
5536else
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538$as_echo "no" >&6; }
5539fi
5540
5541
5542fi
5543if test -z "$ac_cv_prog_CC"; then
5544 ac_ct_CC=$CC
5545 # Extract the first word of "gcc", so it can be a program name with args.
5546set dummy gcc; ac_word=$2
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005549if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005550 $as_echo_n "(cached) " >&6
5551else
5552 if test -n "$ac_ct_CC"; then
5553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5554else
5555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556for as_dir in $PATH
5557do
5558 IFS=$as_save_IFS
5559 test -z "$as_dir" && as_dir=.
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5562 ac_cv_prog_ac_ct_CC="gcc"
5563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 break 2
5565 fi
5566done
5567 done
5568IFS=$as_save_IFS
5569
5570fi
5571fi
5572ac_ct_CC=$ac_cv_prog_ac_ct_CC
5573if test -n "$ac_ct_CC"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5575$as_echo "$ac_ct_CC" >&6; }
5576else
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578$as_echo "no" >&6; }
5579fi
5580
5581 if test "x$ac_ct_CC" = x; then
5582 CC=""
5583 else
5584 case $cross_compiling:$ac_tool_warned in
5585yes:)
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5588ac_tool_warned=yes ;;
5589esac
5590 CC=$ac_ct_CC
5591 fi
5592else
5593 CC="$ac_cv_prog_CC"
5594fi
5595
5596if test -z "$CC"; then
5597 if test -n "$ac_tool_prefix"; then
5598 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5599set dummy ${ac_tool_prefix}cc; ac_word=$2
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005602if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005603 $as_echo_n "(cached) " >&6
5604else
5605 if test -n "$CC"; then
5606 ac_cv_prog_CC="$CC" # Let the user override the test.
5607else
5608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609for as_dir in $PATH
5610do
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615 ac_cv_prog_CC="${ac_tool_prefix}cc"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5618 fi
5619done
5620 done
5621IFS=$as_save_IFS
5622
5623fi
5624fi
5625CC=$ac_cv_prog_CC
5626if test -n "$CC"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5628$as_echo "$CC" >&6; }
5629else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631$as_echo "no" >&6; }
5632fi
5633
5634
5635 fi
5636fi
5637if test -z "$CC"; then
5638 # Extract the first word of "cc", so it can be a program name with args.
5639set dummy cc; 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
5648 ac_prog_rejected=no
5649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650for as_dir in $PATH
5651do
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5656 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5657 ac_prog_rejected=yes
5658 continue
5659 fi
5660 ac_cv_prog_CC="cc"
5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 break 2
5663 fi
5664done
5665 done
5666IFS=$as_save_IFS
5667
5668if test $ac_prog_rejected = yes; then
5669 # We found a bogon in the path, so make sure we never use it.
5670 set dummy $ac_cv_prog_CC
5671 shift
5672 if test $# != 0; then
5673 # We chose a different compiler from the bogus one.
5674 # However, it has the same basename, so the bogon will be chosen
5675 # first if we set CC to just the basename; use the full file name.
5676 shift
5677 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5678 fi
5679fi
5680fi
5681fi
5682CC=$ac_cv_prog_CC
5683if test -n "$CC"; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5685$as_echo "$CC" >&6; }
5686else
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5688$as_echo "no" >&6; }
5689fi
5690
5691
5692fi
5693if test -z "$CC"; then
5694 if test -n "$ac_tool_prefix"; then
5695 for ac_prog in cl.exe
5696 do
5697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5698set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005701if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005702 $as_echo_n "(cached) " >&6
5703else
5704 if test -n "$CC"; then
5705 ac_cv_prog_CC="$CC" # Let the user override the test.
5706else
5707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708for as_dir in $PATH
5709do
5710 IFS=$as_save_IFS
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5714 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716 break 2
5717 fi
5718done
5719 done
5720IFS=$as_save_IFS
5721
5722fi
5723fi
5724CC=$ac_cv_prog_CC
5725if test -n "$CC"; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5727$as_echo "$CC" >&6; }
5728else
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730$as_echo "no" >&6; }
5731fi
5732
5733
5734 test -n "$CC" && break
5735 done
5736fi
5737if test -z "$CC"; then
5738 ac_ct_CC=$CC
5739 for ac_prog in cl.exe
5740do
5741 # Extract the first word of "$ac_prog", so it can be a program name with args.
5742set dummy $ac_prog; ac_word=$2
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005745if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005746 $as_echo_n "(cached) " >&6
5747else
5748 if test -n "$ac_ct_CC"; then
5749 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5750else
5751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752for as_dir in $PATH
5753do
5754 IFS=$as_save_IFS
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5758 ac_cv_prog_ac_ct_CC="$ac_prog"
5759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 break 2
5761 fi
5762done
5763 done
5764IFS=$as_save_IFS
5765
5766fi
5767fi
5768ac_ct_CC=$ac_cv_prog_ac_ct_CC
5769if test -n "$ac_ct_CC"; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5771$as_echo "$ac_ct_CC" >&6; }
5772else
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774$as_echo "no" >&6; }
5775fi
5776
5777
5778 test -n "$ac_ct_CC" && break
5779done
5780
5781 if test "x$ac_ct_CC" = x; then
5782 CC=""
5783 else
5784 case $cross_compiling:$ac_tool_warned in
5785yes:)
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5788ac_tool_warned=yes ;;
5789esac
5790 CC=$ac_ct_CC
5791 fi
5792fi
5793
5794fi
5795
5796
5797test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5798$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005799as_fn_error $? "no acceptable C compiler found in \$PATH
5800See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005801
5802# Provide some information about the compiler.
5803$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5804set X $ac_compile
5805ac_compiler=$2
5806for ac_option in --version -v -V -qversion; do
5807 { { ac_try="$ac_compiler $ac_option >&5"
5808case "(($ac_try" in
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5811esac
5812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5813$as_echo "$ac_try_echo"; } >&5
5814 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5815 ac_status=$?
5816 if test -s conftest.err; then
5817 sed '10a\
5818... rest of stderr output deleted ...
5819 10q' conftest.err >conftest.er1
5820 cat conftest.er1 >&5
5821 fi
5822 rm -f conftest.er1 conftest.err
5823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5824 test $ac_status = 0; }
5825done
5826
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5828$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005829if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005830 $as_echo_n "(cached) " >&6
5831else
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833/* end confdefs.h. */
5834
5835int
5836main ()
5837{
5838#ifndef __GNUC__
5839 choke me
5840#endif
5841
5842 ;
5843 return 0;
5844}
5845_ACEOF
5846if ac_fn_c_try_compile "$LINENO"; then :
5847 ac_compiler_gnu=yes
5848else
5849 ac_compiler_gnu=no
5850fi
5851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852ac_cv_c_compiler_gnu=$ac_compiler_gnu
5853
5854fi
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5856$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5857if test $ac_compiler_gnu = yes; then
5858 GCC=yes
5859else
5860 GCC=
5861fi
5862ac_test_CFLAGS=${CFLAGS+set}
5863ac_save_CFLAGS=$CFLAGS
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5865$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005866if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005867 $as_echo_n "(cached) " >&6
5868else
5869 ac_save_c_werror_flag=$ac_c_werror_flag
5870 ac_c_werror_flag=yes
5871 ac_cv_prog_cc_g=no
5872 CFLAGS="-g"
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874/* end confdefs.h. */
5875
5876int
5877main ()
5878{
5879
5880 ;
5881 return 0;
5882}
5883_ACEOF
5884if ac_fn_c_try_compile "$LINENO"; then :
5885 ac_cv_prog_cc_g=yes
5886else
5887 CFLAGS=""
5888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889/* end confdefs.h. */
5890
5891int
5892main ()
5893{
5894
5895 ;
5896 return 0;
5897}
5898_ACEOF
5899if ac_fn_c_try_compile "$LINENO"; then :
5900
5901else
5902 ac_c_werror_flag=$ac_save_c_werror_flag
5903 CFLAGS="-g"
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905/* end confdefs.h. */
5906
5907int
5908main ()
5909{
5910
5911 ;
5912 return 0;
5913}
5914_ACEOF
5915if ac_fn_c_try_compile "$LINENO"; then :
5916 ac_cv_prog_cc_g=yes
5917fi
5918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5919fi
5920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5921fi
5922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5923 ac_c_werror_flag=$ac_save_c_werror_flag
5924fi
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5926$as_echo "$ac_cv_prog_cc_g" >&6; }
5927if test "$ac_test_CFLAGS" = set; then
5928 CFLAGS=$ac_save_CFLAGS
5929elif test $ac_cv_prog_cc_g = yes; then
5930 if test "$GCC" = yes; then
5931 CFLAGS="-g -O2"
5932 else
5933 CFLAGS="-g"
5934 fi
5935else
5936 if test "$GCC" = yes; then
5937 CFLAGS="-O2"
5938 else
5939 CFLAGS=
5940 fi
5941fi
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5943$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005944if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005945 $as_echo_n "(cached) " >&6
5946else
5947 ac_cv_prog_cc_c89=no
5948ac_save_CC=$CC
5949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950/* end confdefs.h. */
5951#include <stdarg.h>
5952#include <stdio.h>
5953#include <sys/types.h>
5954#include <sys/stat.h>
5955/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5956struct buf { int x; };
5957FILE * (*rcsopen) (struct buf *, struct stat *, int);
5958static char *e (p, i)
5959 char **p;
5960 int i;
5961{
5962 return p[i];
5963}
5964static char *f (char * (*g) (char **, int), char **p, ...)
5965{
5966 char *s;
5967 va_list v;
5968 va_start (v,p);
5969 s = g (p, va_arg (v,int));
5970 va_end (v);
5971 return s;
5972}
5973
5974/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5975 function prototypes and stuff, but not '\xHH' hex character constants.
5976 These don't provoke an error unfortunately, instead are silently treated
5977 as 'x'. The following induces an error, until -std is added to get
5978 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5979 array size at least. It's necessary to write '\x00'==0 to get something
5980 that's true only with -std. */
5981int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5982
5983/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5984 inside strings and character constants. */
5985#define FOO(x) 'x'
5986int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5987
5988int test (int i, double x);
5989struct s1 {int (*f) (int a);};
5990struct s2 {int (*f) (double a);};
5991int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5992int argc;
5993char **argv;
5994int
5995main ()
5996{
5997return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5998 ;
5999 return 0;
6000}
6001_ACEOF
6002for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6003 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6004do
6005 CC="$ac_save_CC $ac_arg"
6006 if ac_fn_c_try_compile "$LINENO"; then :
6007 ac_cv_prog_cc_c89=$ac_arg
6008fi
6009rm -f core conftest.err conftest.$ac_objext
6010 test "x$ac_cv_prog_cc_c89" != "xno" && break
6011done
6012rm -f conftest.$ac_ext
6013CC=$ac_save_CC
6014
6015fi
6016# AC_CACHE_VAL
6017case "x$ac_cv_prog_cc_c89" in
6018 x)
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6020$as_echo "none needed" >&6; } ;;
6021 xno)
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6023$as_echo "unsupported" >&6; } ;;
6024 *)
6025 CC="$CC $ac_cv_prog_cc_c89"
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6027$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6028esac
6029if test "x$ac_cv_prog_cc_c89" != xno; then :
6030
6031fi
6032
6033ac_ext=c
6034ac_cpp='$CPP $CPPFLAGS'
6035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6037ac_compiler_gnu=$ac_cv_c_compiler_gnu
6038
cristy73bd4a52010-10-05 11:24:23 +00006039depcc="$CC" am_compiler_list=
6040
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6042$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006043if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006044 $as_echo_n "(cached) " >&6
6045else
6046 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6047 # We make a subdir and do the tests there. Otherwise we can end up
6048 # making bogus files that we don't know about and never remove. For
6049 # instance it was reported that on HP-UX the gcc test will end up
6050 # making a dummy file named `D' -- because `-MD' means `put the output
6051 # in D'.
6052 mkdir conftest.dir
6053 # Copy depcomp to subdir because otherwise we won't find it if we're
6054 # using a relative directory.
6055 cp "$am_depcomp" conftest.dir
6056 cd conftest.dir
6057 # We will build objects and dependencies in a subdirectory because
6058 # it helps to detect inapplicable dependency modes. For instance
6059 # both Tru64's cc and ICC support -MD to output dependencies as a
6060 # side effect of compilation, but ICC will put the dependencies in
6061 # the current directory while Tru64 will put them in the object
6062 # directory.
6063 mkdir sub
6064
6065 am_cv_CC_dependencies_compiler_type=none
6066 if test "$am_compiler_list" = ""; then
6067 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6068 fi
6069 am__universal=false
6070 case " $depcc " in #(
6071 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6072 esac
6073
6074 for depmode in $am_compiler_list; do
6075 # Setup a source with many dependencies, because some compilers
6076 # like to wrap large dependency lists on column 80 (with \), and
6077 # we should not choose a depcomp mode which is confused by this.
6078 #
6079 # We need to recreate these files for each test, as the compiler may
6080 # overwrite some of them when testing with obscure command lines.
6081 # This happens at least with the AIX C compiler.
6082 : > sub/conftest.c
6083 for i in 1 2 3 4 5 6; do
6084 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6085 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6086 # Solaris 8's {/usr,}/bin/sh.
6087 touch sub/conftst$i.h
6088 done
6089 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6090
6091 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6092 # mode. It turns out that the SunPro C++ compiler does not properly
6093 # handle `-M -o', and we need to detect this. Also, some Intel
6094 # versions had trouble with output in subdirs
6095 am__obj=sub/conftest.${OBJEXT-o}
6096 am__minus_obj="-o $am__obj"
6097 case $depmode in
6098 gcc)
6099 # This depmode causes a compiler race in universal mode.
6100 test "$am__universal" = false || continue
6101 ;;
6102 nosideeffect)
6103 # after this tag, mechanisms are not by side-effect, so they'll
6104 # only be used when explicitly requested
6105 if test "x$enable_dependency_tracking" = xyes; then
6106 continue
6107 else
6108 break
6109 fi
6110 ;;
6111 msvisualcpp | msvcmsys)
6112 # This compiler won't grok `-c -o', but also, the minuso test has
6113 # not run yet. These depmodes are late enough in the game, and
6114 # so weak that their functioning should not be impacted.
6115 am__obj=conftest.${OBJEXT-o}
6116 am__minus_obj=
6117 ;;
6118 none) break ;;
6119 esac
6120 if depmode=$depmode \
6121 source=sub/conftest.c object=$am__obj \
6122 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6123 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6124 >/dev/null 2>conftest.err &&
6125 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6126 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6127 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6128 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6129 # icc doesn't choke on unknown options, it will just issue warnings
6130 # or remarks (even with -Werror). So we grep stderr for any message
6131 # that says an option was ignored or not supported.
6132 # When given -MP, icc 7.0 and 7.1 complain thusly:
6133 # icc: Command line warning: ignoring option '-M'; no argument required
6134 # The diagnosis changed in icc 8.0:
6135 # icc: Command line remark: option '-MP' not supported
6136 if (grep 'ignoring option' conftest.err ||
6137 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6138 am_cv_CC_dependencies_compiler_type=$depmode
6139 break
6140 fi
6141 fi
6142 done
6143
6144 cd ..
6145 rm -rf conftest.dir
6146else
6147 am_cv_CC_dependencies_compiler_type=none
6148fi
6149
6150fi
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6152$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6153CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6154
6155 if
6156 test "x$enable_dependency_tracking" != xno \
6157 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6158 am__fastdepCC_TRUE=
6159 am__fastdepCC_FALSE='#'
6160else
6161 am__fastdepCC_TRUE='#'
6162 am__fastdepCC_FALSE=
6163fi
6164
6165
cristy95646052009-11-28 23:05:30 +00006166ac_ext=cpp
6167ac_cpp='$CXXCPP $CPPFLAGS'
6168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6171if test -z "$CXX"; then
6172 if test -n "$CCC"; then
6173 CXX=$CCC
6174 else
6175 if test -n "$ac_tool_prefix"; then
6176 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6177 do
6178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6179set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006182if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006183 $as_echo_n "(cached) " >&6
6184else
6185 if test -n "$CXX"; then
6186 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6187else
6188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189for as_dir in $PATH
6190do
6191 IFS=$as_save_IFS
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6195 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 break 2
6198 fi
6199done
6200 done
6201IFS=$as_save_IFS
6202
6203fi
6204fi
6205CXX=$ac_cv_prog_CXX
6206if test -n "$CXX"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6208$as_echo "$CXX" >&6; }
6209else
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211$as_echo "no" >&6; }
6212fi
6213
6214
6215 test -n "$CXX" && break
6216 done
6217fi
6218if test -z "$CXX"; then
6219 ac_ct_CXX=$CXX
6220 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6221do
6222 # Extract the first word of "$ac_prog", so it can be a program name with args.
6223set dummy $ac_prog; ac_word=$2
6224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006226if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006227 $as_echo_n "(cached) " >&6
6228else
6229 if test -n "$ac_ct_CXX"; then
6230 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6231else
6232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233for as_dir in $PATH
6234do
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_prog_ac_ct_CXX="$ac_prog"
6240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 break 2
6242 fi
6243done
6244 done
6245IFS=$as_save_IFS
6246
6247fi
6248fi
6249ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6250if test -n "$ac_ct_CXX"; then
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6252$as_echo "$ac_ct_CXX" >&6; }
6253else
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255$as_echo "no" >&6; }
6256fi
6257
6258
6259 test -n "$ac_ct_CXX" && break
6260done
6261
6262 if test "x$ac_ct_CXX" = x; then
6263 CXX="g++"
6264 else
6265 case $cross_compiling:$ac_tool_warned in
6266yes:)
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6269ac_tool_warned=yes ;;
6270esac
6271 CXX=$ac_ct_CXX
6272 fi
6273fi
6274
6275 fi
6276fi
6277# Provide some information about the compiler.
6278$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6279set X $ac_compile
6280ac_compiler=$2
6281for ac_option in --version -v -V -qversion; do
6282 { { ac_try="$ac_compiler $ac_option >&5"
6283case "(($ac_try" in
6284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285 *) ac_try_echo=$ac_try;;
6286esac
6287eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6288$as_echo "$ac_try_echo"; } >&5
6289 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6290 ac_status=$?
6291 if test -s conftest.err; then
6292 sed '10a\
6293... rest of stderr output deleted ...
6294 10q' conftest.err >conftest.er1
6295 cat conftest.er1 >&5
6296 fi
6297 rm -f conftest.er1 conftest.err
6298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6299 test $ac_status = 0; }
6300done
6301
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6303$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006304if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006305 $as_echo_n "(cached) " >&6
6306else
6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308/* end confdefs.h. */
6309
6310int
6311main ()
6312{
6313#ifndef __GNUC__
6314 choke me
6315#endif
6316
6317 ;
6318 return 0;
6319}
6320_ACEOF
6321if ac_fn_cxx_try_compile "$LINENO"; then :
6322 ac_compiler_gnu=yes
6323else
6324 ac_compiler_gnu=no
6325fi
6326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6328
6329fi
6330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6331$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6332if test $ac_compiler_gnu = yes; then
6333 GXX=yes
6334else
6335 GXX=
6336fi
6337ac_test_CXXFLAGS=${CXXFLAGS+set}
6338ac_save_CXXFLAGS=$CXXFLAGS
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6340$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006341if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006342 $as_echo_n "(cached) " >&6
6343else
6344 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6345 ac_cxx_werror_flag=yes
6346 ac_cv_prog_cxx_g=no
6347 CXXFLAGS="-g"
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349/* end confdefs.h. */
6350
6351int
6352main ()
6353{
6354
6355 ;
6356 return 0;
6357}
6358_ACEOF
6359if ac_fn_cxx_try_compile "$LINENO"; then :
6360 ac_cv_prog_cxx_g=yes
6361else
6362 CXXFLAGS=""
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364/* end confdefs.h. */
6365
6366int
6367main ()
6368{
6369
6370 ;
6371 return 0;
6372}
6373_ACEOF
6374if ac_fn_cxx_try_compile "$LINENO"; then :
6375
6376else
6377 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6378 CXXFLAGS="-g"
6379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380/* end confdefs.h. */
6381
6382int
6383main ()
6384{
6385
6386 ;
6387 return 0;
6388}
6389_ACEOF
6390if ac_fn_cxx_try_compile "$LINENO"; then :
6391 ac_cv_prog_cxx_g=yes
6392fi
6393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6394fi
6395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6396fi
6397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6398 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6399fi
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6401$as_echo "$ac_cv_prog_cxx_g" >&6; }
6402if test "$ac_test_CXXFLAGS" = set; then
6403 CXXFLAGS=$ac_save_CXXFLAGS
6404elif test $ac_cv_prog_cxx_g = yes; then
6405 if test "$GXX" = yes; then
6406 CXXFLAGS="-g -O2"
6407 else
6408 CXXFLAGS="-g"
6409 fi
6410else
6411 if test "$GXX" = yes; then
6412 CXXFLAGS="-O2"
6413 else
6414 CXXFLAGS=
6415 fi
6416fi
6417ac_ext=c
6418ac_cpp='$CPP $CPPFLAGS'
6419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6421ac_compiler_gnu=$ac_cv_c_compiler_gnu
6422
cristy73bd4a52010-10-05 11:24:23 +00006423depcc="$CXX" am_compiler_list=
6424
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6426$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006427if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006428 $as_echo_n "(cached) " >&6
6429else
6430 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6431 # We make a subdir and do the tests there. Otherwise we can end up
6432 # making bogus files that we don't know about and never remove. For
6433 # instance it was reported that on HP-UX the gcc test will end up
6434 # making a dummy file named `D' -- because `-MD' means `put the output
6435 # in D'.
6436 mkdir conftest.dir
6437 # Copy depcomp to subdir because otherwise we won't find it if we're
6438 # using a relative directory.
6439 cp "$am_depcomp" conftest.dir
6440 cd conftest.dir
6441 # We will build objects and dependencies in a subdirectory because
6442 # it helps to detect inapplicable dependency modes. For instance
6443 # both Tru64's cc and ICC support -MD to output dependencies as a
6444 # side effect of compilation, but ICC will put the dependencies in
6445 # the current directory while Tru64 will put them in the object
6446 # directory.
6447 mkdir sub
6448
6449 am_cv_CXX_dependencies_compiler_type=none
6450 if test "$am_compiler_list" = ""; then
6451 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6452 fi
6453 am__universal=false
6454 case " $depcc " in #(
6455 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6456 esac
6457
6458 for depmode in $am_compiler_list; do
6459 # Setup a source with many dependencies, because some compilers
6460 # like to wrap large dependency lists on column 80 (with \), and
6461 # we should not choose a depcomp mode which is confused by this.
6462 #
6463 # We need to recreate these files for each test, as the compiler may
6464 # overwrite some of them when testing with obscure command lines.
6465 # This happens at least with the AIX C compiler.
6466 : > sub/conftest.c
6467 for i in 1 2 3 4 5 6; do
6468 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6469 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6470 # Solaris 8's {/usr,}/bin/sh.
6471 touch sub/conftst$i.h
6472 done
6473 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6474
6475 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6476 # mode. It turns out that the SunPro C++ compiler does not properly
6477 # handle `-M -o', and we need to detect this. Also, some Intel
6478 # versions had trouble with output in subdirs
6479 am__obj=sub/conftest.${OBJEXT-o}
6480 am__minus_obj="-o $am__obj"
6481 case $depmode in
6482 gcc)
6483 # This depmode causes a compiler race in universal mode.
6484 test "$am__universal" = false || continue
6485 ;;
6486 nosideeffect)
6487 # after this tag, mechanisms are not by side-effect, so they'll
6488 # only be used when explicitly requested
6489 if test "x$enable_dependency_tracking" = xyes; then
6490 continue
6491 else
6492 break
6493 fi
6494 ;;
6495 msvisualcpp | msvcmsys)
6496 # This compiler won't grok `-c -o', but also, the minuso test has
6497 # not run yet. These depmodes are late enough in the game, and
6498 # so weak that their functioning should not be impacted.
6499 am__obj=conftest.${OBJEXT-o}
6500 am__minus_obj=
6501 ;;
6502 none) break ;;
6503 esac
6504 if depmode=$depmode \
6505 source=sub/conftest.c object=$am__obj \
6506 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6507 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6508 >/dev/null 2>conftest.err &&
6509 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6510 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6511 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6512 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6513 # icc doesn't choke on unknown options, it will just issue warnings
6514 # or remarks (even with -Werror). So we grep stderr for any message
6515 # that says an option was ignored or not supported.
6516 # When given -MP, icc 7.0 and 7.1 complain thusly:
6517 # icc: Command line warning: ignoring option '-M'; no argument required
6518 # The diagnosis changed in icc 8.0:
6519 # icc: Command line remark: option '-MP' not supported
6520 if (grep 'ignoring option' conftest.err ||
6521 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6522 am_cv_CXX_dependencies_compiler_type=$depmode
6523 break
6524 fi
6525 fi
6526 done
6527
6528 cd ..
6529 rm -rf conftest.dir
6530else
6531 am_cv_CXX_dependencies_compiler_type=none
6532fi
6533
6534fi
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6536$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6537CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6538
6539 if
6540 test "x$enable_dependency_tracking" != xno \
6541 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6542 am__fastdepCXX_TRUE=
6543 am__fastdepCXX_FALSE='#'
6544else
6545 am__fastdepCXX_TRUE='#'
6546 am__fastdepCXX_FALSE=
6547fi
6548
6549
cristy8b350f62009-11-15 23:12:43 +00006550 case $ac_cv_prog_cc_stdc in #(
6551 no) :
6552 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6553 *) :
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006555$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006556if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006557 $as_echo_n "(cached) " >&6
6558else
6559 ac_cv_prog_cc_c99=no
6560ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006562/* end confdefs.h. */
6563#include <stdarg.h>
6564#include <stdbool.h>
6565#include <stdlib.h>
6566#include <wchar.h>
6567#include <stdio.h>
6568
6569// Check varargs macros. These examples are taken from C99 6.10.3.5.
6570#define debug(...) fprintf (stderr, __VA_ARGS__)
6571#define showlist(...) puts (#__VA_ARGS__)
6572#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6573static void
6574test_varargs_macros (void)
6575{
6576 int x = 1234;
6577 int y = 5678;
6578 debug ("Flag");
6579 debug ("X = %d\n", x);
6580 showlist (The first, second, and third items.);
6581 report (x>y, "x is %d but y is %d", x, y);
6582}
6583
6584// Check long long types.
6585#define BIG64 18446744073709551615ull
6586#define BIG32 4294967295ul
6587#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6588#if !BIG_OK
6589 your preprocessor is broken;
6590#endif
6591#if BIG_OK
6592#else
6593 your preprocessor is broken;
6594#endif
6595static long long int bignum = -9223372036854775807LL;
6596static unsigned long long int ubignum = BIG64;
6597
6598struct incomplete_array
6599{
6600 int datasize;
6601 double data[];
6602};
6603
6604struct named_init {
6605 int number;
6606 const wchar_t *name;
6607 double average;
6608};
6609
6610typedef const char *ccp;
6611
6612static inline int
6613test_restrict (ccp restrict text)
6614{
6615 // See if C++-style comments work.
6616 // Iterate through items via the restricted pointer.
6617 // Also check for declarations in for loops.
6618 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6619 continue;
6620 return 0;
6621}
6622
6623// Check varargs and va_copy.
6624static void
6625test_varargs (const char *format, ...)
6626{
6627 va_list args;
6628 va_start (args, format);
6629 va_list args_copy;
6630 va_copy (args_copy, args);
6631
6632 const char *str;
6633 int number;
6634 float fnumber;
6635
6636 while (*format)
6637 {
6638 switch (*format++)
6639 {
6640 case 's': // string
6641 str = va_arg (args_copy, const char *);
6642 break;
6643 case 'd': // int
6644 number = va_arg (args_copy, int);
6645 break;
6646 case 'f': // float
6647 fnumber = va_arg (args_copy, double);
6648 break;
6649 default:
6650 break;
6651 }
6652 }
6653 va_end (args_copy);
6654 va_end (args);
6655}
6656
6657int
6658main ()
6659{
6660
6661 // Check bool.
6662 _Bool success = false;
6663
6664 // Check restrict.
6665 if (test_restrict ("String literal") == 0)
6666 success = true;
6667 char *restrict newvar = "Another string";
6668
6669 // Check varargs.
6670 test_varargs ("s, d' f .", "string", 65, 34.234);
6671 test_varargs_macros ();
6672
6673 // Check flexible array members.
6674 struct incomplete_array *ia =
6675 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6676 ia->datasize = 10;
6677 for (int i = 0; i < ia->datasize; ++i)
6678 ia->data[i] = i * 1.234;
6679
6680 // Check named initializers.
6681 struct named_init ni = {
6682 .number = 34,
6683 .name = L"Test wide string",
6684 .average = 543.34343,
6685 };
6686
6687 ni.number = 58;
6688
6689 int dynamic_array[ni.number];
6690 dynamic_array[ni.number - 1] = 543;
6691
6692 // work around unused variable warnings
6693 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6694 || dynamic_array[ni.number - 1] != 543);
6695
6696 ;
6697 return 0;
6698}
6699_ACEOF
6700for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6701do
6702 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006703 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006704 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006705fi
cristy3ed852e2009-09-05 21:47:34 +00006706rm -f core conftest.err conftest.$ac_objext
6707 test "x$ac_cv_prog_cc_c99" != "xno" && break
6708done
6709rm -f conftest.$ac_ext
6710CC=$ac_save_CC
6711
6712fi
6713# AC_CACHE_VAL
6714case "x$ac_cv_prog_cc_c99" in
6715 x)
cristy8b350f62009-11-15 23:12:43 +00006716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006717$as_echo "none needed" >&6; } ;;
6718 xno)
cristy8b350f62009-11-15 23:12:43 +00006719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006720$as_echo "unsupported" >&6; } ;;
6721 *)
6722 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006724$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6725esac
cristy8b350f62009-11-15 23:12:43 +00006726if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006727 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6728else
cristy8b350f62009-11-15 23:12:43 +00006729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006730$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006731if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006732 $as_echo_n "(cached) " >&6
6733else
6734 ac_cv_prog_cc_c89=no
6735ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006737/* end confdefs.h. */
6738#include <stdarg.h>
6739#include <stdio.h>
6740#include <sys/types.h>
6741#include <sys/stat.h>
6742/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6743struct buf { int x; };
6744FILE * (*rcsopen) (struct buf *, struct stat *, int);
6745static char *e (p, i)
6746 char **p;
6747 int i;
6748{
6749 return p[i];
6750}
6751static char *f (char * (*g) (char **, int), char **p, ...)
6752{
6753 char *s;
6754 va_list v;
6755 va_start (v,p);
6756 s = g (p, va_arg (v,int));
6757 va_end (v);
6758 return s;
6759}
6760
6761/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6762 function prototypes and stuff, but not '\xHH' hex character constants.
6763 These don't provoke an error unfortunately, instead are silently treated
6764 as 'x'. The following induces an error, until -std is added to get
6765 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6766 array size at least. It's necessary to write '\x00'==0 to get something
6767 that's true only with -std. */
6768int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6769
6770/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6771 inside strings and character constants. */
6772#define FOO(x) 'x'
6773int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6774
6775int test (int i, double x);
6776struct s1 {int (*f) (int a);};
6777struct s2 {int (*f) (double a);};
6778int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6779int argc;
6780char **argv;
6781int
6782main ()
6783{
6784return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6785 ;
6786 return 0;
6787}
6788_ACEOF
6789for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6790 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6791do
6792 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006793 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006794 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006795fi
cristy3ed852e2009-09-05 21:47:34 +00006796rm -f core conftest.err conftest.$ac_objext
6797 test "x$ac_cv_prog_cc_c89" != "xno" && break
6798done
6799rm -f conftest.$ac_ext
6800CC=$ac_save_CC
6801
6802fi
6803# AC_CACHE_VAL
6804case "x$ac_cv_prog_cc_c89" in
6805 x)
cristy8b350f62009-11-15 23:12:43 +00006806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006807$as_echo "none needed" >&6; } ;;
6808 xno)
cristy8b350f62009-11-15 23:12:43 +00006809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006810$as_echo "unsupported" >&6; } ;;
6811 *)
6812 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006814$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6815esac
cristy8b350f62009-11-15 23:12:43 +00006816if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006817 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6818else
6819 ac_cv_prog_cc_stdc=no
6820fi
6821
cristy3ed852e2009-09-05 21:47:34 +00006822fi
cristy3ed852e2009-09-05 21:47:34 +00006823 ;;
6824esac
cristy8b350f62009-11-15 23:12:43 +00006825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006826$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006827 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006828 $as_echo_n "(cached) " >&6
6829fi
6830
cristy8b350f62009-11-15 23:12:43 +00006831 case $ac_cv_prog_cc_stdc in #(
6832 no) :
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6834$as_echo "unsupported" >&6; } ;; #(
6835 '') :
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6837$as_echo "none needed" >&6; } ;; #(
6838 *) :
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006840$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6841esac
6842
cristy3ed852e2009-09-05 21:47:34 +00006843ac_ext=c
6844ac_cpp='$CPP $CPPFLAGS'
6845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6847ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006849$as_echo_n "checking how to run the C preprocessor... " >&6; }
6850# On Suns, sometimes $CPP names a directory.
6851if test -n "$CPP" && test -d "$CPP"; then
6852 CPP=
6853fi
6854if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00006855 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006856 $as_echo_n "(cached) " >&6
6857else
6858 # Double quotes because CPP needs to be expanded
6859 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6860 do
6861 ac_preproc_ok=false
6862for ac_c_preproc_warn_flag in '' yes
6863do
6864 # Use a header file that comes with gcc, so configuring glibc
6865 # with a fresh cross-compiler works.
6866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6867 # <limits.h> exists even on freestanding compilers.
6868 # On the NeXT, cc -E runs the code through the compiler's parser,
6869 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006871/* end confdefs.h. */
6872#ifdef __STDC__
6873# include <limits.h>
6874#else
6875# include <assert.h>
6876#endif
6877 Syntax error
6878_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006879if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006880
cristy8b350f62009-11-15 23:12:43 +00006881else
cristy3ed852e2009-09-05 21:47:34 +00006882 # Broken: fails on valid input.
6883continue
6884fi
cristyda16f162011-02-19 23:52:17 +00006885rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006886
6887 # OK, works on sane cases. Now check whether nonexistent headers
6888 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006890/* end confdefs.h. */
6891#include <ac_nonexistent.h>
6892_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006893if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006894 # Broken: success on invalid input.
6895continue
6896else
cristy3ed852e2009-09-05 21:47:34 +00006897 # Passes both tests.
6898ac_preproc_ok=:
6899break
6900fi
cristyda16f162011-02-19 23:52:17 +00006901rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006902
6903done
6904# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00006905rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006906if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006907 break
6908fi
6909
6910 done
6911 ac_cv_prog_CPP=$CPP
6912
6913fi
6914 CPP=$ac_cv_prog_CPP
6915else
6916 ac_cv_prog_CPP=$CPP
6917fi
cristy8b350f62009-11-15 23:12:43 +00006918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006919$as_echo "$CPP" >&6; }
6920ac_preproc_ok=false
6921for ac_c_preproc_warn_flag in '' yes
6922do
6923 # Use a header file that comes with gcc, so configuring glibc
6924 # with a fresh cross-compiler works.
6925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6926 # <limits.h> exists even on freestanding compilers.
6927 # On the NeXT, cc -E runs the code through the compiler's parser,
6928 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006930/* end confdefs.h. */
6931#ifdef __STDC__
6932# include <limits.h>
6933#else
6934# include <assert.h>
6935#endif
6936 Syntax error
6937_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006938if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006939
cristy8b350f62009-11-15 23:12:43 +00006940else
cristy3ed852e2009-09-05 21:47:34 +00006941 # Broken: fails on valid input.
6942continue
6943fi
cristyda16f162011-02-19 23:52:17 +00006944rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006945
6946 # OK, works on sane cases. Now check whether nonexistent headers
6947 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006949/* end confdefs.h. */
6950#include <ac_nonexistent.h>
6951_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006952if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006953 # Broken: success on invalid input.
6954continue
6955else
cristy3ed852e2009-09-05 21:47:34 +00006956 # Passes both tests.
6957ac_preproc_ok=:
6958break
6959fi
cristyda16f162011-02-19 23:52:17 +00006960rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006961
6962done
6963# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00006964rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006965if $ac_preproc_ok; then :
6966
cristy3ed852e2009-09-05 21:47:34 +00006967else
cristy8b350f62009-11-15 23:12:43 +00006968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006969$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006970as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6971See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00006972fi
6973
6974ac_ext=c
6975ac_cpp='$CPP $CPPFLAGS'
6976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6978ac_compiler_gnu=$ac_cv_c_compiler_gnu
6979
cristy73bd4a52010-10-05 11:24:23 +00006980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6981$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006982if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006983 $as_echo_n "(cached) " >&6
6984else
6985 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6986 for ac_i in 1 2 3 4 5 6 7; do
6987 ac_script="$ac_script$as_nl$ac_script"
6988 done
6989 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6990 { ac_script=; unset ac_script;}
6991 if test -z "$SED"; then
6992 ac_path_SED_found=false
6993 # Loop through the user's path and test for each of PROGNAME-LIST
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995for as_dir in $PATH
6996do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_prog in sed gsed; do
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7002 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7003# Check for GNU ac_path_SED and select it if it is found.
7004 # Check for GNU $ac_path_SED
7005case `"$ac_path_SED" --version 2>&1` in
7006*GNU*)
7007 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7008*)
7009 ac_count=0
7010 $as_echo_n 0123456789 >"conftest.in"
7011 while :
7012 do
7013 cat "conftest.in" "conftest.in" >"conftest.tmp"
7014 mv "conftest.tmp" "conftest.in"
7015 cp "conftest.in" "conftest.nl"
7016 $as_echo '' >> "conftest.nl"
7017 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7018 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7019 as_fn_arith $ac_count + 1 && ac_count=$as_val
7020 if test $ac_count -gt ${ac_path_SED_max-0}; then
7021 # Best one so far, save it but keep looking for a better one
7022 ac_cv_path_SED="$ac_path_SED"
7023 ac_path_SED_max=$ac_count
7024 fi
7025 # 10*(2^10) chars as input seems more than enough
7026 test $ac_count -gt 10 && break
7027 done
7028 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7029esac
7030
7031 $ac_path_SED_found && break 3
7032 done
7033 done
7034 done
7035IFS=$as_save_IFS
7036 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007037 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007038 fi
7039else
7040 ac_cv_path_SED=$SED
7041fi
7042
7043fi
7044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7045$as_echo "$ac_cv_path_SED" >&6; }
7046 SED="$ac_cv_path_SED"
7047 rm -f conftest.sed
7048
7049test -z "$SED" && SED=sed
7050Xsed="$SED -e 1s/^X//"
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7063$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007064if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007065 $as_echo_n "(cached) " >&6
7066else
7067 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7068 then ac_cv_path_FGREP="$GREP -F"
7069 else
7070 if test -z "$FGREP"; then
7071 ac_path_FGREP_found=false
7072 # Loop through the user's path and test for each of PROGNAME-LIST
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7075do
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
7078 for ac_prog in fgrep; do
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7081 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7082# Check for GNU ac_path_FGREP and select it if it is found.
7083 # Check for GNU $ac_path_FGREP
7084case `"$ac_path_FGREP" --version 2>&1` in
7085*GNU*)
7086 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7087*)
7088 ac_count=0
7089 $as_echo_n 0123456789 >"conftest.in"
7090 while :
7091 do
7092 cat "conftest.in" "conftest.in" >"conftest.tmp"
7093 mv "conftest.tmp" "conftest.in"
7094 cp "conftest.in" "conftest.nl"
7095 $as_echo 'FGREP' >> "conftest.nl"
7096 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7097 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7098 as_fn_arith $ac_count + 1 && ac_count=$as_val
7099 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7100 # Best one so far, save it but keep looking for a better one
7101 ac_cv_path_FGREP="$ac_path_FGREP"
7102 ac_path_FGREP_max=$ac_count
7103 fi
7104 # 10*(2^10) chars as input seems more than enough
7105 test $ac_count -gt 10 && break
7106 done
7107 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7108esac
7109
7110 $ac_path_FGREP_found && break 3
7111 done
7112 done
7113 done
7114IFS=$as_save_IFS
7115 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007116 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007117 fi
7118else
7119 ac_cv_path_FGREP=$FGREP
7120fi
7121
7122 fi
7123fi
7124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7125$as_echo "$ac_cv_path_FGREP" >&6; }
7126 FGREP="$ac_cv_path_FGREP"
7127
7128
7129test -z "$GREP" && GREP=grep
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
cristy0c60a692010-11-04 01:09:47 +00007147ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7148ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7149ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7150
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7152$as_echo_n "checking how to print strings... " >&6; }
7153# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007154if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007155 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7156 ECHO='print -r --'
7157elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7158 ECHO='printf %s\n'
7159else
7160 # Use this function as a fallback that always works.
7161 func_fallback_echo ()
7162 {
7163 eval 'cat <<_LTECHO_EOF
7164$1
7165_LTECHO_EOF'
7166 }
7167 ECHO='func_fallback_echo'
7168fi
7169
7170# func_echo_all arg...
7171# Invoke $ECHO with all args, space-separated.
7172func_echo_all ()
7173{
7174 $ECHO ""
7175}
7176
7177case "$ECHO" in
7178 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7179$as_echo "printf" >&6; } ;;
7180 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7181$as_echo "print -r" >&6; } ;;
7182 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7183$as_echo "cat" >&6; } ;;
7184esac
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
cristy73bd4a52010-10-05 11:24:23 +00007199
7200
7201# Check whether --with-gnu-ld was given.
7202if test "${with_gnu_ld+set}" = set; then :
7203 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7204else
7205 with_gnu_ld=no
7206fi
7207
7208ac_prog=ld
7209if test "$GCC" = yes; then
7210 # Check if gcc -print-prog-name=ld gives a path.
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7212$as_echo_n "checking for ld used by $CC... " >&6; }
7213 case $host in
7214 *-*-mingw*)
7215 # gcc leaves a trailing carriage return which upsets mingw
7216 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7217 *)
7218 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7219 esac
7220 case $ac_prog in
7221 # Accept absolute paths.
7222 [\\/]* | ?:[\\/]*)
7223 re_direlt='/[^/][^/]*/\.\./'
7224 # Canonicalize the pathname of ld
7225 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7226 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7227 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7228 done
7229 test -z "$LD" && LD="$ac_prog"
7230 ;;
7231 "")
7232 # If it fails, then pretend we aren't using GCC.
7233 ac_prog=ld
7234 ;;
7235 *)
7236 # If it is relative, then search for the first ld in PATH.
7237 with_gnu_ld=unknown
7238 ;;
7239 esac
7240elif test "$with_gnu_ld" = yes; then
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7242$as_echo_n "checking for GNU ld... " >&6; }
7243else
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7245$as_echo_n "checking for non-GNU ld... " >&6; }
7246fi
cristyda16f162011-02-19 23:52:17 +00007247if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007248 $as_echo_n "(cached) " >&6
7249else
7250 if test -z "$LD"; then
7251 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7252 for ac_dir in $PATH; do
7253 IFS="$lt_save_ifs"
7254 test -z "$ac_dir" && ac_dir=.
7255 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7256 lt_cv_path_LD="$ac_dir/$ac_prog"
7257 # Check to see if the program is GNU ld. I'd rather use --version,
7258 # but apparently some variants of GNU ld only accept -v.
7259 # Break only if it was the GNU/non-GNU ld that we prefer.
7260 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7261 *GNU* | *'with BFD'*)
7262 test "$with_gnu_ld" != no && break
7263 ;;
7264 *)
7265 test "$with_gnu_ld" != yes && break
7266 ;;
7267 esac
7268 fi
7269 done
7270 IFS="$lt_save_ifs"
7271else
7272 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7273fi
7274fi
7275
7276LD="$lt_cv_path_LD"
7277if test -n "$LD"; then
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7279$as_echo "$LD" >&6; }
7280else
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282$as_echo "no" >&6; }
7283fi
cristy98dddb52010-11-04 00:30:15 +00007284test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7286$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007287if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007288 $as_echo_n "(cached) " >&6
7289else
7290 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7291case `$LD -v 2>&1 </dev/null` in
7292*GNU* | *'with BFD'*)
7293 lt_cv_prog_gnu_ld=yes
7294 ;;
7295*)
7296 lt_cv_prog_gnu_ld=no
7297 ;;
7298esac
7299fi
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7301$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7302with_gnu_ld=$lt_cv_prog_gnu_ld
7303
7304
7305
7306
7307
7308
7309
7310
7311
cristy3ed852e2009-09-05 21:47:34 +00007312
cristy837d6dc2010-02-27 01:16:57 +00007313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7314$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007315if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007316 $as_echo_n "(cached) " >&6
7317else
7318 ac_cv_prog_cc_c99=no
7319ac_save_CC=$CC
7320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321/* end confdefs.h. */
7322#include <stdarg.h>
7323#include <stdbool.h>
7324#include <stdlib.h>
7325#include <wchar.h>
7326#include <stdio.h>
7327
7328// Check varargs macros. These examples are taken from C99 6.10.3.5.
7329#define debug(...) fprintf (stderr, __VA_ARGS__)
7330#define showlist(...) puts (#__VA_ARGS__)
7331#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7332static void
7333test_varargs_macros (void)
7334{
7335 int x = 1234;
7336 int y = 5678;
7337 debug ("Flag");
7338 debug ("X = %d\n", x);
7339 showlist (The first, second, and third items.);
7340 report (x>y, "x is %d but y is %d", x, y);
7341}
7342
7343// Check long long types.
7344#define BIG64 18446744073709551615ull
7345#define BIG32 4294967295ul
7346#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7347#if !BIG_OK
7348 your preprocessor is broken;
7349#endif
7350#if BIG_OK
7351#else
7352 your preprocessor is broken;
7353#endif
7354static long long int bignum = -9223372036854775807LL;
7355static unsigned long long int ubignum = BIG64;
7356
7357struct incomplete_array
7358{
7359 int datasize;
7360 double data[];
7361};
7362
7363struct named_init {
7364 int number;
7365 const wchar_t *name;
7366 double average;
7367};
7368
7369typedef const char *ccp;
7370
7371static inline int
7372test_restrict (ccp restrict text)
7373{
7374 // See if C++-style comments work.
7375 // Iterate through items via the restricted pointer.
7376 // Also check for declarations in for loops.
7377 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7378 continue;
7379 return 0;
7380}
7381
7382// Check varargs and va_copy.
7383static void
7384test_varargs (const char *format, ...)
7385{
7386 va_list args;
7387 va_start (args, format);
7388 va_list args_copy;
7389 va_copy (args_copy, args);
7390
7391 const char *str;
7392 int number;
7393 float fnumber;
7394
7395 while (*format)
7396 {
7397 switch (*format++)
7398 {
7399 case 's': // string
7400 str = va_arg (args_copy, const char *);
7401 break;
7402 case 'd': // int
7403 number = va_arg (args_copy, int);
7404 break;
7405 case 'f': // float
7406 fnumber = va_arg (args_copy, double);
7407 break;
7408 default:
7409 break;
7410 }
7411 }
7412 va_end (args_copy);
7413 va_end (args);
7414}
7415
7416int
7417main ()
7418{
7419
7420 // Check bool.
7421 _Bool success = false;
7422
7423 // Check restrict.
7424 if (test_restrict ("String literal") == 0)
7425 success = true;
7426 char *restrict newvar = "Another string";
7427
7428 // Check varargs.
7429 test_varargs ("s, d' f .", "string", 65, 34.234);
7430 test_varargs_macros ();
7431
7432 // Check flexible array members.
7433 struct incomplete_array *ia =
7434 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7435 ia->datasize = 10;
7436 for (int i = 0; i < ia->datasize; ++i)
7437 ia->data[i] = i * 1.234;
7438
7439 // Check named initializers.
7440 struct named_init ni = {
7441 .number = 34,
7442 .name = L"Test wide string",
7443 .average = 543.34343,
7444 };
7445
7446 ni.number = 58;
7447
7448 int dynamic_array[ni.number];
7449 dynamic_array[ni.number - 1] = 543;
7450
7451 // work around unused variable warnings
7452 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7453 || dynamic_array[ni.number - 1] != 543);
7454
7455 ;
7456 return 0;
7457}
7458_ACEOF
7459for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7460do
7461 CC="$ac_save_CC $ac_arg"
7462 if ac_fn_c_try_compile "$LINENO"; then :
7463 ac_cv_prog_cc_c99=$ac_arg
7464fi
7465rm -f core conftest.err conftest.$ac_objext
7466 test "x$ac_cv_prog_cc_c99" != "xno" && break
7467done
7468rm -f conftest.$ac_ext
7469CC=$ac_save_CC
7470
7471fi
7472# AC_CACHE_VAL
7473case "x$ac_cv_prog_cc_c99" in
7474 x)
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7476$as_echo "none needed" >&6; } ;;
7477 xno)
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7479$as_echo "unsupported" >&6; } ;;
7480 *)
7481 CC="$CC $ac_cv_prog_cc_c99"
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7483$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7484esac
7485if test "x$ac_cv_prog_cc_c99" != xno; then :
7486
7487fi
7488
7489
cristy73bd4a52010-10-05 11:24:23 +00007490if test "x$CC" != xcc; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7492$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7493else
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7495$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7496fi
7497set dummy $CC; ac_cc=`$as_echo "$2" |
7498 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007499if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007500 $as_echo_n "(cached) " >&6
7501else
cristy73bd4a52010-10-05 11:24:23 +00007502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503/* end confdefs.h. */
7504
7505int
7506main ()
7507{
7508
7509 ;
7510 return 0;
7511}
7512_ACEOF
7513# Make sure it works both with $CC and with simple cc.
7514# We do the test twice because some compilers refuse to overwrite an
7515# existing .o file with -o, though they will create one.
7516ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7517rm -f conftest2.*
7518if { { case "(($ac_try" in
7519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7520 *) ac_try_echo=$ac_try;;
7521esac
7522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7523$as_echo "$ac_try_echo"; } >&5
7524 (eval "$ac_try") 2>&5
7525 ac_status=$?
7526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7527 test $ac_status = 0; } &&
7528 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7530 *) ac_try_echo=$ac_try;;
7531esac
7532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7533$as_echo "$ac_try_echo"; } >&5
7534 (eval "$ac_try") 2>&5
7535 ac_status=$?
7536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7537 test $ac_status = 0; };
7538then
7539 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7540 if test "x$CC" != xcc; then
7541 # Test first that cc exists at all.
7542 if { ac_try='cc -c conftest.$ac_ext >&5'
7543 { { case "(($ac_try" in
7544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545 *) ac_try_echo=$ac_try;;
7546esac
7547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7548$as_echo "$ac_try_echo"; } >&5
7549 (eval "$ac_try") 2>&5
7550 ac_status=$?
7551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7552 test $ac_status = 0; }; }; then
7553 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7554 rm -f conftest2.*
7555 if { { case "(($ac_try" in
7556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7557 *) ac_try_echo=$ac_try;;
7558esac
7559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7560$as_echo "$ac_try_echo"; } >&5
7561 (eval "$ac_try") 2>&5
7562 ac_status=$?
7563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7564 test $ac_status = 0; } &&
7565 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567 *) ac_try_echo=$ac_try;;
7568esac
7569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7570$as_echo "$ac_try_echo"; } >&5
7571 (eval "$ac_try") 2>&5
7572 ac_status=$?
7573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7574 test $ac_status = 0; };
7575 then
7576 # cc works too.
7577 :
7578 else
7579 # cc exists but doesn't like -o.
7580 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7581 fi
7582 fi
7583 fi
7584else
7585 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7586fi
7587rm -f core conftest*
7588
7589fi
7590if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7592$as_echo "yes" >&6; }
7593else
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595$as_echo "no" >&6; }
7596
7597$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7598
7599fi
7600
7601# FIXME: we rely on the cache variable name because
7602# there is no other way.
7603set dummy $CC
7604am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7605eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7606if test "$am_t" != yes; then
7607 # Losing compiler, so override with the script.
7608 # FIXME: It is wrong to rewrite CC.
7609 # But if we don't then we get into trouble of one sort or another.
7610 # A longer-term fix would be to have automake use am__CC in this case,
7611 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7612 CC="$am_aux_dir/compile $CC"
7613fi
7614
7615
7616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7617$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007618if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007619 $as_echo_n "(cached) " >&6
7620else
7621 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007622 ac_ext=c
7623ac_cpp='$CPP $CPPFLAGS'
7624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7626ac_compiler_gnu=$ac_cv_c_compiler_gnu
7627
7628 ac_save_CFLAGS="$CFLAGS"
7629for 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" #
7630do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632/* end confdefs.h. */
7633
7634int
7635main ()
7636{
cristy24fc1fe2010-10-23 21:13:01 +00007637
cristy73bd4a52010-10-05 11:24:23 +00007638 ;
7639 return 0;
7640}
7641_ACEOF
7642if ac_fn_c_try_compile "$LINENO"; then :
7643 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7644fi
7645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7646done
7647 CFLAGS="$ac_save_CFLAGS"
7648 ac_ext=c
7649ac_cpp='$CPP $CPPFLAGS'
7650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7652ac_compiler_gnu=$ac_cv_c_compiler_gnu
7653
7654
7655fi
7656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7657$as_echo "$ac_cv_cflags_warn_all" >&6; }
7658case ".$ac_cv_cflags_warn_all" in
7659 .ok|.ok,*) ;;
7660 .|.no|.no,*)
7661 ;;
7662 *)
7663 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7664 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7665 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7666 ac_status=$?
7667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7668 test $ac_status = 0; }
7669 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7670 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7671 ac_status=$?
7672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7673 test $ac_status = 0; }
7674 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7675 fi
7676 ;;
nicolas6237c462010-10-05 06:11:49 +00007677esac
cristy3ed852e2009-09-05 21:47:34 +00007678
cristya0b81c32010-01-22 02:54:33 +00007679
7680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7681$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7682set x ${MAKE-make}
7683ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007684if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007685 $as_echo_n "(cached) " >&6
7686else
7687 cat >conftest.make <<\_ACEOF
7688SHELL = /bin/sh
7689all:
7690 @echo '@@@%%%=$(MAKE)=@@@%%%'
7691_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007692# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007693case `${MAKE-make} -f conftest.make 2>/dev/null` in
7694 *@@@%%%=?*=@@@%%%*)
7695 eval ac_cv_prog_make_${ac_make}_set=yes;;
7696 *)
7697 eval ac_cv_prog_make_${ac_make}_set=no;;
7698esac
7699rm -f conftest.make
7700fi
7701if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7703$as_echo "yes" >&6; }
7704 SET_MAKE=
7705else
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707$as_echo "no" >&6; }
7708 SET_MAKE="MAKE=${MAKE-make}"
7709fi
7710
cristy8b350f62009-11-15 23:12:43 +00007711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007712$as_echo_n "checking whether ln -s works... " >&6; }
7713LN_S=$as_ln_s
7714if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007716$as_echo "yes" >&6; }
7717else
cristy8b350f62009-11-15 23:12:43 +00007718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007719$as_echo "no, using $LN_S" >&6; }
7720fi
7721
cristy73bd4a52010-10-05 11:24:23 +00007722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7723$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7724
7725# Check whether --with-dmalloc was given.
7726if test "${with_dmalloc+set}" = set; then :
7727 withval=$with_dmalloc; if test "$withval" = yes; then
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7729$as_echo "yes" >&6; }
7730
7731$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7732
7733 LIBS="$LIBS -ldmalloc"
7734 LDFLAGS="$LDFLAGS -g"
7735else
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737$as_echo "no" >&6; }
7738fi
7739else
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741$as_echo "no" >&6; }
7742fi
7743
7744
7745
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7747$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007748if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007749 $as_echo_n "(cached) " >&6
7750else
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752/* end confdefs.h. */
7753#include <stdlib.h>
7754 static void foo(void) __attribute__ ((unused));
7755 static void
7756 foo(void) {
7757 exit(1);
7758 }
7759
7760int
7761main ()
7762{
7763
7764 ;
7765 return 0;
7766}
7767_ACEOF
7768if ac_fn_c_try_compile "$LINENO"; then :
7769 ax_cv___attribute__=yes
7770else
7771 ax_cv___attribute__=no
7772
7773fi
7774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7775
7776fi
7777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7778$as_echo "$ax_cv___attribute__" >&6; }
7779 if test "$ax_cv___attribute__" = "yes"; then
7780
7781$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7782
7783 fi
7784
7785
7786
7787if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7788 if test -n "$ac_tool_prefix"; then
7789 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7790set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007793if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007794 $as_echo_n "(cached) " >&6
7795else
7796 case $PKG_CONFIG in
7797 [\\/]* | ?:[\\/]*)
7798 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7799 ;;
7800 *)
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802for as_dir in $PATH
7803do
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 break 2
7811 fi
7812done
7813 done
7814IFS=$as_save_IFS
7815
7816 ;;
7817esac
7818fi
7819PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7820if test -n "$PKG_CONFIG"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7822$as_echo "$PKG_CONFIG" >&6; }
7823else
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825$as_echo "no" >&6; }
7826fi
7827
7828
7829fi
7830if test -z "$ac_cv_path_PKG_CONFIG"; then
7831 ac_pt_PKG_CONFIG=$PKG_CONFIG
7832 # Extract the first word of "pkg-config", so it can be a program name with args.
7833set dummy pkg-config; ac_word=$2
7834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7835$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007836if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007837 $as_echo_n "(cached) " >&6
7838else
7839 case $ac_pt_PKG_CONFIG in
7840 [\\/]* | ?:[\\/]*)
7841 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7842 ;;
7843 *)
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845for as_dir in $PATH
7846do
7847 IFS=$as_save_IFS
7848 test -z "$as_dir" && as_dir=.
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7851 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 break 2
7854 fi
7855done
7856 done
7857IFS=$as_save_IFS
7858
7859 ;;
7860esac
7861fi
7862ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7863if test -n "$ac_pt_PKG_CONFIG"; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7865$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7866else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868$as_echo "no" >&6; }
7869fi
7870
7871 if test "x$ac_pt_PKG_CONFIG" = x; then
7872 PKG_CONFIG=""
7873 else
7874 case $cross_compiling:$ac_tool_warned in
7875yes:)
7876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7878ac_tool_warned=yes ;;
7879esac
7880 PKG_CONFIG=$ac_pt_PKG_CONFIG
7881 fi
7882else
7883 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7884fi
7885
7886fi
7887if test -n "$PKG_CONFIG"; then
7888 _pkg_min_version=0.9.0
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7890$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7891 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7893$as_echo "yes" >&6; }
7894 else
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896$as_echo "no" >&6; }
7897 PKG_CONFIG=""
7898 fi
7899
7900fi
cristy3ed852e2009-09-05 21:47:34 +00007901
7902#
cristy3ed852e2009-09-05 21:47:34 +00007903# Enable run-time checking.
7904#
7905# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007906if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007907 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7908else
7909 enable_bounds_checking='no'
7910fi
7911
7912
7913if test "$enable_bounds_checking" = yes; then
7914
cristy8b350f62009-11-15 23:12:43 +00007915$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007916
7917fi
7918
7919#
7920# Tests for Windows
7921#
7922
7923
cristy73bd4a52010-10-05 11:24:23 +00007924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7925$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007926if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007927 $as_echo_n "(cached) " >&6
7928else
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930/* end confdefs.h. */
7931
7932int
7933main ()
7934{
7935#ifndef _MSC_VER
7936 choke me
7937#endif
7938
7939 ;
7940 return 0;
7941}
7942_ACEOF
7943if ac_fn_c_try_compile "$LINENO"; then :
7944 ax_compiler_ms=yes
7945else
7946 ax_compiler_ms=no
7947fi
7948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949ax_cv_c_compiler_ms=$ax_compiler_ms
7950
7951fi
7952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7953$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00007954
7955GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007956native_win32_build='no'
7957cygwin_build='no'
7958case "${host_os}" in
7959 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007960 cygwin_build='yes'
7961 GDI32_LIBS='-lgdi32'
7962 ;;
7963 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007964 native_win32_build='yes'
7965 GDI32_LIBS='-lgdi32'
7966 ;;
7967esac
7968if test "${GDI32_LIBS}x" != 'x'; then
7969
cristy8b350f62009-11-15 23:12:43 +00007970$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007971
7972fi
7973
cristy73bd4a52010-10-05 11:24:23 +00007974 if test "${GDI32_LIBS}x" != 'x' ; then
7975 WINGDI32_DELEGATE_TRUE=
7976 WINGDI32_DELEGATE_FALSE='#'
7977else
7978 WINGDI32_DELEGATE_TRUE='#'
7979 WINGDI32_DELEGATE_FALSE=
7980fi
7981
7982 if test "${native_win32_build}" = 'yes' ; then
7983 WIN32_NATIVE_BUILD_TRUE=
7984 WIN32_NATIVE_BUILD_FALSE='#'
7985else
7986 WIN32_NATIVE_BUILD_TRUE='#'
7987 WIN32_NATIVE_BUILD_FALSE=
7988fi
7989
7990 if test "${cygwin_build}" = 'yes' ; then
7991 CYGWIN_BUILD_TRUE=
7992 CYGWIN_BUILD_FALSE='#'
7993else
7994 CYGWIN_BUILD_TRUE='#'
7995 CYGWIN_BUILD_FALSE=
7996fi
7997
7998 if test "x${CC}" = 'xcl.exe' ; then
7999 USING_CL_TRUE=
8000 USING_CL_FALSE='#'
8001else
8002 USING_CL_TRUE='#'
8003 USING_CL_FALSE=
8004fi
8005
cristy3ed852e2009-09-05 21:47:34 +00008006
8007WinPathScript="${srcdirfull}/winpath.sh"
8008
8009
8010#
8011# Compiler flags tweaks
8012#
8013if test "${GCC}" != "yes"; then
8014 case "${host}" in
8015 *-*-hpux* )
8016 # aCC: HP ANSI C++ B3910B A.03.34
8017 CFLAGS="${CFLAGS} -Wp,-H30000"
8018 if test -n "${CXXFLAGS}"; then
8019 CXXFLAGS='-AA'
8020 else
8021 CXXFLAGS="${CXXFLAGS} -AA"
8022 fi
8023 ;;
8024 *-dec-osf5.* )
8025 # Compaq alphaev68-dec-osf5.1 compiler
8026 if test -n "${CXXFLAGS}"; then
8027 CXXFLAGS='-std strict_ansi -noimplicit_include'
8028 else
8029 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8030 fi
8031 esac
8032fi
8033
8034# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008036$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008037if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008038 $as_echo_n "(cached) " >&6
8039else
8040
8041im_cv_ld_lazyload='none'
8042case "${host}" in
8043 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8044 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8045 im_cv_ld_lazyload='-Wl,-zlazyload'
8046 fi
8047 ;;
8048esac
8049
8050fi
cristy8b350f62009-11-15 23:12:43 +00008051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008052$as_echo "$im_cv_ld_lazyload" >&6; }
8053if test "${im_cv_ld_lazyload}" != 'none' ; then
8054 if test -z "${LDFLAGS}" ; then
8055 LDFLAGS="${im_cv_ld_lazyload}"
8056 else
8057 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8058 fi
8059fi
8060
8061case "$host" in
8062*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008063 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008064if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008065 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8066else
8067 build_osxuniversal=no
8068fi
8069
8070
8071 if test "${build_osxuniversal}" != no ; then
8072 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008073 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008074Please re-run configure with these options:
8075 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008076 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008077 fi
8078 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8079 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8080 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8081 fi
8082 ;;
8083esac
8084
8085# Enable support for threads
8086
8087# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008088if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008089 withval=$with_threads; with_threads=$withval
8090else
8091 with_threads='yes'
8092fi
8093
8094
8095have_threads=no
8096if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008097
8098
8099
8100ac_ext=c
8101ac_cpp='$CPP $CPPFLAGS'
8102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8104ac_compiler_gnu=$ac_cv_c_compiler_gnu
8105
8106ax_pthread_ok=no
8107
8108# We used to check for pthread.h first, but this fails if pthread.h
8109# requires special compiler flags (e.g. on True64 or Sequent).
8110# It gets checked for in the link test anyway.
8111
8112# First of all, check if the user has set any of the PTHREAD_LIBS,
8113# etcetera environment variables, and if threads linking works using
8114# them:
8115if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8116 save_CFLAGS="$CFLAGS"
8117 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8118 save_LIBS="$LIBS"
8119 LIBS="$PTHREAD_LIBS $LIBS"
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8121$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123/* end confdefs.h. */
8124
8125/* Override any GCC internal prototype to avoid an error.
8126 Use char because int might match the return type of a GCC
8127 builtin and then its argument prototype would still apply. */
8128#ifdef __cplusplus
8129extern "C"
8130#endif
8131char pthread_join ();
8132int
8133main ()
8134{
8135return pthread_join ();
8136 ;
8137 return 0;
8138}
8139_ACEOF
8140if ac_fn_c_try_link "$LINENO"; then :
8141 ax_pthread_ok=yes
8142fi
8143rm -f core conftest.err conftest.$ac_objext \
8144 conftest$ac_exeext conftest.$ac_ext
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8146$as_echo "$ax_pthread_ok" >&6; }
8147 if test x"$ax_pthread_ok" = xno; then
8148 PTHREAD_LIBS=""
8149 PTHREAD_CFLAGS=""
8150 fi
8151 LIBS="$save_LIBS"
8152 CFLAGS="$save_CFLAGS"
8153fi
8154
8155# We must check for the threads library under a number of different
8156# names; the ordering is very important because some systems
8157# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8158# libraries is broken (non-POSIX).
8159
8160# Create a list of thread flags to try. Items starting with a "-" are
8161# C compiler flags, and other items are library names, except for "none"
8162# which indicates that we try without any flags at all, and "pthread-config"
8163# which is a program returning the flags for the Pth emulation library.
8164
8165ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8166
8167# The ordering *is* (sometimes) important. Some notes on the
8168# individual items follow:
8169
8170# pthreads: AIX (must check this before -lpthread)
8171# none: in case threads are in libc; should be tried before -Kthread and
8172# other compiler flags to prevent continual compiler warnings
8173# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8174# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8175# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8176# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8177# -pthreads: Solaris/gcc
8178# -mthreads: Mingw32/gcc, Lynx/gcc
8179# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8180# doesn't hurt to check since this sometimes defines pthreads too;
8181# also defines -D_REENTRANT)
8182# ... -mt is also the pthreads flag for HP/aCC
8183# pthread: Linux, etcetera
8184# --thread-safe: KAI C++
8185# pthread-config: use pthread-config program (for GNU Pth library)
8186
8187case "${host_cpu}-${host_os}" in
8188 *solaris*)
8189
8190 # On Solaris (at least, for some versions), libc contains stubbed
8191 # (non-functional) versions of the pthreads routines, so link-based
8192 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8193 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8194 # a function called by this macro, so we could check for that, but
8195 # who knows whether they'll stub that too in a future libc.) So,
8196 # we'll just look for -pthreads and -lpthread first:
8197
8198 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8199 ;;
8200
8201 *-darwin*)
8202 ax_pthread_flags="-pthread $ax_pthread_flags"
8203 ;;
8204esac
8205
8206if test x"$ax_pthread_ok" = xno; then
8207for flag in $ax_pthread_flags; do
8208
8209 case $flag in
8210 none)
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8212$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8213 ;;
8214
8215 -*)
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8217$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8218 PTHREAD_CFLAGS="$flag"
8219 ;;
8220
8221 pthread-config)
8222 # Extract the first word of "pthread-config", so it can be a program name with args.
8223set dummy pthread-config; ac_word=$2
8224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008226if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008227 $as_echo_n "(cached) " >&6
8228else
8229 if test -n "$ax_pthread_config"; then
8230 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8231else
8232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233for as_dir in $PATH
8234do
8235 IFS=$as_save_IFS
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
8238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8239 ac_cv_prog_ax_pthread_config="yes"
8240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 break 2
8242 fi
8243done
8244 done
8245IFS=$as_save_IFS
8246
8247 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8248fi
8249fi
8250ax_pthread_config=$ac_cv_prog_ax_pthread_config
8251if test -n "$ax_pthread_config"; then
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8253$as_echo "$ax_pthread_config" >&6; }
8254else
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256$as_echo "no" >&6; }
8257fi
8258
8259
8260 if test x"$ax_pthread_config" = xno; then continue; fi
8261 PTHREAD_CFLAGS="`pthread-config --cflags`"
8262 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8263 ;;
8264
8265 *)
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8267$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8268 PTHREAD_LIBS="-l$flag"
8269 ;;
8270 esac
8271
8272 save_LIBS="$LIBS"
8273 save_CFLAGS="$CFLAGS"
8274 LIBS="$PTHREAD_LIBS $LIBS"
8275 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8276
8277 # Check for various functions. We must include pthread.h,
8278 # since some functions may be macros. (On the Sequent, we
8279 # need a special flag -Kthread to make this header compile.)
8280 # We check for pthread_join because it is in -lpthread on IRIX
8281 # while pthread_create is in libc. We check for pthread_attr_init
8282 # due to DEC craziness with -lpthreads. We check for
8283 # pthread_cleanup_push because it is one of the few pthread
8284 # functions on Solaris that doesn't have a non-functional libc stub.
8285 # We try pthread_create on general principles.
8286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287/* end confdefs.h. */
8288#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008289 static void routine(void* a) {a=0;}
8290 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008291int
8292main ()
8293{
8294pthread_t th; pthread_attr_t attr;
8295 pthread_create(&th,0,start_routine,0);
8296 pthread_join(th, 0);
8297 pthread_attr_init(&attr);
8298 pthread_cleanup_push(routine, 0);
8299 pthread_cleanup_pop(0);
8300 ;
8301 return 0;
8302}
8303_ACEOF
8304if ac_fn_c_try_link "$LINENO"; then :
8305 ax_pthread_ok=yes
8306fi
8307rm -f core conftest.err conftest.$ac_objext \
8308 conftest$ac_exeext conftest.$ac_ext
8309
8310 LIBS="$save_LIBS"
8311 CFLAGS="$save_CFLAGS"
8312
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8314$as_echo "$ax_pthread_ok" >&6; }
8315 if test "x$ax_pthread_ok" = xyes; then
8316 break;
8317 fi
8318
8319 PTHREAD_LIBS=""
8320 PTHREAD_CFLAGS=""
8321done
8322fi
8323
8324# Various other checks:
8325if test "x$ax_pthread_ok" = xyes; then
8326 save_LIBS="$LIBS"
8327 LIBS="$PTHREAD_LIBS $LIBS"
8328 save_CFLAGS="$CFLAGS"
8329 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8330
8331 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8333$as_echo_n "checking for joinable pthread attribute... " >&6; }
8334 attr_name=unknown
8335 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337/* end confdefs.h. */
8338#include <pthread.h>
8339int
8340main ()
8341{
8342int attr=$attr; return attr;
8343 ;
8344 return 0;
8345}
8346_ACEOF
8347if ac_fn_c_try_link "$LINENO"; then :
8348 attr_name=$attr; break
8349fi
8350rm -f core conftest.err conftest.$ac_objext \
8351 conftest$ac_exeext conftest.$ac_ext
8352 done
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8354$as_echo "$attr_name" >&6; }
8355 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8356
8357cat >>confdefs.h <<_ACEOF
8358#define PTHREAD_CREATE_JOINABLE $attr_name
8359_ACEOF
8360
8361 fi
8362
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8364$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8365 flag=no
8366 case "${host_cpu}-${host_os}" in
8367 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8368 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8369 esac
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8371$as_echo "${flag}" >&6; }
8372 if test "x$flag" != xno; then
8373 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8374 fi
8375
8376 LIBS="$save_LIBS"
8377 CFLAGS="$save_CFLAGS"
8378
8379 # More AIX lossage: must compile with xlc_r or cc_r
8380 if test x"$GCC" != xyes; then
8381 for ac_prog in xlc_r cc_r
8382do
8383 # Extract the first word of "$ac_prog", so it can be a program name with args.
8384set dummy $ac_prog; ac_word=$2
8385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8386$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008387if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008388 $as_echo_n "(cached) " >&6
8389else
8390 if test -n "$PTHREAD_CC"; then
8391 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8392else
8393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394for as_dir in $PATH
8395do
8396 IFS=$as_save_IFS
8397 test -z "$as_dir" && as_dir=.
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8400 ac_cv_prog_PTHREAD_CC="$ac_prog"
8401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8402 break 2
8403 fi
8404done
8405 done
8406IFS=$as_save_IFS
8407
8408fi
8409fi
8410PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8411if test -n "$PTHREAD_CC"; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8413$as_echo "$PTHREAD_CC" >&6; }
8414else
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416$as_echo "no" >&6; }
8417fi
8418
8419
8420 test -n "$PTHREAD_CC" && break
8421done
8422test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8423
8424 else
8425 PTHREAD_CC=$CC
8426 fi
8427else
8428 PTHREAD_CC="$CC"
8429fi
8430
8431
8432
8433
8434
8435# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8436if test x"$ax_pthread_ok" = xyes; then
8437
8438$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8439
8440 :
8441else
8442 ax_pthread_ok=no
8443
8444fi
8445ac_ext=c
8446ac_cpp='$CPP $CPPFLAGS'
8447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8449ac_compiler_gnu=$ac_cv_c_compiler_gnu
8450
8451
cristy7acf8fb2010-09-23 19:58:53 +00008452 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008453 have_threads=yes
8454 DEF_THREAD="$PTHREAD_CFLAGS"
8455 CFLAGS="$CFLAGS $DEF_THREAD"
8456 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8457 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008458 { $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 +00008459$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8460 CC="$PTHREAD_CC"
8461 fi
cristy55bf91c2010-09-24 00:29:41 +00008462
8463$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8464
cristy3ed852e2009-09-05 21:47:34 +00008465 fi
8466fi
8467
8468# Enable support for OpenMP
8469if test "$have_threads" != 'yes'; then
8470 ac_cv_prog_c_openmp=unsupported
8471fi
8472
8473 OPENMP_CFLAGS=
8474 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008475if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008476 enableval=$enable_openmp;
8477fi
8478
8479 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008481$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008482if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008483 $as_echo_n "(cached) " >&6
8484else
cristy8b350f62009-11-15 23:12:43 +00008485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008487
8488#ifndef _OPENMP
8489 choke me
8490#endif
8491#include <omp.h>
8492int main () { return omp_get_num_threads (); }
8493
8494_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008495if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008496 ac_cv_prog_c_openmp='none needed'
8497else
cristy8b350f62009-11-15 23:12:43 +00008498 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008499 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8500 ac_save_CFLAGS=$CFLAGS
8501 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008504
8505#ifndef _OPENMP
8506 choke me
8507#endif
8508#include <omp.h>
8509int main () { return omp_get_num_threads (); }
8510
8511_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008512if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008513 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008514fi
cristy8b350f62009-11-15 23:12:43 +00008515rm -f core conftest.err conftest.$ac_objext \
8516 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008517 CFLAGS=$ac_save_CFLAGS
8518 if test "$ac_cv_prog_c_openmp" != unsupported; then
8519 break
8520 fi
8521 done
8522fi
cristy8b350f62009-11-15 23:12:43 +00008523rm -f core conftest.err conftest.$ac_objext \
8524 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008525fi
cristy8b350f62009-11-15 23:12:43 +00008526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008527$as_echo "$ac_cv_prog_c_openmp" >&6; }
8528 case $ac_cv_prog_c_openmp in #(
8529 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008530 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008531 *)
cristy8b350f62009-11-15 23:12:43 +00008532 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008533 esac
8534 fi
8535
8536
8537CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8538MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8539
cristy391f1ce2010-09-09 17:23:28 +00008540if test "$enable_openmp" != no; then
8541 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8542 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8543 fi
8544fi
cristy3ed852e2009-09-05 21:47:34 +00008545
cristy736173a2009-09-20 21:18:22 +00008546# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008547
8548
8549
8550ac_ext=c
8551ac_cpp='$CPP $CPPFLAGS'
8552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8554ac_compiler_gnu=$ac_cv_c_compiler_gnu
8555
8556ax_pthread_ok=no
8557
8558# We used to check for pthread.h first, but this fails if pthread.h
8559# requires special compiler flags (e.g. on True64 or Sequent).
8560# It gets checked for in the link test anyway.
8561
8562# First of all, check if the user has set any of the PTHREAD_LIBS,
8563# etcetera environment variables, and if threads linking works using
8564# them:
8565if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8566 save_CFLAGS="$CFLAGS"
8567 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8568 save_LIBS="$LIBS"
8569 LIBS="$PTHREAD_LIBS $LIBS"
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8571$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8573/* end confdefs.h. */
8574
8575/* Override any GCC internal prototype to avoid an error.
8576 Use char because int might match the return type of a GCC
8577 builtin and then its argument prototype would still apply. */
8578#ifdef __cplusplus
8579extern "C"
8580#endif
8581char pthread_join ();
8582int
8583main ()
8584{
8585return pthread_join ();
8586 ;
8587 return 0;
8588}
8589_ACEOF
8590if ac_fn_c_try_link "$LINENO"; then :
8591 ax_pthread_ok=yes
8592fi
8593rm -f core conftest.err conftest.$ac_objext \
8594 conftest$ac_exeext conftest.$ac_ext
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8596$as_echo "$ax_pthread_ok" >&6; }
8597 if test x"$ax_pthread_ok" = xno; then
8598 PTHREAD_LIBS=""
8599 PTHREAD_CFLAGS=""
8600 fi
8601 LIBS="$save_LIBS"
8602 CFLAGS="$save_CFLAGS"
8603fi
8604
8605# We must check for the threads library under a number of different
8606# names; the ordering is very important because some systems
8607# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8608# libraries is broken (non-POSIX).
8609
8610# Create a list of thread flags to try. Items starting with a "-" are
8611# C compiler flags, and other items are library names, except for "none"
8612# which indicates that we try without any flags at all, and "pthread-config"
8613# which is a program returning the flags for the Pth emulation library.
8614
8615ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8616
8617# The ordering *is* (sometimes) important. Some notes on the
8618# individual items follow:
8619
8620# pthreads: AIX (must check this before -lpthread)
8621# none: in case threads are in libc; should be tried before -Kthread and
8622# other compiler flags to prevent continual compiler warnings
8623# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8624# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8625# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8626# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8627# -pthreads: Solaris/gcc
8628# -mthreads: Mingw32/gcc, Lynx/gcc
8629# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8630# doesn't hurt to check since this sometimes defines pthreads too;
8631# also defines -D_REENTRANT)
8632# ... -mt is also the pthreads flag for HP/aCC
8633# pthread: Linux, etcetera
8634# --thread-safe: KAI C++
8635# pthread-config: use pthread-config program (for GNU Pth library)
8636
8637case "${host_cpu}-${host_os}" in
8638 *solaris*)
8639
8640 # On Solaris (at least, for some versions), libc contains stubbed
8641 # (non-functional) versions of the pthreads routines, so link-based
8642 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8643 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8644 # a function called by this macro, so we could check for that, but
8645 # who knows whether they'll stub that too in a future libc.) So,
8646 # we'll just look for -pthreads and -lpthread first:
8647
8648 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8649 ;;
8650
8651 *-darwin*)
8652 ax_pthread_flags="-pthread $ax_pthread_flags"
8653 ;;
8654esac
8655
8656if test x"$ax_pthread_ok" = xno; then
8657for flag in $ax_pthread_flags; do
8658
8659 case $flag in
8660 none)
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8662$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8663 ;;
8664
8665 -*)
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8667$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8668 PTHREAD_CFLAGS="$flag"
8669 ;;
8670
8671 pthread-config)
8672 # Extract the first word of "pthread-config", so it can be a program name with args.
8673set dummy pthread-config; ac_word=$2
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8675$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008676if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008677 $as_echo_n "(cached) " >&6
8678else
8679 if test -n "$ax_pthread_config"; then
8680 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8681else
8682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8683for as_dir in $PATH
8684do
8685 IFS=$as_save_IFS
8686 test -z "$as_dir" && as_dir=.
8687 for ac_exec_ext in '' $ac_executable_extensions; do
8688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8689 ac_cv_prog_ax_pthread_config="yes"
8690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8691 break 2
8692 fi
8693done
8694 done
8695IFS=$as_save_IFS
8696
8697 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8698fi
8699fi
8700ax_pthread_config=$ac_cv_prog_ax_pthread_config
8701if test -n "$ax_pthread_config"; then
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8703$as_echo "$ax_pthread_config" >&6; }
8704else
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706$as_echo "no" >&6; }
8707fi
8708
8709
8710 if test x"$ax_pthread_config" = xno; then continue; fi
8711 PTHREAD_CFLAGS="`pthread-config --cflags`"
8712 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8713 ;;
8714
8715 *)
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8717$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8718 PTHREAD_LIBS="-l$flag"
8719 ;;
8720 esac
8721
8722 save_LIBS="$LIBS"
8723 save_CFLAGS="$CFLAGS"
8724 LIBS="$PTHREAD_LIBS $LIBS"
8725 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8726
8727 # Check for various functions. We must include pthread.h,
8728 # since some functions may be macros. (On the Sequent, we
8729 # need a special flag -Kthread to make this header compile.)
8730 # We check for pthread_join because it is in -lpthread on IRIX
8731 # while pthread_create is in libc. We check for pthread_attr_init
8732 # due to DEC craziness with -lpthreads. We check for
8733 # pthread_cleanup_push because it is one of the few pthread
8734 # functions on Solaris that doesn't have a non-functional libc stub.
8735 # We try pthread_create on general principles.
8736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8737/* end confdefs.h. */
8738#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008739 static void routine(void* a) {a=0;}
8740 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008741int
8742main ()
8743{
8744pthread_t th; pthread_attr_t attr;
8745 pthread_create(&th,0,start_routine,0);
8746 pthread_join(th, 0);
8747 pthread_attr_init(&attr);
8748 pthread_cleanup_push(routine, 0);
8749 pthread_cleanup_pop(0);
8750 ;
8751 return 0;
8752}
8753_ACEOF
8754if ac_fn_c_try_link "$LINENO"; then :
8755 ax_pthread_ok=yes
8756fi
8757rm -f core conftest.err conftest.$ac_objext \
8758 conftest$ac_exeext conftest.$ac_ext
8759
8760 LIBS="$save_LIBS"
8761 CFLAGS="$save_CFLAGS"
8762
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8764$as_echo "$ax_pthread_ok" >&6; }
8765 if test "x$ax_pthread_ok" = xyes; then
8766 break;
8767 fi
8768
8769 PTHREAD_LIBS=""
8770 PTHREAD_CFLAGS=""
8771done
8772fi
8773
8774# Various other checks:
8775if test "x$ax_pthread_ok" = xyes; then
8776 save_LIBS="$LIBS"
8777 LIBS="$PTHREAD_LIBS $LIBS"
8778 save_CFLAGS="$CFLAGS"
8779 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8780
8781 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8783$as_echo_n "checking for joinable pthread attribute... " >&6; }
8784 attr_name=unknown
8785 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8787/* end confdefs.h. */
8788#include <pthread.h>
8789int
8790main ()
8791{
8792int attr=$attr; return attr;
8793 ;
8794 return 0;
8795}
8796_ACEOF
8797if ac_fn_c_try_link "$LINENO"; then :
8798 attr_name=$attr; break
8799fi
8800rm -f core conftest.err conftest.$ac_objext \
8801 conftest$ac_exeext conftest.$ac_ext
8802 done
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8804$as_echo "$attr_name" >&6; }
8805 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8806
8807cat >>confdefs.h <<_ACEOF
8808#define PTHREAD_CREATE_JOINABLE $attr_name
8809_ACEOF
8810
8811 fi
8812
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8814$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8815 flag=no
8816 case "${host_cpu}-${host_os}" in
8817 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8818 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8819 esac
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8821$as_echo "${flag}" >&6; }
8822 if test "x$flag" != xno; then
8823 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8824 fi
8825
8826 LIBS="$save_LIBS"
8827 CFLAGS="$save_CFLAGS"
8828
8829 # More AIX lossage: must compile with xlc_r or cc_r
8830 if test x"$GCC" != xyes; then
8831 for ac_prog in xlc_r cc_r
8832do
8833 # Extract the first word of "$ac_prog", so it can be a program name with args.
8834set dummy $ac_prog; ac_word=$2
8835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8836$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008837if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008838 $as_echo_n "(cached) " >&6
8839else
8840 if test -n "$PTHREAD_CC"; then
8841 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8842else
8843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8844for as_dir in $PATH
8845do
8846 IFS=$as_save_IFS
8847 test -z "$as_dir" && as_dir=.
8848 for ac_exec_ext in '' $ac_executable_extensions; do
8849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8850 ac_cv_prog_PTHREAD_CC="$ac_prog"
8851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8852 break 2
8853 fi
8854done
8855 done
8856IFS=$as_save_IFS
8857
8858fi
8859fi
8860PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8861if test -n "$PTHREAD_CC"; then
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8863$as_echo "$PTHREAD_CC" >&6; }
8864else
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8866$as_echo "no" >&6; }
8867fi
8868
8869
8870 test -n "$PTHREAD_CC" && break
8871done
8872test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8873
8874 else
8875 PTHREAD_CC=$CC
8876 fi
8877else
8878 PTHREAD_CC="$CC"
8879fi
8880
8881
8882
8883
8884
8885# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8886if test x"$ax_pthread_ok" = xyes; then
8887
8888$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8889
8890 :
8891else
8892 ax_pthread_ok=no
8893
8894fi
8895ac_ext=c
8896ac_cpp='$CPP $CPPFLAGS'
8897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8899ac_compiler_gnu=$ac_cv_c_compiler_gnu
8900
8901
8902
8903# Check whether --enable-opencl was given.
8904if test "${enable_opencl+set}" = set; then :
8905 enableval=$enable_opencl; disable_opencl=$enableval
8906else
8907 disable_opencl='yes'
8908fi
8909
8910
8911if test "$disable_opencl" = 'yes'; then
8912 ac_ext=c
8913ac_cpp='$CPP $CPPFLAGS'
8914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8916ac_compiler_gnu=$ac_cv_c_compiler_gnu
8917
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8919$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008920if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008921 $as_echo_n "(cached) " >&6
8922else
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924/* end confdefs.h. */
8925
8926int
8927main ()
8928{
8929#ifndef _MSC_VER
8930 choke me
8931#endif
8932
8933 ;
8934 return 0;
8935}
8936_ACEOF
8937if ac_fn_c_try_compile "$LINENO"; then :
8938 ax_compiler_ms=yes
8939else
8940 ax_compiler_ms=no
8941fi
8942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8943ax_cv_c_compiler_ms=$ax_compiler_ms
8944
8945fi
8946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8947$as_echo "$ax_cv_c_compiler_ms" >&6; }
8948 if test X$ax_compiler_ms = Xno; then :
8949 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8950fi
8951
8952 ax_save_CPPFLAGS=$CPPFLAGS
8953 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8954 for ac_header in CL/cl.h OpenCL/cl.h
8955do :
8956 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8957ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00008958if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00008959 cat >>confdefs.h <<_ACEOF
8960#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8961_ACEOF
8962
8963fi
8964
8965done
8966
8967 CPPFLAGS=$ax_save_CPPFLAGS
8968
8969 for ac_header in windows.h
8970do :
8971 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00008972if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00008973 cat >>confdefs.h <<_ACEOF
8974#define HAVE_WINDOWS_H 1
8975_ACEOF
8976
8977fi
8978
8979done
8980
8981
8982
8983
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
8985$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008986if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008987 $as_echo_n "(cached) " >&6
8988else
8989 ax_cv_check_cl_libcl=no
8990 case $host_cpu in
8991 x86_64) ax_check_cl_libdir=lib64 ;;
8992 *) ax_check_cl_libdir=lib ;;
8993 esac
8994 ax_save_CPPFLAGS=$CPPFLAGS
8995 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8996 ax_save_LIBS=$LIBS
8997 LIBS=""
8998 ax_check_libs="-lOpenCL -lCL -lclparser"
8999 for ax_lib in $ax_check_libs; do
9000 if test X$ax_compiler_ms = Xyes; then :
9001 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9002else
9003 ax_try_lib=$ax_lib
9004fi
9005 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007/* end confdefs.h. */
9008
9009 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9010 # include <windows.h>
9011 # endif
9012 # ifdef HAVE_CL_CL_H
9013 # include <CL/cl.h>
9014 # elif defined(HAVE_OPENCL_CL_H)
9015 # include <OpenCL/cl.h>
9016 # else
9017 # error no CL.h
9018 # endif
9019int
9020main ()
9021{
9022clCreateContextFromType(0,0,0,0,0)
9023 ;
9024 return 0;
9025}
9026_ACEOF
9027if ac_fn_c_try_link "$LINENO"; then :
9028 ax_cv_check_cl_libcl=$ax_try_lib; break
9029else
9030 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"
9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032/* end confdefs.h. */
9033
9034 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9035 # include <windows.h>
9036 # endif
9037 # ifdef HAVE_CL_CL_H
9038 # include <CL/cl.h>
9039 # elif defined(HAVE_OPENCL_CL_H)
9040 # include <OpenCL/cl.h>
9041 # else
9042 # error no CL.h
9043 # endif
9044int
9045main ()
9046{
9047clCreateContextFromType(0,0,0,0,0)
9048 ;
9049 return 0;
9050}
9051_ACEOF
9052if ac_fn_c_try_link "$LINENO"; then :
9053 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9054else
cristy78c5a0c2010-12-04 20:00:59 +00009055 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 +00009056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057/* end confdefs.h. */
9058
9059 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9060 # include <windows.h>
9061 # endif
9062 # ifdef HAVE_CL_CL_H
9063 # include <CL/cl.h>
9064 # elif defined(HAVE_OPENCL_CL_H)
9065 # include <OpenCL/cl.h>
9066 # else
9067 # error no CL.h
9068 # endif
9069int
9070main ()
9071{
9072clCreateContextFromType(0,0,0,0,0)
9073 ;
9074 return 0;
9075}
9076_ACEOF
9077if ac_fn_c_try_link "$LINENO"; then :
9078 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9079fi
9080rm -f core conftest.err conftest.$ac_objext \
9081 conftest$ac_exeext conftest.$ac_ext
9082fi
9083rm -f core conftest.err conftest.$ac_objext \
9084 conftest$ac_exeext conftest.$ac_ext
9085fi
9086rm -f core conftest.err conftest.$ac_objext \
9087 conftest$ac_exeext conftest.$ac_ext
9088 done
9089
9090 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009091 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9093/* end confdefs.h. */
9094
9095 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9096 # include <windows.h>
9097 # endif
9098 # ifdef HAVE_CL_CL_H
9099 # include <CL/cl.h>
9100 # elif defined(HAVE_OPENCL_CL_H)
9101 # include <OpenCL/cl.h>
9102 # else
9103 # error no CL.h
9104 # endif
9105int
9106main ()
9107{
9108clCreateContextFromType(0,0,0,0,0)
9109 ;
9110 return 0;
9111}
9112_ACEOF
9113if ac_fn_c_try_link "$LINENO"; then :
9114 ax_cv_check_cl_libcl=$LIBS
9115fi
9116rm -f core conftest.err conftest.$ac_objext \
9117 conftest$ac_exeext conftest.$ac_ext
9118fi
9119
9120 LIBS=$ax_save_LIBS
9121 CPPFLAGS=$ax_save_CPPFLAGS
9122fi
9123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9124$as_echo "$ax_cv_check_cl_libcl" >&6; }
9125
9126 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9127 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9128else
9129 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9130$as_echo "#define _OPENCL 1" >>confdefs.h
9131
9132fi
9133 ac_ext=c
9134ac_cpp='$CPP $CPPFLAGS'
9135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9137ac_compiler_gnu=$ac_cv_c_compiler_gnu
9138
9139fi
9140
9141
9142
9143
cristyc7083c12009-10-14 03:16:55 +00009144CFLAGS="$CL_CFLAGS $CFLAGS"
9145LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009146
cristy391f1ce2010-09-09 17:23:28 +00009147if test "$enable_opencl" != no; then
9148 if test "_OPENCL" = '1'; then
9149 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9150 fi
cristyfd9dcd42010-08-08 18:07:02 +00009151fi
cristy2e8b51d2009-10-17 18:26:15 +00009152
cristy3ed852e2009-09-05 21:47:34 +00009153########
9154#
9155# Check for large file support
9156#
9157########
9158# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009159if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009160 enableval=$enable_largefile;
9161fi
9162
9163if test "$enable_largefile" != no; then
9164
cristy8b350f62009-11-15 23:12:43 +00009165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009166$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009167if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009168 $as_echo_n "(cached) " >&6
9169else
9170 ac_cv_sys_largefile_CC=no
9171 if test "$GCC" != yes; then
9172 ac_save_CC=$CC
9173 while :; do
9174 # IRIX 6.2 and later do not support large files by default,
9175 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009177/* end confdefs.h. */
9178#include <sys/types.h>
9179 /* Check that off_t can represent 2**63 - 1 correctly.
9180 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9181 since some C++ compilers masquerading as C compilers
9182 incorrectly reject 9223372036854775807. */
9183#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9184 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9185 && LARGE_OFF_T % 2147483647 == 1)
9186 ? 1 : -1];
9187int
9188main ()
9189{
9190
9191 ;
9192 return 0;
9193}
9194_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009195 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009196 break
cristy3ed852e2009-09-05 21:47:34 +00009197fi
cristy3ed852e2009-09-05 21:47:34 +00009198rm -f core conftest.err conftest.$ac_objext
9199 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009200 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009201 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009202fi
cristy3ed852e2009-09-05 21:47:34 +00009203rm -f core conftest.err conftest.$ac_objext
9204 break
9205 done
9206 CC=$ac_save_CC
9207 rm -f conftest.$ac_ext
9208 fi
9209fi
cristy8b350f62009-11-15 23:12:43 +00009210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009211$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9212 if test "$ac_cv_sys_largefile_CC" != no; then
9213 CC=$CC$ac_cv_sys_largefile_CC
9214 fi
9215
cristy8b350f62009-11-15 23:12:43 +00009216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009217$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009218if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009219 $as_echo_n "(cached) " >&6
9220else
9221 while :; do
cristy8b350f62009-11-15 23:12:43 +00009222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009223/* end confdefs.h. */
9224#include <sys/types.h>
9225 /* Check that off_t can represent 2**63 - 1 correctly.
9226 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9227 since some C++ compilers masquerading as C compilers
9228 incorrectly reject 9223372036854775807. */
9229#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9230 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9231 && LARGE_OFF_T % 2147483647 == 1)
9232 ? 1 : -1];
9233int
9234main ()
9235{
9236
9237 ;
9238 return 0;
9239}
9240_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009241if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009242 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009243fi
cristy3ed852e2009-09-05 21:47:34 +00009244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009246/* end confdefs.h. */
9247#define _FILE_OFFSET_BITS 64
9248#include <sys/types.h>
9249 /* Check that off_t can represent 2**63 - 1 correctly.
9250 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9251 since some C++ compilers masquerading as C compilers
9252 incorrectly reject 9223372036854775807. */
9253#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9254 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9255 && LARGE_OFF_T % 2147483647 == 1)
9256 ? 1 : -1];
9257int
9258main ()
9259{
9260
9261 ;
9262 return 0;
9263}
9264_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009265if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009266 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009267fi
cristy3ed852e2009-09-05 21:47:34 +00009268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9269 ac_cv_sys_file_offset_bits=unknown
9270 break
9271done
9272fi
cristy8b350f62009-11-15 23:12:43 +00009273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009274$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9275case $ac_cv_sys_file_offset_bits in #(
9276 no | unknown) ;;
9277 *)
9278cat >>confdefs.h <<_ACEOF
9279#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9280_ACEOF
9281;;
9282esac
9283rm -rf conftest*
9284 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009286$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009287if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009288 $as_echo_n "(cached) " >&6
9289else
9290 while :; do
cristy8b350f62009-11-15 23:12:43 +00009291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009292/* end confdefs.h. */
9293#include <sys/types.h>
9294 /* Check that off_t can represent 2**63 - 1 correctly.
9295 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9296 since some C++ compilers masquerading as C compilers
9297 incorrectly reject 9223372036854775807. */
9298#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9299 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9300 && LARGE_OFF_T % 2147483647 == 1)
9301 ? 1 : -1];
9302int
9303main ()
9304{
9305
9306 ;
9307 return 0;
9308}
9309_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009310if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009311 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009312fi
cristy3ed852e2009-09-05 21:47:34 +00009313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009315/* end confdefs.h. */
9316#define _LARGE_FILES 1
9317#include <sys/types.h>
9318 /* Check that off_t can represent 2**63 - 1 correctly.
9319 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9320 since some C++ compilers masquerading as C compilers
9321 incorrectly reject 9223372036854775807. */
9322#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9323 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9324 && LARGE_OFF_T % 2147483647 == 1)
9325 ? 1 : -1];
9326int
9327main ()
9328{
9329
9330 ;
9331 return 0;
9332}
9333_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009334if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009335 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009336fi
cristy3ed852e2009-09-05 21:47:34 +00009337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9338 ac_cv_sys_large_files=unknown
9339 break
9340done
9341fi
cristy8b350f62009-11-15 23:12:43 +00009342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009343$as_echo "$ac_cv_sys_large_files" >&6; }
9344case $ac_cv_sys_large_files in #(
9345 no | unknown) ;;
9346 *)
9347cat >>confdefs.h <<_ACEOF
9348#define _LARGE_FILES $ac_cv_sys_large_files
9349_ACEOF
9350;;
9351esac
9352rm -rf conftest*
9353 fi
9354fi
9355
cristy8b350f62009-11-15 23:12:43 +00009356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009357$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009358if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009359 $as_echo_n "(cached) " >&6
9360else
9361 while :; do
cristy8b350f62009-11-15 23:12:43 +00009362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009363/* end confdefs.h. */
9364#include <sys/types.h> /* for off_t */
9365 #include <stdio.h>
9366int
9367main ()
9368{
9369int (*fp) (FILE *, off_t, int) = fseeko;
9370 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9371 ;
9372 return 0;
9373}
9374_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009375if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009376 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009377fi
cristy8b350f62009-11-15 23:12:43 +00009378rm -f core conftest.err conftest.$ac_objext \
9379 conftest$ac_exeext conftest.$ac_ext
9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009381/* end confdefs.h. */
9382#define _LARGEFILE_SOURCE 1
9383#include <sys/types.h> /* for off_t */
9384 #include <stdio.h>
9385int
9386main ()
9387{
9388int (*fp) (FILE *, off_t, int) = fseeko;
9389 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9390 ;
9391 return 0;
9392}
9393_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009394if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009395 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009396fi
cristy8b350f62009-11-15 23:12:43 +00009397rm -f core conftest.err conftest.$ac_objext \
9398 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009399 ac_cv_sys_largefile_source=unknown
9400 break
9401done
9402fi
cristy8b350f62009-11-15 23:12:43 +00009403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009404$as_echo "$ac_cv_sys_largefile_source" >&6; }
9405case $ac_cv_sys_largefile_source in #(
9406 no | unknown) ;;
9407 *)
9408cat >>confdefs.h <<_ACEOF
9409#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9410_ACEOF
9411;;
9412esac
9413rm -rf conftest*
9414
9415# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9416# in glibc 2.1.3, but that breaks too many other things.
9417# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9418if test $ac_cv_sys_largefile_source != unknown; then
9419
cristy8b350f62009-11-15 23:12:43 +00009420$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009421
9422fi
9423
9424LFS_CPPFLAGS=''
9425if test "$enable_largefile" != no; then
9426 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9427 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9428 else
cristy8b350f62009-11-15 23:12:43 +00009429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009430$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009431 if test "$cross_compiling" = yes; then :
9432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009434as_fn_error $? "cannot run test program while cross compiling
9435See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009436else
cristy8b350f62009-11-15 23:12:43 +00009437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009439#include <unistd.h>
9440 main () {
9441 exit(!(sizeof(off_t) == 8));
9442 }
cristyda16f162011-02-19 23:52:17 +00009443int
9444main ()
9445{
9446
9447 ;
9448 return 0;
9449}
cristy3ed852e2009-09-05 21:47:34 +00009450_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009451if ac_fn_c_try_run "$LINENO"; then :
9452 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009453
cristy8b350f62009-11-15 23:12:43 +00009454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009455$as_echo "yes" >&6; }
9456else
cristy8b350f62009-11-15 23:12:43 +00009457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009458$as_echo "no" >&6; }
9459fi
cristy8b350f62009-11-15 23:12:43 +00009460rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9461 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009462fi
9463
cristy3ed852e2009-09-05 21:47:34 +00009464 fi
9465 if test "$ac_cv_sys_large_files" != 'no'; then
9466 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9467 fi
9468 if test "$ac_cv_sys_largefile_source" != 'no'; then
9469 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9470 fi
9471fi
9472
9473
9474#
9475# Configure libtool & libltdl
9476#
9477# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009478enable_dlopen=yes
9479
9480
9481
9482case `pwd` in
9483 *\ * | *\ *)
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9485$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9486esac
9487
9488
9489
cristyda16f162011-02-19 23:52:17 +00009490macro_version='2.4'
9491macro_revision='1.3293'
cristy73bd4a52010-10-05 11:24:23 +00009492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505ltmain="$ac_aux_dir/ltmain.sh"
9506
cristy0c60a692010-11-04 01:09:47 +00009507# Backslashify metacharacters that are still active within
9508# double-quoted strings.
9509sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9510
9511# Same as above, but do not quote variable references.
9512double_quote_subst='s/\(["`\\]\)/\\\1/g'
9513
9514# Sed substitution to delay expansion of an escaped shell variable in a
9515# double_quote_subst'ed string.
9516delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9517
9518# Sed substitution to delay expansion of an escaped single quote.
9519delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9520
9521# Sed substitution to avoid accidental globbing in evaled expressions
9522no_glob_subst='s/\*/\\\*/g'
9523
cristy73bd4a52010-10-05 11:24:23 +00009524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9525$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009526if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009527 $as_echo_n "(cached) " >&6
9528else
9529 if test -n "$NM"; then
9530 # Let the user override the test.
9531 lt_cv_path_NM="$NM"
9532else
9533 lt_nm_to_check="${ac_tool_prefix}nm"
9534 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9535 lt_nm_to_check="$lt_nm_to_check nm"
9536 fi
9537 for lt_tmp_nm in $lt_nm_to_check; do
9538 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9539 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9540 IFS="$lt_save_ifs"
9541 test -z "$ac_dir" && ac_dir=.
9542 tmp_nm="$ac_dir/$lt_tmp_nm"
9543 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9544 # Check to see if the nm accepts a BSD-compat flag.
9545 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9546 # nm: unknown option "B" ignored
9547 # Tru64's nm complains that /dev/null is an invalid object file
9548 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9549 */dev/null* | *'Invalid file or object type'*)
9550 lt_cv_path_NM="$tmp_nm -B"
9551 break
9552 ;;
9553 *)
9554 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9555 */dev/null*)
9556 lt_cv_path_NM="$tmp_nm -p"
9557 break
9558 ;;
9559 *)
9560 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9561 continue # so that we can try to find one that supports BSD flags
9562 ;;
9563 esac
9564 ;;
9565 esac
9566 fi
9567 done
9568 IFS="$lt_save_ifs"
9569 done
9570 : ${lt_cv_path_NM=no}
9571fi
9572fi
9573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9574$as_echo "$lt_cv_path_NM" >&6; }
9575if test "$lt_cv_path_NM" != "no"; then
9576 NM="$lt_cv_path_NM"
9577else
9578 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009579 if test -n "$DUMPBIN"; then :
9580 # Let the user override the test.
9581 else
9582 if test -n "$ac_tool_prefix"; then
9583 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009584 do
9585 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9586set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9588$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009589if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009590 $as_echo_n "(cached) " >&6
9591else
9592 if test -n "$DUMPBIN"; then
9593 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9594else
9595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9596for as_dir in $PATH
9597do
9598 IFS=$as_save_IFS
9599 test -z "$as_dir" && as_dir=.
9600 for ac_exec_ext in '' $ac_executable_extensions; do
9601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9602 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9604 break 2
9605 fi
9606done
9607 done
9608IFS=$as_save_IFS
9609
9610fi
9611fi
9612DUMPBIN=$ac_cv_prog_DUMPBIN
9613if test -n "$DUMPBIN"; then
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9615$as_echo "$DUMPBIN" >&6; }
9616else
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9618$as_echo "no" >&6; }
9619fi
9620
9621
9622 test -n "$DUMPBIN" && break
9623 done
9624fi
9625if test -z "$DUMPBIN"; then
9626 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009627 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009628do
9629 # Extract the first word of "$ac_prog", so it can be a program name with args.
9630set dummy $ac_prog; ac_word=$2
9631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9632$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009633if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009634 $as_echo_n "(cached) " >&6
9635else
9636 if test -n "$ac_ct_DUMPBIN"; then
9637 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9638else
9639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9640for as_dir in $PATH
9641do
9642 IFS=$as_save_IFS
9643 test -z "$as_dir" && as_dir=.
9644 for ac_exec_ext in '' $ac_executable_extensions; do
9645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9646 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9648 break 2
9649 fi
9650done
9651 done
9652IFS=$as_save_IFS
9653
9654fi
9655fi
9656ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9657if test -n "$ac_ct_DUMPBIN"; then
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9659$as_echo "$ac_ct_DUMPBIN" >&6; }
9660else
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662$as_echo "no" >&6; }
9663fi
9664
9665
9666 test -n "$ac_ct_DUMPBIN" && break
9667done
9668
9669 if test "x$ac_ct_DUMPBIN" = x; then
9670 DUMPBIN=":"
9671 else
9672 case $cross_compiling:$ac_tool_warned in
9673yes:)
9674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9676ac_tool_warned=yes ;;
9677esac
9678 DUMPBIN=$ac_ct_DUMPBIN
9679 fi
9680fi
9681
cristy0c60a692010-11-04 01:09:47 +00009682 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9683 *COFF*)
9684 DUMPBIN="$DUMPBIN -symbols"
9685 ;;
9686 *)
9687 DUMPBIN=:
9688 ;;
9689 esac
9690 fi
cristy73bd4a52010-10-05 11:24:23 +00009691
9692 if test "$DUMPBIN" != ":"; then
9693 NM="$DUMPBIN"
9694 fi
9695fi
9696test -z "$NM" && NM=nm
9697
9698
9699
9700
9701
9702
9703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9704$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009705if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009706 $as_echo_n "(cached) " >&6
9707else
9708 lt_cv_nm_interface="BSD nm"
9709 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009710 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009711 (eval "$ac_compile" 2>conftest.err)
9712 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009713 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009714 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9715 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009716 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009717 cat conftest.out >&5
9718 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9719 lt_cv_nm_interface="MS dumpbin"
9720 fi
9721 rm -f conftest*
9722fi
9723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9724$as_echo "$lt_cv_nm_interface" >&6; }
9725
9726# find the maximum length of command line arguments
9727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9728$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009729if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009730 $as_echo_n "(cached) " >&6
9731else
9732 i=0
9733 teststring="ABCD"
9734
9735 case $build_os in
9736 msdosdjgpp*)
9737 # On DJGPP, this test can blow up pretty badly due to problems in libc
9738 # (any single argument exceeding 2000 bytes causes a buffer overrun
9739 # during glob expansion). Even if it were fixed, the result of this
9740 # check would be larger than it should be.
9741 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9742 ;;
9743
9744 gnu*)
9745 # Under GNU Hurd, this test is not required because there is
9746 # no limit to the length of command line arguments.
9747 # Libtool will interpret -1 as no limit whatsoever
9748 lt_cv_sys_max_cmd_len=-1;
9749 ;;
9750
9751 cygwin* | mingw* | cegcc*)
9752 # On Win9x/ME, this test blows up -- it succeeds, but takes
9753 # about 5 minutes as the teststring grows exponentially.
9754 # Worse, since 9x/ME are not pre-emptively multitasking,
9755 # you end up with a "frozen" computer, even though with patience
9756 # the test eventually succeeds (with a max line length of 256k).
9757 # Instead, let's just punt: use the minimum linelength reported by
9758 # all of the supported platforms: 8192 (on NT/2K/XP).
9759 lt_cv_sys_max_cmd_len=8192;
9760 ;;
9761
cristy0c60a692010-11-04 01:09:47 +00009762 mint*)
9763 # On MiNT this can take a long time and run out of memory.
9764 lt_cv_sys_max_cmd_len=8192;
9765 ;;
9766
cristy73bd4a52010-10-05 11:24:23 +00009767 amigaos*)
9768 # On AmigaOS with pdksh, this test takes hours, literally.
9769 # So we just punt and use a minimum line length of 8192.
9770 lt_cv_sys_max_cmd_len=8192;
9771 ;;
9772
9773 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9774 # This has been around since 386BSD, at least. Likely further.
9775 if test -x /sbin/sysctl; then
9776 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9777 elif test -x /usr/sbin/sysctl; then
9778 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9779 else
9780 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9781 fi
9782 # And add a safety zone
9783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9785 ;;
9786
9787 interix*)
9788 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9789 lt_cv_sys_max_cmd_len=196608
9790 ;;
9791
9792 osf*)
9793 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9794 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9795 # nice to cause kernel panics so lets avoid the loop below.
9796 # First set a reasonable default.
9797 lt_cv_sys_max_cmd_len=16384
9798 #
9799 if test -x /sbin/sysconfig; then
9800 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9801 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9802 esac
9803 fi
9804 ;;
9805 sco3.2v5*)
9806 lt_cv_sys_max_cmd_len=102400
9807 ;;
9808 sysv5* | sco5v6* | sysv4.2uw2*)
9809 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9810 if test -n "$kargmax"; then
9811 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9812 else
9813 lt_cv_sys_max_cmd_len=32768
9814 fi
9815 ;;
9816 *)
9817 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9818 if test -n "$lt_cv_sys_max_cmd_len"; then
9819 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9821 else
9822 # Make teststring a little bigger before we do anything with it.
9823 # a 1K string should be a reasonable start.
9824 for i in 1 2 3 4 5 6 7 8 ; do
9825 teststring=$teststring$teststring
9826 done
9827 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9828 # If test is not a shell built-in, we'll probably end up computing a
9829 # maximum length that is only half of the actual maximum length, but
9830 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +00009831 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9832 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +00009833 test $i != 17 # 1/2 MB should be enough
9834 do
9835 i=`expr $i + 1`
9836 teststring=$teststring$teststring
9837 done
9838 # Only check the string length outside the loop.
9839 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9840 teststring=
9841 # Add a significant safety factor because C++ compilers can tack on
9842 # massive amounts of additional arguments before passing them to the
9843 # linker. It appears as though 1/2 is a usable value.
9844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9845 fi
9846 ;;
9847 esac
9848
9849fi
9850
9851if test -n $lt_cv_sys_max_cmd_len ; then
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9853$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9854else
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9856$as_echo "none" >&6; }
9857fi
9858max_cmd_len=$lt_cv_sys_max_cmd_len
9859
9860
9861
9862
9863
9864
9865: ${CP="cp -f"}
9866: ${MV="mv -f"}
9867: ${RM="rm -f"}
9868
9869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9870$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9871# Try some XSI features
9872xsi_shell=no
9873( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +00009874 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9875 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +00009876 && eval 'test $(( 1 + 1 )) -eq 2 \
9877 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9878 && xsi_shell=yes
9879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9880$as_echo "$xsi_shell" >&6; }
9881
9882
9883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9884$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9885lt_shell_append=no
9886( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9887 >/dev/null 2>&1 \
9888 && lt_shell_append=yes
9889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9890$as_echo "$lt_shell_append" >&6; }
9891
9892
9893if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9894 lt_unset=unset
9895else
9896 lt_unset=false
9897fi
9898
9899
9900
9901
9902
9903# test EBCDIC or ASCII
9904case `echo X|tr X '\101'` in
9905 A) # ASCII based system
9906 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9907 lt_SP2NL='tr \040 \012'
9908 lt_NL2SP='tr \015\012 \040\040'
9909 ;;
9910 *) # EBCDIC based system
9911 lt_SP2NL='tr \100 \n'
9912 lt_NL2SP='tr \r\n \100\100'
9913 ;;
9914esac
9915
9916
9917
9918
9919
9920
9921
9922
9923
cristyda16f162011-02-19 23:52:17 +00009924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9925$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9926if ${lt_cv_to_host_file_cmd+:} false; then :
9927 $as_echo_n "(cached) " >&6
9928else
9929 case $host in
9930 *-*-mingw* )
9931 case $build in
9932 *-*-mingw* ) # actually msys
9933 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9934 ;;
9935 *-*-cygwin* )
9936 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9937 ;;
9938 * ) # otherwise, assume *nix
9939 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9940 ;;
9941 esac
9942 ;;
9943 *-*-cygwin* )
9944 case $build in
9945 *-*-mingw* ) # actually msys
9946 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9947 ;;
9948 *-*-cygwin* )
9949 lt_cv_to_host_file_cmd=func_convert_file_noop
9950 ;;
9951 * ) # otherwise, assume *nix
9952 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9953 ;;
9954 esac
9955 ;;
9956 * ) # unhandled hosts (and "normal" native builds)
9957 lt_cv_to_host_file_cmd=func_convert_file_noop
9958 ;;
9959esac
9960
9961fi
9962
9963to_host_file_cmd=$lt_cv_to_host_file_cmd
9964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9965$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9966
9967
9968
9969
9970
9971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9972$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9973if ${lt_cv_to_tool_file_cmd+:} false; then :
9974 $as_echo_n "(cached) " >&6
9975else
9976 #assume ordinary cross tools, or native build.
9977lt_cv_to_tool_file_cmd=func_convert_file_noop
9978case $host in
9979 *-*-mingw* )
9980 case $build in
9981 *-*-mingw* ) # actually msys
9982 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9983 ;;
9984 esac
9985 ;;
9986esac
9987
9988fi
9989
9990to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9992$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9993
9994
9995
9996
9997
cristy73bd4a52010-10-05 11:24:23 +00009998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9999$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010000if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010001 $as_echo_n "(cached) " >&6
10002else
10003 lt_cv_ld_reload_flag='-r'
10004fi
10005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10006$as_echo "$lt_cv_ld_reload_flag" >&6; }
10007reload_flag=$lt_cv_ld_reload_flag
10008case $reload_flag in
10009"" | " "*) ;;
10010*) reload_flag=" $reload_flag" ;;
10011esac
10012reload_cmds='$LD$reload_flag -o $output$reload_objs'
10013case $host_os in
cristyda16f162011-02-19 23:52:17 +000010014 cygwin* | mingw* | pw32* | cegcc*)
10015 if test "$GCC" != yes; then
10016 reload_cmds=false
10017 fi
10018 ;;
cristy73bd4a52010-10-05 11:24:23 +000010019 darwin*)
10020 if test "$GCC" = yes; then
10021 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10022 else
10023 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10024 fi
10025 ;;
10026esac
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036if test -n "$ac_tool_prefix"; then
10037 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10038set dummy ${ac_tool_prefix}objdump; ac_word=$2
10039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10040$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010041if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010042 $as_echo_n "(cached) " >&6
10043else
10044 if test -n "$OBJDUMP"; then
10045 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10046else
10047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10048for as_dir in $PATH
10049do
10050 IFS=$as_save_IFS
10051 test -z "$as_dir" && as_dir=.
10052 for ac_exec_ext in '' $ac_executable_extensions; do
10053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10054 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10056 break 2
10057 fi
10058done
10059 done
10060IFS=$as_save_IFS
10061
10062fi
10063fi
10064OBJDUMP=$ac_cv_prog_OBJDUMP
10065if test -n "$OBJDUMP"; then
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10067$as_echo "$OBJDUMP" >&6; }
10068else
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10070$as_echo "no" >&6; }
10071fi
10072
10073
10074fi
10075if test -z "$ac_cv_prog_OBJDUMP"; then
10076 ac_ct_OBJDUMP=$OBJDUMP
10077 # Extract the first word of "objdump", so it can be a program name with args.
10078set dummy objdump; ac_word=$2
10079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10080$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010081if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010082 $as_echo_n "(cached) " >&6
10083else
10084 if test -n "$ac_ct_OBJDUMP"; then
10085 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10086else
10087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10088for as_dir in $PATH
10089do
10090 IFS=$as_save_IFS
10091 test -z "$as_dir" && as_dir=.
10092 for ac_exec_ext in '' $ac_executable_extensions; do
10093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10094 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10096 break 2
10097 fi
10098done
10099 done
10100IFS=$as_save_IFS
10101
10102fi
10103fi
10104ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10105if test -n "$ac_ct_OBJDUMP"; then
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10107$as_echo "$ac_ct_OBJDUMP" >&6; }
10108else
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10110$as_echo "no" >&6; }
10111fi
10112
10113 if test "x$ac_ct_OBJDUMP" = x; then
10114 OBJDUMP="false"
10115 else
10116 case $cross_compiling:$ac_tool_warned in
10117yes:)
10118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10120ac_tool_warned=yes ;;
10121esac
10122 OBJDUMP=$ac_ct_OBJDUMP
10123 fi
10124else
10125 OBJDUMP="$ac_cv_prog_OBJDUMP"
10126fi
10127
10128test -z "$OBJDUMP" && OBJDUMP=objdump
10129
10130
10131
10132
10133
10134
10135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10136$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010137if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010138 $as_echo_n "(cached) " >&6
10139else
10140 lt_cv_file_magic_cmd='$MAGIC_CMD'
10141lt_cv_file_magic_test_file=
10142lt_cv_deplibs_check_method='unknown'
10143# Need to set the preceding variable on all platforms that support
10144# interlibrary dependencies.
10145# 'none' -- dependencies not supported.
10146# `unknown' -- same as none, but documents that we really don't know.
10147# 'pass_all' -- all dependencies passed with no checks.
10148# 'test_compile' -- check by making test program.
10149# 'file_magic [[regex]]' -- check by looking for files in library path
10150# which responds to the $file_magic_cmd with a given extended regex.
10151# If you have `file' or equivalent on your system and you're not sure
10152# whether `pass_all' will *always* work, you probably want this one.
10153
10154case $host_os in
10155aix[4-9]*)
10156 lt_cv_deplibs_check_method=pass_all
10157 ;;
10158
10159beos*)
10160 lt_cv_deplibs_check_method=pass_all
10161 ;;
10162
10163bsdi[45]*)
10164 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10165 lt_cv_file_magic_cmd='/usr/bin/file -L'
10166 lt_cv_file_magic_test_file=/shlib/libc.so
10167 ;;
10168
10169cygwin*)
10170 # func_win32_libid is a shell function defined in ltmain.sh
10171 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10172 lt_cv_file_magic_cmd='func_win32_libid'
10173 ;;
10174
10175mingw* | pw32*)
10176 # Base MSYS/MinGW do not provide the 'file' command needed by
10177 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10178 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010179 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10180 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010181 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10182 lt_cv_file_magic_cmd='func_win32_libid'
10183 else
cristy0c60a692010-11-04 01:09:47 +000010184 # Keep this pattern in sync with the one in func_win32_libid.
10185 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 +000010186 lt_cv_file_magic_cmd='$OBJDUMP -f'
10187 fi
10188 ;;
10189
cristy0c60a692010-11-04 01:09:47 +000010190cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010191 # use the weaker test based on 'objdump'. See mingw*.
10192 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10193 lt_cv_file_magic_cmd='$OBJDUMP -f'
10194 ;;
10195
10196darwin* | rhapsody*)
10197 lt_cv_deplibs_check_method=pass_all
10198 ;;
10199
10200freebsd* | dragonfly*)
10201 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10202 case $host_cpu in
10203 i*86 )
10204 # Not sure whether the presence of OpenBSD here was a mistake.
10205 # Let's accept both of them until this is cleared up.
10206 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10207 lt_cv_file_magic_cmd=/usr/bin/file
10208 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10209 ;;
10210 esac
10211 else
10212 lt_cv_deplibs_check_method=pass_all
10213 fi
10214 ;;
10215
10216gnu*)
10217 lt_cv_deplibs_check_method=pass_all
10218 ;;
10219
cristy0c60a692010-11-04 01:09:47 +000010220haiku*)
10221 lt_cv_deplibs_check_method=pass_all
10222 ;;
10223
cristy73bd4a52010-10-05 11:24:23 +000010224hpux10.20* | hpux11*)
10225 lt_cv_file_magic_cmd=/usr/bin/file
10226 case $host_cpu in
10227 ia64*)
10228 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10229 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10230 ;;
10231 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010232 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 +000010233 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10234 ;;
10235 *)
cristy0c60a692010-11-04 01:09:47 +000010236 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 +000010237 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10238 ;;
10239 esac
10240 ;;
10241
10242interix[3-9]*)
10243 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10245 ;;
10246
10247irix5* | irix6* | nonstopux*)
10248 case $LD in
10249 *-32|*"-32 ") libmagic=32-bit;;
10250 *-n32|*"-n32 ") libmagic=N32;;
10251 *-64|*"-64 ") libmagic=64-bit;;
10252 *) libmagic=never-match;;
10253 esac
10254 lt_cv_deplibs_check_method=pass_all
10255 ;;
10256
10257# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010258linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010259 lt_cv_deplibs_check_method=pass_all
10260 ;;
10261
10262netbsd*)
10263 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10265 else
10266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10267 fi
10268 ;;
10269
10270newos6*)
10271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10272 lt_cv_file_magic_cmd=/usr/bin/file
10273 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10274 ;;
10275
10276*nto* | *qnx*)
10277 lt_cv_deplibs_check_method=pass_all
10278 ;;
10279
10280openbsd*)
10281 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10283 else
10284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10285 fi
10286 ;;
10287
10288osf3* | osf4* | osf5*)
10289 lt_cv_deplibs_check_method=pass_all
10290 ;;
10291
10292rdos*)
10293 lt_cv_deplibs_check_method=pass_all
10294 ;;
10295
10296solaris*)
10297 lt_cv_deplibs_check_method=pass_all
10298 ;;
10299
10300sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10301 lt_cv_deplibs_check_method=pass_all
10302 ;;
10303
10304sysv4 | sysv4.3*)
10305 case $host_vendor in
10306 motorola)
10307 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]'
10308 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10309 ;;
10310 ncr)
10311 lt_cv_deplibs_check_method=pass_all
10312 ;;
10313 sequent)
10314 lt_cv_file_magic_cmd='/bin/file'
10315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10316 ;;
10317 sni)
10318 lt_cv_file_magic_cmd='/bin/file'
10319 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10320 lt_cv_file_magic_test_file=/lib/libc.so
10321 ;;
10322 siemens)
10323 lt_cv_deplibs_check_method=pass_all
10324 ;;
10325 pc)
10326 lt_cv_deplibs_check_method=pass_all
10327 ;;
10328 esac
10329 ;;
10330
10331tpf*)
10332 lt_cv_deplibs_check_method=pass_all
10333 ;;
10334esac
10335
10336fi
10337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10338$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010339
10340file_magic_glob=
10341want_nocaseglob=no
10342if test "$build" = "$host"; then
10343 case $host_os in
10344 mingw* | pw32*)
10345 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10346 want_nocaseglob=yes
10347 else
10348 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10349 fi
10350 ;;
10351 esac
10352fi
10353
cristy73bd4a52010-10-05 11:24:23 +000010354file_magic_cmd=$lt_cv_file_magic_cmd
10355deplibs_check_method=$lt_cv_deplibs_check_method
10356test -z "$deplibs_check_method" && deplibs_check_method=unknown
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
cristyda16f162011-02-19 23:52:17 +000010369
10370
10371
10372
10373
10374
10375
10376
10377
10378
cristy73bd4a52010-10-05 11:24:23 +000010379if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010380 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10381set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10383$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010384if ${ac_cv_prog_DLLTOOL+:} false; then :
10385 $as_echo_n "(cached) " >&6
10386else
10387 if test -n "$DLLTOOL"; then
10388 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10389else
10390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10391for as_dir in $PATH
10392do
10393 IFS=$as_save_IFS
10394 test -z "$as_dir" && as_dir=.
10395 for ac_exec_ext in '' $ac_executable_extensions; do
10396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10397 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10399 break 2
10400 fi
10401done
10402 done
10403IFS=$as_save_IFS
10404
10405fi
10406fi
10407DLLTOOL=$ac_cv_prog_DLLTOOL
10408if test -n "$DLLTOOL"; then
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10410$as_echo "$DLLTOOL" >&6; }
10411else
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10413$as_echo "no" >&6; }
10414fi
10415
10416
10417fi
10418if test -z "$ac_cv_prog_DLLTOOL"; then
10419 ac_ct_DLLTOOL=$DLLTOOL
10420 # Extract the first word of "dlltool", so it can be a program name with args.
10421set dummy dlltool; ac_word=$2
10422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10423$as_echo_n "checking for $ac_word... " >&6; }
10424if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10425 $as_echo_n "(cached) " >&6
10426else
10427 if test -n "$ac_ct_DLLTOOL"; then
10428 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10429else
10430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10431for as_dir in $PATH
10432do
10433 IFS=$as_save_IFS
10434 test -z "$as_dir" && as_dir=.
10435 for ac_exec_ext in '' $ac_executable_extensions; do
10436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10437 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10439 break 2
10440 fi
10441done
10442 done
10443IFS=$as_save_IFS
10444
10445fi
10446fi
10447ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10448if test -n "$ac_ct_DLLTOOL"; then
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10450$as_echo "$ac_ct_DLLTOOL" >&6; }
10451else
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10453$as_echo "no" >&6; }
10454fi
10455
10456 if test "x$ac_ct_DLLTOOL" = x; then
10457 DLLTOOL="false"
10458 else
10459 case $cross_compiling:$ac_tool_warned in
10460yes:)
10461{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10463ac_tool_warned=yes ;;
10464esac
10465 DLLTOOL=$ac_ct_DLLTOOL
10466 fi
10467else
10468 DLLTOOL="$ac_cv_prog_DLLTOOL"
10469fi
10470
10471test -z "$DLLTOOL" && DLLTOOL=dlltool
10472
10473
10474
10475
10476
10477
10478
10479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10480$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10481if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10482 $as_echo_n "(cached) " >&6
10483else
10484 lt_cv_sharedlib_from_linklib_cmd='unknown'
10485
10486case $host_os in
10487cygwin* | mingw* | pw32* | cegcc*)
10488 # two different shell functions defined in ltmain.sh
10489 # decide which to use based on capabilities of $DLLTOOL
10490 case `$DLLTOOL --help 2>&1` in
10491 *--identify-strict*)
10492 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10493 ;;
10494 *)
10495 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10496 ;;
10497 esac
10498 ;;
10499*)
10500 # fallback: assume linklib IS sharedlib
10501 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10502 ;;
10503esac
10504
10505fi
10506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10507$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10508sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10509test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10510
10511
10512
10513
10514
10515
10516
10517if test -n "$ac_tool_prefix"; then
10518 for ac_prog in ar
10519 do
10520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10521set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10523$as_echo_n "checking for $ac_word... " >&6; }
10524if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010525 $as_echo_n "(cached) " >&6
10526else
10527 if test -n "$AR"; then
10528 ac_cv_prog_AR="$AR" # Let the user override the test.
10529else
10530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10531for as_dir in $PATH
10532do
10533 IFS=$as_save_IFS
10534 test -z "$as_dir" && as_dir=.
10535 for ac_exec_ext in '' $ac_executable_extensions; do
10536 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 +000010537 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10539 break 2
10540 fi
10541done
10542 done
10543IFS=$as_save_IFS
10544
10545fi
10546fi
10547AR=$ac_cv_prog_AR
10548if test -n "$AR"; then
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10550$as_echo "$AR" >&6; }
10551else
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10553$as_echo "no" >&6; }
10554fi
10555
10556
cristyda16f162011-02-19 23:52:17 +000010557 test -n "$AR" && break
10558 done
cristy73bd4a52010-10-05 11:24:23 +000010559fi
cristyda16f162011-02-19 23:52:17 +000010560if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010561 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010562 for ac_prog in ar
10563do
10564 # Extract the first word of "$ac_prog", so it can be a program name with args.
10565set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10567$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010568if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010569 $as_echo_n "(cached) " >&6
10570else
10571 if test -n "$ac_ct_AR"; then
10572 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10573else
10574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575for as_dir in $PATH
10576do
10577 IFS=$as_save_IFS
10578 test -z "$as_dir" && as_dir=.
10579 for ac_exec_ext in '' $ac_executable_extensions; do
10580 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 +000010581 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10583 break 2
10584 fi
10585done
10586 done
10587IFS=$as_save_IFS
10588
10589fi
10590fi
10591ac_ct_AR=$ac_cv_prog_ac_ct_AR
10592if test -n "$ac_ct_AR"; then
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10594$as_echo "$ac_ct_AR" >&6; }
10595else
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10597$as_echo "no" >&6; }
10598fi
10599
cristyda16f162011-02-19 23:52:17 +000010600
10601 test -n "$ac_ct_AR" && break
10602done
10603
cristy73bd4a52010-10-05 11:24:23 +000010604 if test "x$ac_ct_AR" = x; then
10605 AR="false"
10606 else
10607 case $cross_compiling:$ac_tool_warned in
10608yes:)
10609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10611ac_tool_warned=yes ;;
10612esac
10613 AR=$ac_ct_AR
10614 fi
cristy73bd4a52010-10-05 11:24:23 +000010615fi
10616
cristyda16f162011-02-19 23:52:17 +000010617: ${AR=ar}
10618: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
cristyda16f162011-02-19 23:52:17 +000010630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10631$as_echo_n "checking for archiver @FILE support... " >&6; }
10632if ${lt_cv_ar_at_file+:} false; then :
10633 $as_echo_n "(cached) " >&6
10634else
10635 lt_cv_ar_at_file=no
10636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637/* end confdefs.h. */
10638
10639int
10640main ()
10641{
10642
10643 ;
10644 return 0;
10645}
10646_ACEOF
10647if ac_fn_c_try_compile "$LINENO"; then :
10648 echo conftest.$ac_objext > conftest.lst
10649 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10651 (eval $lt_ar_try) 2>&5
10652 ac_status=$?
10653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10654 test $ac_status = 0; }
10655 if test "$ac_status" -eq 0; then
10656 # Ensure the archiver fails upon bogus file names.
10657 rm -f conftest.$ac_objext libconftest.a
10658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10659 (eval $lt_ar_try) 2>&5
10660 ac_status=$?
10661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10662 test $ac_status = 0; }
10663 if test "$ac_status" -ne 0; then
10664 lt_cv_ar_at_file=@
10665 fi
10666 fi
10667 rm -f conftest.* libconftest.a
10668
10669fi
10670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10671
10672fi
10673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10674$as_echo "$lt_cv_ar_at_file" >&6; }
10675
10676if test "x$lt_cv_ar_at_file" = xno; then
10677 archiver_list_spec=
10678else
10679 archiver_list_spec=$lt_cv_ar_at_file
10680fi
10681
10682
10683
10684
10685
10686
10687
cristy73bd4a52010-10-05 11:24:23 +000010688if test -n "$ac_tool_prefix"; then
10689 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10690set dummy ${ac_tool_prefix}strip; ac_word=$2
10691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10692$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010693if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010694 $as_echo_n "(cached) " >&6
10695else
10696 if test -n "$STRIP"; then
10697 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10698else
10699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10700for as_dir in $PATH
10701do
10702 IFS=$as_save_IFS
10703 test -z "$as_dir" && as_dir=.
10704 for ac_exec_ext in '' $ac_executable_extensions; do
10705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10706 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10708 break 2
10709 fi
10710done
10711 done
10712IFS=$as_save_IFS
10713
10714fi
10715fi
10716STRIP=$ac_cv_prog_STRIP
10717if test -n "$STRIP"; then
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10719$as_echo "$STRIP" >&6; }
10720else
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10722$as_echo "no" >&6; }
10723fi
10724
10725
10726fi
10727if test -z "$ac_cv_prog_STRIP"; then
10728 ac_ct_STRIP=$STRIP
10729 # Extract the first word of "strip", so it can be a program name with args.
10730set dummy strip; ac_word=$2
10731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10732$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010733if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010734 $as_echo_n "(cached) " >&6
10735else
10736 if test -n "$ac_ct_STRIP"; then
10737 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10738else
10739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10740for as_dir in $PATH
10741do
10742 IFS=$as_save_IFS
10743 test -z "$as_dir" && as_dir=.
10744 for ac_exec_ext in '' $ac_executable_extensions; do
10745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10746 ac_cv_prog_ac_ct_STRIP="strip"
10747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10748 break 2
10749 fi
10750done
10751 done
10752IFS=$as_save_IFS
10753
10754fi
10755fi
10756ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10757if test -n "$ac_ct_STRIP"; then
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10759$as_echo "$ac_ct_STRIP" >&6; }
10760else
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10762$as_echo "no" >&6; }
10763fi
10764
10765 if test "x$ac_ct_STRIP" = x; then
10766 STRIP=":"
10767 else
10768 case $cross_compiling:$ac_tool_warned in
10769yes:)
10770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10772ac_tool_warned=yes ;;
10773esac
10774 STRIP=$ac_ct_STRIP
10775 fi
10776else
10777 STRIP="$ac_cv_prog_STRIP"
10778fi
10779
10780test -z "$STRIP" && STRIP=:
10781
10782
10783
10784
10785
10786
10787if test -n "$ac_tool_prefix"; then
10788 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10789set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10791$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010792if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010793 $as_echo_n "(cached) " >&6
10794else
10795 if test -n "$RANLIB"; then
10796 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10797else
10798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10799for as_dir in $PATH
10800do
10801 IFS=$as_save_IFS
10802 test -z "$as_dir" && as_dir=.
10803 for ac_exec_ext in '' $ac_executable_extensions; do
10804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10805 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10807 break 2
10808 fi
10809done
10810 done
10811IFS=$as_save_IFS
10812
10813fi
10814fi
10815RANLIB=$ac_cv_prog_RANLIB
10816if test -n "$RANLIB"; then
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10818$as_echo "$RANLIB" >&6; }
10819else
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10821$as_echo "no" >&6; }
10822fi
10823
10824
10825fi
10826if test -z "$ac_cv_prog_RANLIB"; then
10827 ac_ct_RANLIB=$RANLIB
10828 # Extract the first word of "ranlib", so it can be a program name with args.
10829set dummy ranlib; ac_word=$2
10830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10831$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010832if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010833 $as_echo_n "(cached) " >&6
10834else
10835 if test -n "$ac_ct_RANLIB"; then
10836 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10837else
10838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10839for as_dir in $PATH
10840do
10841 IFS=$as_save_IFS
10842 test -z "$as_dir" && as_dir=.
10843 for ac_exec_ext in '' $ac_executable_extensions; do
10844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10845 ac_cv_prog_ac_ct_RANLIB="ranlib"
10846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10847 break 2
10848 fi
10849done
10850 done
10851IFS=$as_save_IFS
10852
10853fi
10854fi
10855ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10856if test -n "$ac_ct_RANLIB"; then
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10858$as_echo "$ac_ct_RANLIB" >&6; }
10859else
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10861$as_echo "no" >&6; }
10862fi
10863
10864 if test "x$ac_ct_RANLIB" = x; then
10865 RANLIB=":"
10866 else
10867 case $cross_compiling:$ac_tool_warned in
10868yes:)
10869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10871ac_tool_warned=yes ;;
10872esac
10873 RANLIB=$ac_ct_RANLIB
10874 fi
10875else
10876 RANLIB="$ac_cv_prog_RANLIB"
10877fi
10878
10879test -z "$RANLIB" && RANLIB=:
10880
10881
10882
10883
10884
10885
10886# Determine commands to create old-style static archives.
10887old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10888old_postinstall_cmds='chmod 644 $oldlib'
10889old_postuninstall_cmds=
10890
10891if test -n "$RANLIB"; then
10892 case $host_os in
10893 openbsd*)
10894 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10895 ;;
10896 *)
10897 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10898 ;;
10899 esac
10900 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10901fi
10902
cristy0c60a692010-11-04 01:09:47 +000010903case $host_os in
10904 darwin*)
10905 lock_old_archive_extraction=yes ;;
10906 *)
10907 lock_old_archive_extraction=no ;;
10908esac
10909
10910
10911
10912
10913
10914
cristy73bd4a52010-10-05 11:24:23 +000010915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948# If no C compiler was specified, use CC.
10949LTCC=${LTCC-"$CC"}
10950
10951# If no C compiler flags were specified, use CFLAGS.
10952LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10953
10954# Allow CC to be a program name with arguments.
10955compiler=$CC
10956
10957
10958# Check for command to grab the raw symbol name followed by C symbol from nm.
10959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10960$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010961if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010962 $as_echo_n "(cached) " >&6
10963else
10964
10965# These are sane defaults that work on at least a few old systems.
10966# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10967
10968# Character class describing NM global symbol codes.
10969symcode='[BCDEGRST]'
10970
10971# Regexp to match symbols that can be accessed directly from C.
10972sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10973
10974# Define system-specific variables.
10975case $host_os in
10976aix*)
10977 symcode='[BCDT]'
10978 ;;
10979cygwin* | mingw* | pw32* | cegcc*)
10980 symcode='[ABCDGISTW]'
10981 ;;
10982hpux*)
10983 if test "$host_cpu" = ia64; then
10984 symcode='[ABCDEGRST]'
10985 fi
10986 ;;
10987irix* | nonstopux*)
10988 symcode='[BCDEGRST]'
10989 ;;
10990osf*)
10991 symcode='[BCDEGQRST]'
10992 ;;
10993solaris*)
10994 symcode='[BDRT]'
10995 ;;
10996sco3.2v5*)
10997 symcode='[DT]'
10998 ;;
10999sysv4.2uw2*)
11000 symcode='[DT]'
11001 ;;
11002sysv5* | sco5v6* | unixware* | OpenUNIX*)
11003 symcode='[ABDT]'
11004 ;;
11005sysv4)
11006 symcode='[DFNSTU]'
11007 ;;
11008esac
11009
11010# If we're using GNU nm, then use its standard symbol codes.
11011case `$NM -V 2>&1` in
11012*GNU* | *'with BFD'*)
11013 symcode='[ABCDGIRSTW]' ;;
11014esac
11015
11016# Transform an extracted symbol line into a proper C declaration.
11017# Some systems (esp. on ia64) link data and code symbols differently,
11018# so use this general approach.
11019lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11020
11021# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011022lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11023lt_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 +000011024
11025# Handle CRLF in mingw tool chain
11026opt_cr=
11027case $build_os in
11028mingw*)
11029 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11030 ;;
11031esac
11032
11033# Try without a prefix underscore, then with it.
11034for ac_symprfx in "" "_"; do
11035
11036 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11037 symxfrm="\\1 $ac_symprfx\\2 \\2"
11038
11039 # Write the raw and C identifiers.
11040 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11041 # Fake it for dumpbin and say T for any non-static function
11042 # and D for any global variable.
11043 # Also find C++ and __fastcall symbols from MSVC++,
11044 # which start with @ or ?.
11045 lt_cv_sys_global_symbol_pipe="$AWK '"\
11046" {last_section=section; section=\$ 3};"\
11047" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11048" \$ 0!~/External *\|/{next};"\
11049" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11050" {if(hide[section]) next};"\
11051" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11052" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11053" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11054" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11055" ' prfx=^$ac_symprfx"
11056 else
11057 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11058 fi
cristyda16f162011-02-19 23:52:17 +000011059 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011060
11061 # Check to see that the pipe works correctly.
11062 pipe_works=no
11063
11064 rm -f conftest*
11065 cat > conftest.$ac_ext <<_LT_EOF
11066#ifdef __cplusplus
11067extern "C" {
11068#endif
11069char nm_test_var;
11070void nm_test_func(void);
11071void nm_test_func(void){}
11072#ifdef __cplusplus
11073}
11074#endif
11075int main(){nm_test_var='a';nm_test_func();return(0);}
11076_LT_EOF
11077
11078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11079 (eval $ac_compile) 2>&5
11080 ac_status=$?
11081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11082 test $ac_status = 0; }; then
11083 # Now try to grab the symbols.
11084 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11086 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011087 ac_status=$?
11088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11089 test $ac_status = 0; } && test -s "$nlist"; then
11090 # Try sorting and uniquifying the output.
11091 if sort "$nlist" | uniq > "$nlist"T; then
11092 mv -f "$nlist"T "$nlist"
11093 else
11094 rm -f "$nlist"T
11095 fi
11096
11097 # Make sure that we snagged all the symbols we need.
11098 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11099 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11100 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011101/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11102#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11103/* DATA imports from DLLs on WIN32 con't be const, because runtime
11104 relocations are performed -- see ld's documentation on pseudo-relocs. */
11105# define LT_DLSYM_CONST
11106#elif defined(__osf__)
11107/* This system does not cope well with relocations in const data. */
11108# define LT_DLSYM_CONST
11109#else
11110# define LT_DLSYM_CONST const
11111#endif
11112
cristy73bd4a52010-10-05 11:24:23 +000011113#ifdef __cplusplus
11114extern "C" {
11115#endif
11116
11117_LT_EOF
11118 # Now generate the symbol file.
11119 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11120
11121 cat <<_LT_EOF >> conftest.$ac_ext
11122
11123/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011124LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011125 const char *name;
11126 void *address;
11127}
11128lt__PROGRAM__LTX_preloaded_symbols[] =
11129{
11130 { "@PROGRAM@", (void *) 0 },
11131_LT_EOF
11132 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11133 cat <<\_LT_EOF >> conftest.$ac_ext
11134 {0, (void *) 0}
11135};
11136
11137/* This works around a problem in FreeBSD linker */
11138#ifdef FREEBSD_WORKAROUND
11139static const void *lt_preloaded_setup() {
11140 return lt__PROGRAM__LTX_preloaded_symbols;
11141}
11142#endif
11143
11144#ifdef __cplusplus
11145}
11146#endif
11147_LT_EOF
11148 # Now try linking the two files.
11149 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011150 lt_globsym_save_LIBS=$LIBS
11151 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011152 LIBS="conftstm.$ac_objext"
11153 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11155 (eval $ac_link) 2>&5
11156 ac_status=$?
11157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11158 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11159 pipe_works=yes
11160 fi
cristyda16f162011-02-19 23:52:17 +000011161 LIBS=$lt_globsym_save_LIBS
11162 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011163 else
11164 echo "cannot find nm_test_func in $nlist" >&5
11165 fi
11166 else
11167 echo "cannot find nm_test_var in $nlist" >&5
11168 fi
11169 else
11170 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11171 fi
11172 else
11173 echo "$progname: failed program was:" >&5
11174 cat conftest.$ac_ext >&5
11175 fi
11176 rm -rf conftest* conftst*
11177
11178 # Do not use the global_symbol_pipe unless it works.
11179 if test "$pipe_works" = yes; then
11180 break
11181 else
11182 lt_cv_sys_global_symbol_pipe=
11183 fi
11184done
11185
11186fi
11187
11188if test -z "$lt_cv_sys_global_symbol_pipe"; then
11189 lt_cv_sys_global_symbol_to_cdecl=
11190fi
11191if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11193$as_echo "failed" >&6; }
11194else
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11196$as_echo "ok" >&6; }
11197fi
11198
cristyda16f162011-02-19 23:52:17 +000011199# Response file support.
11200if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11201 nm_file_list_spec='@'
11202elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11203 nm_file_list_spec='@'
11204fi
cristy73bd4a52010-10-05 11:24:23 +000011205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
cristyda16f162011-02-19 23:52:17 +000011226
11227
11228
11229
11230
11231
11232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11233$as_echo_n "checking for sysroot... " >&6; }
11234
11235# Check whether --with-sysroot was given.
11236if test "${with_sysroot+set}" = set; then :
11237 withval=$with_sysroot;
11238else
11239 with_sysroot=no
11240fi
11241
11242
11243lt_sysroot=
11244case ${with_sysroot} in #(
11245 yes)
11246 if test "$GCC" = yes; then
11247 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11248 fi
11249 ;; #(
11250 /*)
11251 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11252 ;; #(
11253 no|'')
11254 ;; #(
11255 *)
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11257$as_echo "${with_sysroot}" >&6; }
11258 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11259 ;;
11260esac
11261
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11263$as_echo "${lt_sysroot:-no}" >&6; }
11264
11265
11266
11267
11268
cristy73bd4a52010-10-05 11:24:23 +000011269# Check whether --enable-libtool-lock was given.
11270if test "${enable_libtool_lock+set}" = set; then :
11271 enableval=$enable_libtool_lock;
11272fi
11273
11274test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11275
11276# Some flags need to be propagated to the compiler or linker for good
11277# libtool support.
11278case $host in
11279ia64-*-hpux*)
11280 # Find out which ABI we are using.
11281 echo 'int i;' > conftest.$ac_ext
11282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11283 (eval $ac_compile) 2>&5
11284 ac_status=$?
11285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11286 test $ac_status = 0; }; then
11287 case `/usr/bin/file conftest.$ac_objext` in
11288 *ELF-32*)
11289 HPUX_IA64_MODE="32"
11290 ;;
11291 *ELF-64*)
11292 HPUX_IA64_MODE="64"
11293 ;;
11294 esac
11295 fi
11296 rm -rf conftest*
11297 ;;
11298*-*-irix6*)
11299 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011300 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11302 (eval $ac_compile) 2>&5
11303 ac_status=$?
11304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11305 test $ac_status = 0; }; then
11306 if test "$lt_cv_prog_gnu_ld" = yes; then
11307 case `/usr/bin/file conftest.$ac_objext` in
11308 *32-bit*)
11309 LD="${LD-ld} -melf32bsmip"
11310 ;;
11311 *N32*)
11312 LD="${LD-ld} -melf32bmipn32"
11313 ;;
11314 *64-bit*)
11315 LD="${LD-ld} -melf64bmip"
11316 ;;
11317 esac
11318 else
11319 case `/usr/bin/file conftest.$ac_objext` in
11320 *32-bit*)
11321 LD="${LD-ld} -32"
11322 ;;
11323 *N32*)
11324 LD="${LD-ld} -n32"
11325 ;;
11326 *64-bit*)
11327 LD="${LD-ld} -64"
11328 ;;
11329 esac
11330 fi
11331 fi
11332 rm -rf conftest*
11333 ;;
11334
11335x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11336s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11337 # Find out which ABI we are using.
11338 echo 'int i;' > conftest.$ac_ext
11339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11340 (eval $ac_compile) 2>&5
11341 ac_status=$?
11342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11343 test $ac_status = 0; }; then
11344 case `/usr/bin/file conftest.o` in
11345 *32-bit*)
11346 case $host in
11347 x86_64-*kfreebsd*-gnu)
11348 LD="${LD-ld} -m elf_i386_fbsd"
11349 ;;
11350 x86_64-*linux*)
11351 LD="${LD-ld} -m elf_i386"
11352 ;;
11353 ppc64-*linux*|powerpc64-*linux*)
11354 LD="${LD-ld} -m elf32ppclinux"
11355 ;;
11356 s390x-*linux*)
11357 LD="${LD-ld} -m elf_s390"
11358 ;;
11359 sparc64-*linux*)
11360 LD="${LD-ld} -m elf32_sparc"
11361 ;;
11362 esac
11363 ;;
11364 *64-bit*)
11365 case $host in
11366 x86_64-*kfreebsd*-gnu)
11367 LD="${LD-ld} -m elf_x86_64_fbsd"
11368 ;;
11369 x86_64-*linux*)
11370 LD="${LD-ld} -m elf_x86_64"
11371 ;;
11372 ppc*-*linux*|powerpc*-*linux*)
11373 LD="${LD-ld} -m elf64ppc"
11374 ;;
11375 s390*-*linux*|s390*-*tpf*)
11376 LD="${LD-ld} -m elf64_s390"
11377 ;;
11378 sparc*-*linux*)
11379 LD="${LD-ld} -m elf64_sparc"
11380 ;;
11381 esac
11382 ;;
11383 esac
11384 fi
11385 rm -rf conftest*
11386 ;;
11387
11388*-*-sco3.2v5*)
11389 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11390 SAVE_CFLAGS="$CFLAGS"
11391 CFLAGS="$CFLAGS -belf"
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11393$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011394if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011395 $as_echo_n "(cached) " >&6
11396else
11397 ac_ext=c
11398ac_cpp='$CPP $CPPFLAGS'
11399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11401ac_compiler_gnu=$ac_cv_c_compiler_gnu
11402
11403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404/* end confdefs.h. */
11405
11406int
11407main ()
11408{
11409
11410 ;
11411 return 0;
11412}
11413_ACEOF
11414if ac_fn_c_try_link "$LINENO"; then :
11415 lt_cv_cc_needs_belf=yes
11416else
11417 lt_cv_cc_needs_belf=no
11418fi
11419rm -f core conftest.err conftest.$ac_objext \
11420 conftest$ac_exeext conftest.$ac_ext
11421 ac_ext=c
11422ac_cpp='$CPP $CPPFLAGS'
11423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11425ac_compiler_gnu=$ac_cv_c_compiler_gnu
11426
11427fi
11428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11429$as_echo "$lt_cv_cc_needs_belf" >&6; }
11430 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11431 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11432 CFLAGS="$SAVE_CFLAGS"
11433 fi
11434 ;;
11435sparc*-*solaris*)
11436 # Find out which ABI we are using.
11437 echo 'int i;' > conftest.$ac_ext
11438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11439 (eval $ac_compile) 2>&5
11440 ac_status=$?
11441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11442 test $ac_status = 0; }; then
11443 case `/usr/bin/file conftest.o` in
11444 *64-bit*)
11445 case $lt_cv_prog_gnu_ld in
11446 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11447 *)
11448 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11449 LD="${LD-ld} -64"
11450 fi
11451 ;;
11452 esac
11453 ;;
11454 esac
11455 fi
11456 rm -rf conftest*
11457 ;;
11458esac
11459
11460need_locks="$enable_libtool_lock"
11461
cristyda16f162011-02-19 23:52:17 +000011462if test -n "$ac_tool_prefix"; then
11463 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11464set dummy ${ac_tool_prefix}mt; ac_word=$2
11465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11466$as_echo_n "checking for $ac_word... " >&6; }
11467if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11468 $as_echo_n "(cached) " >&6
11469else
11470 if test -n "$MANIFEST_TOOL"; then
11471 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11472else
11473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11474for as_dir in $PATH
11475do
11476 IFS=$as_save_IFS
11477 test -z "$as_dir" && as_dir=.
11478 for ac_exec_ext in '' $ac_executable_extensions; do
11479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11480 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11482 break 2
11483 fi
11484done
11485 done
11486IFS=$as_save_IFS
11487
11488fi
11489fi
11490MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11491if test -n "$MANIFEST_TOOL"; then
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11493$as_echo "$MANIFEST_TOOL" >&6; }
11494else
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11496$as_echo "no" >&6; }
11497fi
11498
11499
11500fi
11501if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11502 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11503 # Extract the first word of "mt", so it can be a program name with args.
11504set dummy mt; ac_word=$2
11505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11506$as_echo_n "checking for $ac_word... " >&6; }
11507if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11508 $as_echo_n "(cached) " >&6
11509else
11510 if test -n "$ac_ct_MANIFEST_TOOL"; then
11511 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11512else
11513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11514for as_dir in $PATH
11515do
11516 IFS=$as_save_IFS
11517 test -z "$as_dir" && as_dir=.
11518 for ac_exec_ext in '' $ac_executable_extensions; do
11519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11520 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11522 break 2
11523 fi
11524done
11525 done
11526IFS=$as_save_IFS
11527
11528fi
11529fi
11530ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11531if test -n "$ac_ct_MANIFEST_TOOL"; then
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11533$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11534else
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536$as_echo "no" >&6; }
11537fi
11538
11539 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11540 MANIFEST_TOOL=":"
11541 else
11542 case $cross_compiling:$ac_tool_warned in
11543yes:)
11544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11546ac_tool_warned=yes ;;
11547esac
11548 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11549 fi
11550else
11551 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11552fi
11553
11554test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11556$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11557if ${lt_cv_path_mainfest_tool+:} false; then :
11558 $as_echo_n "(cached) " >&6
11559else
11560 lt_cv_path_mainfest_tool=no
11561 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11562 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11563 cat conftest.err >&5
11564 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11565 lt_cv_path_mainfest_tool=yes
11566 fi
11567 rm -f conftest*
11568fi
11569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11570$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11571if test "x$lt_cv_path_mainfest_tool" != xyes; then
11572 MANIFEST_TOOL=:
11573fi
11574
11575
11576
11577
11578
cristy73bd4a52010-10-05 11:24:23 +000011579
11580 case $host_os in
11581 rhapsody* | darwin*)
11582 if test -n "$ac_tool_prefix"; then
11583 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11584set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11586$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011587if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011588 $as_echo_n "(cached) " >&6
11589else
11590 if test -n "$DSYMUTIL"; then
11591 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11592else
11593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11594for as_dir in $PATH
11595do
11596 IFS=$as_save_IFS
11597 test -z "$as_dir" && as_dir=.
11598 for ac_exec_ext in '' $ac_executable_extensions; do
11599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11600 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11602 break 2
11603 fi
11604done
11605 done
11606IFS=$as_save_IFS
11607
11608fi
11609fi
11610DSYMUTIL=$ac_cv_prog_DSYMUTIL
11611if test -n "$DSYMUTIL"; then
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11613$as_echo "$DSYMUTIL" >&6; }
11614else
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616$as_echo "no" >&6; }
11617fi
11618
11619
11620fi
11621if test -z "$ac_cv_prog_DSYMUTIL"; then
11622 ac_ct_DSYMUTIL=$DSYMUTIL
11623 # Extract the first word of "dsymutil", so it can be a program name with args.
11624set dummy dsymutil; ac_word=$2
11625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11626$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011627if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011628 $as_echo_n "(cached) " >&6
11629else
11630 if test -n "$ac_ct_DSYMUTIL"; then
11631 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11632else
11633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634for as_dir in $PATH
11635do
11636 IFS=$as_save_IFS
11637 test -z "$as_dir" && as_dir=.
11638 for ac_exec_ext in '' $ac_executable_extensions; do
11639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11640 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11642 break 2
11643 fi
11644done
11645 done
11646IFS=$as_save_IFS
11647
11648fi
11649fi
11650ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11651if test -n "$ac_ct_DSYMUTIL"; then
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11653$as_echo "$ac_ct_DSYMUTIL" >&6; }
11654else
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656$as_echo "no" >&6; }
11657fi
11658
11659 if test "x$ac_ct_DSYMUTIL" = x; then
11660 DSYMUTIL=":"
11661 else
11662 case $cross_compiling:$ac_tool_warned in
11663yes:)
11664{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11665$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11666ac_tool_warned=yes ;;
11667esac
11668 DSYMUTIL=$ac_ct_DSYMUTIL
11669 fi
11670else
11671 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11672fi
11673
11674 if test -n "$ac_tool_prefix"; then
11675 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11676set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011679if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011680 $as_echo_n "(cached) " >&6
11681else
11682 if test -n "$NMEDIT"; then
11683 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11684else
11685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686for as_dir in $PATH
11687do
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11692 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11694 break 2
11695 fi
11696done
11697 done
11698IFS=$as_save_IFS
11699
11700fi
11701fi
11702NMEDIT=$ac_cv_prog_NMEDIT
11703if test -n "$NMEDIT"; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11705$as_echo "$NMEDIT" >&6; }
11706else
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708$as_echo "no" >&6; }
11709fi
11710
11711
11712fi
11713if test -z "$ac_cv_prog_NMEDIT"; then
11714 ac_ct_NMEDIT=$NMEDIT
11715 # Extract the first word of "nmedit", so it can be a program name with args.
11716set dummy nmedit; ac_word=$2
11717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11718$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011719if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011720 $as_echo_n "(cached) " >&6
11721else
11722 if test -n "$ac_ct_NMEDIT"; then
11723 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11724else
11725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11726for as_dir in $PATH
11727do
11728 IFS=$as_save_IFS
11729 test -z "$as_dir" && as_dir=.
11730 for ac_exec_ext in '' $ac_executable_extensions; do
11731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11732 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11734 break 2
11735 fi
11736done
11737 done
11738IFS=$as_save_IFS
11739
11740fi
11741fi
11742ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11743if test -n "$ac_ct_NMEDIT"; then
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11745$as_echo "$ac_ct_NMEDIT" >&6; }
11746else
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11748$as_echo "no" >&6; }
11749fi
11750
11751 if test "x$ac_ct_NMEDIT" = x; then
11752 NMEDIT=":"
11753 else
11754 case $cross_compiling:$ac_tool_warned in
11755yes:)
11756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11758ac_tool_warned=yes ;;
11759esac
11760 NMEDIT=$ac_ct_NMEDIT
11761 fi
11762else
11763 NMEDIT="$ac_cv_prog_NMEDIT"
11764fi
11765
11766 if test -n "$ac_tool_prefix"; then
11767 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11768set dummy ${ac_tool_prefix}lipo; ac_word=$2
11769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11770$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011771if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011772 $as_echo_n "(cached) " >&6
11773else
11774 if test -n "$LIPO"; then
11775 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11776else
11777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778for as_dir in $PATH
11779do
11780 IFS=$as_save_IFS
11781 test -z "$as_dir" && as_dir=.
11782 for ac_exec_ext in '' $ac_executable_extensions; do
11783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11784 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11786 break 2
11787 fi
11788done
11789 done
11790IFS=$as_save_IFS
11791
11792fi
11793fi
11794LIPO=$ac_cv_prog_LIPO
11795if test -n "$LIPO"; then
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11797$as_echo "$LIPO" >&6; }
11798else
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800$as_echo "no" >&6; }
11801fi
11802
11803
11804fi
11805if test -z "$ac_cv_prog_LIPO"; then
11806 ac_ct_LIPO=$LIPO
11807 # Extract the first word of "lipo", so it can be a program name with args.
11808set dummy lipo; ac_word=$2
11809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11810$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011811if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011812 $as_echo_n "(cached) " >&6
11813else
11814 if test -n "$ac_ct_LIPO"; then
11815 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11816else
11817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818for as_dir in $PATH
11819do
11820 IFS=$as_save_IFS
11821 test -z "$as_dir" && as_dir=.
11822 for ac_exec_ext in '' $ac_executable_extensions; do
11823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11824 ac_cv_prog_ac_ct_LIPO="lipo"
11825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11826 break 2
11827 fi
11828done
11829 done
11830IFS=$as_save_IFS
11831
11832fi
11833fi
11834ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11835if test -n "$ac_ct_LIPO"; then
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11837$as_echo "$ac_ct_LIPO" >&6; }
11838else
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840$as_echo "no" >&6; }
11841fi
11842
11843 if test "x$ac_ct_LIPO" = x; then
11844 LIPO=":"
11845 else
11846 case $cross_compiling:$ac_tool_warned in
11847yes:)
11848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11850ac_tool_warned=yes ;;
11851esac
11852 LIPO=$ac_ct_LIPO
11853 fi
11854else
11855 LIPO="$ac_cv_prog_LIPO"
11856fi
11857
11858 if test -n "$ac_tool_prefix"; then
11859 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11860set dummy ${ac_tool_prefix}otool; ac_word=$2
11861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11862$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011863if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011864 $as_echo_n "(cached) " >&6
11865else
11866 if test -n "$OTOOL"; then
11867 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11868else
11869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11870for as_dir in $PATH
11871do
11872 IFS=$as_save_IFS
11873 test -z "$as_dir" && as_dir=.
11874 for ac_exec_ext in '' $ac_executable_extensions; do
11875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11876 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11878 break 2
11879 fi
11880done
11881 done
11882IFS=$as_save_IFS
11883
11884fi
11885fi
11886OTOOL=$ac_cv_prog_OTOOL
11887if test -n "$OTOOL"; then
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11889$as_echo "$OTOOL" >&6; }
11890else
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11892$as_echo "no" >&6; }
11893fi
11894
11895
11896fi
11897if test -z "$ac_cv_prog_OTOOL"; then
11898 ac_ct_OTOOL=$OTOOL
11899 # Extract the first word of "otool", so it can be a program name with args.
11900set dummy otool; ac_word=$2
11901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11902$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011903if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011904 $as_echo_n "(cached) " >&6
11905else
11906 if test -n "$ac_ct_OTOOL"; then
11907 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11908else
11909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910for as_dir in $PATH
11911do
11912 IFS=$as_save_IFS
11913 test -z "$as_dir" && as_dir=.
11914 for ac_exec_ext in '' $ac_executable_extensions; do
11915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11916 ac_cv_prog_ac_ct_OTOOL="otool"
11917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11918 break 2
11919 fi
11920done
11921 done
11922IFS=$as_save_IFS
11923
11924fi
11925fi
11926ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11927if test -n "$ac_ct_OTOOL"; then
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11929$as_echo "$ac_ct_OTOOL" >&6; }
11930else
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932$as_echo "no" >&6; }
11933fi
11934
11935 if test "x$ac_ct_OTOOL" = x; then
11936 OTOOL=":"
11937 else
11938 case $cross_compiling:$ac_tool_warned in
11939yes:)
11940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11942ac_tool_warned=yes ;;
11943esac
11944 OTOOL=$ac_ct_OTOOL
11945 fi
11946else
11947 OTOOL="$ac_cv_prog_OTOOL"
11948fi
11949
11950 if test -n "$ac_tool_prefix"; then
11951 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11952set dummy ${ac_tool_prefix}otool64; ac_word=$2
11953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11954$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011955if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011956 $as_echo_n "(cached) " >&6
11957else
11958 if test -n "$OTOOL64"; then
11959 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11960else
11961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11962for as_dir in $PATH
11963do
11964 IFS=$as_save_IFS
11965 test -z "$as_dir" && as_dir=.
11966 for ac_exec_ext in '' $ac_executable_extensions; do
11967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11968 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11970 break 2
11971 fi
11972done
11973 done
11974IFS=$as_save_IFS
11975
11976fi
11977fi
11978OTOOL64=$ac_cv_prog_OTOOL64
11979if test -n "$OTOOL64"; then
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11981$as_echo "$OTOOL64" >&6; }
11982else
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984$as_echo "no" >&6; }
11985fi
11986
11987
11988fi
11989if test -z "$ac_cv_prog_OTOOL64"; then
11990 ac_ct_OTOOL64=$OTOOL64
11991 # Extract the first word of "otool64", so it can be a program name with args.
11992set dummy otool64; ac_word=$2
11993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11994$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011995if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011996 $as_echo_n "(cached) " >&6
11997else
11998 if test -n "$ac_ct_OTOOL64"; then
11999 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12000else
12001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002for as_dir in $PATH
12003do
12004 IFS=$as_save_IFS
12005 test -z "$as_dir" && as_dir=.
12006 for ac_exec_ext in '' $ac_executable_extensions; do
12007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12008 ac_cv_prog_ac_ct_OTOOL64="otool64"
12009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12010 break 2
12011 fi
12012done
12013 done
12014IFS=$as_save_IFS
12015
12016fi
12017fi
12018ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12019if test -n "$ac_ct_OTOOL64"; then
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12021$as_echo "$ac_ct_OTOOL64" >&6; }
12022else
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024$as_echo "no" >&6; }
12025fi
12026
12027 if test "x$ac_ct_OTOOL64" = x; then
12028 OTOOL64=":"
12029 else
12030 case $cross_compiling:$ac_tool_warned in
12031yes:)
12032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12034ac_tool_warned=yes ;;
12035esac
12036 OTOOL64=$ac_ct_OTOOL64
12037 fi
12038else
12039 OTOOL64="$ac_cv_prog_OTOOL64"
12040fi
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12069$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012070if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012071 $as_echo_n "(cached) " >&6
12072else
12073 lt_cv_apple_cc_single_mod=no
12074 if test -z "${LT_MULTI_MODULE}"; then
12075 # By default we will add the -single_module flag. You can override
12076 # by either setting the environment variable LT_MULTI_MODULE
12077 # non-empty at configure time, or by adding -multi_module to the
12078 # link flags.
12079 rm -rf libconftest.dylib*
12080 echo "int foo(void){return 1;}" > conftest.c
12081 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12082-dynamiclib -Wl,-single_module conftest.c" >&5
12083 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12084 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12085 _lt_result=$?
12086 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12087 lt_cv_apple_cc_single_mod=yes
12088 else
12089 cat conftest.err >&5
12090 fi
12091 rm -rf libconftest.dylib*
12092 rm -f conftest.*
12093 fi
12094fi
12095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12096$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12098$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012099if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012100 $as_echo_n "(cached) " >&6
12101else
12102 lt_cv_ld_exported_symbols_list=no
12103 save_LDFLAGS=$LDFLAGS
12104 echo "_main" > conftest.sym
12105 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107/* end confdefs.h. */
12108
12109int
12110main ()
12111{
12112
12113 ;
12114 return 0;
12115}
12116_ACEOF
12117if ac_fn_c_try_link "$LINENO"; then :
12118 lt_cv_ld_exported_symbols_list=yes
12119else
12120 lt_cv_ld_exported_symbols_list=no
12121fi
12122rm -f core conftest.err conftest.$ac_objext \
12123 conftest$ac_exeext conftest.$ac_ext
12124 LDFLAGS="$save_LDFLAGS"
12125
12126fi
12127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12128$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000012129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12130$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012131if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012132 $as_echo_n "(cached) " >&6
12133else
12134 lt_cv_ld_force_load=no
12135 cat > conftest.c << _LT_EOF
12136int forced_loaded() { return 2;}
12137_LT_EOF
12138 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12139 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12140 echo "$AR cru libconftest.a conftest.o" >&5
12141 $AR cru libconftest.a conftest.o 2>&5
12142 echo "$RANLIB libconftest.a" >&5
12143 $RANLIB libconftest.a 2>&5
12144 cat > conftest.c << _LT_EOF
12145int main() { return 0;}
12146_LT_EOF
12147 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12148 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12149 _lt_result=$?
12150 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12151 lt_cv_ld_force_load=yes
12152 else
12153 cat conftest.err >&5
12154 fi
12155 rm -f conftest.err libconftest.a conftest conftest.c
12156 rm -rf conftest.dSYM
12157
12158fi
12159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12160$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012161 case $host_os in
12162 rhapsody* | darwin1.[012])
12163 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12164 darwin1.*)
12165 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12166 darwin*) # darwin 5.x on
12167 # if running on 10.5 or later, the deployment target defaults
12168 # to the OS version, if on x86, and 10.4, the deployment
12169 # target defaults to 10.4. Don't you love it?
12170 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12171 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12172 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12173 10.[012]*)
12174 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12175 10.*)
12176 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12177 esac
12178 ;;
12179 esac
12180 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12181 _lt_dar_single_mod='$single_module'
12182 fi
12183 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12184 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12185 else
12186 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12187 fi
cristy0c60a692010-11-04 01:09:47 +000012188 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012189 _lt_dsymutil='~$DSYMUTIL $lib || :'
12190 else
12191 _lt_dsymutil=
12192 fi
12193 ;;
12194 esac
12195
12196for ac_header in dlfcn.h
12197do :
12198 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12199"
cristyda16f162011-02-19 23:52:17 +000012200if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012201 cat >>confdefs.h <<_ACEOF
12202#define HAVE_DLFCN_H 1
12203_ACEOF
12204
12205fi
12206
12207done
12208
12209
12210
cristy73bd4a52010-10-05 11:24:23 +000012211
cristyda16f162011-02-19 23:52:17 +000012212func_stripname_cnf ()
12213{
12214 case ${2} in
12215 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12216 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12217 esac
12218} # func_stripname_cnf
12219
12220
12221
cristy73bd4a52010-10-05 11:24:23 +000012222
12223
12224# Set options
12225enable_win32_dll=yes
12226
12227case $host in
cristy0c60a692010-11-04 01:09:47 +000012228*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012229 if test -n "$ac_tool_prefix"; then
12230 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12231set dummy ${ac_tool_prefix}as; ac_word=$2
12232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12233$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012234if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012235 $as_echo_n "(cached) " >&6
12236else
12237 if test -n "$AS"; then
12238 ac_cv_prog_AS="$AS" # Let the user override the test.
12239else
12240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12241for as_dir in $PATH
12242do
12243 IFS=$as_save_IFS
12244 test -z "$as_dir" && as_dir=.
12245 for ac_exec_ext in '' $ac_executable_extensions; do
12246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12247 ac_cv_prog_AS="${ac_tool_prefix}as"
12248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12249 break 2
12250 fi
12251done
12252 done
12253IFS=$as_save_IFS
12254
12255fi
12256fi
12257AS=$ac_cv_prog_AS
12258if test -n "$AS"; then
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12260$as_echo "$AS" >&6; }
12261else
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12263$as_echo "no" >&6; }
12264fi
12265
12266
12267fi
12268if test -z "$ac_cv_prog_AS"; then
12269 ac_ct_AS=$AS
12270 # Extract the first word of "as", so it can be a program name with args.
12271set dummy as; ac_word=$2
12272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012274if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012275 $as_echo_n "(cached) " >&6
12276else
12277 if test -n "$ac_ct_AS"; then
12278 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12279else
12280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281for as_dir in $PATH
12282do
12283 IFS=$as_save_IFS
12284 test -z "$as_dir" && as_dir=.
12285 for ac_exec_ext in '' $ac_executable_extensions; do
12286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12287 ac_cv_prog_ac_ct_AS="as"
12288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12289 break 2
12290 fi
12291done
12292 done
12293IFS=$as_save_IFS
12294
12295fi
12296fi
12297ac_ct_AS=$ac_cv_prog_ac_ct_AS
12298if test -n "$ac_ct_AS"; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12300$as_echo "$ac_ct_AS" >&6; }
12301else
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303$as_echo "no" >&6; }
12304fi
12305
12306 if test "x$ac_ct_AS" = x; then
12307 AS="false"
12308 else
12309 case $cross_compiling:$ac_tool_warned in
12310yes:)
12311{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12312$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12313ac_tool_warned=yes ;;
12314esac
12315 AS=$ac_ct_AS
12316 fi
12317else
12318 AS="$ac_cv_prog_AS"
12319fi
12320
12321 if test -n "$ac_tool_prefix"; then
12322 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12323set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12325$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012326if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012327 $as_echo_n "(cached) " >&6
12328else
12329 if test -n "$DLLTOOL"; then
12330 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12331else
12332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12333for as_dir in $PATH
12334do
12335 IFS=$as_save_IFS
12336 test -z "$as_dir" && as_dir=.
12337 for ac_exec_ext in '' $ac_executable_extensions; do
12338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12339 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12341 break 2
12342 fi
12343done
12344 done
12345IFS=$as_save_IFS
12346
12347fi
12348fi
12349DLLTOOL=$ac_cv_prog_DLLTOOL
12350if test -n "$DLLTOOL"; then
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12352$as_echo "$DLLTOOL" >&6; }
12353else
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12355$as_echo "no" >&6; }
12356fi
12357
12358
12359fi
12360if test -z "$ac_cv_prog_DLLTOOL"; then
12361 ac_ct_DLLTOOL=$DLLTOOL
12362 # Extract the first word of "dlltool", so it can be a program name with args.
12363set dummy dlltool; ac_word=$2
12364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12365$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012366if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012367 $as_echo_n "(cached) " >&6
12368else
12369 if test -n "$ac_ct_DLLTOOL"; then
12370 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12371else
12372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12373for as_dir in $PATH
12374do
12375 IFS=$as_save_IFS
12376 test -z "$as_dir" && as_dir=.
12377 for ac_exec_ext in '' $ac_executable_extensions; do
12378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12379 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12381 break 2
12382 fi
12383done
12384 done
12385IFS=$as_save_IFS
12386
12387fi
12388fi
12389ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12390if test -n "$ac_ct_DLLTOOL"; then
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12392$as_echo "$ac_ct_DLLTOOL" >&6; }
12393else
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395$as_echo "no" >&6; }
12396fi
12397
12398 if test "x$ac_ct_DLLTOOL" = x; then
12399 DLLTOOL="false"
12400 else
12401 case $cross_compiling:$ac_tool_warned in
12402yes:)
12403{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12404$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12405ac_tool_warned=yes ;;
12406esac
12407 DLLTOOL=$ac_ct_DLLTOOL
12408 fi
12409else
12410 DLLTOOL="$ac_cv_prog_DLLTOOL"
12411fi
12412
12413 if test -n "$ac_tool_prefix"; then
12414 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12415set dummy ${ac_tool_prefix}objdump; ac_word=$2
12416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12417$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012418if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012419 $as_echo_n "(cached) " >&6
12420else
12421 if test -n "$OBJDUMP"; then
12422 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12423else
12424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12425for as_dir in $PATH
12426do
12427 IFS=$as_save_IFS
12428 test -z "$as_dir" && as_dir=.
12429 for ac_exec_ext in '' $ac_executable_extensions; do
12430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12431 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12433 break 2
12434 fi
12435done
12436 done
12437IFS=$as_save_IFS
12438
12439fi
12440fi
12441OBJDUMP=$ac_cv_prog_OBJDUMP
12442if test -n "$OBJDUMP"; then
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12444$as_echo "$OBJDUMP" >&6; }
12445else
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12447$as_echo "no" >&6; }
12448fi
12449
12450
12451fi
12452if test -z "$ac_cv_prog_OBJDUMP"; then
12453 ac_ct_OBJDUMP=$OBJDUMP
12454 # Extract the first word of "objdump", so it can be a program name with args.
12455set dummy objdump; ac_word=$2
12456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12457$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012458if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012459 $as_echo_n "(cached) " >&6
12460else
12461 if test -n "$ac_ct_OBJDUMP"; then
12462 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12463else
12464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12465for as_dir in $PATH
12466do
12467 IFS=$as_save_IFS
12468 test -z "$as_dir" && as_dir=.
12469 for ac_exec_ext in '' $ac_executable_extensions; do
12470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12471 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12473 break 2
12474 fi
12475done
12476 done
12477IFS=$as_save_IFS
12478
12479fi
12480fi
12481ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12482if test -n "$ac_ct_OBJDUMP"; then
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12484$as_echo "$ac_ct_OBJDUMP" >&6; }
12485else
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12487$as_echo "no" >&6; }
12488fi
12489
12490 if test "x$ac_ct_OBJDUMP" = x; then
12491 OBJDUMP="false"
12492 else
12493 case $cross_compiling:$ac_tool_warned in
12494yes:)
12495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12497ac_tool_warned=yes ;;
12498esac
12499 OBJDUMP=$ac_ct_OBJDUMP
12500 fi
12501else
12502 OBJDUMP="$ac_cv_prog_OBJDUMP"
12503fi
12504
12505 ;;
12506esac
12507
12508test -z "$AS" && AS=as
12509
12510
12511
12512
12513
12514test -z "$DLLTOOL" && DLLTOOL=dlltool
12515
12516
12517
12518
12519
12520test -z "$OBJDUMP" && OBJDUMP=objdump
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530 # Check whether --enable-shared was given.
12531if test "${enable_shared+set}" = set; then :
12532 enableval=$enable_shared; p=${PACKAGE-default}
12533 case $enableval in
12534 yes) enable_shared=yes ;;
12535 no) enable_shared=no ;;
12536 *)
12537 enable_shared=no
12538 # Look at the argument we got. We use all the common list separators.
12539 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12540 for pkg in $enableval; do
12541 IFS="$lt_save_ifs"
12542 if test "X$pkg" = "X$p"; then
12543 enable_shared=yes
12544 fi
12545 done
12546 IFS="$lt_save_ifs"
12547 ;;
12548 esac
12549else
12550 enable_shared=yes
12551fi
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561 # Check whether --enable-static was given.
12562if test "${enable_static+set}" = set; then :
12563 enableval=$enable_static; p=${PACKAGE-default}
12564 case $enableval in
12565 yes) enable_static=yes ;;
12566 no) enable_static=no ;;
12567 *)
12568 enable_static=no
12569 # Look at the argument we got. We use all the common list separators.
12570 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12571 for pkg in $enableval; do
12572 IFS="$lt_save_ifs"
12573 if test "X$pkg" = "X$p"; then
12574 enable_static=yes
12575 fi
12576 done
12577 IFS="$lt_save_ifs"
12578 ;;
12579 esac
12580else
12581 enable_static=yes
12582fi
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593# Check whether --with-pic was given.
12594if test "${with_pic+set}" = set; then :
12595 withval=$with_pic; pic_mode="$withval"
12596else
12597 pic_mode=default
12598fi
12599
12600
12601test -z "$pic_mode" && pic_mode=default
12602
12603
12604
12605
12606
12607
12608
12609 # Check whether --enable-fast-install was given.
12610if test "${enable_fast_install+set}" = set; then :
12611 enableval=$enable_fast_install; p=${PACKAGE-default}
12612 case $enableval in
12613 yes) enable_fast_install=yes ;;
12614 no) enable_fast_install=no ;;
12615 *)
12616 enable_fast_install=no
12617 # Look at the argument we got. We use all the common list separators.
12618 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12619 for pkg in $enableval; do
12620 IFS="$lt_save_ifs"
12621 if test "X$pkg" = "X$p"; then
12622 enable_fast_install=yes
12623 fi
12624 done
12625 IFS="$lt_save_ifs"
12626 ;;
12627 esac
12628else
12629 enable_fast_install=yes
12630fi
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642# This can be used to rebuild libtool when needed
12643LIBTOOL_DEPS="$ltmain"
12644
12645# Always use our own libtool.
12646LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
cristy0c60a692010-11-04 01:09:47 +000012672
cristy73bd4a52010-10-05 11:24:23 +000012673test -z "$LN_S" && LN_S="ln -s"
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688if test -n "${ZSH_VERSION+set}" ; then
12689 setopt NO_GLOB_SUBST
12690fi
12691
12692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12693$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012694if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012695 $as_echo_n "(cached) " >&6
12696else
12697 rm -f .libs 2>/dev/null
12698mkdir .libs 2>/dev/null
12699if test -d .libs; then
12700 lt_cv_objdir=.libs
12701else
12702 # MS-DOS does not allow filenames that begin with a dot.
12703 lt_cv_objdir=_libs
12704fi
12705rmdir .libs 2>/dev/null
12706fi
12707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12708$as_echo "$lt_cv_objdir" >&6; }
12709objdir=$lt_cv_objdir
12710
12711
12712
12713
12714
12715cat >>confdefs.h <<_ACEOF
12716#define LT_OBJDIR "$lt_cv_objdir/"
12717_ACEOF
12718
12719
12720
12721
cristy73bd4a52010-10-05 11:24:23 +000012722case $host_os in
12723aix3*)
12724 # AIX sometimes has problems with the GCC collect2 program. For some
12725 # reason, if we set the COLLECT_NAMES environment variable, the problems
12726 # vanish in a puff of smoke.
12727 if test "X${COLLECT_NAMES+set}" != Xset; then
12728 COLLECT_NAMES=
12729 export COLLECT_NAMES
12730 fi
12731 ;;
12732esac
12733
cristy73bd4a52010-10-05 11:24:23 +000012734# Global variables:
12735ofile=libtool
12736can_build_shared=yes
12737
12738# All known linkers require a `.a' archive for static linking (except MSVC,
12739# which needs '.lib').
12740libext=a
12741
12742with_gnu_ld="$lt_cv_prog_gnu_ld"
12743
12744old_CC="$CC"
12745old_CFLAGS="$CFLAGS"
12746
12747# Set sane defaults for various variables
12748test -z "$CC" && CC=cc
12749test -z "$LTCC" && LTCC=$CC
12750test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12751test -z "$LD" && LD=ld
12752test -z "$ac_objext" && ac_objext=o
12753
12754for cc_temp in $compiler""; do
12755 case $cc_temp in
12756 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12757 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12758 \-*) ;;
12759 *) break;;
12760 esac
12761done
cristy0c60a692010-11-04 01:09:47 +000012762cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000012763
12764
12765# Only perform the check for file, if the check method requires it
12766test -z "$MAGIC_CMD" && MAGIC_CMD=file
12767case $deplibs_check_method in
12768file_magic*)
12769 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12771$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012772if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012773 $as_echo_n "(cached) " >&6
12774else
12775 case $MAGIC_CMD in
12776[\\/*] | ?:[\\/]*)
12777 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12778 ;;
12779*)
12780 lt_save_MAGIC_CMD="$MAGIC_CMD"
12781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12782 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12783 for ac_dir in $ac_dummy; do
12784 IFS="$lt_save_ifs"
12785 test -z "$ac_dir" && ac_dir=.
12786 if test -f $ac_dir/${ac_tool_prefix}file; then
12787 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12788 if test -n "$file_magic_test_file"; then
12789 case $deplibs_check_method in
12790 "file_magic "*)
12791 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12793 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12794 $EGREP "$file_magic_regex" > /dev/null; then
12795 :
12796 else
12797 cat <<_LT_EOF 1>&2
12798
12799*** Warning: the command libtool uses to detect shared libraries,
12800*** $file_magic_cmd, produces output that libtool cannot recognize.
12801*** The result is that libtool may fail to recognize shared libraries
12802*** as such. This will affect the creation of libtool libraries that
12803*** depend on shared libraries, but programs linked with such libtool
12804*** libraries will work regardless of this problem. Nevertheless, you
12805*** may want to report the problem to your system manager and/or to
12806*** bug-libtool@gnu.org
12807
12808_LT_EOF
12809 fi ;;
12810 esac
12811 fi
12812 break
12813 fi
12814 done
12815 IFS="$lt_save_ifs"
12816 MAGIC_CMD="$lt_save_MAGIC_CMD"
12817 ;;
12818esac
12819fi
12820
12821MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12822if test -n "$MAGIC_CMD"; then
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12824$as_echo "$MAGIC_CMD" >&6; }
12825else
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827$as_echo "no" >&6; }
12828fi
12829
12830
12831
12832
12833
12834if test -z "$lt_cv_path_MAGIC_CMD"; then
12835 if test -n "$ac_tool_prefix"; then
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12837$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012838if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012839 $as_echo_n "(cached) " >&6
12840else
12841 case $MAGIC_CMD in
12842[\\/*] | ?:[\\/]*)
12843 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12844 ;;
12845*)
12846 lt_save_MAGIC_CMD="$MAGIC_CMD"
12847 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12848 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12849 for ac_dir in $ac_dummy; do
12850 IFS="$lt_save_ifs"
12851 test -z "$ac_dir" && ac_dir=.
12852 if test -f $ac_dir/file; then
12853 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12854 if test -n "$file_magic_test_file"; then
12855 case $deplibs_check_method in
12856 "file_magic "*)
12857 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12858 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12859 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12860 $EGREP "$file_magic_regex" > /dev/null; then
12861 :
12862 else
12863 cat <<_LT_EOF 1>&2
12864
12865*** Warning: the command libtool uses to detect shared libraries,
12866*** $file_magic_cmd, produces output that libtool cannot recognize.
12867*** The result is that libtool may fail to recognize shared libraries
12868*** as such. This will affect the creation of libtool libraries that
12869*** depend on shared libraries, but programs linked with such libtool
12870*** libraries will work regardless of this problem. Nevertheless, you
12871*** may want to report the problem to your system manager and/or to
12872*** bug-libtool@gnu.org
12873
12874_LT_EOF
12875 fi ;;
12876 esac
12877 fi
12878 break
12879 fi
12880 done
12881 IFS="$lt_save_ifs"
12882 MAGIC_CMD="$lt_save_MAGIC_CMD"
12883 ;;
12884esac
12885fi
12886
12887MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12888if test -n "$MAGIC_CMD"; then
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12890$as_echo "$MAGIC_CMD" >&6; }
12891else
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893$as_echo "no" >&6; }
12894fi
12895
12896
12897 else
12898 MAGIC_CMD=:
12899 fi
12900fi
12901
12902 fi
12903 ;;
12904esac
12905
12906# Use C for the default configuration in the libtool script
12907
12908lt_save_CC="$CC"
12909ac_ext=c
12910ac_cpp='$CPP $CPPFLAGS'
12911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12913ac_compiler_gnu=$ac_cv_c_compiler_gnu
12914
12915
12916# Source file extension for C test sources.
12917ac_ext=c
12918
12919# Object file extension for compiled C test sources.
12920objext=o
12921objext=$objext
12922
12923# Code to be used in simple compile tests
12924lt_simple_compile_test_code="int some_variable = 0;"
12925
12926# Code to be used in simple link tests
12927lt_simple_link_test_code='int main(){return(0);}'
12928
12929
12930
12931
12932
12933
12934
12935# If no C compiler was specified, use CC.
12936LTCC=${LTCC-"$CC"}
12937
12938# If no C compiler flags were specified, use CFLAGS.
12939LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12940
12941# Allow CC to be a program name with arguments.
12942compiler=$CC
12943
12944# Save the default compiler, since it gets overwritten when the other
12945# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12946compiler_DEFAULT=$CC
12947
12948# save warnings/boilerplate of simple test code
12949ac_outfile=conftest.$ac_objext
12950echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12951eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12952_lt_compiler_boilerplate=`cat conftest.err`
12953$RM conftest*
12954
12955ac_outfile=conftest.$ac_objext
12956echo "$lt_simple_link_test_code" >conftest.$ac_ext
12957eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12958_lt_linker_boilerplate=`cat conftest.err`
12959$RM -r conftest*
12960
12961
12962## CAVEAT EMPTOR:
12963## There is no encapsulation within the following macros, do not change
12964## the running order or otherwise move them around unless you know exactly
12965## what you are doing...
12966if test -n "$compiler"; then
12967
12968lt_prog_compiler_no_builtin_flag=
12969
12970if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000012971 case $cc_basename in
12972 nvcc*)
12973 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12974 *)
12975 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12976 esac
cristy73bd4a52010-10-05 11:24:23 +000012977
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12979$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012980if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012981 $as_echo_n "(cached) " >&6
12982else
12983 lt_cv_prog_compiler_rtti_exceptions=no
12984 ac_outfile=conftest.$ac_objext
12985 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12986 lt_compiler_flag="-fno-rtti -fno-exceptions"
12987 # Insert the option either (1) after the last *FLAGS variable, or
12988 # (2) before a word containing "conftest.", or (3) at the end.
12989 # Note that $ac_compile itself does not contain backslashes and begins
12990 # with a dollar sign (not a hyphen), so the echo should work correctly.
12991 # The option is referenced via a variable to avoid confusing sed.
12992 lt_compile=`echo "$ac_compile" | $SED \
12993 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12994 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12995 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000012996 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000012997 (eval "$lt_compile" 2>conftest.err)
12998 ac_status=$?
12999 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013001 if (exit $ac_status) && test -s "$ac_outfile"; then
13002 # The compiler can only warn and ignore the option if not recognized
13003 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013004 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013005 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13006 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13007 lt_cv_prog_compiler_rtti_exceptions=yes
13008 fi
13009 fi
13010 $RM conftest*
13011
13012fi
13013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13014$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13015
13016if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13017 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13018else
13019 :
13020fi
13021
13022fi
13023
13024
13025
13026
13027
13028
13029 lt_prog_compiler_wl=
13030lt_prog_compiler_pic=
13031lt_prog_compiler_static=
13032
cristy73bd4a52010-10-05 11:24:23 +000013033
13034 if test "$GCC" = yes; then
13035 lt_prog_compiler_wl='-Wl,'
13036 lt_prog_compiler_static='-static'
13037
13038 case $host_os in
13039 aix*)
13040 # All AIX code is PIC.
13041 if test "$host_cpu" = ia64; then
13042 # AIX 5 now supports IA64 processor
13043 lt_prog_compiler_static='-Bstatic'
13044 fi
13045 ;;
13046
13047 amigaos*)
13048 case $host_cpu in
13049 powerpc)
13050 # see comment about AmigaOS4 .so support
13051 lt_prog_compiler_pic='-fPIC'
13052 ;;
13053 m68k)
13054 # FIXME: we need at least 68020 code to build shared libraries, but
13055 # adding the `-m68020' flag to GCC prevents building anything better,
13056 # like `-m68040'.
13057 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13058 ;;
13059 esac
13060 ;;
13061
13062 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13063 # PIC is the default for these OSes.
13064 ;;
13065
13066 mingw* | cygwin* | pw32* | os2* | cegcc*)
13067 # This hack is so that the source file can tell whether it is being
13068 # built for inclusion in a dll (and should export symbols for example).
13069 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13070 # (--disable-auto-import) libraries
13071 lt_prog_compiler_pic='-DDLL_EXPORT'
13072 ;;
13073
13074 darwin* | rhapsody*)
13075 # PIC is the default on this platform
13076 # Common symbols not allowed in MH_DYLIB files
13077 lt_prog_compiler_pic='-fno-common'
13078 ;;
13079
cristy0c60a692010-11-04 01:09:47 +000013080 haiku*)
13081 # PIC is the default for Haiku.
13082 # The "-static" flag exists, but is broken.
13083 lt_prog_compiler_static=
13084 ;;
13085
cristy73bd4a52010-10-05 11:24:23 +000013086 hpux*)
13087 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13088 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13089 # sets the default TLS model and affects inlining.
13090 case $host_cpu in
13091 hppa*64*)
13092 # +Z the default
13093 ;;
13094 *)
13095 lt_prog_compiler_pic='-fPIC'
13096 ;;
13097 esac
13098 ;;
13099
13100 interix[3-9]*)
13101 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13102 # Instead, we relocate shared libraries at runtime.
13103 ;;
13104
13105 msdosdjgpp*)
13106 # Just because we use GCC doesn't mean we suddenly get shared libraries
13107 # on systems that don't support them.
13108 lt_prog_compiler_can_build_shared=no
13109 enable_shared=no
13110 ;;
13111
13112 *nto* | *qnx*)
13113 # QNX uses GNU C++, but need to define -shared option too, otherwise
13114 # it will coredump.
13115 lt_prog_compiler_pic='-fPIC -shared'
13116 ;;
13117
13118 sysv4*MP*)
13119 if test -d /usr/nec; then
13120 lt_prog_compiler_pic=-Kconform_pic
13121 fi
13122 ;;
13123
13124 *)
13125 lt_prog_compiler_pic='-fPIC'
13126 ;;
13127 esac
cristy0c60a692010-11-04 01:09:47 +000013128
13129 case $cc_basename in
13130 nvcc*) # Cuda Compiler Driver 2.2
13131 lt_prog_compiler_wl='-Xlinker '
13132 lt_prog_compiler_pic='-Xcompiler -fPIC'
13133 ;;
13134 esac
cristy73bd4a52010-10-05 11:24:23 +000013135 else
13136 # PORTME Check for flag to pass linker flags through the system compiler.
13137 case $host_os in
13138 aix*)
13139 lt_prog_compiler_wl='-Wl,'
13140 if test "$host_cpu" = ia64; then
13141 # AIX 5 now supports IA64 processor
13142 lt_prog_compiler_static='-Bstatic'
13143 else
13144 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13145 fi
13146 ;;
13147
13148 mingw* | cygwin* | pw32* | os2* | cegcc*)
13149 # This hack is so that the source file can tell whether it is being
13150 # built for inclusion in a dll (and should export symbols for example).
13151 lt_prog_compiler_pic='-DDLL_EXPORT'
13152 ;;
13153
13154 hpux9* | hpux10* | hpux11*)
13155 lt_prog_compiler_wl='-Wl,'
13156 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13157 # not for PA HP-UX.
13158 case $host_cpu in
13159 hppa*64*|ia64*)
13160 # +Z the default
13161 ;;
13162 *)
13163 lt_prog_compiler_pic='+Z'
13164 ;;
13165 esac
13166 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13167 lt_prog_compiler_static='${wl}-a ${wl}archive'
13168 ;;
13169
13170 irix5* | irix6* | nonstopux*)
13171 lt_prog_compiler_wl='-Wl,'
13172 # PIC (with -KPIC) is the default.
13173 lt_prog_compiler_static='-non_shared'
13174 ;;
13175
cristy0c60a692010-11-04 01:09:47 +000013176 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013177 case $cc_basename in
13178 # old Intel for x86_64 which still supported -KPIC.
13179 ecc*)
13180 lt_prog_compiler_wl='-Wl,'
13181 lt_prog_compiler_pic='-KPIC'
13182 lt_prog_compiler_static='-static'
13183 ;;
13184 # icc used to be incompatible with GCC.
13185 # ICC 10 doesn't accept -KPIC any more.
13186 icc* | ifort*)
13187 lt_prog_compiler_wl='-Wl,'
13188 lt_prog_compiler_pic='-fPIC'
13189 lt_prog_compiler_static='-static'
13190 ;;
13191 # Lahey Fortran 8.1.
13192 lf95*)
13193 lt_prog_compiler_wl='-Wl,'
13194 lt_prog_compiler_pic='--shared'
13195 lt_prog_compiler_static='--static'
13196 ;;
cristyda16f162011-02-19 23:52:17 +000013197 nagfor*)
13198 # NAG Fortran compiler
13199 lt_prog_compiler_wl='-Wl,-Wl,,'
13200 lt_prog_compiler_pic='-PIC'
13201 lt_prog_compiler_static='-Bstatic'
13202 ;;
cristy0c60a692010-11-04 01:09:47 +000013203 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013204 # Portland Group compilers (*not* the Pentium gcc compiler,
13205 # which looks to be a dead project)
13206 lt_prog_compiler_wl='-Wl,'
13207 lt_prog_compiler_pic='-fpic'
13208 lt_prog_compiler_static='-Bstatic'
13209 ;;
13210 ccc*)
13211 lt_prog_compiler_wl='-Wl,'
13212 # All Alpha code is PIC.
13213 lt_prog_compiler_static='-non_shared'
13214 ;;
cristy0c60a692010-11-04 01:09:47 +000013215 xl* | bgxl* | bgf* | mpixl*)
13216 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013217 lt_prog_compiler_wl='-Wl,'
13218 lt_prog_compiler_pic='-qpic'
13219 lt_prog_compiler_static='-qstaticlink'
13220 ;;
13221 *)
13222 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000013223 *Sun\ F* | *Sun*Fortran*)
13224 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13225 lt_prog_compiler_pic='-KPIC'
13226 lt_prog_compiler_static='-Bstatic'
13227 lt_prog_compiler_wl=''
13228 ;;
cristy73bd4a52010-10-05 11:24:23 +000013229 *Sun\ C*)
13230 # Sun C 5.9
13231 lt_prog_compiler_pic='-KPIC'
13232 lt_prog_compiler_static='-Bstatic'
13233 lt_prog_compiler_wl='-Wl,'
13234 ;;
cristy73bd4a52010-10-05 11:24:23 +000013235 esac
13236 ;;
13237 esac
13238 ;;
13239
13240 newsos6)
13241 lt_prog_compiler_pic='-KPIC'
13242 lt_prog_compiler_static='-Bstatic'
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 osf3* | osf4* | osf5*)
13252 lt_prog_compiler_wl='-Wl,'
13253 # All OSF/1 code is PIC.
13254 lt_prog_compiler_static='-non_shared'
13255 ;;
13256
13257 rdos*)
13258 lt_prog_compiler_static='-non_shared'
13259 ;;
13260
13261 solaris*)
13262 lt_prog_compiler_pic='-KPIC'
13263 lt_prog_compiler_static='-Bstatic'
13264 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013265 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013266 lt_prog_compiler_wl='-Qoption ld ';;
13267 *)
13268 lt_prog_compiler_wl='-Wl,';;
13269 esac
13270 ;;
13271
13272 sunos4*)
13273 lt_prog_compiler_wl='-Qoption ld '
13274 lt_prog_compiler_pic='-PIC'
13275 lt_prog_compiler_static='-Bstatic'
13276 ;;
13277
13278 sysv4 | sysv4.2uw2* | sysv4.3*)
13279 lt_prog_compiler_wl='-Wl,'
13280 lt_prog_compiler_pic='-KPIC'
13281 lt_prog_compiler_static='-Bstatic'
13282 ;;
13283
13284 sysv4*MP*)
13285 if test -d /usr/nec ;then
13286 lt_prog_compiler_pic='-Kconform_pic'
13287 lt_prog_compiler_static='-Bstatic'
13288 fi
13289 ;;
13290
13291 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13292 lt_prog_compiler_wl='-Wl,'
13293 lt_prog_compiler_pic='-KPIC'
13294 lt_prog_compiler_static='-Bstatic'
13295 ;;
13296
13297 unicos*)
13298 lt_prog_compiler_wl='-Wl,'
13299 lt_prog_compiler_can_build_shared=no
13300 ;;
13301
13302 uts4*)
13303 lt_prog_compiler_pic='-pic'
13304 lt_prog_compiler_static='-Bstatic'
13305 ;;
13306
13307 *)
13308 lt_prog_compiler_can_build_shared=no
13309 ;;
13310 esac
13311 fi
13312
13313case $host_os in
13314 # For platforms which do not support PIC, -DPIC is meaningless:
13315 *djgpp*)
13316 lt_prog_compiler_pic=
13317 ;;
13318 *)
13319 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13320 ;;
13321esac
cristy73bd4a52010-10-05 11:24:23 +000013322
cristyda16f162011-02-19 23:52:17 +000013323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13324$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13325if ${lt_cv_prog_compiler_pic+:} false; then :
13326 $as_echo_n "(cached) " >&6
13327else
13328 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13329fi
13330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13331$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13332lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013333
13334#
13335# Check to make sure the PIC flag actually works.
13336#
13337if test -n "$lt_prog_compiler_pic"; then
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13339$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013340if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013341 $as_echo_n "(cached) " >&6
13342else
13343 lt_cv_prog_compiler_pic_works=no
13344 ac_outfile=conftest.$ac_objext
13345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13346 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13347 # Insert the option either (1) after the last *FLAGS variable, or
13348 # (2) before a word containing "conftest.", or (3) at the end.
13349 # Note that $ac_compile itself does not contain backslashes and begins
13350 # with a dollar sign (not a hyphen), so the echo should work correctly.
13351 # The option is referenced via a variable to avoid confusing sed.
13352 lt_compile=`echo "$ac_compile" | $SED \
13353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13355 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013356 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013357 (eval "$lt_compile" 2>conftest.err)
13358 ac_status=$?
13359 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013361 if (exit $ac_status) && test -s "$ac_outfile"; then
13362 # The compiler can only warn and ignore the option if not recognized
13363 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013364 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013365 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13366 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13367 lt_cv_prog_compiler_pic_works=yes
13368 fi
13369 fi
13370 $RM conftest*
13371
13372fi
13373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13374$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13375
13376if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13377 case $lt_prog_compiler_pic in
13378 "" | " "*) ;;
13379 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13380 esac
13381else
13382 lt_prog_compiler_pic=
13383 lt_prog_compiler_can_build_shared=no
13384fi
13385
13386fi
13387
13388
13389
13390
13391
13392
cristyda16f162011-02-19 23:52:17 +000013393
13394
13395
13396
13397
cristy73bd4a52010-10-05 11:24:23 +000013398#
13399# Check to make sure the static flag actually works.
13400#
13401wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13403$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013404if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013405 $as_echo_n "(cached) " >&6
13406else
13407 lt_cv_prog_compiler_static_works=no
13408 save_LDFLAGS="$LDFLAGS"
13409 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13410 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13411 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13412 # The linker can only warn and ignore the option if not recognized
13413 # So say no if there are warnings
13414 if test -s conftest.err; then
13415 # Append any errors to the config.log.
13416 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013417 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13419 if diff conftest.exp conftest.er2 >/dev/null; then
13420 lt_cv_prog_compiler_static_works=yes
13421 fi
13422 else
13423 lt_cv_prog_compiler_static_works=yes
13424 fi
13425 fi
13426 $RM -r conftest*
13427 LDFLAGS="$save_LDFLAGS"
13428
13429fi
13430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13431$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13432
13433if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13434 :
13435else
13436 lt_prog_compiler_static=
13437fi
13438
13439
13440
13441
13442
13443
13444
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13446$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013447if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013448 $as_echo_n "(cached) " >&6
13449else
13450 lt_cv_prog_compiler_c_o=no
13451 $RM -r conftest 2>/dev/null
13452 mkdir conftest
13453 cd conftest
13454 mkdir out
13455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13456
13457 lt_compiler_flag="-o out/conftest2.$ac_objext"
13458 # Insert the option either (1) after the last *FLAGS variable, or
13459 # (2) before a word containing "conftest.", or (3) at the end.
13460 # Note that $ac_compile itself does not contain backslashes and begins
13461 # with a dollar sign (not a hyphen), so the echo should work correctly.
13462 lt_compile=`echo "$ac_compile" | $SED \
13463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13465 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013466 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013467 (eval "$lt_compile" 2>out/conftest.err)
13468 ac_status=$?
13469 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013471 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13472 then
13473 # The compiler can only warn and ignore the option if not recognized
13474 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013475 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013476 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13477 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13478 lt_cv_prog_compiler_c_o=yes
13479 fi
13480 fi
13481 chmod u+w . 2>&5
13482 $RM conftest*
13483 # SGI C++ compiler will create directory out/ii_files/ for
13484 # template instantiation
13485 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13486 $RM out/* && rmdir out
13487 cd ..
13488 $RM -r conftest
13489 $RM conftest*
13490
13491fi
13492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13493$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13494
13495
13496
13497
13498
13499
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13501$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013502if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013503 $as_echo_n "(cached) " >&6
13504else
13505 lt_cv_prog_compiler_c_o=no
13506 $RM -r conftest 2>/dev/null
13507 mkdir conftest
13508 cd conftest
13509 mkdir out
13510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13511
13512 lt_compiler_flag="-o out/conftest2.$ac_objext"
13513 # Insert the option either (1) after the last *FLAGS variable, or
13514 # (2) before a word containing "conftest.", or (3) at the end.
13515 # Note that $ac_compile itself does not contain backslashes and begins
13516 # with a dollar sign (not a hyphen), so the echo should work correctly.
13517 lt_compile=`echo "$ac_compile" | $SED \
13518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13520 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013521 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013522 (eval "$lt_compile" 2>out/conftest.err)
13523 ac_status=$?
13524 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013526 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13527 then
13528 # The compiler can only warn and ignore the option if not recognized
13529 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013530 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013531 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13532 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13533 lt_cv_prog_compiler_c_o=yes
13534 fi
13535 fi
13536 chmod u+w . 2>&5
13537 $RM conftest*
13538 # SGI C++ compiler will create directory out/ii_files/ for
13539 # template instantiation
13540 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13541 $RM out/* && rmdir out
13542 cd ..
13543 $RM -r conftest
13544 $RM conftest*
13545
13546fi
13547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13548$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13549
13550
13551
13552
13553hard_links="nottested"
13554if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13555 # do not overwrite the value of need_locks provided by the user
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13557$as_echo_n "checking if we can lock with hard links... " >&6; }
13558 hard_links=yes
13559 $RM conftest*
13560 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13561 touch conftest.a
13562 ln conftest.a conftest.b 2>&5 || hard_links=no
13563 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13565$as_echo "$hard_links" >&6; }
13566 if test "$hard_links" = no; then
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13568$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13569 need_locks=warn
13570 fi
13571else
13572 need_locks=no
13573fi
13574
13575
13576
13577
13578
13579
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13581$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13582
13583 runpath_var=
13584 allow_undefined_flag=
13585 always_export_symbols=no
13586 archive_cmds=
13587 archive_expsym_cmds=
13588 compiler_needs_object=no
13589 enable_shared_with_static_runtimes=no
13590 export_dynamic_flag_spec=
13591 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13592 hardcode_automatic=no
13593 hardcode_direct=no
13594 hardcode_direct_absolute=no
13595 hardcode_libdir_flag_spec=
13596 hardcode_libdir_flag_spec_ld=
13597 hardcode_libdir_separator=
13598 hardcode_minus_L=no
13599 hardcode_shlibpath_var=unsupported
13600 inherit_rpath=no
13601 link_all_deplibs=unknown
13602 module_cmds=
13603 module_expsym_cmds=
13604 old_archive_from_new_cmds=
13605 old_archive_from_expsyms_cmds=
13606 thread_safe_flag_spec=
13607 whole_archive_flag_spec=
13608 # include_expsyms should be a list of space-separated symbols to be *always*
13609 # included in the symbol list
13610 include_expsyms=
13611 # exclude_expsyms can be an extended regexp of symbols to exclude
13612 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13613 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13614 # as well as any symbol that contains `d'.
13615 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13616 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13617 # platforms (ab)use it in PIC code, but their linkers get confused if
13618 # the symbol is explicitly referenced. Since portable code cannot
13619 # rely on this symbol name, it's probably fine to never include it in
13620 # preloaded symbol tables.
13621 # Exclude shared library initialization/finalization symbols.
13622 extract_expsyms_cmds=
13623
13624 case $host_os in
13625 cygwin* | mingw* | pw32* | cegcc*)
13626 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13627 # When not using gcc, we currently assume that we are using
13628 # Microsoft Visual C++.
13629 if test "$GCC" != yes; then
13630 with_gnu_ld=no
13631 fi
13632 ;;
13633 interix*)
13634 # we just hope/assume this is gcc and not c89 (= MSVC++)
13635 with_gnu_ld=yes
13636 ;;
13637 openbsd*)
13638 with_gnu_ld=no
13639 ;;
13640 esac
13641
13642 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013643
13644 # On some targets, GNU ld is compatible enough with the native linker
13645 # that we're better off using the native interface for both.
13646 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013647 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013648 case $host_os in
13649 aix*)
13650 # The AIX port of GNU ld has always aspired to compatibility
13651 # with the native linker. However, as the warning in the GNU ld
13652 # block says, versions before 2.19.5* couldn't really create working
13653 # shared libraries, regardless of the interface used.
13654 case `$LD -v 2>&1` in
13655 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13656 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13657 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13658 *)
13659 lt_use_gnu_ld_interface=yes
13660 ;;
13661 esac
13662 ;;
13663 *)
13664 lt_use_gnu_ld_interface=yes
13665 ;;
13666 esac
13667 fi
13668
13669 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013670 # If archive_cmds runs LD, not CC, wlarc should be empty
13671 wlarc='${wl}'
13672
13673 # Set some defaults for GNU ld with shared library support. These
13674 # are reset later if shared libraries are not supported. Putting them
13675 # here allows them to be overridden if necessary.
13676 runpath_var=LD_RUN_PATH
13677 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13678 export_dynamic_flag_spec='${wl}--export-dynamic'
13679 # ancient GNU ld didn't support --whole-archive et. al.
13680 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13681 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13682 else
13683 whole_archive_flag_spec=
13684 fi
13685 supports_anon_versioning=no
13686 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013687 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013688 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13689 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13690 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13691 *\ 2.11.*) ;; # other 2.11 versions
13692 *) supports_anon_versioning=yes ;;
13693 esac
13694
13695 # See if GNU ld supports shared libraries.
13696 case $host_os in
13697 aix[3-9]*)
13698 # On AIX/PPC, the GNU linker is very broken
13699 if test "$host_cpu" != ia64; then
13700 ld_shlibs=no
13701 cat <<_LT_EOF 1>&2
13702
cristy0c60a692010-11-04 01:09:47 +000013703*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013704*** to be unable to reliably create shared libraries on AIX.
13705*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013706*** really care for shared libraries, you may want to install binutils
13707*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13708*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013709
13710_LT_EOF
13711 fi
13712 ;;
13713
13714 amigaos*)
13715 case $host_cpu in
13716 powerpc)
13717 # see comment about AmigaOS4 .so support
13718 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13719 archive_expsym_cmds=''
13720 ;;
13721 m68k)
13722 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)'
13723 hardcode_libdir_flag_spec='-L$libdir'
13724 hardcode_minus_L=yes
13725 ;;
13726 esac
13727 ;;
13728
13729 beos*)
13730 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13731 allow_undefined_flag=unsupported
13732 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13733 # support --undefined. This deserves some investigation. FIXME
13734 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13735 else
13736 ld_shlibs=no
13737 fi
13738 ;;
13739
13740 cygwin* | mingw* | pw32* | cegcc*)
13741 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13742 # as there is no search path for DLLs.
13743 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000013744 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000013745 allow_undefined_flag=unsupported
13746 always_export_symbols=no
13747 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000013748 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'
13749 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 +000013750
13751 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13753 # If the export-symbols file already is a .def file (1st line
13754 # is EXPORTS), use it as is; otherwise, prepend...
13755 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13756 cp $export_symbols $output_objdir/$soname.def;
13757 else
13758 echo EXPORTS > $output_objdir/$soname.def;
13759 cat $export_symbols >> $output_objdir/$soname.def;
13760 fi~
13761 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13762 else
13763 ld_shlibs=no
13764 fi
13765 ;;
13766
cristy0c60a692010-11-04 01:09:47 +000013767 haiku*)
13768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13769 link_all_deplibs=yes
13770 ;;
13771
cristy73bd4a52010-10-05 11:24:23 +000013772 interix[3-9]*)
13773 hardcode_direct=no
13774 hardcode_shlibpath_var=no
13775 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13776 export_dynamic_flag_spec='${wl}-E'
13777 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13778 # Instead, shared libraries are loaded at an image base (0x10000000 by
13779 # default) and relocated if they conflict, which is a slow very memory
13780 # consuming and fragmenting process. To avoid this, we pick a random,
13781 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13782 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13783 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13784 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'
13785 ;;
13786
cristy0c60a692010-11-04 01:09:47 +000013787 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013788 tmp_diet=no
13789 if test "$host_os" = linux-dietlibc; then
13790 case $cc_basename in
13791 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13792 esac
13793 fi
13794 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13795 && test "$tmp_diet" = no
13796 then
cristyda16f162011-02-19 23:52:17 +000013797 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000013798 tmp_sharedflag='-shared'
13799 case $cc_basename,$host_cpu in
13800 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000013801 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 +000013802 tmp_addflag=' $pic_flag'
13803 ;;
cristy0c60a692010-11-04 01:09:47 +000013804 pgf77* | pgf90* | pgf95* | pgfortran*)
13805 # Portland Group f77 and f90 compilers
13806 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 +000013807 tmp_addflag=' $pic_flag -Mnomain' ;;
13808 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13809 tmp_addflag=' -i_dynamic' ;;
13810 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13811 tmp_addflag=' -i_dynamic -nofor_main' ;;
13812 ifc* | ifort*) # Intel Fortran compiler
13813 tmp_addflag=' -nofor_main' ;;
13814 lf95*) # Lahey Fortran 8.1
13815 whole_archive_flag_spec=
13816 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000013817 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000013818 tmp_sharedflag='-qmkshrobj'
13819 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000013820 nvcc*) # Cuda Compiler Driver 2.2
13821 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'
13822 compiler_needs_object=yes
13823 ;;
cristy73bd4a52010-10-05 11:24:23 +000013824 esac
13825 case `$CC -V 2>&1 | sed 5q` in
13826 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000013827 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 +000013828 compiler_needs_object=yes
13829 tmp_sharedflag='-G' ;;
13830 *Sun\ F*) # Sun Fortran 8.3
13831 tmp_sharedflag='-G' ;;
13832 esac
13833 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13834
13835 if test "x$supports_anon_versioning" = xyes; then
13836 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13837 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13838 echo "local: *; };" >> $output_objdir/$libname.ver~
13839 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13840 fi
13841
13842 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013843 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000013844 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13845 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13846 hardcode_libdir_flag_spec=
13847 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000013848 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013849 if test "x$supports_anon_versioning" = xyes; then
13850 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13851 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13852 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000013853 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013854 fi
13855 ;;
13856 esac
13857 else
13858 ld_shlibs=no
13859 fi
13860 ;;
13861
13862 netbsd*)
13863 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13864 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13865 wlarc=
13866 else
cristyda16f162011-02-19 23:52:17 +000013867 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13868 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 +000013869 fi
13870 ;;
13871
13872 solaris*)
13873 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13874 ld_shlibs=no
13875 cat <<_LT_EOF 1>&2
13876
13877*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13878*** create shared libraries on Solaris systems. Therefore, libtool
13879*** is disabling shared libraries support. We urge you to upgrade GNU
13880*** binutils to release 2.9.1 or newer. Another option is to modify
13881*** your PATH or compiler configuration so that the native linker is
13882*** used, and then restart.
13883
13884_LT_EOF
13885 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000013886 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13887 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 +000013888 else
13889 ld_shlibs=no
13890 fi
13891 ;;
13892
13893 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13894 case `$LD -v 2>&1` in
13895 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13896 ld_shlibs=no
13897 cat <<_LT_EOF 1>&2
13898
13899*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13900*** reliably create shared libraries on SCO systems. Therefore, libtool
13901*** is disabling shared libraries support. We urge you to upgrade GNU
13902*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13903*** your PATH or compiler configuration so that the native linker is
13904*** used, and then restart.
13905
13906_LT_EOF
13907 ;;
13908 *)
13909 # For security reasons, it is highly recommended that you always
13910 # use absolute paths for naming shared libraries, and exclude the
13911 # DT_RUNPATH tag from executables and libraries. But doing so
13912 # requires that you compile everything twice, which is a pain.
13913 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13914 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13915 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13916 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13917 else
13918 ld_shlibs=no
13919 fi
13920 ;;
13921 esac
13922 ;;
13923
13924 sunos4*)
13925 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13926 wlarc=
13927 hardcode_direct=yes
13928 hardcode_shlibpath_var=no
13929 ;;
13930
13931 *)
13932 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000013933 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13934 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 +000013935 else
13936 ld_shlibs=no
13937 fi
13938 ;;
13939 esac
13940
13941 if test "$ld_shlibs" = no; then
13942 runpath_var=
13943 hardcode_libdir_flag_spec=
13944 export_dynamic_flag_spec=
13945 whole_archive_flag_spec=
13946 fi
13947 else
13948 # PORTME fill in a description of your system's linker (not GNU ld)
13949 case $host_os in
13950 aix3*)
13951 allow_undefined_flag=unsupported
13952 always_export_symbols=yes
13953 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'
13954 # Note: this linker hardcodes the directories in LIBPATH if there
13955 # are no directories specified by -L.
13956 hardcode_minus_L=yes
13957 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13958 # Neither direct hardcoding nor static linking is supported with a
13959 # broken collect2.
13960 hardcode_direct=unsupported
13961 fi
13962 ;;
13963
13964 aix[4-9]*)
13965 if test "$host_cpu" = ia64; then
13966 # On IA64, the linker does run time linking by default, so we don't
13967 # have to do anything special.
13968 aix_use_runtimelinking=no
13969 exp_sym_flag='-Bexport'
13970 no_entry_flag=""
13971 else
13972 # If we're using GNU nm, then we don't want the "-C" option.
13973 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000013974 # Also, AIX nm treats weak defined symbols like other global
13975 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000013976 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000013977 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 +000013978 else
13979 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'
13980 fi
13981 aix_use_runtimelinking=no
13982
13983 # Test if we are trying to use run time linking or normal
13984 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13985 # need to do runtime linking.
13986 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13987 for ld_flag in $LDFLAGS; do
13988 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13989 aix_use_runtimelinking=yes
13990 break
13991 fi
13992 done
13993 ;;
13994 esac
13995
13996 exp_sym_flag='-bexport'
13997 no_entry_flag='-bnoentry'
13998 fi
13999
14000 # When large executables or shared objects are built, AIX ld can
14001 # have problems creating the table of contents. If linking a library
14002 # or program results in "error TOC overflow" add -mminimal-toc to
14003 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14004 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14005
14006 archive_cmds=''
14007 hardcode_direct=yes
14008 hardcode_direct_absolute=yes
14009 hardcode_libdir_separator=':'
14010 link_all_deplibs=yes
14011 file_list_spec='${wl}-f,'
14012
14013 if test "$GCC" = yes; then
14014 case $host_os in aix4.[012]|aix4.[012].*)
14015 # We only want to do this on AIX 4.2 and lower, the check
14016 # below for broken collect2 doesn't work under 4.3+
14017 collect2name=`${CC} -print-prog-name=collect2`
14018 if test -f "$collect2name" &&
14019 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14020 then
14021 # We have reworked collect2
14022 :
14023 else
14024 # We have old collect2
14025 hardcode_direct=unsupported
14026 # It fails to find uninstalled libraries when the uninstalled
14027 # path is not listed in the libpath. Setting hardcode_minus_L
14028 # to unsupported forces relinking
14029 hardcode_minus_L=yes
14030 hardcode_libdir_flag_spec='-L$libdir'
14031 hardcode_libdir_separator=
14032 fi
14033 ;;
14034 esac
14035 shared_flag='-shared'
14036 if test "$aix_use_runtimelinking" = yes; then
14037 shared_flag="$shared_flag "'${wl}-G'
14038 fi
14039 else
14040 # not using gcc
14041 if test "$host_cpu" = ia64; then
14042 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14043 # chokes on -Wl,-G. The following line is correct:
14044 shared_flag='-G'
14045 else
14046 if test "$aix_use_runtimelinking" = yes; then
14047 shared_flag='${wl}-G'
14048 else
14049 shared_flag='${wl}-bM:SRE'
14050 fi
14051 fi
14052 fi
14053
14054 export_dynamic_flag_spec='${wl}-bexpall'
14055 # It seems that -bexpall does not export symbols beginning with
14056 # underscore (_), so it is better to generate a list of symbols to export.
14057 always_export_symbols=yes
14058 if test "$aix_use_runtimelinking" = yes; then
14059 # Warning - without using the other runtime loading flags (-brtl),
14060 # -berok will link without error, but may produce a broken library.
14061 allow_undefined_flag='-berok'
14062 # Determine the default libpath from the value encoded in an
14063 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014064 if test "${lt_cv_aix_libpath+set}" = set; then
14065 aix_libpath=$lt_cv_aix_libpath
14066else
14067 if ${lt_cv_aix_libpath_+:} false; then :
14068 $as_echo_n "(cached) " >&6
14069else
14070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014071/* end confdefs.h. */
14072
14073int
14074main ()
14075{
14076
14077 ;
14078 return 0;
14079}
14080_ACEOF
14081if ac_fn_c_try_link "$LINENO"; then :
14082
cristyda16f162011-02-19 23:52:17 +000014083 lt_aix_libpath_sed='
14084 /Import File Strings/,/^$/ {
14085 /^0/ {
14086 s/^0 *\([^ ]*\) *$/\1/
14087 p
14088 }
14089 }'
14090 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14091 # Check for a 64-bit object if we didn't find anything.
14092 if test -z "$lt_cv_aix_libpath_"; then
14093 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14094 fi
cristy73bd4a52010-10-05 11:24:23 +000014095fi
14096rm -f core conftest.err conftest.$ac_objext \
14097 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014098 if test -z "$lt_cv_aix_libpath_"; then
14099 lt_cv_aix_libpath_="/usr/lib:/lib"
14100 fi
14101
14102fi
14103
14104 aix_libpath=$lt_cv_aix_libpath_
14105fi
cristy73bd4a52010-10-05 11:24:23 +000014106
14107 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014108 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 +000014109 else
14110 if test "$host_cpu" = ia64; then
14111 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14112 allow_undefined_flag="-z nodefs"
14113 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"
14114 else
14115 # Determine the default libpath from the value encoded in an
14116 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014117 if test "${lt_cv_aix_libpath+set}" = set; then
14118 aix_libpath=$lt_cv_aix_libpath
14119else
14120 if ${lt_cv_aix_libpath_+:} false; then :
14121 $as_echo_n "(cached) " >&6
14122else
14123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014124/* end confdefs.h. */
14125
14126int
14127main ()
14128{
14129
14130 ;
14131 return 0;
14132}
14133_ACEOF
14134if ac_fn_c_try_link "$LINENO"; then :
14135
cristyda16f162011-02-19 23:52:17 +000014136 lt_aix_libpath_sed='
14137 /Import File Strings/,/^$/ {
14138 /^0/ {
14139 s/^0 *\([^ ]*\) *$/\1/
14140 p
14141 }
14142 }'
14143 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14144 # Check for a 64-bit object if we didn't find anything.
14145 if test -z "$lt_cv_aix_libpath_"; then
14146 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14147 fi
cristy73bd4a52010-10-05 11:24:23 +000014148fi
14149rm -f core conftest.err conftest.$ac_objext \
14150 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014151 if test -z "$lt_cv_aix_libpath_"; then
14152 lt_cv_aix_libpath_="/usr/lib:/lib"
14153 fi
14154
14155fi
14156
14157 aix_libpath=$lt_cv_aix_libpath_
14158fi
cristy73bd4a52010-10-05 11:24:23 +000014159
14160 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14161 # Warning - without using the other run time loading flags,
14162 # -berok will link without error, but may produce a broken library.
14163 no_undefined_flag=' ${wl}-bernotok'
14164 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014165 if test "$with_gnu_ld" = yes; then
14166 # We only use this code for GNU lds that support --whole-archive.
14167 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14168 else
14169 # Exported symbols can be pulled into shared objects from archives
14170 whole_archive_flag_spec='$convenience'
14171 fi
cristy73bd4a52010-10-05 11:24:23 +000014172 archive_cmds_need_lc=yes
14173 # This is similar to how AIX traditionally builds its shared libraries.
14174 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'
14175 fi
14176 fi
14177 ;;
14178
14179 amigaos*)
14180 case $host_cpu in
14181 powerpc)
14182 # see comment about AmigaOS4 .so support
14183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14184 archive_expsym_cmds=''
14185 ;;
14186 m68k)
14187 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)'
14188 hardcode_libdir_flag_spec='-L$libdir'
14189 hardcode_minus_L=yes
14190 ;;
14191 esac
14192 ;;
14193
14194 bsdi[45]*)
14195 export_dynamic_flag_spec=-rdynamic
14196 ;;
14197
14198 cygwin* | mingw* | pw32* | cegcc*)
14199 # When not using gcc, we currently assume that we are using
14200 # Microsoft Visual C++.
14201 # hardcode_libdir_flag_spec is actually meaningless, as there is
14202 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014203 case $cc_basename in
14204 cl*)
14205 # Native MSVC
14206 hardcode_libdir_flag_spec=' '
14207 allow_undefined_flag=unsupported
14208 always_export_symbols=yes
14209 file_list_spec='@'
14210 # Tell ltmain to make .lib files, not .a files.
14211 libext=lib
14212 # Tell ltmain to make .dll files, not .so files.
14213 shrext_cmds=".dll"
14214 # FIXME: Setting linknames here is a bad hack.
14215 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14216 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14217 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14218 else
14219 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14220 fi~
14221 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14222 linknames='
14223 # The linker will not automatically build a static lib if we build a DLL.
14224 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14225 enable_shared_with_static_runtimes=yes
14226 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14227 # Don't use ranlib
14228 old_postinstall_cmds='chmod 644 $oldlib'
14229 postlink_cmds='lt_outputfile="@OUTPUT@"~
14230 lt_tool_outputfile="@TOOL_OUTPUT@"~
14231 case $lt_outputfile in
14232 *.exe|*.EXE) ;;
14233 *)
14234 lt_outputfile="$lt_outputfile.exe"
14235 lt_tool_outputfile="$lt_tool_outputfile.exe"
14236 ;;
14237 esac~
14238 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14239 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14240 $RM "$lt_outputfile.manifest";
14241 fi'
14242 ;;
14243 *)
14244 # Assume MSVC wrapper
14245 hardcode_libdir_flag_spec=' '
14246 allow_undefined_flag=unsupported
14247 # Tell ltmain to make .lib files, not .a files.
14248 libext=lib
14249 # Tell ltmain to make .dll files, not .so files.
14250 shrext_cmds=".dll"
14251 # FIXME: Setting linknames here is a bad hack.
14252 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14253 # The linker will automatically build a .lib file if we build a DLL.
14254 old_archive_from_new_cmds='true'
14255 # FIXME: Should let the user specify the lib program.
14256 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14257 enable_shared_with_static_runtimes=yes
14258 ;;
14259 esac
cristy73bd4a52010-10-05 11:24:23 +000014260 ;;
14261
14262 darwin* | rhapsody*)
14263
14264
14265 archive_cmds_need_lc=no
14266 hardcode_direct=no
14267 hardcode_automatic=yes
14268 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014269 if test "$lt_cv_ld_force_load" = "yes"; then
14270 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\"`'
14271 else
14272 whole_archive_flag_spec=''
14273 fi
cristy73bd4a52010-10-05 11:24:23 +000014274 link_all_deplibs=yes
14275 allow_undefined_flag="$_lt_dar_allow_undefined"
14276 case $cc_basename in
14277 ifort*) _lt_dar_can_shared=yes ;;
14278 *) _lt_dar_can_shared=$GCC ;;
14279 esac
14280 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014281 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014282 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14283 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14284 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}"
14285 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}"
14286
14287 else
14288 ld_shlibs=no
14289 fi
14290
14291 ;;
14292
14293 dgux*)
14294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14295 hardcode_libdir_flag_spec='-L$libdir'
14296 hardcode_shlibpath_var=no
14297 ;;
14298
14299 freebsd1*)
14300 ld_shlibs=no
14301 ;;
14302
14303 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14304 # support. Future versions do this automatically, but an explicit c++rt0.o
14305 # does not break anything, and helps significantly (at the cost of a little
14306 # extra space).
14307 freebsd2.2*)
14308 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14309 hardcode_libdir_flag_spec='-R$libdir'
14310 hardcode_direct=yes
14311 hardcode_shlibpath_var=no
14312 ;;
14313
14314 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14315 freebsd2*)
14316 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14317 hardcode_direct=yes
14318 hardcode_minus_L=yes
14319 hardcode_shlibpath_var=no
14320 ;;
14321
14322 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14323 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014324 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014325 hardcode_libdir_flag_spec='-R$libdir'
14326 hardcode_direct=yes
14327 hardcode_shlibpath_var=no
14328 ;;
14329
14330 hpux9*)
14331 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014332 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 +000014333 else
14334 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'
14335 fi
14336 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14337 hardcode_libdir_separator=:
14338 hardcode_direct=yes
14339
14340 # hardcode_minus_L: Not really in the search PATH,
14341 # but as the default location of the library.
14342 hardcode_minus_L=yes
14343 export_dynamic_flag_spec='${wl}-E'
14344 ;;
14345
14346 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014347 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014348 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 +000014349 else
14350 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14351 fi
14352 if test "$with_gnu_ld" = no; then
14353 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14354 hardcode_libdir_flag_spec_ld='+b $libdir'
14355 hardcode_libdir_separator=:
14356 hardcode_direct=yes
14357 hardcode_direct_absolute=yes
14358 export_dynamic_flag_spec='${wl}-E'
14359 # hardcode_minus_L: Not really in the search PATH,
14360 # but as the default location of the library.
14361 hardcode_minus_L=yes
14362 fi
14363 ;;
14364
14365 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014366 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014367 case $host_cpu in
14368 hppa*64*)
14369 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14370 ;;
14371 ia64*)
cristyda16f162011-02-19 23:52:17 +000014372 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014373 ;;
14374 *)
cristyda16f162011-02-19 23:52:17 +000014375 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 +000014376 ;;
14377 esac
14378 else
14379 case $host_cpu in
14380 hppa*64*)
14381 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14382 ;;
14383 ia64*)
14384 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14385 ;;
14386 *)
cristy0c60a692010-11-04 01:09:47 +000014387
14388 # Older versions of the 11.00 compiler do not understand -b yet
14389 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14391$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014392if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014393 $as_echo_n "(cached) " >&6
14394else
14395 lt_cv_prog_compiler__b=no
14396 save_LDFLAGS="$LDFLAGS"
14397 LDFLAGS="$LDFLAGS -b"
14398 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14399 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14400 # The linker can only warn and ignore the option if not recognized
14401 # So say no if there are warnings
14402 if test -s conftest.err; then
14403 # Append any errors to the config.log.
14404 cat conftest.err 1>&5
14405 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14406 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14407 if diff conftest.exp conftest.er2 >/dev/null; then
14408 lt_cv_prog_compiler__b=yes
14409 fi
14410 else
14411 lt_cv_prog_compiler__b=yes
14412 fi
14413 fi
14414 $RM -r conftest*
14415 LDFLAGS="$save_LDFLAGS"
14416
14417fi
14418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14419$as_echo "$lt_cv_prog_compiler__b" >&6; }
14420
14421if test x"$lt_cv_prog_compiler__b" = xyes; then
14422 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14423else
14424 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14425fi
14426
cristy73bd4a52010-10-05 11:24:23 +000014427 ;;
14428 esac
14429 fi
14430 if test "$with_gnu_ld" = no; then
14431 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14432 hardcode_libdir_separator=:
14433
14434 case $host_cpu in
14435 hppa*64*|ia64*)
14436 hardcode_direct=no
14437 hardcode_shlibpath_var=no
14438 ;;
14439 *)
14440 hardcode_direct=yes
14441 hardcode_direct_absolute=yes
14442 export_dynamic_flag_spec='${wl}-E'
14443
14444 # hardcode_minus_L: Not really in the search PATH,
14445 # but as the default location of the library.
14446 hardcode_minus_L=yes
14447 ;;
14448 esac
14449 fi
14450 ;;
14451
14452 irix5* | irix6* | nonstopux*)
14453 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014454 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 +000014455 # Try to use the -exported_symbol ld option, if it does not
14456 # work, assume that -exports_file does not work either and
14457 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014458 # This should be the same for all languages, so no per-tag cache variable.
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14460$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14461if ${lt_cv_irix_exported_symbol+:} false; then :
14462 $as_echo_n "(cached) " >&6
14463else
14464 save_LDFLAGS="$LDFLAGS"
14465 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014467/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014468int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014469_ACEOF
14470if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014471 lt_cv_irix_exported_symbol=yes
14472else
14473 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014474fi
14475rm -f core conftest.err conftest.$ac_objext \
14476 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014477 LDFLAGS="$save_LDFLAGS"
14478fi
14479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14480$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14481 if test "$lt_cv_irix_exported_symbol" = yes; then
14482 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'
14483 fi
cristy73bd4a52010-10-05 11:24:23 +000014484 else
cristy0c60a692010-11-04 01:09:47 +000014485 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'
14486 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 +000014487 fi
14488 archive_cmds_need_lc='no'
14489 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14490 hardcode_libdir_separator=:
14491 inherit_rpath=yes
14492 link_all_deplibs=yes
14493 ;;
14494
14495 netbsd*)
14496 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14497 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14498 else
14499 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14500 fi
14501 hardcode_libdir_flag_spec='-R$libdir'
14502 hardcode_direct=yes
14503 hardcode_shlibpath_var=no
14504 ;;
14505
14506 newsos6)
14507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14508 hardcode_direct=yes
14509 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14510 hardcode_libdir_separator=:
14511 hardcode_shlibpath_var=no
14512 ;;
14513
14514 *nto* | *qnx*)
14515 ;;
14516
14517 openbsd*)
14518 if test -f /usr/libexec/ld.so; then
14519 hardcode_direct=yes
14520 hardcode_shlibpath_var=no
14521 hardcode_direct_absolute=yes
14522 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14523 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14524 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14525 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14526 export_dynamic_flag_spec='${wl}-E'
14527 else
14528 case $host_os in
14529 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14530 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14531 hardcode_libdir_flag_spec='-R$libdir'
14532 ;;
14533 *)
14534 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14535 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14536 ;;
14537 esac
14538 fi
14539 else
14540 ld_shlibs=no
14541 fi
14542 ;;
14543
14544 os2*)
14545 hardcode_libdir_flag_spec='-L$libdir'
14546 hardcode_minus_L=yes
14547 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014548 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 +000014549 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14550 ;;
14551
14552 osf3*)
14553 if test "$GCC" = yes; then
14554 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014555 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 +000014556 else
14557 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014558 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 +000014559 fi
14560 archive_cmds_need_lc='no'
14561 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14562 hardcode_libdir_separator=:
14563 ;;
14564
14565 osf4* | osf5*) # as osf3* with the addition of -msym flag
14566 if test "$GCC" = yes; then
14567 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014568 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 +000014569 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14570 else
14571 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014572 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 +000014573 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 +000014574 $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 +000014575
14576 # Both c and cxx compiler support -rpath directly
14577 hardcode_libdir_flag_spec='-rpath $libdir'
14578 fi
14579 archive_cmds_need_lc='no'
14580 hardcode_libdir_separator=:
14581 ;;
14582
14583 solaris*)
14584 no_undefined_flag=' -z defs'
14585 if test "$GCC" = yes; then
14586 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014587 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 +000014588 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 +000014589 $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 +000014590 else
14591 case `$CC -V 2>&1` in
14592 *"Compilers 5.0"*)
14593 wlarc=''
14594 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14595 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14596 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14597 ;;
14598 *)
14599 wlarc='${wl}'
14600 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14601 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14602 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14603 ;;
14604 esac
14605 fi
14606 hardcode_libdir_flag_spec='-R$libdir'
14607 hardcode_shlibpath_var=no
14608 case $host_os in
14609 solaris2.[0-5] | solaris2.[0-5].*) ;;
14610 *)
14611 # The compiler driver will combine and reorder linker options,
14612 # but understands `-z linker_flag'. GCC discards it without `$wl',
14613 # but is careful enough not to reorder.
14614 # Supported since Solaris 2.6 (maybe 2.5.1?)
14615 if test "$GCC" = yes; then
14616 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14617 else
14618 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14619 fi
14620 ;;
14621 esac
14622 link_all_deplibs=yes
14623 ;;
14624
14625 sunos4*)
14626 if test "x$host_vendor" = xsequent; then
14627 # Use $CC to link under sequent, because it throws in some extra .o
14628 # files that make .init and .fini sections work.
14629 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14630 else
14631 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14632 fi
14633 hardcode_libdir_flag_spec='-L$libdir'
14634 hardcode_direct=yes
14635 hardcode_minus_L=yes
14636 hardcode_shlibpath_var=no
14637 ;;
14638
14639 sysv4)
14640 case $host_vendor in
14641 sni)
14642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14643 hardcode_direct=yes # is this really true???
14644 ;;
14645 siemens)
14646 ## LD is ld it makes a PLAMLIB
14647 ## CC just makes a GrossModule.
14648 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14649 reload_cmds='$CC -r -o $output$reload_objs'
14650 hardcode_direct=no
14651 ;;
14652 motorola)
14653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14654 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14655 ;;
14656 esac
14657 runpath_var='LD_RUN_PATH'
14658 hardcode_shlibpath_var=no
14659 ;;
14660
14661 sysv4.3*)
14662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14663 hardcode_shlibpath_var=no
14664 export_dynamic_flag_spec='-Bexport'
14665 ;;
14666
14667 sysv4*MP*)
14668 if test -d /usr/nec; then
14669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14670 hardcode_shlibpath_var=no
14671 runpath_var=LD_RUN_PATH
14672 hardcode_runpath_var=yes
14673 ld_shlibs=yes
14674 fi
14675 ;;
14676
14677 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14678 no_undefined_flag='${wl}-z,text'
14679 archive_cmds_need_lc=no
14680 hardcode_shlibpath_var=no
14681 runpath_var='LD_RUN_PATH'
14682
14683 if test "$GCC" = yes; then
14684 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14685 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14686 else
14687 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14688 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14689 fi
14690 ;;
14691
14692 sysv5* | sco3.2v5* | sco5v6*)
14693 # Note: We can NOT use -z defs as we might desire, because we do not
14694 # link with -lc, and that would cause any symbols used from libc to
14695 # always be unresolved, which means just about no library would
14696 # ever link correctly. If we're not using GNU ld we use -z text
14697 # though, which does catch some bad symbols but isn't as heavy-handed
14698 # as -z defs.
14699 no_undefined_flag='${wl}-z,text'
14700 allow_undefined_flag='${wl}-z,nodefs'
14701 archive_cmds_need_lc=no
14702 hardcode_shlibpath_var=no
14703 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14704 hardcode_libdir_separator=':'
14705 link_all_deplibs=yes
14706 export_dynamic_flag_spec='${wl}-Bexport'
14707 runpath_var='LD_RUN_PATH'
14708
14709 if test "$GCC" = yes; then
14710 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14711 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14712 else
14713 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14714 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14715 fi
14716 ;;
14717
14718 uts4*)
14719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14720 hardcode_libdir_flag_spec='-L$libdir'
14721 hardcode_shlibpath_var=no
14722 ;;
14723
14724 *)
14725 ld_shlibs=no
14726 ;;
14727 esac
14728
14729 if test x$host_vendor = xsni; then
14730 case $host in
14731 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14732 export_dynamic_flag_spec='${wl}-Blargedynsym'
14733 ;;
14734 esac
14735 fi
14736 fi
14737
14738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14739$as_echo "$ld_shlibs" >&6; }
14740test "$ld_shlibs" = no && can_build_shared=no
14741
14742with_gnu_ld=$with_gnu_ld
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758#
14759# Do we need to explicitly link libc?
14760#
14761case "x$archive_cmds_need_lc" in
14762x|xyes)
14763 # Assume -lc should be added
14764 archive_cmds_need_lc=yes
14765
14766 if test "$enable_shared" = yes && test "$GCC" = yes; then
14767 case $archive_cmds in
14768 *'~'*)
14769 # FIXME: we may have to deal with multi-command sequences.
14770 ;;
14771 '$CC '*)
14772 # Test whether the compiler implicitly links with -lc since on some
14773 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14774 # to ld, don't add -lc before -lgcc.
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14776$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014777if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014778 $as_echo_n "(cached) " >&6
14779else
14780 $RM conftest*
14781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014782
cristy0c60a692010-11-04 01:09:47 +000014783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000014784 (eval $ac_compile) 2>&5
14785 ac_status=$?
14786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14787 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000014788 soname=conftest
14789 lib=conftest
14790 libobjs=conftest.$ac_objext
14791 deplibs=
14792 wl=$lt_prog_compiler_wl
14793 pic_flag=$lt_prog_compiler_pic
14794 compiler_flags=-v
14795 linker_flags=-v
14796 verstring=
14797 output_objdir=.
14798 libname=conftest
14799 lt_save_allow_undefined_flag=$allow_undefined_flag
14800 allow_undefined_flag=
14801 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 +000014802 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14803 ac_status=$?
14804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14805 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000014806 then
14807 lt_cv_archive_cmds_need_lc=no
14808 else
14809 lt_cv_archive_cmds_need_lc=yes
14810 fi
14811 allow_undefined_flag=$lt_save_allow_undefined_flag
14812 else
14813 cat conftest.err 1>&5
14814 fi
14815 $RM conftest*
14816
14817fi
14818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14819$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14820 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000014821 ;;
14822 esac
14823 fi
14824 ;;
14825esac
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14984$as_echo_n "checking dynamic linker characteristics... " >&6; }
14985
14986if test "$GCC" = yes; then
14987 case $host_os in
14988 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14989 *) lt_awk_arg="/^libraries:/" ;;
14990 esac
cristy0c60a692010-11-04 01:09:47 +000014991 case $host_os in
14992 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14993 *) lt_sed_strip_eq="s,=/,/,g" ;;
14994 esac
14995 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14996 case $lt_search_path_spec in
14997 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000014998 # if the path contains ";" then we assume it to be the separator
14999 # otherwise default to the standard path separator (i.e. ":") - it is
15000 # assumed that no part of a normal pathname contains ";" but that should
15001 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015002 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15003 ;;
15004 *)
15005 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15006 ;;
15007 esac
cristy73bd4a52010-10-05 11:24:23 +000015008 # Ok, now we have the path, separated by spaces, we can step through it
15009 # and add multilib dir if necessary.
15010 lt_tmp_lt_search_path_spec=
15011 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15012 for lt_sys_path in $lt_search_path_spec; do
15013 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15014 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15015 else
15016 test -d "$lt_sys_path" && \
15017 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15018 fi
15019 done
cristy0c60a692010-11-04 01:09:47 +000015020 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015021BEGIN {RS=" "; FS="/|\n";} {
15022 lt_foo="";
15023 lt_count=0;
15024 for (lt_i = NF; lt_i > 0; lt_i--) {
15025 if ($lt_i != "" && $lt_i != ".") {
15026 if ($lt_i == "..") {
15027 lt_count++;
15028 } else {
15029 if (lt_count == 0) {
15030 lt_foo="/" $lt_i lt_foo;
15031 } else {
15032 lt_count--;
15033 }
15034 }
15035 }
15036 }
15037 if (lt_foo != "") { lt_freq[lt_foo]++; }
15038 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15039}'`
cristy0c60a692010-11-04 01:09:47 +000015040 # AWK program above erroneously prepends '/' to C:/dos/paths
15041 # for these hosts.
15042 case $host_os in
15043 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15044 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15045 esac
15046 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015047else
15048 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15049fi
15050library_names_spec=
15051libname_spec='lib$name'
15052soname_spec=
15053shrext_cmds=".so"
15054postinstall_cmds=
15055postuninstall_cmds=
15056finish_cmds=
15057finish_eval=
15058shlibpath_var=
15059shlibpath_overrides_runpath=unknown
15060version_type=none
15061dynamic_linker="$host_os ld.so"
15062sys_lib_dlsearch_path_spec="/lib /usr/lib"
15063need_lib_prefix=unknown
15064hardcode_into_libs=no
15065
15066# when you set need_version to no, make sure it does not cause -set_version
15067# flags to be left without arguments
15068need_version=unknown
15069
15070case $host_os in
15071aix3*)
15072 version_type=linux
15073 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15074 shlibpath_var=LIBPATH
15075
15076 # AIX 3 has no versioning support, so we append a major version to the name.
15077 soname_spec='${libname}${release}${shared_ext}$major'
15078 ;;
15079
15080aix[4-9]*)
15081 version_type=linux
15082 need_lib_prefix=no
15083 need_version=no
15084 hardcode_into_libs=yes
15085 if test "$host_cpu" = ia64; then
15086 # AIX 5 supports IA64
15087 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15088 shlibpath_var=LD_LIBRARY_PATH
15089 else
15090 # With GCC up to 2.95.x, collect2 would create an import file
15091 # for dependence libraries. The import file would start with
15092 # the line `#! .'. This would cause the generated library to
15093 # depend on `.', always an invalid library. This was fixed in
15094 # development snapshots of GCC prior to 3.0.
15095 case $host_os in
15096 aix4 | aix4.[01] | aix4.[01].*)
15097 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15098 echo ' yes '
15099 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15100 :
15101 else
15102 can_build_shared=no
15103 fi
15104 ;;
15105 esac
15106 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15107 # soname into executable. Probably we can add versioning support to
15108 # collect2, so additional links can be useful in future.
15109 if test "$aix_use_runtimelinking" = yes; then
15110 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15111 # instead of lib<name>.a to let people know that these are not
15112 # typical AIX shared libraries.
15113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15114 else
15115 # We preserve .a as extension for shared libraries through AIX4.2
15116 # and later when we are not doing run time linking.
15117 library_names_spec='${libname}${release}.a $libname.a'
15118 soname_spec='${libname}${release}${shared_ext}$major'
15119 fi
15120 shlibpath_var=LIBPATH
15121 fi
15122 ;;
15123
15124amigaos*)
15125 case $host_cpu in
15126 powerpc)
15127 # Since July 2007 AmigaOS4 officially supports .so libraries.
15128 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15130 ;;
15131 m68k)
15132 library_names_spec='$libname.ixlibrary $libname.a'
15133 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015134 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 +000015135 ;;
15136 esac
15137 ;;
15138
15139beos*)
15140 library_names_spec='${libname}${shared_ext}'
15141 dynamic_linker="$host_os ld.so"
15142 shlibpath_var=LIBRARY_PATH
15143 ;;
15144
15145bsdi[45]*)
15146 version_type=linux
15147 need_version=no
15148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15149 soname_spec='${libname}${release}${shared_ext}$major'
15150 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15151 shlibpath_var=LD_LIBRARY_PATH
15152 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15153 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15154 # the default ld.so.conf also contains /usr/contrib/lib and
15155 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15156 # libtool to hard-code these into programs
15157 ;;
15158
15159cygwin* | mingw* | pw32* | cegcc*)
15160 version_type=windows
15161 shrext_cmds=".dll"
15162 need_version=no
15163 need_lib_prefix=no
15164
cristyda16f162011-02-19 23:52:17 +000015165 case $GCC,$cc_basename in
15166 yes,*)
15167 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015168 library_names_spec='$libname.dll.a'
15169 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15170 postinstall_cmds='base_file=`basename \${file}`~
15171 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15172 dldir=$destdir/`dirname \$dlpath`~
15173 test -d \$dldir || mkdir -p \$dldir~
15174 $install_prog $dir/$dlname \$dldir/$dlname~
15175 chmod a+x \$dldir/$dlname~
15176 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15177 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15178 fi'
15179 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15180 dlpath=$dir/\$dldll~
15181 $RM \$dlpath'
15182 shlibpath_overrides_runpath=yes
15183
15184 case $host_os in
15185 cygwin*)
15186 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15187 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015188
15189 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015190 ;;
15191 mingw* | cegcc*)
15192 # MinGW DLLs use traditional 'lib' prefix
15193 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015194 ;;
15195 pw32*)
15196 # pw32 DLLs use 'pw' prefix rather than 'lib'
15197 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15198 ;;
15199 esac
cristyda16f162011-02-19 23:52:17 +000015200 dynamic_linker='Win32 ld.exe'
15201 ;;
15202
15203 *,cl*)
15204 # Native MSVC
15205 libname_spec='$name'
15206 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15207 library_names_spec='${libname}.dll.lib'
15208
15209 case $build_os in
15210 mingw*)
15211 sys_lib_search_path_spec=
15212 lt_save_ifs=$IFS
15213 IFS=';'
15214 for lt_path in $LIB
15215 do
15216 IFS=$lt_save_ifs
15217 # Let DOS variable expansion print the short 8.3 style file name.
15218 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15219 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15220 done
15221 IFS=$lt_save_ifs
15222 # Convert to MSYS style.
15223 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15224 ;;
15225 cygwin*)
15226 # Convert to unix form, then to dos form, then back to unix form
15227 # but this time dos style (no spaces!) so that the unix form looks
15228 # like /cygdrive/c/PROGRA~1:/cygdr...
15229 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15230 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15231 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15232 ;;
15233 *)
15234 sys_lib_search_path_spec="$LIB"
15235 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15236 # It is most probably a Windows format PATH.
15237 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15238 else
15239 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15240 fi
15241 # FIXME: find the short name or the path components, as spaces are
15242 # common. (e.g. "Program Files" -> "PROGRA~1")
15243 ;;
15244 esac
15245
15246 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15247 postinstall_cmds='base_file=`basename \${file}`~
15248 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15249 dldir=$destdir/`dirname \$dlpath`~
15250 test -d \$dldir || mkdir -p \$dldir~
15251 $install_prog $dir/$dlname \$dldir/$dlname'
15252 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15253 dlpath=$dir/\$dldll~
15254 $RM \$dlpath'
15255 shlibpath_overrides_runpath=yes
15256 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015257 ;;
15258
15259 *)
cristyda16f162011-02-19 23:52:17 +000015260 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015261 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015262 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015263 ;;
15264 esac
cristy73bd4a52010-10-05 11:24:23 +000015265 # FIXME: first we should search . and the directory the executable is in
15266 shlibpath_var=PATH
15267 ;;
15268
15269darwin* | rhapsody*)
15270 dynamic_linker="$host_os dyld"
15271 version_type=darwin
15272 need_lib_prefix=no
15273 need_version=no
15274 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15275 soname_spec='${libname}${release}${major}$shared_ext'
15276 shlibpath_overrides_runpath=yes
15277 shlibpath_var=DYLD_LIBRARY_PATH
15278 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15279
15280 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15281 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15282 ;;
15283
15284dgux*)
15285 version_type=linux
15286 need_lib_prefix=no
15287 need_version=no
15288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15289 soname_spec='${libname}${release}${shared_ext}$major'
15290 shlibpath_var=LD_LIBRARY_PATH
15291 ;;
15292
15293freebsd1*)
15294 dynamic_linker=no
15295 ;;
15296
15297freebsd* | dragonfly*)
15298 # DragonFly does not have aout. When/if they implement a new
15299 # versioning mechanism, adjust this.
15300 if test -x /usr/bin/objformat; then
15301 objformat=`/usr/bin/objformat`
15302 else
15303 case $host_os in
15304 freebsd[123]*) objformat=aout ;;
15305 *) objformat=elf ;;
15306 esac
15307 fi
15308 version_type=freebsd-$objformat
15309 case $version_type in
15310 freebsd-elf*)
15311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15312 need_version=no
15313 need_lib_prefix=no
15314 ;;
15315 freebsd-*)
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15317 need_version=yes
15318 ;;
15319 esac
15320 shlibpath_var=LD_LIBRARY_PATH
15321 case $host_os in
15322 freebsd2*)
15323 shlibpath_overrides_runpath=yes
15324 ;;
15325 freebsd3.[01]* | freebsdelf3.[01]*)
15326 shlibpath_overrides_runpath=yes
15327 hardcode_into_libs=yes
15328 ;;
15329 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15330 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15331 shlibpath_overrides_runpath=no
15332 hardcode_into_libs=yes
15333 ;;
15334 *) # from 4.6 on, and DragonFly
15335 shlibpath_overrides_runpath=yes
15336 hardcode_into_libs=yes
15337 ;;
15338 esac
15339 ;;
15340
15341gnu*)
15342 version_type=linux
15343 need_lib_prefix=no
15344 need_version=no
15345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15346 soname_spec='${libname}${release}${shared_ext}$major'
15347 shlibpath_var=LD_LIBRARY_PATH
15348 hardcode_into_libs=yes
15349 ;;
15350
cristy0c60a692010-11-04 01:09:47 +000015351haiku*)
15352 version_type=linux
15353 need_lib_prefix=no
15354 need_version=no
15355 dynamic_linker="$host_os runtime_loader"
15356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15357 soname_spec='${libname}${release}${shared_ext}$major'
15358 shlibpath_var=LIBRARY_PATH
15359 shlibpath_overrides_runpath=yes
15360 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15361 hardcode_into_libs=yes
15362 ;;
15363
cristy73bd4a52010-10-05 11:24:23 +000015364hpux9* | hpux10* | hpux11*)
15365 # Give a soname corresponding to the major version so that dld.sl refuses to
15366 # link against other versions.
15367 version_type=sunos
15368 need_lib_prefix=no
15369 need_version=no
15370 case $host_cpu in
15371 ia64*)
15372 shrext_cmds='.so'
15373 hardcode_into_libs=yes
15374 dynamic_linker="$host_os dld.so"
15375 shlibpath_var=LD_LIBRARY_PATH
15376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15378 soname_spec='${libname}${release}${shared_ext}$major'
15379 if test "X$HPUX_IA64_MODE" = X32; then
15380 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15381 else
15382 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15383 fi
15384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15385 ;;
15386 hppa*64*)
15387 shrext_cmds='.sl'
15388 hardcode_into_libs=yes
15389 dynamic_linker="$host_os dld.sl"
15390 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15391 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393 soname_spec='${libname}${release}${shared_ext}$major'
15394 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15395 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15396 ;;
15397 *)
15398 shrext_cmds='.sl'
15399 dynamic_linker="$host_os dld.sl"
15400 shlibpath_var=SHLIB_PATH
15401 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15403 soname_spec='${libname}${release}${shared_ext}$major'
15404 ;;
15405 esac
cristy0c60a692010-11-04 01:09:47 +000015406 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015407 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015408 # or fails outright, so override atomically:
15409 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015410 ;;
15411
15412interix[3-9]*)
15413 version_type=linux
15414 need_lib_prefix=no
15415 need_version=no
15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15417 soname_spec='${libname}${release}${shared_ext}$major'
15418 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15419 shlibpath_var=LD_LIBRARY_PATH
15420 shlibpath_overrides_runpath=no
15421 hardcode_into_libs=yes
15422 ;;
15423
15424irix5* | irix6* | nonstopux*)
15425 case $host_os in
15426 nonstopux*) version_type=nonstopux ;;
15427 *)
15428 if test "$lt_cv_prog_gnu_ld" = yes; then
15429 version_type=linux
15430 else
15431 version_type=irix
15432 fi ;;
15433 esac
15434 need_lib_prefix=no
15435 need_version=no
15436 soname_spec='${libname}${release}${shared_ext}$major'
15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15438 case $host_os in
15439 irix5* | nonstopux*)
15440 libsuff= shlibsuff=
15441 ;;
15442 *)
15443 case $LD in # libtool.m4 will add one of these switches to LD
15444 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15445 libsuff= shlibsuff= libmagic=32-bit;;
15446 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15447 libsuff=32 shlibsuff=N32 libmagic=N32;;
15448 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15449 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15450 *) libsuff= shlibsuff= libmagic=never-match;;
15451 esac
15452 ;;
15453 esac
15454 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15455 shlibpath_overrides_runpath=no
15456 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15457 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15458 hardcode_into_libs=yes
15459 ;;
15460
15461# No shared lib support for Linux oldld, aout, or coff.
15462linux*oldld* | linux*aout* | linux*coff*)
15463 dynamic_linker=no
15464 ;;
15465
15466# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000015467linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015468 version_type=linux
15469 need_lib_prefix=no
15470 need_version=no
15471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15472 soname_spec='${libname}${release}${shared_ext}$major'
15473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15474 shlibpath_var=LD_LIBRARY_PATH
15475 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015476
cristy73bd4a52010-10-05 11:24:23 +000015477 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015478 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015479 $as_echo_n "(cached) " >&6
15480else
15481 lt_cv_shlibpath_overrides_runpath=no
15482 save_LDFLAGS=$LDFLAGS
15483 save_libdir=$libdir
15484 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15485 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015487/* end confdefs.h. */
15488
15489int
15490main ()
15491{
15492
15493 ;
15494 return 0;
15495}
15496_ACEOF
15497if ac_fn_c_try_link "$LINENO"; then :
15498 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015499 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015500fi
15501fi
15502rm -f core conftest.err conftest.$ac_objext \
15503 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015504 LDFLAGS=$save_LDFLAGS
15505 libdir=$save_libdir
15506
15507fi
15508
15509 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015510
15511 # This implies no fast_install, which is unacceptable.
15512 # Some rework will be needed to allow for fast_install
15513 # before this can be enabled.
15514 hardcode_into_libs=yes
15515
15516 # Add ABI-specific directories to the system library path.
15517 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15518
15519 # Append ld.so.conf contents to the search path
15520 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015521 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 +000015522 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015523
cristy73bd4a52010-10-05 11:24:23 +000015524 fi
15525
15526 # We used to test for /lib/ld.so.1 and disable shared libraries on
15527 # powerpc, because MkLinux only supported shared libraries with the
15528 # GNU dynamic linker. Since this was broken with cross compilers,
15529 # most powerpc-linux boxes support dynamic linking these days and
15530 # people can always --disable-shared, the test was removed, and we
15531 # assume the GNU/Linux dynamic linker is in use.
15532 dynamic_linker='GNU/Linux ld.so'
15533 ;;
15534
15535netbsd*)
15536 version_type=sunos
15537 need_lib_prefix=no
15538 need_version=no
15539 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15542 dynamic_linker='NetBSD (a.out) ld.so'
15543 else
15544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15545 soname_spec='${libname}${release}${shared_ext}$major'
15546 dynamic_linker='NetBSD ld.elf_so'
15547 fi
15548 shlibpath_var=LD_LIBRARY_PATH
15549 shlibpath_overrides_runpath=yes
15550 hardcode_into_libs=yes
15551 ;;
15552
15553newsos6)
15554 version_type=linux
15555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15556 shlibpath_var=LD_LIBRARY_PATH
15557 shlibpath_overrides_runpath=yes
15558 ;;
15559
15560*nto* | *qnx*)
15561 version_type=qnx
15562 need_lib_prefix=no
15563 need_version=no
15564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15565 soname_spec='${libname}${release}${shared_ext}$major'
15566 shlibpath_var=LD_LIBRARY_PATH
15567 shlibpath_overrides_runpath=no
15568 hardcode_into_libs=yes
15569 dynamic_linker='ldqnx.so'
15570 ;;
15571
15572openbsd*)
15573 version_type=sunos
15574 sys_lib_dlsearch_path_spec="/usr/lib"
15575 need_lib_prefix=no
15576 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15577 case $host_os in
15578 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15579 *) need_version=no ;;
15580 esac
15581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15583 shlibpath_var=LD_LIBRARY_PATH
15584 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15585 case $host_os in
15586 openbsd2.[89] | openbsd2.[89].*)
15587 shlibpath_overrides_runpath=no
15588 ;;
15589 *)
15590 shlibpath_overrides_runpath=yes
15591 ;;
15592 esac
15593 else
15594 shlibpath_overrides_runpath=yes
15595 fi
15596 ;;
15597
15598os2*)
15599 libname_spec='$name'
15600 shrext_cmds=".dll"
15601 need_lib_prefix=no
15602 library_names_spec='$libname${shared_ext} $libname.a'
15603 dynamic_linker='OS/2 ld.exe'
15604 shlibpath_var=LIBPATH
15605 ;;
15606
15607osf3* | osf4* | osf5*)
15608 version_type=osf
15609 need_lib_prefix=no
15610 need_version=no
15611 soname_spec='${libname}${release}${shared_ext}$major'
15612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15613 shlibpath_var=LD_LIBRARY_PATH
15614 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15615 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15616 ;;
15617
15618rdos*)
15619 dynamic_linker=no
15620 ;;
15621
15622solaris*)
15623 version_type=linux
15624 need_lib_prefix=no
15625 need_version=no
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15627 soname_spec='${libname}${release}${shared_ext}$major'
15628 shlibpath_var=LD_LIBRARY_PATH
15629 shlibpath_overrides_runpath=yes
15630 hardcode_into_libs=yes
15631 # ldd complains unless libraries are executable
15632 postinstall_cmds='chmod +x $lib'
15633 ;;
15634
15635sunos4*)
15636 version_type=sunos
15637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15638 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15639 shlibpath_var=LD_LIBRARY_PATH
15640 shlibpath_overrides_runpath=yes
15641 if test "$with_gnu_ld" = yes; then
15642 need_lib_prefix=no
15643 fi
15644 need_version=yes
15645 ;;
15646
15647sysv4 | sysv4.3*)
15648 version_type=linux
15649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15650 soname_spec='${libname}${release}${shared_ext}$major'
15651 shlibpath_var=LD_LIBRARY_PATH
15652 case $host_vendor in
15653 sni)
15654 shlibpath_overrides_runpath=no
15655 need_lib_prefix=no
15656 runpath_var=LD_RUN_PATH
15657 ;;
15658 siemens)
15659 need_lib_prefix=no
15660 ;;
15661 motorola)
15662 need_lib_prefix=no
15663 need_version=no
15664 shlibpath_overrides_runpath=no
15665 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15666 ;;
15667 esac
15668 ;;
15669
15670sysv4*MP*)
15671 if test -d /usr/nec ;then
15672 version_type=linux
15673 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15674 soname_spec='$libname${shared_ext}.$major'
15675 shlibpath_var=LD_LIBRARY_PATH
15676 fi
15677 ;;
15678
15679sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15680 version_type=freebsd-elf
15681 need_lib_prefix=no
15682 need_version=no
15683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15684 soname_spec='${libname}${release}${shared_ext}$major'
15685 shlibpath_var=LD_LIBRARY_PATH
15686 shlibpath_overrides_runpath=yes
15687 hardcode_into_libs=yes
15688 if test "$with_gnu_ld" = yes; then
15689 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15690 else
15691 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15692 case $host_os in
15693 sco3.2v5*)
15694 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15695 ;;
15696 esac
15697 fi
15698 sys_lib_dlsearch_path_spec='/usr/lib'
15699 ;;
15700
15701tpf*)
15702 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15703 version_type=linux
15704 need_lib_prefix=no
15705 need_version=no
15706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15707 shlibpath_var=LD_LIBRARY_PATH
15708 shlibpath_overrides_runpath=no
15709 hardcode_into_libs=yes
15710 ;;
15711
15712uts4*)
15713 version_type=linux
15714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15715 soname_spec='${libname}${release}${shared_ext}$major'
15716 shlibpath_var=LD_LIBRARY_PATH
15717 ;;
15718
15719*)
15720 dynamic_linker=no
15721 ;;
15722esac
15723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15724$as_echo "$dynamic_linker" >&6; }
15725test "$dynamic_linker" = no && can_build_shared=no
15726
15727variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15728if test "$GCC" = yes; then
15729 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15730fi
15731
15732if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15733 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15734fi
15735if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15736 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15737fi
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
cristy0c60a692010-11-04 01:09:47 +000015825
15826
15827
15828
15829
cristy73bd4a52010-10-05 11:24:23 +000015830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15831$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15832hardcode_action=
15833if test -n "$hardcode_libdir_flag_spec" ||
15834 test -n "$runpath_var" ||
15835 test "X$hardcode_automatic" = "Xyes" ; then
15836
15837 # We can hardcode non-existent directories.
15838 if test "$hardcode_direct" != no &&
15839 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15840 # have to relink, otherwise we might link with an installed library
15841 # when we should be linking with a yet-to-be-installed one
15842 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15843 test "$hardcode_minus_L" != no; then
15844 # Linking always hardcodes the temporary library directory.
15845 hardcode_action=relink
15846 else
15847 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15848 hardcode_action=immediate
15849 fi
15850else
15851 # We cannot hardcode anything, or else we can only hardcode existing
15852 # directories.
15853 hardcode_action=unsupported
15854fi
15855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15856$as_echo "$hardcode_action" >&6; }
15857
15858if test "$hardcode_action" = relink ||
15859 test "$inherit_rpath" = yes; then
15860 # Fast installation is not supported
15861 enable_fast_install=no
15862elif test "$shlibpath_overrides_runpath" = yes ||
15863 test "$enable_shared" = no; then
15864 # Fast installation is not necessary
15865 enable_fast_install=needless
15866fi
15867
15868
15869
15870
15871
15872
15873 if test "x$enable_dlopen" != xyes; then
15874 enable_dlopen=unknown
15875 enable_dlopen_self=unknown
15876 enable_dlopen_self_static=unknown
15877else
15878 lt_cv_dlopen=no
15879 lt_cv_dlopen_libs=
15880
15881 case $host_os in
15882 beos*)
15883 lt_cv_dlopen="load_add_on"
15884 lt_cv_dlopen_libs=
15885 lt_cv_dlopen_self=yes
15886 ;;
15887
15888 mingw* | pw32* | cegcc*)
15889 lt_cv_dlopen="LoadLibrary"
15890 lt_cv_dlopen_libs=
15891 ;;
15892
15893 cygwin*)
15894 lt_cv_dlopen="dlopen"
15895 lt_cv_dlopen_libs=
15896 ;;
15897
15898 darwin*)
15899 # if libdl is installed we need to link against it
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15901$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015902if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015903 $as_echo_n "(cached) " >&6
15904else
15905 ac_check_lib_save_LIBS=$LIBS
15906LIBS="-ldl $LIBS"
15907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15908/* end confdefs.h. */
15909
15910/* Override any GCC internal prototype to avoid an error.
15911 Use char because int might match the return type of a GCC
15912 builtin and then its argument prototype would still apply. */
15913#ifdef __cplusplus
15914extern "C"
15915#endif
15916char dlopen ();
15917int
15918main ()
15919{
15920return dlopen ();
15921 ;
15922 return 0;
15923}
15924_ACEOF
15925if ac_fn_c_try_link "$LINENO"; then :
15926 ac_cv_lib_dl_dlopen=yes
15927else
15928 ac_cv_lib_dl_dlopen=no
15929fi
15930rm -f core conftest.err conftest.$ac_objext \
15931 conftest$ac_exeext conftest.$ac_ext
15932LIBS=$ac_check_lib_save_LIBS
15933fi
15934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15935$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000015936if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015937 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15938else
15939
15940 lt_cv_dlopen="dyld"
15941 lt_cv_dlopen_libs=
15942 lt_cv_dlopen_self=yes
15943
15944fi
15945
15946 ;;
15947
15948 *)
15949 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000015950if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015951 lt_cv_dlopen="shl_load"
15952else
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15954$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015955if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015956 $as_echo_n "(cached) " >&6
15957else
15958 ac_check_lib_save_LIBS=$LIBS
15959LIBS="-ldld $LIBS"
15960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15961/* end confdefs.h. */
15962
15963/* Override any GCC internal prototype to avoid an error.
15964 Use char because int might match the return type of a GCC
15965 builtin and then its argument prototype would still apply. */
15966#ifdef __cplusplus
15967extern "C"
15968#endif
15969char shl_load ();
15970int
15971main ()
15972{
15973return shl_load ();
15974 ;
15975 return 0;
15976}
15977_ACEOF
15978if ac_fn_c_try_link "$LINENO"; then :
15979 ac_cv_lib_dld_shl_load=yes
15980else
15981 ac_cv_lib_dld_shl_load=no
15982fi
15983rm -f core conftest.err conftest.$ac_objext \
15984 conftest$ac_exeext conftest.$ac_ext
15985LIBS=$ac_check_lib_save_LIBS
15986fi
15987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15988$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000015989if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015990 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15991else
15992 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000015993if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015994 lt_cv_dlopen="dlopen"
15995else
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15997$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015998if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015999 $as_echo_n "(cached) " >&6
16000else
16001 ac_check_lib_save_LIBS=$LIBS
16002LIBS="-ldl $LIBS"
16003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16004/* end confdefs.h. */
16005
16006/* Override any GCC internal prototype to avoid an error.
16007 Use char because int might match the return type of a GCC
16008 builtin and then its argument prototype would still apply. */
16009#ifdef __cplusplus
16010extern "C"
16011#endif
16012char dlopen ();
16013int
16014main ()
16015{
16016return dlopen ();
16017 ;
16018 return 0;
16019}
16020_ACEOF
16021if ac_fn_c_try_link "$LINENO"; then :
16022 ac_cv_lib_dl_dlopen=yes
16023else
16024 ac_cv_lib_dl_dlopen=no
16025fi
16026rm -f core conftest.err conftest.$ac_objext \
16027 conftest$ac_exeext conftest.$ac_ext
16028LIBS=$ac_check_lib_save_LIBS
16029fi
16030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16031$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016032if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016033 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16034else
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16036$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016037if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016038 $as_echo_n "(cached) " >&6
16039else
16040 ac_check_lib_save_LIBS=$LIBS
16041LIBS="-lsvld $LIBS"
16042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16043/* end confdefs.h. */
16044
16045/* Override any GCC internal prototype to avoid an error.
16046 Use char because int might match the return type of a GCC
16047 builtin and then its argument prototype would still apply. */
16048#ifdef __cplusplus
16049extern "C"
16050#endif
16051char dlopen ();
16052int
16053main ()
16054{
16055return dlopen ();
16056 ;
16057 return 0;
16058}
16059_ACEOF
16060if ac_fn_c_try_link "$LINENO"; then :
16061 ac_cv_lib_svld_dlopen=yes
16062else
16063 ac_cv_lib_svld_dlopen=no
16064fi
16065rm -f core conftest.err conftest.$ac_objext \
16066 conftest$ac_exeext conftest.$ac_ext
16067LIBS=$ac_check_lib_save_LIBS
16068fi
16069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16070$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016071if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016072 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16073else
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16075$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016076if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016077 $as_echo_n "(cached) " >&6
16078else
16079 ac_check_lib_save_LIBS=$LIBS
16080LIBS="-ldld $LIBS"
16081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16082/* end confdefs.h. */
16083
16084/* Override any GCC internal prototype to avoid an error.
16085 Use char because int might match the return type of a GCC
16086 builtin and then its argument prototype would still apply. */
16087#ifdef __cplusplus
16088extern "C"
16089#endif
16090char dld_link ();
16091int
16092main ()
16093{
16094return dld_link ();
16095 ;
16096 return 0;
16097}
16098_ACEOF
16099if ac_fn_c_try_link "$LINENO"; then :
16100 ac_cv_lib_dld_dld_link=yes
16101else
16102 ac_cv_lib_dld_dld_link=no
16103fi
16104rm -f core conftest.err conftest.$ac_objext \
16105 conftest$ac_exeext conftest.$ac_ext
16106LIBS=$ac_check_lib_save_LIBS
16107fi
16108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16109$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016110if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016111 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16112fi
16113
16114
16115fi
16116
16117
16118fi
16119
16120
16121fi
16122
16123
16124fi
16125
16126
16127fi
16128
16129 ;;
16130 esac
16131
16132 if test "x$lt_cv_dlopen" != xno; then
16133 enable_dlopen=yes
16134 else
16135 enable_dlopen=no
16136 fi
16137
16138 case $lt_cv_dlopen in
16139 dlopen)
16140 save_CPPFLAGS="$CPPFLAGS"
16141 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16142
16143 save_LDFLAGS="$LDFLAGS"
16144 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16145
16146 save_LIBS="$LIBS"
16147 LIBS="$lt_cv_dlopen_libs $LIBS"
16148
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16150$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016151if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016152 $as_echo_n "(cached) " >&6
16153else
16154 if test "$cross_compiling" = yes; then :
16155 lt_cv_dlopen_self=cross
16156else
16157 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16158 lt_status=$lt_dlunknown
16159 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016160#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016161#include "confdefs.h"
16162
16163#if HAVE_DLFCN_H
16164#include <dlfcn.h>
16165#endif
16166
16167#include <stdio.h>
16168
16169#ifdef RTLD_GLOBAL
16170# define LT_DLGLOBAL RTLD_GLOBAL
16171#else
16172# ifdef DL_GLOBAL
16173# define LT_DLGLOBAL DL_GLOBAL
16174# else
16175# define LT_DLGLOBAL 0
16176# endif
16177#endif
16178
16179/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16180 find out it does not work in some platform. */
16181#ifndef LT_DLLAZY_OR_NOW
16182# ifdef RTLD_LAZY
16183# define LT_DLLAZY_OR_NOW RTLD_LAZY
16184# else
16185# ifdef DL_LAZY
16186# define LT_DLLAZY_OR_NOW DL_LAZY
16187# else
16188# ifdef RTLD_NOW
16189# define LT_DLLAZY_OR_NOW RTLD_NOW
16190# else
16191# ifdef DL_NOW
16192# define LT_DLLAZY_OR_NOW DL_NOW
16193# else
16194# define LT_DLLAZY_OR_NOW 0
16195# endif
16196# endif
16197# endif
16198# endif
16199#endif
16200
cristy0c60a692010-11-04 01:09:47 +000016201/* When -fvisbility=hidden is used, assume the code has been annotated
16202 correspondingly for the symbols needed. */
16203#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016204int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016205#endif
16206
cristyda16f162011-02-19 23:52:17 +000016207int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016208int main ()
16209{
16210 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16211 int status = $lt_dlunknown;
16212
16213 if (self)
16214 {
16215 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016216 else
16217 {
16218 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16219 else puts (dlerror ());
16220 }
cristy73bd4a52010-10-05 11:24:23 +000016221 /* dlclose (self); */
16222 }
16223 else
16224 puts (dlerror ());
16225
16226 return status;
16227}
16228_LT_EOF
16229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16230 (eval $ac_link) 2>&5
16231 ac_status=$?
16232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16233 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16234 (./conftest; exit; ) >&5 2>/dev/null
16235 lt_status=$?
16236 case x$lt_status in
16237 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16238 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16239 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16240 esac
16241 else :
16242 # compilation failed
16243 lt_cv_dlopen_self=no
16244 fi
16245fi
16246rm -fr conftest*
16247
16248
16249fi
16250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16251$as_echo "$lt_cv_dlopen_self" >&6; }
16252
16253 if test "x$lt_cv_dlopen_self" = xyes; then
16254 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16256$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016257if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016258 $as_echo_n "(cached) " >&6
16259else
16260 if test "$cross_compiling" = yes; then :
16261 lt_cv_dlopen_self_static=cross
16262else
16263 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16264 lt_status=$lt_dlunknown
16265 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016266#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016267#include "confdefs.h"
16268
16269#if HAVE_DLFCN_H
16270#include <dlfcn.h>
16271#endif
16272
16273#include <stdio.h>
16274
16275#ifdef RTLD_GLOBAL
16276# define LT_DLGLOBAL RTLD_GLOBAL
16277#else
16278# ifdef DL_GLOBAL
16279# define LT_DLGLOBAL DL_GLOBAL
16280# else
16281# define LT_DLGLOBAL 0
16282# endif
16283#endif
16284
16285/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16286 find out it does not work in some platform. */
16287#ifndef LT_DLLAZY_OR_NOW
16288# ifdef RTLD_LAZY
16289# define LT_DLLAZY_OR_NOW RTLD_LAZY
16290# else
16291# ifdef DL_LAZY
16292# define LT_DLLAZY_OR_NOW DL_LAZY
16293# else
16294# ifdef RTLD_NOW
16295# define LT_DLLAZY_OR_NOW RTLD_NOW
16296# else
16297# ifdef DL_NOW
16298# define LT_DLLAZY_OR_NOW DL_NOW
16299# else
16300# define LT_DLLAZY_OR_NOW 0
16301# endif
16302# endif
16303# endif
16304# endif
16305#endif
16306
cristy0c60a692010-11-04 01:09:47 +000016307/* When -fvisbility=hidden is used, assume the code has been annotated
16308 correspondingly for the symbols needed. */
16309#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016310int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016311#endif
16312
cristyda16f162011-02-19 23:52:17 +000016313int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016314int main ()
16315{
16316 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16317 int status = $lt_dlunknown;
16318
16319 if (self)
16320 {
16321 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016322 else
16323 {
16324 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16325 else puts (dlerror ());
16326 }
cristy73bd4a52010-10-05 11:24:23 +000016327 /* dlclose (self); */
16328 }
16329 else
16330 puts (dlerror ());
16331
16332 return status;
16333}
16334_LT_EOF
16335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16336 (eval $ac_link) 2>&5
16337 ac_status=$?
16338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16339 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16340 (./conftest; exit; ) >&5 2>/dev/null
16341 lt_status=$?
16342 case x$lt_status in
16343 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16344 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16345 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16346 esac
16347 else :
16348 # compilation failed
16349 lt_cv_dlopen_self_static=no
16350 fi
16351fi
16352rm -fr conftest*
16353
16354
16355fi
16356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16357$as_echo "$lt_cv_dlopen_self_static" >&6; }
16358 fi
16359
16360 CPPFLAGS="$save_CPPFLAGS"
16361 LDFLAGS="$save_LDFLAGS"
16362 LIBS="$save_LIBS"
16363 ;;
16364 esac
16365
16366 case $lt_cv_dlopen_self in
16367 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16368 *) enable_dlopen_self=unknown ;;
16369 esac
16370
16371 case $lt_cv_dlopen_self_static in
16372 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16373 *) enable_dlopen_self_static=unknown ;;
16374 esac
16375fi
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393striplib=
16394old_striplib=
16395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16396$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16397if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16398 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16399 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16401$as_echo "yes" >&6; }
16402else
16403# FIXME - insert some real tests, host_os isn't really good enough
16404 case $host_os in
16405 darwin*)
16406 if test -n "$STRIP" ; then
16407 striplib="$STRIP -x"
16408 old_striplib="$STRIP -S"
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16410$as_echo "yes" >&6; }
16411 else
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16413$as_echo "no" >&6; }
16414 fi
16415 ;;
16416 *)
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16418$as_echo "no" >&6; }
16419 ;;
16420 esac
16421fi
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434 # Report which library types will actually be built
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16436$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16438$as_echo "$can_build_shared" >&6; }
16439
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16441$as_echo_n "checking whether to build shared libraries... " >&6; }
16442 test "$can_build_shared" = "no" && enable_shared=no
16443
16444 # On AIX, shared libraries and static libraries use the same namespace, and
16445 # are all built from PIC.
16446 case $host_os in
16447 aix3*)
16448 test "$enable_shared" = yes && enable_static=no
16449 if test -n "$RANLIB"; then
16450 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16451 postinstall_cmds='$RANLIB $lib'
16452 fi
16453 ;;
16454
16455 aix[4-9]*)
16456 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16457 test "$enable_shared" = yes && enable_static=no
16458 fi
16459 ;;
16460 esac
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16462$as_echo "$enable_shared" >&6; }
16463
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16465$as_echo_n "checking whether to build static libraries... " >&6; }
16466 # Make sure either enable_shared or enable_static is yes.
16467 test "$enable_shared" = yes || enable_static=yes
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16469$as_echo "$enable_static" >&6; }
16470
16471
16472
16473
16474fi
16475ac_ext=c
16476ac_cpp='$CPP $CPPFLAGS'
16477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16479ac_compiler_gnu=$ac_cv_c_compiler_gnu
16480
16481CC="$lt_save_CC"
16482
cristy0c60a692010-11-04 01:09:47 +000016483 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16484 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16485 (test "X$CXX" != "Xg++"))) ; then
16486 ac_ext=cpp
16487ac_cpp='$CXXCPP $CPPFLAGS'
16488ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16489ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16490ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16492$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16493if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016494 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016495 $as_echo_n "(cached) " >&6
16496else
16497 # Double quotes because CXXCPP needs to be expanded
16498 for CXXCPP in "$CXX -E" "/lib/cpp"
16499 do
16500 ac_preproc_ok=false
16501for ac_cxx_preproc_warn_flag in '' yes
16502do
16503 # Use a header file that comes with gcc, so configuring glibc
16504 # with a fresh cross-compiler works.
16505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16506 # <limits.h> exists even on freestanding compilers.
16507 # On the NeXT, cc -E runs the code through the compiler's parser,
16508 # not just through cpp. "Syntax error" is here to catch this case.
16509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16510/* end confdefs.h. */
16511#ifdef __STDC__
16512# include <limits.h>
16513#else
16514# include <assert.h>
16515#endif
16516 Syntax error
16517_ACEOF
16518if ac_fn_cxx_try_cpp "$LINENO"; then :
16519
16520else
16521 # Broken: fails on valid input.
16522continue
16523fi
cristyda16f162011-02-19 23:52:17 +000016524rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016525
16526 # OK, works on sane cases. Now check whether nonexistent headers
16527 # can be detected and how.
16528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16529/* end confdefs.h. */
16530#include <ac_nonexistent.h>
16531_ACEOF
16532if ac_fn_cxx_try_cpp "$LINENO"; then :
16533 # Broken: success on invalid input.
16534continue
16535else
16536 # Passes both tests.
16537ac_preproc_ok=:
16538break
16539fi
cristyda16f162011-02-19 23:52:17 +000016540rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016541
16542done
16543# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016544rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016545if $ac_preproc_ok; then :
16546 break
16547fi
16548
16549 done
16550 ac_cv_prog_CXXCPP=$CXXCPP
16551
16552fi
16553 CXXCPP=$ac_cv_prog_CXXCPP
16554else
16555 ac_cv_prog_CXXCPP=$CXXCPP
16556fi
16557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16558$as_echo "$CXXCPP" >&6; }
16559ac_preproc_ok=false
16560for ac_cxx_preproc_warn_flag in '' yes
16561do
16562 # Use a header file that comes with gcc, so configuring glibc
16563 # with a fresh cross-compiler works.
16564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16565 # <limits.h> exists even on freestanding compilers.
16566 # On the NeXT, cc -E runs the code through the compiler's parser,
16567 # not just through cpp. "Syntax error" is here to catch this case.
16568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16569/* end confdefs.h. */
16570#ifdef __STDC__
16571# include <limits.h>
16572#else
16573# include <assert.h>
16574#endif
16575 Syntax error
16576_ACEOF
16577if ac_fn_cxx_try_cpp "$LINENO"; then :
16578
16579else
16580 # Broken: fails on valid input.
16581continue
16582fi
cristyda16f162011-02-19 23:52:17 +000016583rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016584
16585 # OK, works on sane cases. Now check whether nonexistent headers
16586 # can be detected and how.
16587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588/* end confdefs.h. */
16589#include <ac_nonexistent.h>
16590_ACEOF
16591if ac_fn_cxx_try_cpp "$LINENO"; then :
16592 # Broken: success on invalid input.
16593continue
16594else
16595 # Passes both tests.
16596ac_preproc_ok=:
16597break
16598fi
cristyda16f162011-02-19 23:52:17 +000016599rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016600
16601done
16602# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016603rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016604if $ac_preproc_ok; then :
16605
16606else
16607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16609as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16610See \`config.log' for more details" "$LINENO" 5; }
16611fi
16612
16613ac_ext=c
16614ac_cpp='$CPP $CPPFLAGS'
16615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16617ac_compiler_gnu=$ac_cv_c_compiler_gnu
16618
16619else
16620 _lt_caught_CXX_error=yes
16621fi
cristy73bd4a52010-10-05 11:24:23 +000016622
16623ac_ext=cpp
16624ac_cpp='$CXXCPP $CPPFLAGS'
16625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16628
16629archive_cmds_need_lc_CXX=no
16630allow_undefined_flag_CXX=
16631always_export_symbols_CXX=no
16632archive_expsym_cmds_CXX=
16633compiler_needs_object_CXX=no
16634export_dynamic_flag_spec_CXX=
16635hardcode_direct_CXX=no
16636hardcode_direct_absolute_CXX=no
16637hardcode_libdir_flag_spec_CXX=
16638hardcode_libdir_flag_spec_ld_CXX=
16639hardcode_libdir_separator_CXX=
16640hardcode_minus_L_CXX=no
16641hardcode_shlibpath_var_CXX=unsupported
16642hardcode_automatic_CXX=no
16643inherit_rpath_CXX=no
16644module_cmds_CXX=
16645module_expsym_cmds_CXX=
16646link_all_deplibs_CXX=unknown
16647old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016648reload_flag_CXX=$reload_flag
16649reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016650no_undefined_flag_CXX=
16651whole_archive_flag_spec_CXX=
16652enable_shared_with_static_runtimes_CXX=no
16653
16654# Source file extension for C++ test sources.
16655ac_ext=cpp
16656
16657# Object file extension for compiled C++ test sources.
16658objext=o
16659objext_CXX=$objext
16660
16661# No sense in running all these tests if we already determined that
16662# the CXX compiler isn't working. Some variables (like enable_shared)
16663# are currently assumed to apply to all compilers on this platform,
16664# and will be corrupted by setting them based on a non-working compiler.
16665if test "$_lt_caught_CXX_error" != yes; then
16666 # Code to be used in simple compile tests
16667 lt_simple_compile_test_code="int some_variable = 0;"
16668
16669 # Code to be used in simple link tests
16670 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16671
16672 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16673
16674
16675
16676
16677
16678
16679# If no C compiler was specified, use CC.
16680LTCC=${LTCC-"$CC"}
16681
16682# If no C compiler flags were specified, use CFLAGS.
16683LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16684
16685# Allow CC to be a program name with arguments.
16686compiler=$CC
16687
16688
16689 # save warnings/boilerplate of simple test code
16690 ac_outfile=conftest.$ac_objext
16691echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16692eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16693_lt_compiler_boilerplate=`cat conftest.err`
16694$RM conftest*
16695
16696 ac_outfile=conftest.$ac_objext
16697echo "$lt_simple_link_test_code" >conftest.$ac_ext
16698eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16699_lt_linker_boilerplate=`cat conftest.err`
16700$RM -r conftest*
16701
16702
16703 # Allow CC to be a program name with arguments.
16704 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000016705 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016706 lt_save_LD=$LD
16707 lt_save_GCC=$GCC
16708 GCC=$GXX
16709 lt_save_with_gnu_ld=$with_gnu_ld
16710 lt_save_path_LD=$lt_cv_path_LD
16711 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16712 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16713 else
16714 $as_unset lt_cv_prog_gnu_ld
16715 fi
16716 if test -n "${lt_cv_path_LDCXX+set}"; then
16717 lt_cv_path_LD=$lt_cv_path_LDCXX
16718 else
16719 $as_unset lt_cv_path_LD
16720 fi
16721 test -z "${LDCXX+set}" || LD=$LDCXX
16722 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000016723 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016724 compiler=$CC
16725 compiler_CXX=$CC
16726 for cc_temp in $compiler""; do
16727 case $cc_temp in
16728 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16729 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16730 \-*) ;;
16731 *) break;;
16732 esac
16733done
cristy0c60a692010-11-04 01:09:47 +000016734cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000016735
16736
16737 if test -n "$compiler"; then
16738 # We don't want -fno-exception when compiling C++ code, so set the
16739 # no_builtin_flag separately
16740 if test "$GXX" = yes; then
16741 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16742 else
16743 lt_prog_compiler_no_builtin_flag_CXX=
16744 fi
16745
16746 if test "$GXX" = yes; then
16747 # Set up default GNU C++ configuration
16748
16749
16750
16751# Check whether --with-gnu-ld was given.
16752if test "${with_gnu_ld+set}" = set; then :
16753 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16754else
16755 with_gnu_ld=no
16756fi
16757
16758ac_prog=ld
16759if test "$GCC" = yes; then
16760 # Check if gcc -print-prog-name=ld gives a path.
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16762$as_echo_n "checking for ld used by $CC... " >&6; }
16763 case $host in
16764 *-*-mingw*)
16765 # gcc leaves a trailing carriage return which upsets mingw
16766 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16767 *)
16768 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16769 esac
16770 case $ac_prog in
16771 # Accept absolute paths.
16772 [\\/]* | ?:[\\/]*)
16773 re_direlt='/[^/][^/]*/\.\./'
16774 # Canonicalize the pathname of ld
16775 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16776 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16777 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16778 done
16779 test -z "$LD" && LD="$ac_prog"
16780 ;;
16781 "")
16782 # If it fails, then pretend we aren't using GCC.
16783 ac_prog=ld
16784 ;;
16785 *)
16786 # If it is relative, then search for the first ld in PATH.
16787 with_gnu_ld=unknown
16788 ;;
16789 esac
16790elif test "$with_gnu_ld" = yes; then
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16792$as_echo_n "checking for GNU ld... " >&6; }
16793else
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16795$as_echo_n "checking for non-GNU ld... " >&6; }
16796fi
cristyda16f162011-02-19 23:52:17 +000016797if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016798 $as_echo_n "(cached) " >&6
16799else
16800 if test -z "$LD"; then
16801 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16802 for ac_dir in $PATH; do
16803 IFS="$lt_save_ifs"
16804 test -z "$ac_dir" && ac_dir=.
16805 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16806 lt_cv_path_LD="$ac_dir/$ac_prog"
16807 # Check to see if the program is GNU ld. I'd rather use --version,
16808 # but apparently some variants of GNU ld only accept -v.
16809 # Break only if it was the GNU/non-GNU ld that we prefer.
16810 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16811 *GNU* | *'with BFD'*)
16812 test "$with_gnu_ld" != no && break
16813 ;;
16814 *)
16815 test "$with_gnu_ld" != yes && break
16816 ;;
16817 esac
16818 fi
16819 done
16820 IFS="$lt_save_ifs"
16821else
16822 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16823fi
16824fi
16825
16826LD="$lt_cv_path_LD"
16827if test -n "$LD"; then
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16829$as_echo "$LD" >&6; }
16830else
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16832$as_echo "no" >&6; }
16833fi
cristy98dddb52010-11-04 00:30:15 +000016834test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000016835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16836$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016837if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016838 $as_echo_n "(cached) " >&6
16839else
16840 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16841case `$LD -v 2>&1 </dev/null` in
16842*GNU* | *'with BFD'*)
16843 lt_cv_prog_gnu_ld=yes
16844 ;;
16845*)
16846 lt_cv_prog_gnu_ld=no
16847 ;;
16848esac
16849fi
16850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16851$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16852with_gnu_ld=$lt_cv_prog_gnu_ld
16853
16854
16855
16856
16857
16858
16859
16860 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16861 # archiving commands below assume that GNU ld is being used.
16862 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000016863 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16864 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 +000016865
16866 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16867 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16868
16869 # If archive_cmds runs LD, not CC, wlarc should be empty
16870 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16871 # investigate it a little bit more. (MM)
16872 wlarc='${wl}'
16873
16874 # ancient GNU ld didn't support --whole-archive et. al.
16875 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16876 $GREP 'no-whole-archive' > /dev/null; then
16877 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16878 else
16879 whole_archive_flag_spec_CXX=
16880 fi
16881 else
16882 with_gnu_ld=no
16883 wlarc=
16884
16885 # A generic and very simple default shared library creation
16886 # command for GNU C++ for the case where it uses the native
16887 # linker, instead of GNU ld. If possible, this setting should
16888 # overridden to take advantage of the native linker features on
16889 # the platform it is being used on.
16890 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16891 fi
16892
16893 # Commands to make compiler produce verbose output that lists
16894 # what "hidden" libraries, object files and flags are used when
16895 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000016896 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000016897
16898 else
16899 GXX=no
16900 with_gnu_ld=no
16901 wlarc=
16902 fi
16903
16904 # PORTME: fill in a description of your system's C++ link characteristics
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16906$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16907 ld_shlibs_CXX=yes
16908 case $host_os in
16909 aix3*)
16910 # FIXME: insert proper C++ library support
16911 ld_shlibs_CXX=no
16912 ;;
16913 aix[4-9]*)
16914 if test "$host_cpu" = ia64; then
16915 # On IA64, the linker does run time linking by default, so we don't
16916 # have to do anything special.
16917 aix_use_runtimelinking=no
16918 exp_sym_flag='-Bexport'
16919 no_entry_flag=""
16920 else
16921 aix_use_runtimelinking=no
16922
16923 # Test if we are trying to use run time linking or normal
16924 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16925 # need to do runtime linking.
16926 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16927 for ld_flag in $LDFLAGS; do
16928 case $ld_flag in
16929 *-brtl*)
16930 aix_use_runtimelinking=yes
16931 break
16932 ;;
16933 esac
16934 done
16935 ;;
16936 esac
16937
16938 exp_sym_flag='-bexport'
16939 no_entry_flag='-bnoentry'
16940 fi
16941
16942 # When large executables or shared objects are built, AIX ld can
16943 # have problems creating the table of contents. If linking a library
16944 # or program results in "error TOC overflow" add -mminimal-toc to
16945 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16946 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16947
16948 archive_cmds_CXX=''
16949 hardcode_direct_CXX=yes
16950 hardcode_direct_absolute_CXX=yes
16951 hardcode_libdir_separator_CXX=':'
16952 link_all_deplibs_CXX=yes
16953 file_list_spec_CXX='${wl}-f,'
16954
16955 if test "$GXX" = yes; then
16956 case $host_os in aix4.[012]|aix4.[012].*)
16957 # We only want to do this on AIX 4.2 and lower, the check
16958 # below for broken collect2 doesn't work under 4.3+
16959 collect2name=`${CC} -print-prog-name=collect2`
16960 if test -f "$collect2name" &&
16961 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16962 then
16963 # We have reworked collect2
16964 :
16965 else
16966 # We have old collect2
16967 hardcode_direct_CXX=unsupported
16968 # It fails to find uninstalled libraries when the uninstalled
16969 # path is not listed in the libpath. Setting hardcode_minus_L
16970 # to unsupported forces relinking
16971 hardcode_minus_L_CXX=yes
16972 hardcode_libdir_flag_spec_CXX='-L$libdir'
16973 hardcode_libdir_separator_CXX=
16974 fi
16975 esac
16976 shared_flag='-shared'
16977 if test "$aix_use_runtimelinking" = yes; then
16978 shared_flag="$shared_flag "'${wl}-G'
16979 fi
16980 else
16981 # not using gcc
16982 if test "$host_cpu" = ia64; then
16983 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16984 # chokes on -Wl,-G. The following line is correct:
16985 shared_flag='-G'
16986 else
16987 if test "$aix_use_runtimelinking" = yes; then
16988 shared_flag='${wl}-G'
16989 else
16990 shared_flag='${wl}-bM:SRE'
16991 fi
16992 fi
16993 fi
16994
16995 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16996 # It seems that -bexpall does not export symbols beginning with
16997 # underscore (_), so it is better to generate a list of symbols to
16998 # export.
16999 always_export_symbols_CXX=yes
17000 if test "$aix_use_runtimelinking" = yes; then
17001 # Warning - without using the other runtime loading flags (-brtl),
17002 # -berok will link without error, but may produce a broken library.
17003 allow_undefined_flag_CXX='-berok'
17004 # Determine the default libpath from the value encoded in an empty
17005 # executable.
cristyda16f162011-02-19 23:52:17 +000017006 if test "${lt_cv_aix_libpath+set}" = set; then
17007 aix_libpath=$lt_cv_aix_libpath
17008else
17009 if ${lt_cv_aix_libpath__CXX+:} false; then :
17010 $as_echo_n "(cached) " >&6
17011else
17012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017013/* end confdefs.h. */
17014
17015int
17016main ()
17017{
17018
17019 ;
17020 return 0;
17021}
17022_ACEOF
17023if ac_fn_cxx_try_link "$LINENO"; then :
17024
cristyda16f162011-02-19 23:52:17 +000017025 lt_aix_libpath_sed='
17026 /Import File Strings/,/^$/ {
17027 /^0/ {
17028 s/^0 *\([^ ]*\) *$/\1/
17029 p
17030 }
17031 }'
17032 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17033 # Check for a 64-bit object if we didn't find anything.
17034 if test -z "$lt_cv_aix_libpath__CXX"; then
17035 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17036 fi
cristy73bd4a52010-10-05 11:24:23 +000017037fi
17038rm -f core conftest.err conftest.$ac_objext \
17039 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017040 if test -z "$lt_cv_aix_libpath__CXX"; then
17041 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17042 fi
17043
17044fi
17045
17046 aix_libpath=$lt_cv_aix_libpath__CXX
17047fi
cristy73bd4a52010-10-05 11:24:23 +000017048
17049 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17050
cristy0c60a692010-11-04 01:09:47 +000017051 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 +000017052 else
17053 if test "$host_cpu" = ia64; then
17054 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17055 allow_undefined_flag_CXX="-z nodefs"
17056 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"
17057 else
17058 # Determine the default libpath from the value encoded in an
17059 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017060 if test "${lt_cv_aix_libpath+set}" = set; then
17061 aix_libpath=$lt_cv_aix_libpath
17062else
17063 if ${lt_cv_aix_libpath__CXX+:} false; then :
17064 $as_echo_n "(cached) " >&6
17065else
17066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017067/* end confdefs.h. */
17068
17069int
17070main ()
17071{
17072
17073 ;
17074 return 0;
17075}
17076_ACEOF
17077if ac_fn_cxx_try_link "$LINENO"; then :
17078
cristyda16f162011-02-19 23:52:17 +000017079 lt_aix_libpath_sed='
17080 /Import File Strings/,/^$/ {
17081 /^0/ {
17082 s/^0 *\([^ ]*\) *$/\1/
17083 p
17084 }
17085 }'
17086 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17087 # Check for a 64-bit object if we didn't find anything.
17088 if test -z "$lt_cv_aix_libpath__CXX"; then
17089 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17090 fi
cristy73bd4a52010-10-05 11:24:23 +000017091fi
17092rm -f core conftest.err conftest.$ac_objext \
17093 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017094 if test -z "$lt_cv_aix_libpath__CXX"; then
17095 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17096 fi
17097
17098fi
17099
17100 aix_libpath=$lt_cv_aix_libpath__CXX
17101fi
cristy73bd4a52010-10-05 11:24:23 +000017102
17103 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17104 # Warning - without using the other run time loading flags,
17105 # -berok will link without error, but may produce a broken library.
17106 no_undefined_flag_CXX=' ${wl}-bernotok'
17107 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017108 if test "$with_gnu_ld" = yes; then
17109 # We only use this code for GNU lds that support --whole-archive.
17110 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17111 else
17112 # Exported symbols can be pulled into shared objects from archives
17113 whole_archive_flag_spec_CXX='$convenience'
17114 fi
cristy73bd4a52010-10-05 11:24:23 +000017115 archive_cmds_need_lc_CXX=yes
17116 # This is similar to how AIX traditionally builds its shared
17117 # libraries.
17118 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'
17119 fi
17120 fi
17121 ;;
17122
17123 beos*)
17124 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17125 allow_undefined_flag_CXX=unsupported
17126 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17127 # support --undefined. This deserves some investigation. FIXME
17128 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17129 else
17130 ld_shlibs_CXX=no
17131 fi
17132 ;;
17133
17134 chorus*)
17135 case $cc_basename in
17136 *)
17137 # FIXME: insert proper C++ library support
17138 ld_shlibs_CXX=no
17139 ;;
17140 esac
17141 ;;
17142
17143 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017144 case $GXX,$cc_basename in
17145 ,cl* | no,cl*)
17146 # Native MSVC
17147 # hardcode_libdir_flag_spec is actually meaningless, as there is
17148 # no search path for DLLs.
17149 hardcode_libdir_flag_spec_CXX=' '
17150 allow_undefined_flag_CXX=unsupported
17151 always_export_symbols_CXX=yes
17152 file_list_spec_CXX='@'
17153 # Tell ltmain to make .lib files, not .a files.
17154 libext=lib
17155 # Tell ltmain to make .dll files, not .so files.
17156 shrext_cmds=".dll"
17157 # FIXME: Setting linknames here is a bad hack.
17158 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17159 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17160 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17161 else
17162 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17163 fi~
17164 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17165 linknames='
17166 # The linker will not automatically build a static lib if we build a DLL.
17167 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17168 enable_shared_with_static_runtimes_CXX=yes
17169 # Don't use ranlib
17170 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17171 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17172 lt_tool_outputfile="@TOOL_OUTPUT@"~
17173 case $lt_outputfile in
17174 *.exe|*.EXE) ;;
17175 *)
17176 lt_outputfile="$lt_outputfile.exe"
17177 lt_tool_outputfile="$lt_tool_outputfile.exe"
17178 ;;
17179 esac~
17180 func_to_tool_file "$lt_outputfile"~
17181 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17182 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17183 $RM "$lt_outputfile.manifest";
17184 fi'
17185 ;;
17186 *)
17187 # g++
17188 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17189 # as there is no search path for DLLs.
17190 hardcode_libdir_flag_spec_CXX='-L$libdir'
17191 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17192 allow_undefined_flag_CXX=unsupported
17193 always_export_symbols_CXX=no
17194 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017195
cristyda16f162011-02-19 23:52:17 +000017196 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17197 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'
17198 # If the export-symbols file already is a .def file (1st line
17199 # is EXPORTS), use it as is; otherwise, prepend...
17200 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17201 cp $export_symbols $output_objdir/$soname.def;
17202 else
17203 echo EXPORTS > $output_objdir/$soname.def;
17204 cat $export_symbols >> $output_objdir/$soname.def;
17205 fi~
17206 $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'
17207 else
17208 ld_shlibs_CXX=no
17209 fi
17210 ;;
17211 esac
17212 ;;
cristy73bd4a52010-10-05 11:24:23 +000017213 darwin* | rhapsody*)
17214
17215
17216 archive_cmds_need_lc_CXX=no
17217 hardcode_direct_CXX=no
17218 hardcode_automatic_CXX=yes
17219 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017220 if test "$lt_cv_ld_force_load" = "yes"; then
17221 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\"`'
17222 else
17223 whole_archive_flag_spec_CXX=''
17224 fi
cristy73bd4a52010-10-05 11:24:23 +000017225 link_all_deplibs_CXX=yes
17226 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17227 case $cc_basename in
17228 ifort*) _lt_dar_can_shared=yes ;;
17229 *) _lt_dar_can_shared=$GCC ;;
17230 esac
17231 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017232 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017233 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}"
17234 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17235 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}"
17236 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}"
17237 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17238 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}"
17239 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}"
17240 fi
17241
17242 else
17243 ld_shlibs_CXX=no
17244 fi
17245
17246 ;;
17247
17248 dgux*)
17249 case $cc_basename in
17250 ec++*)
17251 # FIXME: insert proper C++ library support
17252 ld_shlibs_CXX=no
17253 ;;
17254 ghcx*)
17255 # Green Hills C++ Compiler
17256 # FIXME: insert proper C++ library support
17257 ld_shlibs_CXX=no
17258 ;;
17259 *)
17260 # FIXME: insert proper C++ library support
17261 ld_shlibs_CXX=no
17262 ;;
17263 esac
17264 ;;
17265
17266 freebsd[12]*)
17267 # C++ shared libraries reported to be fairly broken before
17268 # switch to ELF
17269 ld_shlibs_CXX=no
17270 ;;
17271
17272 freebsd-elf*)
17273 archive_cmds_need_lc_CXX=no
17274 ;;
17275
17276 freebsd* | dragonfly*)
17277 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17278 # conventions
17279 ld_shlibs_CXX=yes
17280 ;;
17281
17282 gnu*)
17283 ;;
17284
cristy0c60a692010-11-04 01:09:47 +000017285 haiku*)
17286 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17287 link_all_deplibs_CXX=yes
17288 ;;
17289
cristy73bd4a52010-10-05 11:24:23 +000017290 hpux9*)
17291 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17292 hardcode_libdir_separator_CXX=:
17293 export_dynamic_flag_spec_CXX='${wl}-E'
17294 hardcode_direct_CXX=yes
17295 hardcode_minus_L_CXX=yes # Not in the search PATH,
17296 # but as the default
17297 # location of the library.
17298
17299 case $cc_basename in
17300 CC*)
17301 # FIXME: insert proper C++ library support
17302 ld_shlibs_CXX=no
17303 ;;
17304 aCC*)
17305 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'
17306 # Commands to make compiler produce verbose output that lists
17307 # what "hidden" libraries, object files and flags are used when
17308 # linking a shared library.
17309 #
17310 # There doesn't appear to be a way to prevent this compiler from
17311 # explicitly linking system object files so we need to strip them
17312 # from the output so that they don't get included in the library
17313 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017314 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 +000017315 ;;
17316 *)
17317 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017318 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 +000017319 else
17320 # FIXME: insert proper C++ library support
17321 ld_shlibs_CXX=no
17322 fi
17323 ;;
17324 esac
17325 ;;
17326
17327 hpux10*|hpux11*)
17328 if test $with_gnu_ld = no; then
17329 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17330 hardcode_libdir_separator_CXX=:
17331
17332 case $host_cpu in
17333 hppa*64*|ia64*)
17334 ;;
17335 *)
17336 export_dynamic_flag_spec_CXX='${wl}-E'
17337 ;;
17338 esac
17339 fi
17340 case $host_cpu in
17341 hppa*64*|ia64*)
17342 hardcode_direct_CXX=no
17343 hardcode_shlibpath_var_CXX=no
17344 ;;
17345 *)
17346 hardcode_direct_CXX=yes
17347 hardcode_direct_absolute_CXX=yes
17348 hardcode_minus_L_CXX=yes # Not in the search PATH,
17349 # but as the default
17350 # location of the library.
17351 ;;
17352 esac
17353
17354 case $cc_basename in
17355 CC*)
17356 # FIXME: insert proper C++ library support
17357 ld_shlibs_CXX=no
17358 ;;
17359 aCC*)
17360 case $host_cpu in
17361 hppa*64*)
17362 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17363 ;;
17364 ia64*)
17365 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17366 ;;
17367 *)
17368 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17369 ;;
17370 esac
17371 # Commands to make compiler produce verbose output that lists
17372 # what "hidden" libraries, object files and flags are used when
17373 # linking a shared library.
17374 #
17375 # There doesn't appear to be a way to prevent this compiler from
17376 # explicitly linking system object files so we need to strip them
17377 # from the output so that they don't get included in the library
17378 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017379 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 +000017380 ;;
17381 *)
17382 if test "$GXX" = yes; then
17383 if test $with_gnu_ld = no; then
17384 case $host_cpu in
17385 hppa*64*)
17386 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17387 ;;
17388 ia64*)
cristyda16f162011-02-19 23:52:17 +000017389 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 +000017390 ;;
17391 *)
cristyda16f162011-02-19 23:52:17 +000017392 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 +000017393 ;;
17394 esac
17395 fi
17396 else
17397 # FIXME: insert proper C++ library support
17398 ld_shlibs_CXX=no
17399 fi
17400 ;;
17401 esac
17402 ;;
17403
17404 interix[3-9]*)
17405 hardcode_direct_CXX=no
17406 hardcode_shlibpath_var_CXX=no
17407 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17408 export_dynamic_flag_spec_CXX='${wl}-E'
17409 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17410 # Instead, shared libraries are loaded at an image base (0x10000000 by
17411 # default) and relocated if they conflict, which is a slow very memory
17412 # consuming and fragmenting process. To avoid this, we pick a random,
17413 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17414 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17415 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'
17416 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'
17417 ;;
17418 irix5* | irix6*)
17419 case $cc_basename in
17420 CC*)
17421 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017422 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 +000017423
17424 # Archives containing C++ object files must be created using
17425 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17426 # necessary to make sure instantiated templates are included
17427 # in the archive.
17428 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17429 ;;
17430 *)
17431 if test "$GXX" = yes; then
17432 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017433 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 +000017434 else
cristyda16f162011-02-19 23:52:17 +000017435 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 +000017436 fi
17437 fi
17438 link_all_deplibs_CXX=yes
17439 ;;
17440 esac
17441 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17442 hardcode_libdir_separator_CXX=:
17443 inherit_rpath_CXX=yes
17444 ;;
17445
cristy0c60a692010-11-04 01:09:47 +000017446 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017447 case $cc_basename in
17448 KCC*)
17449 # Kuck and Associates, Inc. (KAI) C++ Compiler
17450
17451 # KCC will only create a shared library if the output file
17452 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17453 # to its proper name (with version) after linking.
17454 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'
17455 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'
17456 # Commands to make compiler produce verbose output that lists
17457 # what "hidden" libraries, object files and flags are used when
17458 # linking a shared library.
17459 #
17460 # There doesn't appear to be a way to prevent this compiler from
17461 # explicitly linking system object files so we need to strip them
17462 # from the output so that they don't get included in the library
17463 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017464 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 +000017465
17466 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17467 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17468
17469 # Archives containing C++ object files must be created using
17470 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17471 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17472 ;;
17473 icpc* | ecpc* )
17474 # Intel C++
17475 with_gnu_ld=yes
17476 # version 8.0 and above of icpc choke on multiply defined symbols
17477 # if we add $predep_objects and $postdep_objects, however 7.1 and
17478 # earlier do not add the objects themselves.
17479 case `$CC -V 2>&1` in
17480 *"Version 7."*)
17481 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17482 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'
17483 ;;
17484 *) # Version 8.0 or newer
17485 tmp_idyn=
17486 case $host_cpu in
17487 ia64*) tmp_idyn=' -i_dynamic';;
17488 esac
17489 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17490 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'
17491 ;;
17492 esac
17493 archive_cmds_need_lc_CXX=no
17494 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17495 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17496 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17497 ;;
17498 pgCC* | pgcpp*)
17499 # Portland Group C++ compiler
17500 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017501 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017502 prelink_cmds_CXX='tpldir=Template.dir~
17503 rm -rf $tpldir~
17504 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017505 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017506 old_archive_cmds_CXX='tpldir=Template.dir~
17507 rm -rf $tpldir~
17508 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017509 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017510 $RANLIB $oldlib'
17511 archive_cmds_CXX='tpldir=Template.dir~
17512 rm -rf $tpldir~
17513 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017514 $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 +000017515 archive_expsym_cmds_CXX='tpldir=Template.dir~
17516 rm -rf $tpldir~
17517 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017518 $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 +000017519 ;;
cristy0c60a692010-11-04 01:09:47 +000017520 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017521 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17522 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'
17523 ;;
17524 esac
17525
17526 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17527 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017528 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 +000017529 ;;
17530 cxx*)
17531 # Compaq C++
17532 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17533 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'
17534
17535 runpath_var=LD_RUN_PATH
17536 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17537 hardcode_libdir_separator_CXX=:
17538
17539 # Commands to make compiler produce verbose output that lists
17540 # what "hidden" libraries, object files and flags are used when
17541 # linking a shared library.
17542 #
17543 # There doesn't appear to be a way to prevent this compiler from
17544 # explicitly linking system object files so we need to strip them
17545 # from the output so that they don't get included in the library
17546 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017547 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 +000017548 ;;
cristy0c60a692010-11-04 01:09:47 +000017549 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017550 # IBM XL 8.0 on PPC, with GNU ld
17551 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17552 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17553 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17554 if test "x$supports_anon_versioning" = xyes; then
17555 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17556 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17557 echo "local: *; };" >> $output_objdir/$libname.ver~
17558 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17559 fi
17560 ;;
17561 *)
17562 case `$CC -V 2>&1 | sed 5q` in
17563 *Sun\ C*)
17564 # Sun C++ 5.9
17565 no_undefined_flag_CXX=' -zdefs'
17566 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17567 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'
17568 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017569 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 +000017570 compiler_needs_object_CXX=yes
17571
17572 # Not sure whether something based on
17573 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17574 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017575 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017576
17577 # Archives containing C++ object files must be created using
17578 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17579 # necessary to make sure instantiated templates are included
17580 # in the archive.
17581 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17582 ;;
17583 esac
17584 ;;
17585 esac
17586 ;;
17587
17588 lynxos*)
17589 # FIXME: insert proper C++ library support
17590 ld_shlibs_CXX=no
17591 ;;
17592
17593 m88k*)
17594 # FIXME: insert proper C++ library support
17595 ld_shlibs_CXX=no
17596 ;;
17597
17598 mvs*)
17599 case $cc_basename in
17600 cxx*)
17601 # FIXME: insert proper C++ library support
17602 ld_shlibs_CXX=no
17603 ;;
17604 *)
17605 # FIXME: insert proper C++ library support
17606 ld_shlibs_CXX=no
17607 ;;
17608 esac
17609 ;;
17610
17611 netbsd*)
17612 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17613 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17614 wlarc=
17615 hardcode_libdir_flag_spec_CXX='-R$libdir'
17616 hardcode_direct_CXX=yes
17617 hardcode_shlibpath_var_CXX=no
17618 fi
17619 # Workaround some broken pre-1.5 toolchains
17620 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17621 ;;
17622
17623 *nto* | *qnx*)
17624 ld_shlibs_CXX=yes
17625 ;;
17626
17627 openbsd2*)
17628 # C++ shared libraries are fairly broken
17629 ld_shlibs_CXX=no
17630 ;;
17631
17632 openbsd*)
17633 if test -f /usr/libexec/ld.so; then
17634 hardcode_direct_CXX=yes
17635 hardcode_shlibpath_var_CXX=no
17636 hardcode_direct_absolute_CXX=yes
17637 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17638 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17639 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17640 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17641 export_dynamic_flag_spec_CXX='${wl}-E'
17642 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17643 fi
cristy0c60a692010-11-04 01:09:47 +000017644 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017645 else
17646 ld_shlibs_CXX=no
17647 fi
17648 ;;
17649
17650 osf3* | osf4* | osf5*)
17651 case $cc_basename in
17652 KCC*)
17653 # Kuck and Associates, Inc. (KAI) C++ Compiler
17654
17655 # KCC will only create a shared library if the output file
17656 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17657 # to its proper name (with version) after linking.
17658 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'
17659
17660 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17661 hardcode_libdir_separator_CXX=:
17662
17663 # Archives containing C++ object files must be created using
17664 # the KAI C++ compiler.
17665 case $host in
17666 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17667 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17668 esac
17669 ;;
17670 RCC*)
17671 # Rational C++ 2.4.1
17672 # FIXME: insert proper C++ library support
17673 ld_shlibs_CXX=no
17674 ;;
17675 cxx*)
17676 case $host in
17677 osf3*)
17678 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000017679 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 +000017680 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17681 ;;
17682 *)
17683 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000017684 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 +000017685 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17686 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000017687 $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 +000017688 $RM $lib.exp'
17689 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17690 ;;
17691 esac
17692
17693 hardcode_libdir_separator_CXX=:
17694
17695 # Commands to make compiler produce verbose output that lists
17696 # what "hidden" libraries, object files and flags are used when
17697 # linking a shared library.
17698 #
17699 # There doesn't appear to be a way to prevent this compiler from
17700 # explicitly linking system object files so we need to strip them
17701 # from the output so that they don't get included in the library
17702 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017703 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 +000017704 ;;
17705 *)
17706 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17707 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17708 case $host in
17709 osf3*)
cristy0c60a692010-11-04 01:09:47 +000017710 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 +000017711 ;;
17712 *)
cristyda16f162011-02-19 23:52:17 +000017713 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 +000017714 ;;
17715 esac
17716
17717 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17718 hardcode_libdir_separator_CXX=:
17719
17720 # Commands to make compiler produce verbose output that lists
17721 # what "hidden" libraries, object files and flags are used when
17722 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017723 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017724
17725 else
17726 # FIXME: insert proper C++ library support
17727 ld_shlibs_CXX=no
17728 fi
17729 ;;
17730 esac
17731 ;;
17732
17733 psos*)
17734 # FIXME: insert proper C++ library support
17735 ld_shlibs_CXX=no
17736 ;;
17737
17738 sunos4*)
17739 case $cc_basename in
17740 CC*)
17741 # Sun C++ 4.x
17742 # FIXME: insert proper C++ library support
17743 ld_shlibs_CXX=no
17744 ;;
17745 lcc*)
17746 # Lucid
17747 # FIXME: insert proper C++ library support
17748 ld_shlibs_CXX=no
17749 ;;
17750 *)
17751 # FIXME: insert proper C++ library support
17752 ld_shlibs_CXX=no
17753 ;;
17754 esac
17755 ;;
17756
17757 solaris*)
17758 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017759 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017760 # Sun C++ 4.2, 5.x and Centerline C++
17761 archive_cmds_need_lc_CXX=yes
17762 no_undefined_flag_CXX=' -zdefs'
17763 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17764 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17765 $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'
17766
17767 hardcode_libdir_flag_spec_CXX='-R$libdir'
17768 hardcode_shlibpath_var_CXX=no
17769 case $host_os in
17770 solaris2.[0-5] | solaris2.[0-5].*) ;;
17771 *)
17772 # The compiler driver will combine and reorder linker options,
17773 # but understands `-z linker_flag'.
17774 # Supported since Solaris 2.6 (maybe 2.5.1?)
17775 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17776 ;;
17777 esac
17778 link_all_deplibs_CXX=yes
17779
cristy0c60a692010-11-04 01:09:47 +000017780 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017781
17782 # Archives containing C++ object files must be created using
17783 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17784 # necessary to make sure instantiated templates are included
17785 # in the archive.
17786 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17787 ;;
17788 gcx*)
17789 # Green Hills C++ Compiler
17790 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17791
17792 # The C++ compiler must be used to create the archive.
17793 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17794 ;;
17795 *)
17796 # GNU C++ compiler with Solaris linker
17797 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17798 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17799 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000017800 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 +000017801 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 +000017802 $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 +000017803
17804 # Commands to make compiler produce verbose output that lists
17805 # what "hidden" libraries, object files and flags are used when
17806 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017807 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017808 else
17809 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17810 # platform.
17811 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17812 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17813 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17814
17815 # Commands to make compiler produce verbose output that lists
17816 # what "hidden" libraries, object files and flags are used when
17817 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017818 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017819 fi
17820
17821 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17822 case $host_os in
17823 solaris2.[0-5] | solaris2.[0-5].*) ;;
17824 *)
17825 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17826 ;;
17827 esac
17828 fi
17829 ;;
17830 esac
17831 ;;
17832
17833 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17834 no_undefined_flag_CXX='${wl}-z,text'
17835 archive_cmds_need_lc_CXX=no
17836 hardcode_shlibpath_var_CXX=no
17837 runpath_var='LD_RUN_PATH'
17838
17839 case $cc_basename in
17840 CC*)
17841 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17842 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17843 ;;
17844 *)
17845 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17846 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17847 ;;
17848 esac
17849 ;;
17850
17851 sysv5* | sco3.2v5* | sco5v6*)
17852 # Note: We can NOT use -z defs as we might desire, because we do not
17853 # link with -lc, and that would cause any symbols used from libc to
17854 # always be unresolved, which means just about no library would
17855 # ever link correctly. If we're not using GNU ld we use -z text
17856 # though, which does catch some bad symbols but isn't as heavy-handed
17857 # as -z defs.
17858 no_undefined_flag_CXX='${wl}-z,text'
17859 allow_undefined_flag_CXX='${wl}-z,nodefs'
17860 archive_cmds_need_lc_CXX=no
17861 hardcode_shlibpath_var_CXX=no
17862 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17863 hardcode_libdir_separator_CXX=':'
17864 link_all_deplibs_CXX=yes
17865 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17866 runpath_var='LD_RUN_PATH'
17867
17868 case $cc_basename in
17869 CC*)
17870 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17871 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 +000017872 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17873 '"$old_archive_cmds_CXX"
17874 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17875 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000017876 ;;
17877 *)
17878 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17879 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17880 ;;
17881 esac
17882 ;;
17883
17884 tandem*)
17885 case $cc_basename in
17886 NCC*)
17887 # NonStop-UX NCC 3.20
17888 # FIXME: insert proper C++ library support
17889 ld_shlibs_CXX=no
17890 ;;
17891 *)
17892 # FIXME: insert proper C++ library support
17893 ld_shlibs_CXX=no
17894 ;;
17895 esac
17896 ;;
17897
17898 vxworks*)
17899 # FIXME: insert proper C++ library support
17900 ld_shlibs_CXX=no
17901 ;;
17902
17903 *)
17904 # FIXME: insert proper C++ library support
17905 ld_shlibs_CXX=no
17906 ;;
17907 esac
17908
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17910$as_echo "$ld_shlibs_CXX" >&6; }
17911 test "$ld_shlibs_CXX" = no && can_build_shared=no
17912
17913 GCC_CXX="$GXX"
17914 LD_CXX="$LD"
17915
17916 ## CAVEAT EMPTOR:
17917 ## There is no encapsulation within the following macros, do not change
17918 ## the running order or otherwise move them around unless you know exactly
17919 ## what you are doing...
17920 # Dependencies to place before and after the object being linked:
17921predep_objects_CXX=
17922postdep_objects_CXX=
17923predeps_CXX=
17924postdeps_CXX=
17925compiler_lib_search_path_CXX=
17926
17927cat > conftest.$ac_ext <<_LT_EOF
17928class Foo
17929{
17930public:
17931 Foo (void) { a = 0; }
17932private:
17933 int a;
17934};
17935_LT_EOF
17936
cristyda16f162011-02-19 23:52:17 +000017937
17938_lt_libdeps_save_CFLAGS=$CFLAGS
17939case "$CC $CFLAGS " in #(
17940*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17941*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17942esac
17943
cristy73bd4a52010-10-05 11:24:23 +000017944if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17945 (eval $ac_compile) 2>&5
17946 ac_status=$?
17947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17948 test $ac_status = 0; }; then
17949 # Parse the compiler output and extract the necessary
17950 # objects, libraries and library flags.
17951
17952 # Sentinel used to keep track of whether or not we are before
17953 # the conftest object file.
17954 pre_test_object_deps_done=no
17955
17956 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000017957 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000017958
17959 -L* | -R* | -l*)
17960 # Some compilers place space between "-{L,R}" and the path.
17961 # Remove the space.
17962 if test $p = "-L" ||
17963 test $p = "-R"; then
17964 prev=$p
17965 continue
cristy73bd4a52010-10-05 11:24:23 +000017966 fi
17967
cristyda16f162011-02-19 23:52:17 +000017968 # Expand the sysroot to ease extracting the directories later.
17969 if test -z "$prev"; then
17970 case $p in
17971 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17972 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17973 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17974 esac
17975 fi
17976 case $p in
17977 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17978 esac
cristy73bd4a52010-10-05 11:24:23 +000017979 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000017980 case ${prev} in
17981 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000017982 # Internal compiler library paths should come after those
17983 # provided the user. The postdeps already come after the
17984 # user supplied libs so there is no need to process them.
17985 if test -z "$compiler_lib_search_path_CXX"; then
17986 compiler_lib_search_path_CXX="${prev}${p}"
17987 else
17988 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17989 fi
17990 ;;
17991 # The "-l" case would never come before the object being
17992 # linked, so don't bother handling this case.
17993 esac
17994 else
17995 if test -z "$postdeps_CXX"; then
17996 postdeps_CXX="${prev}${p}"
17997 else
17998 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17999 fi
18000 fi
cristyda16f162011-02-19 23:52:17 +000018001 prev=
cristy73bd4a52010-10-05 11:24:23 +000018002 ;;
18003
cristyda16f162011-02-19 23:52:17 +000018004 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018005 *.$objext)
18006 # This assumes that the test object file only shows up
18007 # once in the compiler output.
18008 if test "$p" = "conftest.$objext"; then
18009 pre_test_object_deps_done=yes
18010 continue
18011 fi
18012
18013 if test "$pre_test_object_deps_done" = no; then
18014 if test -z "$predep_objects_CXX"; then
18015 predep_objects_CXX="$p"
18016 else
18017 predep_objects_CXX="$predep_objects_CXX $p"
18018 fi
18019 else
18020 if test -z "$postdep_objects_CXX"; then
18021 postdep_objects_CXX="$p"
18022 else
18023 postdep_objects_CXX="$postdep_objects_CXX $p"
18024 fi
18025 fi
18026 ;;
18027
18028 *) ;; # Ignore the rest.
18029
18030 esac
18031 done
18032
18033 # Clean up.
18034 rm -f a.out a.exe
18035else
18036 echo "libtool.m4: error: problem compiling CXX test program"
18037fi
18038
18039$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018040CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018041
18042# PORTME: override above test on systems where it is broken
18043case $host_os in
18044interix[3-9]*)
18045 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18046 # hack all around it, let's just trust "g++" to DTRT.
18047 predep_objects_CXX=
18048 postdep_objects_CXX=
18049 postdeps_CXX=
18050 ;;
18051
18052linux*)
18053 case `$CC -V 2>&1 | sed 5q` in
18054 *Sun\ C*)
18055 # Sun C++ 5.9
18056
18057 # The more standards-conforming stlport4 library is
18058 # incompatible with the Cstd library. Avoid specifying
18059 # it if it's in CXXFLAGS. Ignore libCrun as
18060 # -library=stlport4 depends on it.
18061 case " $CXX $CXXFLAGS " in
18062 *" -library=stlport4 "*)
18063 solaris_use_stlport4=yes
18064 ;;
18065 esac
18066
18067 if test "$solaris_use_stlport4" != yes; then
18068 postdeps_CXX='-library=Cstd -library=Crun'
18069 fi
18070 ;;
18071 esac
18072 ;;
18073
18074solaris*)
18075 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018076 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018077 # The more standards-conforming stlport4 library is
18078 # incompatible with the Cstd library. Avoid specifying
18079 # it if it's in CXXFLAGS. Ignore libCrun as
18080 # -library=stlport4 depends on it.
18081 case " $CXX $CXXFLAGS " in
18082 *" -library=stlport4 "*)
18083 solaris_use_stlport4=yes
18084 ;;
18085 esac
18086
18087 # Adding this requires a known-good setup of shared libraries for
18088 # Sun compiler versions before 5.6, else PIC objects from an old
18089 # archive will be linked into the output, leading to subtle bugs.
18090 if test "$solaris_use_stlport4" != yes; then
18091 postdeps_CXX='-library=Cstd -library=Crun'
18092 fi
18093 ;;
18094 esac
18095 ;;
18096esac
18097
18098
18099case " $postdeps_CXX " in
18100*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18101esac
18102 compiler_lib_search_dirs_CXX=
18103if test -n "${compiler_lib_search_path_CXX}"; then
18104 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18105fi
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137 lt_prog_compiler_wl_CXX=
18138lt_prog_compiler_pic_CXX=
18139lt_prog_compiler_static_CXX=
18140
cristy73bd4a52010-10-05 11:24:23 +000018141
18142 # C++ specific cases for pic, static, wl, etc.
18143 if test "$GXX" = yes; then
18144 lt_prog_compiler_wl_CXX='-Wl,'
18145 lt_prog_compiler_static_CXX='-static'
18146
18147 case $host_os in
18148 aix*)
18149 # All AIX code is PIC.
18150 if test "$host_cpu" = ia64; then
18151 # AIX 5 now supports IA64 processor
18152 lt_prog_compiler_static_CXX='-Bstatic'
18153 fi
18154 ;;
18155
18156 amigaos*)
18157 case $host_cpu in
18158 powerpc)
18159 # see comment about AmigaOS4 .so support
18160 lt_prog_compiler_pic_CXX='-fPIC'
18161 ;;
18162 m68k)
18163 # FIXME: we need at least 68020 code to build shared libraries, but
18164 # adding the `-m68020' flag to GCC prevents building anything better,
18165 # like `-m68040'.
18166 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18167 ;;
18168 esac
18169 ;;
18170
18171 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18172 # PIC is the default for these OSes.
18173 ;;
18174 mingw* | cygwin* | os2* | pw32* | cegcc*)
18175 # This hack is so that the source file can tell whether it is being
18176 # built for inclusion in a dll (and should export symbols for example).
18177 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18178 # (--disable-auto-import) libraries
18179 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18180 ;;
18181 darwin* | rhapsody*)
18182 # PIC is the default on this platform
18183 # Common symbols not allowed in MH_DYLIB files
18184 lt_prog_compiler_pic_CXX='-fno-common'
18185 ;;
18186 *djgpp*)
18187 # DJGPP does not support shared libraries at all
18188 lt_prog_compiler_pic_CXX=
18189 ;;
cristy0c60a692010-11-04 01:09:47 +000018190 haiku*)
18191 # PIC is the default for Haiku.
18192 # The "-static" flag exists, but is broken.
18193 lt_prog_compiler_static_CXX=
18194 ;;
cristy73bd4a52010-10-05 11:24:23 +000018195 interix[3-9]*)
18196 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18197 # Instead, we relocate shared libraries at runtime.
18198 ;;
18199 sysv4*MP*)
18200 if test -d /usr/nec; then
18201 lt_prog_compiler_pic_CXX=-Kconform_pic
18202 fi
18203 ;;
18204 hpux*)
18205 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18206 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18207 # sets the default TLS model and affects inlining.
18208 case $host_cpu in
18209 hppa*64*)
18210 ;;
18211 *)
18212 lt_prog_compiler_pic_CXX='-fPIC'
18213 ;;
18214 esac
18215 ;;
18216 *qnx* | *nto*)
18217 # QNX uses GNU C++, but need to define -shared option too, otherwise
18218 # it will coredump.
18219 lt_prog_compiler_pic_CXX='-fPIC -shared'
18220 ;;
18221 *)
18222 lt_prog_compiler_pic_CXX='-fPIC'
18223 ;;
18224 esac
18225 else
18226 case $host_os in
18227 aix[4-9]*)
18228 # All AIX code is PIC.
18229 if test "$host_cpu" = ia64; then
18230 # AIX 5 now supports IA64 processor
18231 lt_prog_compiler_static_CXX='-Bstatic'
18232 else
18233 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18234 fi
18235 ;;
18236 chorus*)
18237 case $cc_basename in
18238 cxch68*)
18239 # Green Hills C++ Compiler
18240 # _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"
18241 ;;
18242 esac
18243 ;;
cristyda16f162011-02-19 23:52:17 +000018244 mingw* | cygwin* | os2* | pw32* | cegcc*)
18245 # This hack is so that the source file can tell whether it is being
18246 # built for inclusion in a dll (and should export symbols for example).
18247 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18248 ;;
cristy73bd4a52010-10-05 11:24:23 +000018249 dgux*)
18250 case $cc_basename in
18251 ec++*)
18252 lt_prog_compiler_pic_CXX='-KPIC'
18253 ;;
18254 ghcx*)
18255 # Green Hills C++ Compiler
18256 lt_prog_compiler_pic_CXX='-pic'
18257 ;;
18258 *)
18259 ;;
18260 esac
18261 ;;
18262 freebsd* | dragonfly*)
18263 # FreeBSD uses GNU C++
18264 ;;
18265 hpux9* | hpux10* | hpux11*)
18266 case $cc_basename in
18267 CC*)
18268 lt_prog_compiler_wl_CXX='-Wl,'
18269 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18270 if test "$host_cpu" != ia64; then
18271 lt_prog_compiler_pic_CXX='+Z'
18272 fi
18273 ;;
18274 aCC*)
18275 lt_prog_compiler_wl_CXX='-Wl,'
18276 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18277 case $host_cpu in
18278 hppa*64*|ia64*)
18279 # +Z the default
18280 ;;
18281 *)
18282 lt_prog_compiler_pic_CXX='+Z'
18283 ;;
18284 esac
18285 ;;
18286 *)
18287 ;;
18288 esac
18289 ;;
18290 interix*)
18291 # This is c89, which is MS Visual C++ (no shared libs)
18292 # Anyone wants to do a port?
18293 ;;
18294 irix5* | irix6* | nonstopux*)
18295 case $cc_basename in
18296 CC*)
18297 lt_prog_compiler_wl_CXX='-Wl,'
18298 lt_prog_compiler_static_CXX='-non_shared'
18299 # CC pic flag -KPIC is the default.
18300 ;;
18301 *)
18302 ;;
18303 esac
18304 ;;
cristy0c60a692010-11-04 01:09:47 +000018305 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018306 case $cc_basename in
18307 KCC*)
18308 # KAI C++ Compiler
18309 lt_prog_compiler_wl_CXX='--backend -Wl,'
18310 lt_prog_compiler_pic_CXX='-fPIC'
18311 ;;
18312 ecpc* )
18313 # old Intel C++ for x86_64 which still supported -KPIC.
18314 lt_prog_compiler_wl_CXX='-Wl,'
18315 lt_prog_compiler_pic_CXX='-KPIC'
18316 lt_prog_compiler_static_CXX='-static'
18317 ;;
18318 icpc* )
18319 # Intel C++, used to be incompatible with GCC.
18320 # ICC 10 doesn't accept -KPIC any more.
18321 lt_prog_compiler_wl_CXX='-Wl,'
18322 lt_prog_compiler_pic_CXX='-fPIC'
18323 lt_prog_compiler_static_CXX='-static'
18324 ;;
18325 pgCC* | pgcpp*)
18326 # Portland Group C++ compiler
18327 lt_prog_compiler_wl_CXX='-Wl,'
18328 lt_prog_compiler_pic_CXX='-fpic'
18329 lt_prog_compiler_static_CXX='-Bstatic'
18330 ;;
18331 cxx*)
18332 # Compaq C++
18333 # Make sure the PIC flag is empty. It appears that all Alpha
18334 # Linux and Compaq Tru64 Unix objects are PIC.
18335 lt_prog_compiler_pic_CXX=
18336 lt_prog_compiler_static_CXX='-non_shared'
18337 ;;
cristy0c60a692010-11-04 01:09:47 +000018338 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18339 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018340 lt_prog_compiler_wl_CXX='-Wl,'
18341 lt_prog_compiler_pic_CXX='-qpic'
18342 lt_prog_compiler_static_CXX='-qstaticlink'
18343 ;;
18344 *)
18345 case `$CC -V 2>&1 | sed 5q` in
18346 *Sun\ C*)
18347 # Sun C++ 5.9
18348 lt_prog_compiler_pic_CXX='-KPIC'
18349 lt_prog_compiler_static_CXX='-Bstatic'
18350 lt_prog_compiler_wl_CXX='-Qoption ld '
18351 ;;
18352 esac
18353 ;;
18354 esac
18355 ;;
18356 lynxos*)
18357 ;;
18358 m88k*)
18359 ;;
18360 mvs*)
18361 case $cc_basename in
18362 cxx*)
18363 lt_prog_compiler_pic_CXX='-W c,exportall'
18364 ;;
18365 *)
18366 ;;
18367 esac
18368 ;;
18369 netbsd*)
18370 ;;
18371 *qnx* | *nto*)
18372 # QNX uses GNU C++, but need to define -shared option too, otherwise
18373 # it will coredump.
18374 lt_prog_compiler_pic_CXX='-fPIC -shared'
18375 ;;
18376 osf3* | osf4* | osf5*)
18377 case $cc_basename in
18378 KCC*)
18379 lt_prog_compiler_wl_CXX='--backend -Wl,'
18380 ;;
18381 RCC*)
18382 # Rational C++ 2.4.1
18383 lt_prog_compiler_pic_CXX='-pic'
18384 ;;
18385 cxx*)
18386 # Digital/Compaq C++
18387 lt_prog_compiler_wl_CXX='-Wl,'
18388 # Make sure the PIC flag is empty. It appears that all Alpha
18389 # Linux and Compaq Tru64 Unix objects are PIC.
18390 lt_prog_compiler_pic_CXX=
18391 lt_prog_compiler_static_CXX='-non_shared'
18392 ;;
18393 *)
18394 ;;
18395 esac
18396 ;;
18397 psos*)
18398 ;;
18399 solaris*)
18400 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018401 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018402 # Sun C++ 4.2, 5.x and Centerline C++
18403 lt_prog_compiler_pic_CXX='-KPIC'
18404 lt_prog_compiler_static_CXX='-Bstatic'
18405 lt_prog_compiler_wl_CXX='-Qoption ld '
18406 ;;
18407 gcx*)
18408 # Green Hills C++ Compiler
18409 lt_prog_compiler_pic_CXX='-PIC'
18410 ;;
18411 *)
18412 ;;
18413 esac
18414 ;;
18415 sunos4*)
18416 case $cc_basename in
18417 CC*)
18418 # Sun C++ 4.x
18419 lt_prog_compiler_pic_CXX='-pic'
18420 lt_prog_compiler_static_CXX='-Bstatic'
18421 ;;
18422 lcc*)
18423 # Lucid
18424 lt_prog_compiler_pic_CXX='-pic'
18425 ;;
18426 *)
18427 ;;
18428 esac
18429 ;;
18430 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18431 case $cc_basename in
18432 CC*)
18433 lt_prog_compiler_wl_CXX='-Wl,'
18434 lt_prog_compiler_pic_CXX='-KPIC'
18435 lt_prog_compiler_static_CXX='-Bstatic'
18436 ;;
18437 esac
18438 ;;
18439 tandem*)
18440 case $cc_basename in
18441 NCC*)
18442 # NonStop-UX NCC 3.20
18443 lt_prog_compiler_pic_CXX='-KPIC'
18444 ;;
18445 *)
18446 ;;
18447 esac
18448 ;;
18449 vxworks*)
18450 ;;
18451 *)
18452 lt_prog_compiler_can_build_shared_CXX=no
18453 ;;
18454 esac
18455 fi
18456
18457case $host_os in
18458 # For platforms which do not support PIC, -DPIC is meaningless:
18459 *djgpp*)
18460 lt_prog_compiler_pic_CXX=
18461 ;;
18462 *)
18463 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18464 ;;
18465esac
cristy73bd4a52010-10-05 11:24:23 +000018466
cristyda16f162011-02-19 23:52:17 +000018467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18468$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18469if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18470 $as_echo_n "(cached) " >&6
18471else
18472 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18473fi
18474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18475$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18476lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018477
18478#
18479# Check to make sure the PIC flag actually works.
18480#
18481if test -n "$lt_prog_compiler_pic_CXX"; then
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18483$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018484if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018485 $as_echo_n "(cached) " >&6
18486else
18487 lt_cv_prog_compiler_pic_works_CXX=no
18488 ac_outfile=conftest.$ac_objext
18489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18490 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18491 # Insert the option either (1) after the last *FLAGS variable, or
18492 # (2) before a word containing "conftest.", or (3) at the end.
18493 # Note that $ac_compile itself does not contain backslashes and begins
18494 # with a dollar sign (not a hyphen), so the echo should work correctly.
18495 # The option is referenced via a variable to avoid confusing sed.
18496 lt_compile=`echo "$ac_compile" | $SED \
18497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18499 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018500 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018501 (eval "$lt_compile" 2>conftest.err)
18502 ac_status=$?
18503 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018505 if (exit $ac_status) && test -s "$ac_outfile"; then
18506 # The compiler can only warn and ignore the option if not recognized
18507 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018508 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018509 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18510 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18511 lt_cv_prog_compiler_pic_works_CXX=yes
18512 fi
18513 fi
18514 $RM conftest*
18515
18516fi
18517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18518$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18519
18520if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18521 case $lt_prog_compiler_pic_CXX in
18522 "" | " "*) ;;
18523 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18524 esac
18525else
18526 lt_prog_compiler_pic_CXX=
18527 lt_prog_compiler_can_build_shared_CXX=no
18528fi
18529
18530fi
18531
18532
18533
cristyda16f162011-02-19 23:52:17 +000018534
18535
cristy73bd4a52010-10-05 11:24:23 +000018536#
18537# Check to make sure the static flag actually works.
18538#
18539wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18541$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018542if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018543 $as_echo_n "(cached) " >&6
18544else
18545 lt_cv_prog_compiler_static_works_CXX=no
18546 save_LDFLAGS="$LDFLAGS"
18547 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18548 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18549 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18550 # The linker can only warn and ignore the option if not recognized
18551 # So say no if there are warnings
18552 if test -s conftest.err; then
18553 # Append any errors to the config.log.
18554 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018555 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18557 if diff conftest.exp conftest.er2 >/dev/null; then
18558 lt_cv_prog_compiler_static_works_CXX=yes
18559 fi
18560 else
18561 lt_cv_prog_compiler_static_works_CXX=yes
18562 fi
18563 fi
18564 $RM -r conftest*
18565 LDFLAGS="$save_LDFLAGS"
18566
18567fi
18568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18569$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18570
18571if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18572 :
18573else
18574 lt_prog_compiler_static_CXX=
18575fi
18576
18577
18578
18579
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18581$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018582if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018583 $as_echo_n "(cached) " >&6
18584else
18585 lt_cv_prog_compiler_c_o_CXX=no
18586 $RM -r conftest 2>/dev/null
18587 mkdir conftest
18588 cd conftest
18589 mkdir out
18590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18591
18592 lt_compiler_flag="-o out/conftest2.$ac_objext"
18593 # Insert the option either (1) after the last *FLAGS variable, or
18594 # (2) before a word containing "conftest.", or (3) at the end.
18595 # Note that $ac_compile itself does not contain backslashes and begins
18596 # with a dollar sign (not a hyphen), so the echo should work correctly.
18597 lt_compile=`echo "$ac_compile" | $SED \
18598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18600 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018601 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018602 (eval "$lt_compile" 2>out/conftest.err)
18603 ac_status=$?
18604 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018606 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18607 then
18608 # The compiler can only warn and ignore the option if not recognized
18609 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018610 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018611 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18612 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18613 lt_cv_prog_compiler_c_o_CXX=yes
18614 fi
18615 fi
18616 chmod u+w . 2>&5
18617 $RM conftest*
18618 # SGI C++ compiler will create directory out/ii_files/ for
18619 # template instantiation
18620 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18621 $RM out/* && rmdir out
18622 cd ..
18623 $RM -r conftest
18624 $RM conftest*
18625
18626fi
18627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18628$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18629
18630
18631
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18633$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018634if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018635 $as_echo_n "(cached) " >&6
18636else
18637 lt_cv_prog_compiler_c_o_CXX=no
18638 $RM -r conftest 2>/dev/null
18639 mkdir conftest
18640 cd conftest
18641 mkdir out
18642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18643
18644 lt_compiler_flag="-o out/conftest2.$ac_objext"
18645 # Insert the option either (1) after the last *FLAGS variable, or
18646 # (2) before a word containing "conftest.", or (3) at the end.
18647 # Note that $ac_compile itself does not contain backslashes and begins
18648 # with a dollar sign (not a hyphen), so the echo should work correctly.
18649 lt_compile=`echo "$ac_compile" | $SED \
18650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18652 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018653 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018654 (eval "$lt_compile" 2>out/conftest.err)
18655 ac_status=$?
18656 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018658 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18659 then
18660 # The compiler can only warn and ignore the option if not recognized
18661 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018662 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018663 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18664 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18665 lt_cv_prog_compiler_c_o_CXX=yes
18666 fi
18667 fi
18668 chmod u+w . 2>&5
18669 $RM conftest*
18670 # SGI C++ compiler will create directory out/ii_files/ for
18671 # template instantiation
18672 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18673 $RM out/* && rmdir out
18674 cd ..
18675 $RM -r conftest
18676 $RM conftest*
18677
18678fi
18679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18680$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18681
18682
18683
18684
18685hard_links="nottested"
18686if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18687 # do not overwrite the value of need_locks provided by the user
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18689$as_echo_n "checking if we can lock with hard links... " >&6; }
18690 hard_links=yes
18691 $RM conftest*
18692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18693 touch conftest.a
18694 ln conftest.a conftest.b 2>&5 || hard_links=no
18695 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18697$as_echo "$hard_links" >&6; }
18698 if test "$hard_links" = no; then
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18700$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18701 need_locks=warn
18702 fi
18703else
18704 need_locks=no
18705fi
18706
18707
18708
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18710$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18711
18712 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018713 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000018714 case $host_os in
18715 aix[4-9]*)
18716 # If we're using GNU nm, then we don't want the "-C" option.
18717 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000018718 # Also, AIX nm treats weak defined symbols like other global defined
18719 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000018720 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000018721 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 +000018722 else
18723 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'
18724 fi
18725 ;;
18726 pw32*)
18727 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000018728 ;;
cristy73bd4a52010-10-05 11:24:23 +000018729 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018730 case $cc_basename in
18731 cl*) ;;
18732 *)
18733 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'
18734 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18735 ;;
18736 esac
18737 ;;
cristy73bd4a52010-10-05 11:24:23 +000018738 *)
18739 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018740 ;;
cristy73bd4a52010-10-05 11:24:23 +000018741 esac
cristy73bd4a52010-10-05 11:24:23 +000018742
18743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18744$as_echo "$ld_shlibs_CXX" >&6; }
18745test "$ld_shlibs_CXX" = no && can_build_shared=no
18746
18747with_gnu_ld_CXX=$with_gnu_ld
18748
18749
18750
18751
18752
18753
18754#
18755# Do we need to explicitly link libc?
18756#
18757case "x$archive_cmds_need_lc_CXX" in
18758x|xyes)
18759 # Assume -lc should be added
18760 archive_cmds_need_lc_CXX=yes
18761
18762 if test "$enable_shared" = yes && test "$GCC" = yes; then
18763 case $archive_cmds_CXX in
18764 *'~'*)
18765 # FIXME: we may have to deal with multi-command sequences.
18766 ;;
18767 '$CC '*)
18768 # Test whether the compiler implicitly links with -lc since on some
18769 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18770 # to ld, don't add -lc before -lgcc.
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18772$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018773if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018774 $as_echo_n "(cached) " >&6
18775else
18776 $RM conftest*
18777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018778
cristy0c60a692010-11-04 01:09:47 +000018779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000018780 (eval $ac_compile) 2>&5
18781 ac_status=$?
18782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18783 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000018784 soname=conftest
18785 lib=conftest
18786 libobjs=conftest.$ac_objext
18787 deplibs=
18788 wl=$lt_prog_compiler_wl_CXX
18789 pic_flag=$lt_prog_compiler_pic_CXX
18790 compiler_flags=-v
18791 linker_flags=-v
18792 verstring=
18793 output_objdir=.
18794 libname=conftest
18795 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18796 allow_undefined_flag_CXX=
18797 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 +000018798 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18799 ac_status=$?
18800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18801 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000018802 then
18803 lt_cv_archive_cmds_need_lc_CXX=no
18804 else
18805 lt_cv_archive_cmds_need_lc_CXX=yes
18806 fi
18807 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18808 else
18809 cat conftest.err 1>&5
18810 fi
18811 $RM conftest*
18812
18813fi
18814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18815$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18816 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000018817 ;;
18818 esac
18819 fi
18820 ;;
18821esac
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18887$as_echo_n "checking dynamic linker characteristics... " >&6; }
18888
18889library_names_spec=
18890libname_spec='lib$name'
18891soname_spec=
18892shrext_cmds=".so"
18893postinstall_cmds=
18894postuninstall_cmds=
18895finish_cmds=
18896finish_eval=
18897shlibpath_var=
18898shlibpath_overrides_runpath=unknown
18899version_type=none
18900dynamic_linker="$host_os ld.so"
18901sys_lib_dlsearch_path_spec="/lib /usr/lib"
18902need_lib_prefix=unknown
18903hardcode_into_libs=no
18904
18905# when you set need_version to no, make sure it does not cause -set_version
18906# flags to be left without arguments
18907need_version=unknown
18908
18909case $host_os in
18910aix3*)
18911 version_type=linux
18912 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18913 shlibpath_var=LIBPATH
18914
18915 # AIX 3 has no versioning support, so we append a major version to the name.
18916 soname_spec='${libname}${release}${shared_ext}$major'
18917 ;;
18918
18919aix[4-9]*)
18920 version_type=linux
18921 need_lib_prefix=no
18922 need_version=no
18923 hardcode_into_libs=yes
18924 if test "$host_cpu" = ia64; then
18925 # AIX 5 supports IA64
18926 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18927 shlibpath_var=LD_LIBRARY_PATH
18928 else
18929 # With GCC up to 2.95.x, collect2 would create an import file
18930 # for dependence libraries. The import file would start with
18931 # the line `#! .'. This would cause the generated library to
18932 # depend on `.', always an invalid library. This was fixed in
18933 # development snapshots of GCC prior to 3.0.
18934 case $host_os in
18935 aix4 | aix4.[01] | aix4.[01].*)
18936 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18937 echo ' yes '
18938 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18939 :
18940 else
18941 can_build_shared=no
18942 fi
18943 ;;
18944 esac
18945 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18946 # soname into executable. Probably we can add versioning support to
18947 # collect2, so additional links can be useful in future.
18948 if test "$aix_use_runtimelinking" = yes; then
18949 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18950 # instead of lib<name>.a to let people know that these are not
18951 # typical AIX shared libraries.
18952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18953 else
18954 # We preserve .a as extension for shared libraries through AIX4.2
18955 # and later when we are not doing run time linking.
18956 library_names_spec='${libname}${release}.a $libname.a'
18957 soname_spec='${libname}${release}${shared_ext}$major'
18958 fi
18959 shlibpath_var=LIBPATH
18960 fi
18961 ;;
18962
18963amigaos*)
18964 case $host_cpu in
18965 powerpc)
18966 # Since July 2007 AmigaOS4 officially supports .so libraries.
18967 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18969 ;;
18970 m68k)
18971 library_names_spec='$libname.ixlibrary $libname.a'
18972 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000018973 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 +000018974 ;;
18975 esac
18976 ;;
18977
18978beos*)
18979 library_names_spec='${libname}${shared_ext}'
18980 dynamic_linker="$host_os ld.so"
18981 shlibpath_var=LIBRARY_PATH
18982 ;;
18983
18984bsdi[45]*)
18985 version_type=linux
18986 need_version=no
18987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18988 soname_spec='${libname}${release}${shared_ext}$major'
18989 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18990 shlibpath_var=LD_LIBRARY_PATH
18991 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18992 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18993 # the default ld.so.conf also contains /usr/contrib/lib and
18994 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18995 # libtool to hard-code these into programs
18996 ;;
18997
18998cygwin* | mingw* | pw32* | cegcc*)
18999 version_type=windows
19000 shrext_cmds=".dll"
19001 need_version=no
19002 need_lib_prefix=no
19003
cristyda16f162011-02-19 23:52:17 +000019004 case $GCC,$cc_basename in
19005 yes,*)
19006 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019007 library_names_spec='$libname.dll.a'
19008 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19009 postinstall_cmds='base_file=`basename \${file}`~
19010 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19011 dldir=$destdir/`dirname \$dlpath`~
19012 test -d \$dldir || mkdir -p \$dldir~
19013 $install_prog $dir/$dlname \$dldir/$dlname~
19014 chmod a+x \$dldir/$dlname~
19015 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19016 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19017 fi'
19018 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19019 dlpath=$dir/\$dldll~
19020 $RM \$dlpath'
19021 shlibpath_overrides_runpath=yes
19022
19023 case $host_os in
19024 cygwin*)
19025 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19026 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019027
cristy73bd4a52010-10-05 11:24:23 +000019028 ;;
19029 mingw* | cegcc*)
19030 # MinGW DLLs use traditional 'lib' prefix
19031 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019032 ;;
19033 pw32*)
19034 # pw32 DLLs use 'pw' prefix rather than 'lib'
19035 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19036 ;;
19037 esac
cristyda16f162011-02-19 23:52:17 +000019038 dynamic_linker='Win32 ld.exe'
19039 ;;
19040
19041 *,cl*)
19042 # Native MSVC
19043 libname_spec='$name'
19044 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19045 library_names_spec='${libname}.dll.lib'
19046
19047 case $build_os in
19048 mingw*)
19049 sys_lib_search_path_spec=
19050 lt_save_ifs=$IFS
19051 IFS=';'
19052 for lt_path in $LIB
19053 do
19054 IFS=$lt_save_ifs
19055 # Let DOS variable expansion print the short 8.3 style file name.
19056 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19057 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19058 done
19059 IFS=$lt_save_ifs
19060 # Convert to MSYS style.
19061 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19062 ;;
19063 cygwin*)
19064 # Convert to unix form, then to dos form, then back to unix form
19065 # but this time dos style (no spaces!) so that the unix form looks
19066 # like /cygdrive/c/PROGRA~1:/cygdr...
19067 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19068 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19069 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19070 ;;
19071 *)
19072 sys_lib_search_path_spec="$LIB"
19073 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19074 # It is most probably a Windows format PATH.
19075 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19076 else
19077 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19078 fi
19079 # FIXME: find the short name or the path components, as spaces are
19080 # common. (e.g. "Program Files" -> "PROGRA~1")
19081 ;;
19082 esac
19083
19084 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19085 postinstall_cmds='base_file=`basename \${file}`~
19086 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19087 dldir=$destdir/`dirname \$dlpath`~
19088 test -d \$dldir || mkdir -p \$dldir~
19089 $install_prog $dir/$dlname \$dldir/$dlname'
19090 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19091 dlpath=$dir/\$dldll~
19092 $RM \$dlpath'
19093 shlibpath_overrides_runpath=yes
19094 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019095 ;;
19096
19097 *)
cristyda16f162011-02-19 23:52:17 +000019098 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019099 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019100 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019101 ;;
19102 esac
cristy73bd4a52010-10-05 11:24:23 +000019103 # FIXME: first we should search . and the directory the executable is in
19104 shlibpath_var=PATH
19105 ;;
19106
19107darwin* | rhapsody*)
19108 dynamic_linker="$host_os dyld"
19109 version_type=darwin
19110 need_lib_prefix=no
19111 need_version=no
19112 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19113 soname_spec='${libname}${release}${major}$shared_ext'
19114 shlibpath_overrides_runpath=yes
19115 shlibpath_var=DYLD_LIBRARY_PATH
19116 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19117
19118 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19119 ;;
19120
19121dgux*)
19122 version_type=linux
19123 need_lib_prefix=no
19124 need_version=no
19125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19126 soname_spec='${libname}${release}${shared_ext}$major'
19127 shlibpath_var=LD_LIBRARY_PATH
19128 ;;
19129
19130freebsd1*)
19131 dynamic_linker=no
19132 ;;
19133
19134freebsd* | dragonfly*)
19135 # DragonFly does not have aout. When/if they implement a new
19136 # versioning mechanism, adjust this.
19137 if test -x /usr/bin/objformat; then
19138 objformat=`/usr/bin/objformat`
19139 else
19140 case $host_os in
19141 freebsd[123]*) objformat=aout ;;
19142 *) objformat=elf ;;
19143 esac
19144 fi
19145 version_type=freebsd-$objformat
19146 case $version_type in
19147 freebsd-elf*)
19148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19149 need_version=no
19150 need_lib_prefix=no
19151 ;;
19152 freebsd-*)
19153 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19154 need_version=yes
19155 ;;
19156 esac
19157 shlibpath_var=LD_LIBRARY_PATH
19158 case $host_os in
19159 freebsd2*)
19160 shlibpath_overrides_runpath=yes
19161 ;;
19162 freebsd3.[01]* | freebsdelf3.[01]*)
19163 shlibpath_overrides_runpath=yes
19164 hardcode_into_libs=yes
19165 ;;
19166 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19167 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19168 shlibpath_overrides_runpath=no
19169 hardcode_into_libs=yes
19170 ;;
19171 *) # from 4.6 on, and DragonFly
19172 shlibpath_overrides_runpath=yes
19173 hardcode_into_libs=yes
19174 ;;
19175 esac
19176 ;;
19177
19178gnu*)
19179 version_type=linux
19180 need_lib_prefix=no
19181 need_version=no
19182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19183 soname_spec='${libname}${release}${shared_ext}$major'
19184 shlibpath_var=LD_LIBRARY_PATH
19185 hardcode_into_libs=yes
19186 ;;
19187
cristy0c60a692010-11-04 01:09:47 +000019188haiku*)
19189 version_type=linux
19190 need_lib_prefix=no
19191 need_version=no
19192 dynamic_linker="$host_os runtime_loader"
19193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19194 soname_spec='${libname}${release}${shared_ext}$major'
19195 shlibpath_var=LIBRARY_PATH
19196 shlibpath_overrides_runpath=yes
19197 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19198 hardcode_into_libs=yes
19199 ;;
19200
cristy73bd4a52010-10-05 11:24:23 +000019201hpux9* | hpux10* | hpux11*)
19202 # Give a soname corresponding to the major version so that dld.sl refuses to
19203 # link against other versions.
19204 version_type=sunos
19205 need_lib_prefix=no
19206 need_version=no
19207 case $host_cpu in
19208 ia64*)
19209 shrext_cmds='.so'
19210 hardcode_into_libs=yes
19211 dynamic_linker="$host_os dld.so"
19212 shlibpath_var=LD_LIBRARY_PATH
19213 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19215 soname_spec='${libname}${release}${shared_ext}$major'
19216 if test "X$HPUX_IA64_MODE" = X32; then
19217 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19218 else
19219 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19220 fi
19221 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19222 ;;
19223 hppa*64*)
19224 shrext_cmds='.sl'
19225 hardcode_into_libs=yes
19226 dynamic_linker="$host_os dld.sl"
19227 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19228 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19230 soname_spec='${libname}${release}${shared_ext}$major'
19231 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19232 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19233 ;;
19234 *)
19235 shrext_cmds='.sl'
19236 dynamic_linker="$host_os dld.sl"
19237 shlibpath_var=SHLIB_PATH
19238 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19240 soname_spec='${libname}${release}${shared_ext}$major'
19241 ;;
19242 esac
cristy0c60a692010-11-04 01:09:47 +000019243 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019244 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019245 # or fails outright, so override atomically:
19246 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019247 ;;
19248
19249interix[3-9]*)
19250 version_type=linux
19251 need_lib_prefix=no
19252 need_version=no
19253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19254 soname_spec='${libname}${release}${shared_ext}$major'
19255 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19256 shlibpath_var=LD_LIBRARY_PATH
19257 shlibpath_overrides_runpath=no
19258 hardcode_into_libs=yes
19259 ;;
19260
19261irix5* | irix6* | nonstopux*)
19262 case $host_os in
19263 nonstopux*) version_type=nonstopux ;;
19264 *)
19265 if test "$lt_cv_prog_gnu_ld" = yes; then
19266 version_type=linux
19267 else
19268 version_type=irix
19269 fi ;;
19270 esac
19271 need_lib_prefix=no
19272 need_version=no
19273 soname_spec='${libname}${release}${shared_ext}$major'
19274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19275 case $host_os in
19276 irix5* | nonstopux*)
19277 libsuff= shlibsuff=
19278 ;;
19279 *)
19280 case $LD in # libtool.m4 will add one of these switches to LD
19281 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19282 libsuff= shlibsuff= libmagic=32-bit;;
19283 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19284 libsuff=32 shlibsuff=N32 libmagic=N32;;
19285 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19286 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19287 *) libsuff= shlibsuff= libmagic=never-match;;
19288 esac
19289 ;;
19290 esac
19291 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19292 shlibpath_overrides_runpath=no
19293 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19294 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19295 hardcode_into_libs=yes
19296 ;;
19297
19298# No shared lib support for Linux oldld, aout, or coff.
19299linux*oldld* | linux*aout* | linux*coff*)
19300 dynamic_linker=no
19301 ;;
19302
19303# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000019304linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019305 version_type=linux
19306 need_lib_prefix=no
19307 need_version=no
19308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19309 soname_spec='${libname}${release}${shared_ext}$major'
19310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19311 shlibpath_var=LD_LIBRARY_PATH
19312 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019313
cristy73bd4a52010-10-05 11:24:23 +000019314 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019315 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019316 $as_echo_n "(cached) " >&6
19317else
19318 lt_cv_shlibpath_overrides_runpath=no
19319 save_LDFLAGS=$LDFLAGS
19320 save_libdir=$libdir
19321 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19322 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019324/* end confdefs.h. */
19325
19326int
19327main ()
19328{
19329
19330 ;
19331 return 0;
19332}
19333_ACEOF
19334if ac_fn_cxx_try_link "$LINENO"; then :
19335 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019336 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019337fi
19338fi
19339rm -f core conftest.err conftest.$ac_objext \
19340 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019341 LDFLAGS=$save_LDFLAGS
19342 libdir=$save_libdir
19343
19344fi
19345
19346 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019347
19348 # This implies no fast_install, which is unacceptable.
19349 # Some rework will be needed to allow for fast_install
19350 # before this can be enabled.
19351 hardcode_into_libs=yes
19352
19353 # Add ABI-specific directories to the system library path.
19354 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19355
19356 # Append ld.so.conf contents to the search path
19357 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019358 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 +000019359 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019360
cristy73bd4a52010-10-05 11:24:23 +000019361 fi
19362
19363 # We used to test for /lib/ld.so.1 and disable shared libraries on
19364 # powerpc, because MkLinux only supported shared libraries with the
19365 # GNU dynamic linker. Since this was broken with cross compilers,
19366 # most powerpc-linux boxes support dynamic linking these days and
19367 # people can always --disable-shared, the test was removed, and we
19368 # assume the GNU/Linux dynamic linker is in use.
19369 dynamic_linker='GNU/Linux ld.so'
19370 ;;
19371
19372netbsd*)
19373 version_type=sunos
19374 need_lib_prefix=no
19375 need_version=no
19376 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19379 dynamic_linker='NetBSD (a.out) ld.so'
19380 else
19381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19382 soname_spec='${libname}${release}${shared_ext}$major'
19383 dynamic_linker='NetBSD ld.elf_so'
19384 fi
19385 shlibpath_var=LD_LIBRARY_PATH
19386 shlibpath_overrides_runpath=yes
19387 hardcode_into_libs=yes
19388 ;;
19389
19390newsos6)
19391 version_type=linux
19392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19393 shlibpath_var=LD_LIBRARY_PATH
19394 shlibpath_overrides_runpath=yes
19395 ;;
19396
19397*nto* | *qnx*)
19398 version_type=qnx
19399 need_lib_prefix=no
19400 need_version=no
19401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19402 soname_spec='${libname}${release}${shared_ext}$major'
19403 shlibpath_var=LD_LIBRARY_PATH
19404 shlibpath_overrides_runpath=no
19405 hardcode_into_libs=yes
19406 dynamic_linker='ldqnx.so'
19407 ;;
19408
19409openbsd*)
19410 version_type=sunos
19411 sys_lib_dlsearch_path_spec="/usr/lib"
19412 need_lib_prefix=no
19413 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19414 case $host_os in
19415 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19416 *) need_version=no ;;
19417 esac
19418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19420 shlibpath_var=LD_LIBRARY_PATH
19421 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19422 case $host_os in
19423 openbsd2.[89] | openbsd2.[89].*)
19424 shlibpath_overrides_runpath=no
19425 ;;
19426 *)
19427 shlibpath_overrides_runpath=yes
19428 ;;
19429 esac
19430 else
19431 shlibpath_overrides_runpath=yes
19432 fi
19433 ;;
19434
19435os2*)
19436 libname_spec='$name'
19437 shrext_cmds=".dll"
19438 need_lib_prefix=no
19439 library_names_spec='$libname${shared_ext} $libname.a'
19440 dynamic_linker='OS/2 ld.exe'
19441 shlibpath_var=LIBPATH
19442 ;;
19443
19444osf3* | osf4* | osf5*)
19445 version_type=osf
19446 need_lib_prefix=no
19447 need_version=no
19448 soname_spec='${libname}${release}${shared_ext}$major'
19449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19450 shlibpath_var=LD_LIBRARY_PATH
19451 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19452 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19453 ;;
19454
19455rdos*)
19456 dynamic_linker=no
19457 ;;
19458
19459solaris*)
19460 version_type=linux
19461 need_lib_prefix=no
19462 need_version=no
19463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19464 soname_spec='${libname}${release}${shared_ext}$major'
19465 shlibpath_var=LD_LIBRARY_PATH
19466 shlibpath_overrides_runpath=yes
19467 hardcode_into_libs=yes
19468 # ldd complains unless libraries are executable
19469 postinstall_cmds='chmod +x $lib'
19470 ;;
19471
19472sunos4*)
19473 version_type=sunos
19474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19475 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19476 shlibpath_var=LD_LIBRARY_PATH
19477 shlibpath_overrides_runpath=yes
19478 if test "$with_gnu_ld" = yes; then
19479 need_lib_prefix=no
19480 fi
19481 need_version=yes
19482 ;;
19483
19484sysv4 | sysv4.3*)
19485 version_type=linux
19486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19487 soname_spec='${libname}${release}${shared_ext}$major'
19488 shlibpath_var=LD_LIBRARY_PATH
19489 case $host_vendor in
19490 sni)
19491 shlibpath_overrides_runpath=no
19492 need_lib_prefix=no
19493 runpath_var=LD_RUN_PATH
19494 ;;
19495 siemens)
19496 need_lib_prefix=no
19497 ;;
19498 motorola)
19499 need_lib_prefix=no
19500 need_version=no
19501 shlibpath_overrides_runpath=no
19502 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19503 ;;
19504 esac
19505 ;;
19506
19507sysv4*MP*)
19508 if test -d /usr/nec ;then
19509 version_type=linux
19510 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19511 soname_spec='$libname${shared_ext}.$major'
19512 shlibpath_var=LD_LIBRARY_PATH
19513 fi
19514 ;;
19515
19516sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19517 version_type=freebsd-elf
19518 need_lib_prefix=no
19519 need_version=no
19520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19521 soname_spec='${libname}${release}${shared_ext}$major'
19522 shlibpath_var=LD_LIBRARY_PATH
19523 shlibpath_overrides_runpath=yes
19524 hardcode_into_libs=yes
19525 if test "$with_gnu_ld" = yes; then
19526 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19527 else
19528 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19529 case $host_os in
19530 sco3.2v5*)
19531 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19532 ;;
19533 esac
19534 fi
19535 sys_lib_dlsearch_path_spec='/usr/lib'
19536 ;;
19537
19538tpf*)
19539 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19540 version_type=linux
19541 need_lib_prefix=no
19542 need_version=no
19543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19544 shlibpath_var=LD_LIBRARY_PATH
19545 shlibpath_overrides_runpath=no
19546 hardcode_into_libs=yes
19547 ;;
19548
19549uts4*)
19550 version_type=linux
19551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19552 soname_spec='${libname}${release}${shared_ext}$major'
19553 shlibpath_var=LD_LIBRARY_PATH
19554 ;;
19555
19556*)
19557 dynamic_linker=no
19558 ;;
19559esac
19560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19561$as_echo "$dynamic_linker" >&6; }
19562test "$dynamic_linker" = no && can_build_shared=no
19563
19564variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19565if test "$GCC" = yes; then
19566 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19567fi
19568
19569if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19570 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19571fi
19572if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19573 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19574fi
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
cristy0c60a692010-11-04 01:09:47 +000019611
19612
cristy73bd4a52010-10-05 11:24:23 +000019613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19614$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19615hardcode_action_CXX=
19616if test -n "$hardcode_libdir_flag_spec_CXX" ||
19617 test -n "$runpath_var_CXX" ||
19618 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19619
19620 # We can hardcode non-existent directories.
19621 if test "$hardcode_direct_CXX" != no &&
19622 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19623 # have to relink, otherwise we might link with an installed library
19624 # when we should be linking with a yet-to-be-installed one
19625 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19626 test "$hardcode_minus_L_CXX" != no; then
19627 # Linking always hardcodes the temporary library directory.
19628 hardcode_action_CXX=relink
19629 else
19630 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19631 hardcode_action_CXX=immediate
19632 fi
19633else
19634 # We cannot hardcode anything, or else we can only hardcode existing
19635 # directories.
19636 hardcode_action_CXX=unsupported
19637fi
19638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19639$as_echo "$hardcode_action_CXX" >&6; }
19640
19641if test "$hardcode_action_CXX" = relink ||
19642 test "$inherit_rpath_CXX" = yes; then
19643 # Fast installation is not supported
19644 enable_fast_install=no
19645elif test "$shlibpath_overrides_runpath" = yes ||
19646 test "$enable_shared" = no; then
19647 # Fast installation is not necessary
19648 enable_fast_install=needless
19649fi
19650
19651
19652
19653
19654
19655
19656
19657 fi # test -n "$compiler"
19658
19659 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019660 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019661 LDCXX=$LD
19662 LD=$lt_save_LD
19663 GCC=$lt_save_GCC
19664 with_gnu_ld=$lt_save_with_gnu_ld
19665 lt_cv_path_LDCXX=$lt_cv_path_LD
19666 lt_cv_path_LD=$lt_save_path_LD
19667 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19668 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19669fi # test "$_lt_caught_CXX_error" != yes
19670
19671ac_ext=c
19672ac_cpp='$CPP $CPPFLAGS'
19673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19675ac_compiler_gnu=$ac_cv_c_compiler_gnu
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689 ac_config_commands="$ac_config_commands libtool"
19690
19691
19692
19693
19694# Only expand once:
19695
19696
19697
cristy3ed852e2009-09-05 21:47:34 +000019698
19699
19700# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019701
19702
19703
19704
19705
19706
19707
cristy73bd4a52010-10-05 11:24:23 +000019708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19709$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019710if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019711 $as_echo_n "(cached) " >&6
19712else
19713
19714module=yes
19715eval libltdl_cv_shlibext=$shrext_cmds
19716
19717fi
19718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19719$as_echo "$libltdl_cv_shlibext" >&6; }
19720if test -n "$libltdl_cv_shlibext"; then
19721
19722cat >>confdefs.h <<_ACEOF
19723#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19724_ACEOF
19725
19726fi
19727
19728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19729$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019730if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019731 $as_echo_n "(cached) " >&6
19732else
19733 lt_cv_module_path_var="$shlibpath_var"
19734fi
19735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19736$as_echo "$lt_cv_module_path_var" >&6; }
19737if test -n "$lt_cv_module_path_var"; then
19738
19739cat >>confdefs.h <<_ACEOF
19740#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19741_ACEOF
19742
19743fi
19744
19745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19746$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019747if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019748 $as_echo_n "(cached) " >&6
19749else
19750 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19751fi
19752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19753$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19754if test -n "$lt_cv_sys_dlsearch_path"; then
19755 sys_dlsearch_path=
19756 for dir in $lt_cv_sys_dlsearch_path; do
19757 if test -z "$sys_dlsearch_path"; then
19758 sys_dlsearch_path="$dir"
19759 else
19760 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19761 fi
19762 done
19763
19764cat >>confdefs.h <<_ACEOF
19765#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19766_ACEOF
19767
19768fi
19769
19770
19771LT_DLLOADERS=
19772
19773
19774ac_ext=c
19775ac_cpp='$CPP $CPPFLAGS'
19776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19778ac_compiler_gnu=$ac_cv_c_compiler_gnu
19779
19780
19781LIBADD_DLOPEN=
19782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19783$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019784if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019785 $as_echo_n "(cached) " >&6
19786else
19787 ac_func_search_save_LIBS=$LIBS
19788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19789/* end confdefs.h. */
19790
19791/* Override any GCC internal prototype to avoid an error.
19792 Use char because int might match the return type of a GCC
19793 builtin and then its argument prototype would still apply. */
19794#ifdef __cplusplus
19795extern "C"
19796#endif
19797char dlopen ();
19798int
19799main ()
19800{
19801return dlopen ();
19802 ;
19803 return 0;
19804}
19805_ACEOF
19806for ac_lib in '' dl; do
19807 if test -z "$ac_lib"; then
19808 ac_res="none required"
19809 else
19810 ac_res=-l$ac_lib
19811 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19812 fi
19813 if ac_fn_c_try_link "$LINENO"; then :
19814 ac_cv_search_dlopen=$ac_res
19815fi
19816rm -f core conftest.err conftest.$ac_objext \
19817 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000019818 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019819 break
19820fi
19821done
cristyda16f162011-02-19 23:52:17 +000019822if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019823
19824else
19825 ac_cv_search_dlopen=no
19826fi
19827rm conftest.$ac_ext
19828LIBS=$ac_func_search_save_LIBS
19829fi
19830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19831$as_echo "$ac_cv_search_dlopen" >&6; }
19832ac_res=$ac_cv_search_dlopen
19833if test "$ac_res" != no; then :
19834 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19835
19836$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19837
19838 if test "$ac_cv_search_dlopen" != "none required" ; then
19839 LIBADD_DLOPEN="-ldl"
19840 fi
19841 libltdl_cv_lib_dl_dlopen="yes"
19842 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19843else
19844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19845/* end confdefs.h. */
19846#if HAVE_DLFCN_H
19847# include <dlfcn.h>
19848#endif
19849
19850int
19851main ()
19852{
19853dlopen(0, 0);
19854 ;
19855 return 0;
19856}
19857_ACEOF
19858if ac_fn_c_try_link "$LINENO"; then :
19859
19860$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19861
19862 libltdl_cv_func_dlopen="yes"
19863 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19864else
19865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19866$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019867if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019868 $as_echo_n "(cached) " >&6
19869else
19870 ac_check_lib_save_LIBS=$LIBS
19871LIBS="-lsvld $LIBS"
19872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19873/* end confdefs.h. */
19874
19875/* Override any GCC internal prototype to avoid an error.
19876 Use char because int might match the return type of a GCC
19877 builtin and then its argument prototype would still apply. */
19878#ifdef __cplusplus
19879extern "C"
19880#endif
19881char dlopen ();
19882int
19883main ()
19884{
19885return dlopen ();
19886 ;
19887 return 0;
19888}
19889_ACEOF
19890if ac_fn_c_try_link "$LINENO"; then :
19891 ac_cv_lib_svld_dlopen=yes
19892else
19893 ac_cv_lib_svld_dlopen=no
19894fi
19895rm -f core conftest.err conftest.$ac_objext \
19896 conftest$ac_exeext conftest.$ac_ext
19897LIBS=$ac_check_lib_save_LIBS
19898fi
19899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19900$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000019901if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019902
19903$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19904
19905 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19906 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19907fi
19908
19909fi
19910rm -f core conftest.err conftest.$ac_objext \
19911 conftest$ac_exeext conftest.$ac_ext
19912fi
19913
19914if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19915then
19916 lt_save_LIBS="$LIBS"
19917 LIBS="$LIBS $LIBADD_DLOPEN"
19918 for ac_func in dlerror
19919do :
19920 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000019921if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019922 cat >>confdefs.h <<_ACEOF
19923#define HAVE_DLERROR 1
19924_ACEOF
19925
19926fi
19927done
19928
19929 LIBS="$lt_save_LIBS"
19930fi
19931
19932
19933LIBADD_SHL_LOAD=
19934ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000019935if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019936
19937$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19938
19939 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19940else
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19942$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019943if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019944 $as_echo_n "(cached) " >&6
19945else
19946 ac_check_lib_save_LIBS=$LIBS
19947LIBS="-ldld $LIBS"
19948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19949/* end confdefs.h. */
19950
19951/* Override any GCC internal prototype to avoid an error.
19952 Use char because int might match the return type of a GCC
19953 builtin and then its argument prototype would still apply. */
19954#ifdef __cplusplus
19955extern "C"
19956#endif
19957char shl_load ();
19958int
19959main ()
19960{
19961return shl_load ();
19962 ;
19963 return 0;
19964}
19965_ACEOF
19966if ac_fn_c_try_link "$LINENO"; then :
19967 ac_cv_lib_dld_shl_load=yes
19968else
19969 ac_cv_lib_dld_shl_load=no
19970fi
19971rm -f core conftest.err conftest.$ac_objext \
19972 conftest$ac_exeext conftest.$ac_ext
19973LIBS=$ac_check_lib_save_LIBS
19974fi
19975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19976$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000019977if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019978
19979$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19980
19981 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19982 LIBADD_SHL_LOAD="-ldld"
19983fi
19984
19985fi
19986
19987
19988
19989case $host_os in
19990darwin[1567].*)
19991# We only want this for pre-Mac OS X 10.4.
19992 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000019993if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019994
19995$as_echo "#define HAVE_DYLD 1" >>confdefs.h
19996
19997 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19998fi
19999
20000 ;;
20001beos*)
20002 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20003 ;;
20004cygwin* | mingw* | os2* | pw32*)
20005 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20006"
cristyda16f162011-02-19 23:52:17 +000020007if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020008 ac_have_decl=1
20009else
20010 ac_have_decl=0
20011fi
20012
20013cat >>confdefs.h <<_ACEOF
20014#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20015_ACEOF
20016
20017 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20018 ;;
20019esac
20020
20021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20022$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020023if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020024 $as_echo_n "(cached) " >&6
20025else
20026 ac_check_lib_save_LIBS=$LIBS
20027LIBS="-ldld $LIBS"
20028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20029/* end confdefs.h. */
20030
20031/* Override any GCC internal prototype to avoid an error.
20032 Use char because int might match the return type of a GCC
20033 builtin and then its argument prototype would still apply. */
20034#ifdef __cplusplus
20035extern "C"
20036#endif
20037char dld_link ();
20038int
20039main ()
20040{
20041return dld_link ();
20042 ;
20043 return 0;
20044}
20045_ACEOF
20046if ac_fn_c_try_link "$LINENO"; then :
20047 ac_cv_lib_dld_dld_link=yes
20048else
20049 ac_cv_lib_dld_dld_link=no
20050fi
20051rm -f core conftest.err conftest.$ac_objext \
20052 conftest$ac_exeext conftest.$ac_ext
20053LIBS=$ac_check_lib_save_LIBS
20054fi
20055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20056$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020057if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020058
20059$as_echo "#define HAVE_DLD 1" >>confdefs.h
20060
20061 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20062fi
20063
20064
20065
20066
20067LT_DLPREOPEN=
20068if test -n "$LT_DLLOADERS"
20069then
20070 for lt_loader in $LT_DLLOADERS; do
20071 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20072 done
20073
20074$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20075
20076fi
20077
20078
20079LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20080
20081
20082ac_ext=c
20083ac_cpp='$CPP $CPPFLAGS'
20084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20086ac_compiler_gnu=$ac_cv_c_compiler_gnu
20087
20088
20089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20090$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020091if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020092 $as_echo_n "(cached) " >&6
20093else
20094 lt_cv_sys_symbol_underscore=no
20095 cat > conftest.$ac_ext <<_LT_EOF
20096void nm_test_func(){}
20097int main(){nm_test_func;return 0;}
20098_LT_EOF
20099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20100 (eval $ac_compile) 2>&5
20101 ac_status=$?
20102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20103 test $ac_status = 0; }; then
20104 # Now try to grab the symbols.
20105 ac_nlist=conftest.nm
20106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20107 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20108 ac_status=$?
20109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20110 test $ac_status = 0; } && test -s "$ac_nlist"; then
20111 # See whether the symbols have a leading underscore.
20112 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20113 lt_cv_sys_symbol_underscore=yes
20114 else
20115 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20116 :
20117 else
20118 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20119 fi
20120 fi
20121 else
20122 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20123 fi
20124 else
20125 echo "configure: failed program was:" >&5
20126 cat conftest.c >&5
20127 fi
20128 rm -rf conftest*
20129
20130fi
20131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20132$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20133 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20134
20135
20136if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20137 if test x"$libltdl_cv_func_dlopen" = xyes ||
20138 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20140$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020141if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020142 $as_echo_n "(cached) " >&6
20143else
20144 libltdl_cv_need_uscore=unknown
20145 save_LIBS="$LIBS"
20146 LIBS="$LIBS $LIBADD_DLOPEN"
20147 if test "$cross_compiling" = yes; then :
20148 libltdl_cv_need_uscore=cross
20149else
20150 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20151 lt_status=$lt_dlunknown
20152 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020153#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020154#include "confdefs.h"
20155
20156#if HAVE_DLFCN_H
20157#include <dlfcn.h>
20158#endif
20159
20160#include <stdio.h>
20161
20162#ifdef RTLD_GLOBAL
20163# define LT_DLGLOBAL RTLD_GLOBAL
20164#else
20165# ifdef DL_GLOBAL
20166# define LT_DLGLOBAL DL_GLOBAL
20167# else
20168# define LT_DLGLOBAL 0
20169# endif
20170#endif
20171
20172/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20173 find out it does not work in some platform. */
20174#ifndef LT_DLLAZY_OR_NOW
20175# ifdef RTLD_LAZY
20176# define LT_DLLAZY_OR_NOW RTLD_LAZY
20177# else
20178# ifdef DL_LAZY
20179# define LT_DLLAZY_OR_NOW DL_LAZY
20180# else
20181# ifdef RTLD_NOW
20182# define LT_DLLAZY_OR_NOW RTLD_NOW
20183# else
20184# ifdef DL_NOW
20185# define LT_DLLAZY_OR_NOW DL_NOW
20186# else
20187# define LT_DLLAZY_OR_NOW 0
20188# endif
20189# endif
20190# endif
20191# endif
20192#endif
20193
cristy0c60a692010-11-04 01:09:47 +000020194/* When -fvisbility=hidden is used, assume the code has been annotated
20195 correspondingly for the symbols needed. */
20196#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020197int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020198#endif
20199
cristyda16f162011-02-19 23:52:17 +000020200int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020201int main ()
20202{
20203 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20204 int status = $lt_dlunknown;
20205
20206 if (self)
20207 {
20208 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020209 else
20210 {
20211 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20212 else puts (dlerror ());
20213 }
cristy73bd4a52010-10-05 11:24:23 +000020214 /* dlclose (self); */
20215 }
20216 else
20217 puts (dlerror ());
20218
20219 return status;
20220}
20221_LT_EOF
20222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20223 (eval $ac_link) 2>&5
20224 ac_status=$?
20225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20226 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20227 (./conftest; exit; ) >&5 2>/dev/null
20228 lt_status=$?
20229 case x$lt_status in
20230 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20231 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20232 x$lt_dlunknown|x*) ;;
20233 esac
20234 else :
20235 # compilation failed
20236
20237 fi
20238fi
20239rm -fr conftest*
20240
20241 LIBS="$save_LIBS"
20242
20243fi
20244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20245$as_echo "$libltdl_cv_need_uscore" >&6; }
20246 fi
20247fi
20248
20249if test x"$libltdl_cv_need_uscore" = xyes; then
20250
20251$as_echo "#define NEED_USCORE 1" >>confdefs.h
20252
20253fi
20254
20255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20256$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020257if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020258 $as_echo_n "(cached) " >&6
20259else
20260 # PORTME does your system automatically load deplibs for dlopen?
20261 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20262 # For now, we just catch OSes we know something about -- in the
20263 # future, we'll try test this programmatically.
20264 lt_cv_sys_dlopen_deplibs=unknown
20265 case $host_os in
20266 aix3*|aix4.1.*|aix4.2.*)
20267 # Unknown whether this is true for these versions of AIX, but
20268 # we want this `case' here to explicitly catch those versions.
20269 lt_cv_sys_dlopen_deplibs=unknown
20270 ;;
20271 aix[4-9]*)
20272 lt_cv_sys_dlopen_deplibs=yes
20273 ;;
20274 amigaos*)
20275 case $host_cpu in
20276 powerpc)
20277 lt_cv_sys_dlopen_deplibs=no
20278 ;;
20279 esac
20280 ;;
20281 darwin*)
20282 # Assuming the user has installed a libdl from somewhere, this is true
20283 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20284 lt_cv_sys_dlopen_deplibs=yes
20285 ;;
20286 freebsd* | dragonfly*)
20287 lt_cv_sys_dlopen_deplibs=yes
20288 ;;
cristy0c60a692010-11-04 01:09:47 +000020289 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020290 # GNU and its variants, using gnu ld.so (Glibc)
20291 lt_cv_sys_dlopen_deplibs=yes
20292 ;;
20293 hpux10*|hpux11*)
20294 lt_cv_sys_dlopen_deplibs=yes
20295 ;;
20296 interix*)
20297 lt_cv_sys_dlopen_deplibs=yes
20298 ;;
20299 irix[12345]*|irix6.[01]*)
20300 # Catch all versions of IRIX before 6.2, and indicate that we don't
20301 # know how it worked for any of those versions.
20302 lt_cv_sys_dlopen_deplibs=unknown
20303 ;;
20304 irix*)
20305 # The case above catches anything before 6.2, and it's known that
20306 # at 6.2 and later dlopen does load deplibs.
20307 lt_cv_sys_dlopen_deplibs=yes
20308 ;;
20309 netbsd*)
20310 lt_cv_sys_dlopen_deplibs=yes
20311 ;;
20312 openbsd*)
20313 lt_cv_sys_dlopen_deplibs=yes
20314 ;;
20315 osf[1234]*)
20316 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20317 # it did *not* use an RPATH in a shared library to find objects the
20318 # library depends on, so we explicitly say `no'.
20319 lt_cv_sys_dlopen_deplibs=no
20320 ;;
20321 osf5.0|osf5.0a|osf5.1)
20322 # dlopen *does* load deplibs and with the right loader patch applied
20323 # it even uses RPATH in a shared library to search for shared objects
20324 # that the library depends on, but there's no easy way to know if that
20325 # patch is installed. Since this is the case, all we can really
20326 # say is unknown -- it depends on the patch being installed. If
20327 # it is, this changes to `yes'. Without it, it would be `no'.
20328 lt_cv_sys_dlopen_deplibs=unknown
20329 ;;
20330 osf*)
20331 # the two cases above should catch all versions of osf <= 5.1. Read
20332 # the comments above for what we know about them.
20333 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20334 # is used to find them so we can finally say `yes'.
20335 lt_cv_sys_dlopen_deplibs=yes
20336 ;;
20337 qnx*)
20338 lt_cv_sys_dlopen_deplibs=yes
20339 ;;
20340 solaris*)
20341 lt_cv_sys_dlopen_deplibs=yes
20342 ;;
20343 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20344 libltdl_cv_sys_dlopen_deplibs=yes
20345 ;;
20346 esac
20347
20348fi
20349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20350$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20351if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20352
20353$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20354
20355fi
20356
20357:
20358
20359for ac_header in argz.h
20360do :
20361 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20362"
cristyda16f162011-02-19 23:52:17 +000020363if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020364 cat >>confdefs.h <<_ACEOF
20365#define HAVE_ARGZ_H 1
20366_ACEOF
20367
20368fi
20369
20370done
20371
20372
20373ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20374# include <argz.h>
20375#endif
20376"
cristyda16f162011-02-19 23:52:17 +000020377if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020378
20379cat >>confdefs.h <<_ACEOF
20380#define HAVE_ERROR_T 1
20381_ACEOF
20382
20383
20384else
20385
20386$as_echo "#define error_t int" >>confdefs.h
20387
20388
20389$as_echo "#define __error_t_defined 1" >>confdefs.h
20390
20391fi
20392
20393
20394ARGZ_H=
20395for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20396 argz_next argz_stringify
20397do :
20398 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20399ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020400if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020401 cat >>confdefs.h <<_ACEOF
20402#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20403_ACEOF
20404
20405else
20406 ARGZ_H=argz.h;
20407
20408 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20409
20410fi
20411done
20412
20413
20414if test -z "$ARGZ_H"; then :
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20416$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020417if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020418 $as_echo_n "(cached) " >&6
20419else
20420 case $host_os in #(
20421 *cygwin*)
20422 lt_cv_sys_argz_works=no
20423 if test "$cross_compiling" != no; then
20424 lt_cv_sys_argz_works="guessing no"
20425 else
20426 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20427 save_IFS=$IFS
20428 IFS=-.
20429 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20430 IFS=$save_IFS
20431 lt_os_major=${2-0}
20432 lt_os_minor=${3-0}
20433 lt_os_micro=${4-0}
20434 if test "$lt_os_major" -gt 1 \
20435 || { test "$lt_os_major" -eq 1 \
20436 && { test "$lt_os_minor" -gt 5 \
20437 || { test "$lt_os_minor" -eq 5 \
20438 && test "$lt_os_micro" -gt 24; }; }; }; then
20439 lt_cv_sys_argz_works=yes
20440 fi
20441 fi
20442 ;; #(
20443 *) lt_cv_sys_argz_works=yes ;;
20444 esac
20445fi
20446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20447$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020448 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020449
20450$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20451
20452else
20453 ARGZ_H=argz.h
20454
20455
20456 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20457
20458fi
20459fi
20460
20461
20462
20463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20464$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020465if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020466 $as_echo_n "(cached) " >&6
20467else
20468 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20469 libltdl_cv_preloaded_symbols=yes
20470 else
20471 libltdl_cv_preloaded_symbols=no
20472 fi
20473
20474fi
20475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20476$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20477if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20478
20479$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20480
20481fi
20482
20483# Set options
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495# Check whether --with-included_ltdl was given.
20496if test "${with_included_ltdl+set}" = set; then :
20497 withval=$with_included_ltdl;
20498fi
20499
20500
20501if test "x$with_included_ltdl" != xyes; then
20502 # We are not being forced to use the included libltdl sources, so
20503 # decide whether there is a useful installed version we can use.
20504 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20505
20506"
cristyda16f162011-02-19 23:52:17 +000020507if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020508 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20509 #include <ltdl.h>
20510"
cristyda16f162011-02-19 23:52:17 +000020511if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20513$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020514if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020515 $as_echo_n "(cached) " >&6
20516else
20517 ac_check_lib_save_LIBS=$LIBS
20518LIBS="-lltdl $LIBS"
20519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20520/* end confdefs.h. */
20521
20522/* Override any GCC internal prototype to avoid an error.
20523 Use char because int might match the return type of a GCC
20524 builtin and then its argument prototype would still apply. */
20525#ifdef __cplusplus
20526extern "C"
20527#endif
20528char lt_dladvise_preload ();
20529int
20530main ()
20531{
20532return lt_dladvise_preload ();
20533 ;
20534 return 0;
20535}
20536_ACEOF
20537if ac_fn_c_try_link "$LINENO"; then :
20538 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20539else
20540 ac_cv_lib_ltdl_lt_dladvise_preload=no
20541fi
20542rm -f core conftest.err conftest.$ac_objext \
20543 conftest$ac_exeext conftest.$ac_ext
20544LIBS=$ac_check_lib_save_LIBS
20545fi
20546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20547$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020548if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020549 with_included_ltdl=no
20550else
20551 with_included_ltdl=yes
20552fi
20553
20554else
20555 with_included_ltdl=yes
20556fi
20557
20558else
20559 with_included_ltdl=yes
20560fi
20561
20562
20563fi
20564
20565
20566
20567
20568# Check whether --with-ltdl_include was given.
20569if test "${with_ltdl_include+set}" = set; then :
20570 withval=$with_ltdl_include;
20571fi
20572
20573
20574if test -n "$with_ltdl_include"; then
20575 if test -f "$with_ltdl_include/ltdl.h"; then :
20576 else
cristy98dddb52010-11-04 00:30:15 +000020577 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020578 fi
20579else
20580 with_ltdl_include=no
20581fi
20582
20583
20584# Check whether --with-ltdl_lib was given.
20585if test "${with_ltdl_lib+set}" = set; then :
20586 withval=$with_ltdl_lib;
20587fi
20588
20589
20590if test -n "$with_ltdl_lib"; then
20591 if test -f "$with_ltdl_lib/libltdl.la"; then :
20592 else
cristy98dddb52010-11-04 00:30:15 +000020593 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020594 fi
20595else
20596 with_ltdl_lib=no
20597fi
20598
20599case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20600 ,yes,no,no,)
20601 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020602 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020603 "") enable_ltdl_convenience=yes
20604 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20605esac
20606LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20607LTDLDEPS=$LIBLTDL
20608LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20609
20610
20611
20612
20613
20614# For backwards non-gettext consistent compatibility...
20615INCLTDL="$LTDLINCL"
20616
20617
20618 ;;
20619 ,no,no,no,)
20620 # If the included ltdl is not to be used, then use the
20621 # preinstalled libltdl we found.
20622
20623$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20624
20625 LIBLTDL=-lltdl
20626 LTDLDEPS=
20627 LTDLINCL=
20628 ;;
20629 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020630 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020631 ;;
20632 *) with_included_ltdl=no
20633 LIBLTDL="-L$with_ltdl_lib -lltdl"
20634 LTDLDEPS=
20635 LTDLINCL="-I$with_ltdl_include"
20636 ;;
20637esac
20638INCLTDL="$LTDLINCL"
20639
20640# Report our decision...
20641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20642$as_echo_n "checking where to find libltdl headers... " >&6; }
20643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20644$as_echo "$LTDLINCL" >&6; }
20645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20646$as_echo_n "checking where to find libltdl library... " >&6; }
20647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20648$as_echo "$LIBLTDL" >&6; }
20649
20650
20651
20652# Check whether --enable-ltdl-install was given.
20653if test "${enable_ltdl_install+set}" = set; then :
20654 enableval=$enable_ltdl_install;
20655fi
20656
20657
20658case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20659 *yes*) ;;
20660 *) enable_ltdl_convenience=yes ;;
20661esac
20662
20663 if test x"${enable_ltdl_install-no}" != xno; then
20664 INSTALL_LTDL_TRUE=
20665 INSTALL_LTDL_FALSE='#'
20666else
20667 INSTALL_LTDL_TRUE='#'
20668 INSTALL_LTDL_FALSE=
20669fi
20670
20671 if test x"${enable_ltdl_convenience-no}" != xno; then
20672 CONVENIENCE_LTDL_TRUE=
20673 CONVENIENCE_LTDL_FALSE='#'
20674else
20675 CONVENIENCE_LTDL_TRUE='#'
20676 CONVENIENCE_LTDL_FALSE=
20677fi
20678
20679
20680
20681
20682
20683
cristy73bd4a52010-10-05 11:24:23 +000020684# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20685# the user used. This is so that ltdl.h can pick up the parent projects
20686# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20687# definitions required by ltdl.c.
20688# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20689
20690
20691
20692for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20693do :
20694 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20695ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20696"
cristy98dddb52010-11-04 00:30:15 +000020697if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020698 cat >>confdefs.h <<_ACEOF
20699#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20700_ACEOF
20701
20702fi
20703
20704done
20705
20706
20707for ac_func in closedir opendir readdir
20708do :
20709 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20710ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020711if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020712 cat >>confdefs.h <<_ACEOF
20713#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20714_ACEOF
20715
20716else
20717
20718
20719 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20720
20721fi
20722done
20723
20724for ac_func in strlcat strlcpy
20725do :
20726 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20727ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020728if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020729 cat >>confdefs.h <<_ACEOF
20730#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20731_ACEOF
20732
20733else
20734
20735
20736 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20737
20738fi
20739done
20740
20741
20742
20743cat >>confdefs.h <<_ACEOF
20744#define LT_LIBEXT "$libext"
20745_ACEOF
20746
20747
cristyda16f162011-02-19 23:52:17 +000020748name=
20749eval "lt_libprefix=\"$libname_spec\""
20750
20751cat >>confdefs.h <<_ACEOF
20752#define LT_LIBPREFIX "$lt_libprefix"
20753_ACEOF
20754
20755
cristy73bd4a52010-10-05 11:24:23 +000020756name=ltdl
cristyda16f162011-02-19 23:52:17 +000020757eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000020758
20759
20760
20761
20762
20763
20764
20765
20766# Only expand once:
20767
20768
cristy3ed852e2009-09-05 21:47:34 +000020769
20770# Check to see if building shared libraries
20771libtool_build_shared_libs='no'
20772if test "$enable_shared" = 'yes'; then
20773 libtool_build_shared_libs='yes'
20774fi
20775
20776# Check to see if building static libraries
20777libtool_build_static_libs='no'
20778if test "$enable_static" = 'yes'; then
20779 libtool_build_static_libs='yes'
20780fi
20781
cristy73bd4a52010-10-05 11:24:23 +000020782 if test "${libtool_build_shared_libs}" = 'yes'; then
20783 WITH_SHARED_LIBS_TRUE=
20784 WITH_SHARED_LIBS_FALSE='#'
20785else
20786 WITH_SHARED_LIBS_TRUE='#'
20787 WITH_SHARED_LIBS_FALSE=
20788fi
20789
cristy3ed852e2009-09-05 21:47:34 +000020790#
20791# Enable support for building loadable modules
20792#
20793
20794# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020795if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020796 withval=$with_modules; with_modules=$withval
20797else
cristy5a1cefd2010-01-06 20:42:35 +000020798 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020799fi
20800
20801
20802# Only allow building loadable modules if we are building shared libraries
20803if test "$with_modules" != 'no' ; then
20804 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020805 { $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 +000020806$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20807 with_modules='no'
20808 fi
20809fi
20810if test "$with_modules" != 'no'; then
20811
cristy8b350f62009-11-15 23:12:43 +000020812$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020813
20814fi
cristy73bd4a52010-10-05 11:24:23 +000020815 if test "$with_modules" != 'no'; then
20816 WITH_MODULES_TRUE=
20817 WITH_MODULES_FALSE='#'
20818else
20819 WITH_MODULES_TRUE='#'
20820 WITH_MODULES_FALSE=
20821fi
20822
cristy3ed852e2009-09-05 21:47:34 +000020823
20824# Enable building/use of libltdl if we are building shared libraries regardless
20825# of whether modules are built or not.
20826with_ltdl='no'
20827if test "$libtool_build_shared_libs" != 'no'; then
20828 with_ltdl='yes'
20829fi
20830
cristy73bd4a52010-10-05 11:24:23 +000020831 if test "$with_ltdl" != 'no'; then
20832 WITH_LTDL_TRUE=
20833 WITH_LTDL_FALSE='#'
20834else
20835 WITH_LTDL_TRUE='#'
20836 WITH_LTDL_FALSE=
20837fi
20838
cristy3ed852e2009-09-05 21:47:34 +000020839if test "$with_ltdl" != 'no'; then
20840
cristy8b350f62009-11-15 23:12:43 +000020841$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020842
20843
20844 # Set DLLDFLAGS
20845 if test X"$enable_shared" = Xyes; then
20846 DLLDFLAGS=-export-dynamic
20847
20848 fi
20849fi
20850
20851# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020852# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020853# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020854if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020855 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20856else
20857 enable_delegate_build='no'
20858fi
20859
20860
20861# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020862if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020863 enableval=$enable_deprecated; enable_deprecated=$enableval
20864else
20865 enable_deprecated='no'
20866fi
20867
20868
20869if test "$enable_deprecated" = 'yes'; then
20870
cristy8b350f62009-11-15 23:12:43 +000020871$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020872
20873else
20874 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20875fi
20876
20877# Build a version of ImageMagick which operates uninstalled.
20878# Used to build distributions located via MAGICK_HOME / executable path
20879# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020880if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020881 enableval=$enable_installed; enable_installed=$enableval
20882else
20883 enable_installed='yes'
20884fi
20885
20886
20887if test "$enable_installed" = 'yes'; then
20888
cristy8b350f62009-11-15 23:12:43 +000020889$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020890
20891else
20892 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20893fi
20894
20895# Permit enciphering and deciphering image pixels.
20896# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020897if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020898 enableval=$enable_cipher; enable_cipher=$enableval
20899else
20900 enable_cipher='yes'
20901fi
20902
20903
20904if test "$enable_cipher" = 'yes'; then
20905
cristy8b350f62009-11-15 23:12:43 +000020906$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020907
20908fi
20909
20910# Build an embeddable version of ImageMagick.
20911# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020912if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020913 enableval=$enable_embeddable; enable_embeddable=$enableval
20914else
20915 enable_embeddable='no'
20916fi
20917
20918
20919if test "$enable_embeddable" = 'yes'; then
20920
cristy8b350f62009-11-15 23:12:43 +000020921$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020922
20923fi
20924
20925# Build a high dynamic range version of ImageMagick.
20926# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020927if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020928 enableval=$enable_hdri; enable_hdri=$enableval
20929else
20930 enable_hdri='no'
20931fi
20932
20933
20934MAGICK_HDRI=""
20935if test "$enable_hdri" = 'yes'; then
20936 MAGICK_HDRI="HDRI"
20937
cristy8b350f62009-11-15 23:12:43 +000020938$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020939
cristyfd9dcd42010-08-08 18:07:02 +000020940 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020941fi
20942
cristy3ed852e2009-09-05 21:47:34 +000020943# Build a version of ImageMagick with assert statements.
20944# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020945if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020946 enableval=$enable_assert; enable_assert=$enableval
20947else
20948 enable_assert='yes'
20949fi
20950
20951
20952if test "$enable_assert" = 'no'; then
20953
cristy8b350f62009-11-15 23:12:43 +000020954$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020955
20956fi
20957
20958# Add configure option --enable-maintainer-mode which enables dependency
20959# checking and generation useful to package maintainers. This is made an
20960# option to avoid confusing end users.
cristy73bd4a52010-10-05 11:24:23 +000020961
20962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20963$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20964 # Check whether --enable-maintainer-mode was given.
20965if test "${enable_maintainer_mode+set}" = set; then :
20966 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20967else
20968 USE_MAINTAINER_MODE=no
20969fi
20970
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20972$as_echo "$USE_MAINTAINER_MODE" >&6; }
20973 if test $USE_MAINTAINER_MODE = yes; then
20974 MAINTAINER_MODE_TRUE=
20975 MAINTAINER_MODE_FALSE='#'
20976else
20977 MAINTAINER_MODE_TRUE='#'
20978 MAINTAINER_MODE_FALSE=
20979fi
20980
20981 MAINT=$MAINTAINER_MODE_TRUE
20982
20983
cristy3ed852e2009-09-05 21:47:34 +000020984
20985
20986# Enable ccmalloc memory debugging support
20987# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020988if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020989 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20990else
20991 enable_ccmalloc='no'
20992fi
20993
20994
20995# Enable Electric Fence memory debugging support
20996# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020997if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020998 enableval=$enable_efence; enable_efence=$enableval
20999else
21000 enable_efence='no'
21001fi
21002
21003
21004# Enable prof-based profiling support
21005# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021006if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021007 enableval=$enable_prof; enable_prof=$enableval
21008else
21009 enable_prof='no'
21010fi
21011
21012
21013# Enable gprof-based profiling support
21014# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021015if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021016 enableval=$enable_gprof; enable_gprof=$enableval
21017else
21018 enable_gprof='no'
21019fi
21020
21021
21022# Enable gcov-based profiling support
21023# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021024if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021025 enableval=$enable_gcov; enable_gcov=$enableval
21026else
21027 enable_gcov='no'
21028fi
21029
21030
21031enable_profiling='no'
21032if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21033 enable_profiling='yes'
21034 if test "$libtool_build_shared_libs" = 'yes'; then
21035 echo "Warning: Can not profile code using shared libraries"
21036 fi
21037fi
21038
21039# Magick API method prefix
21040
21041# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021042if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021043 withval=$with_method_prefix; with_method_prefix=$enableval
21044else
21045 with_method_prefix=''
21046fi
21047
21048
21049if test "$with_method_prefix" != ''; then
21050
21051cat >>confdefs.h <<_ACEOF
21052#define NAMESPACE_PREFIX $with_method_prefix
21053_ACEOF
21054
21055fi
21056
21057# Number of bits in a Quantum
21058
21059# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021060if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021061 withval=$with_quantum_depth; with_quantum_depth=$withval
21062else
21063 with_quantum_depth=16
21064fi
21065
21066
21067if test "$with_quantum_depth" != '8'; then
21068 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21069fi
21070
21071case "${with_quantum_depth}" in
21072 8 ) ;;
21073 16 ) ;;
21074 32 ) ;;
21075 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021076 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021077esac
cristycdae12a2010-09-19 02:24:31 +000021078if test "$enable_hdri" = 'yes'; then
21079 with_quantum_depth=16
21080fi
cristy3ed852e2009-09-05 21:47:34 +000021081QUANTUM_DEPTH="$with_quantum_depth"
21082
21083cat >>confdefs.h <<_ACEOF
21084#define QUANTUM_DEPTH $QUANTUM_DEPTH
21085_ACEOF
21086
21087
21088# Set pixel cache threshold
21089
21090# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021091if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021092 withval=$with_cache; with_cache=$withval
21093else
21094 with_cache=''
21095fi
21096
21097
21098if test "$with_cache" != ''; then
21099
21100cat >>confdefs.h <<_ACEOF
21101#define PixelCacheThreshold $with_cache
21102_ACEOF
21103
21104 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21105fi
21106
21107# Disable/Enable support for full delegate paths
21108
21109# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021110if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021111 withval=$with_frozenpaths; with_frozenpaths=$withval
21112else
21113 with_frozenpaths='no'
21114fi
21115
21116
21117# Enable build/install of Magick++
21118
21119# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021120if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021121 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21122else
21123 with_magick_plus_plus='yes'
21124fi
21125
21126
21127# Disable build/install of PerlMagick.
21128
21129# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021130if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021131 withval=$with_perl; with_perl=$withval
21132else
cristyb5f4e2f2010-04-25 00:49:11 +000021133 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021134fi
21135
21136
21137# Options to pass when configuring PerlMagick
21138
21139# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021140if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021141 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021142fi
21143
21144
cristy3ed852e2009-09-05 21:47:34 +000021145
21146# Enable umem, object-caching memory allocation library.
21147
21148# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021149if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021150 withval=$with_umem; with_umem=$withval
21151else
21152 with_umem='no'
21153fi
21154
21155if test "$with_umem" != 'yes' ; then
21156 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21157fi
21158
21159#
21160# Specify path to shared libstdc++ if not in normal location
21161#
21162
21163# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021164if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021165 withval=$with_libstdc; with_libstdc=$withval
21166else
21167 with_libstdc=''
21168fi
21169
21170
21171if test "$with_libstdc" != ''; then
21172 if test -d "$with_libstdc"; then
21173 LIBSTDCLDFLAGS="-L$with_libstdc"
21174 fi
21175fi
21176
21177
21178# Does gcc required -traditional?
21179if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021181$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021182if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021183 $as_echo_n "(cached) " >&6
21184else
21185 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021187/* end confdefs.h. */
21188#include <sgtty.h>
21189Autoconf TIOCGETP
21190_ACEOF
21191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021192 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021193 ac_cv_prog_gcc_traditional=yes
21194else
21195 ac_cv_prog_gcc_traditional=no
21196fi
21197rm -f conftest*
21198
21199
21200 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021202/* end confdefs.h. */
21203#include <termio.h>
21204Autoconf TCGETA
21205_ACEOF
21206if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021207 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021208 ac_cv_prog_gcc_traditional=yes
21209fi
21210rm -f conftest*
21211
21212 fi
21213fi
cristy8b350f62009-11-15 23:12:43 +000021214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021215$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21216 if test $ac_cv_prog_gcc_traditional = yes; then
21217 CC="$CC -traditional"
21218 fi
21219fi
21220
21221
21222########
21223#
21224# Set defines required to build DLLs and modules using MinGW
21225#
21226########
21227# These options are set for multi-thread DLL module build
21228# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21229# module: _DLL
21230# executable/Magick++: _DLL _MAGICKMOD_
21231MODULE_EXTRA_CPPFLAGS=''
21232LIBRARY_EXTRA_CPPFLAGS=''
21233if test "${native_win32_build}" = 'yes'; then
21234 if test "${libtool_build_shared_libs}" = 'yes'; then
21235 CPPFLAGS="$CPPFLAGS -D_DLL"
21236 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21237 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21238 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21239 if test "$with_modules" = 'yes'; then
21240 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21241 else
21242 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21243 fi
21244 else
21245 CPPFLAGS="$CPPFLAGS -D_LIB"
21246 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21247 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21248 fi
21249 if test "$with_threads" = 'yes'; then
21250 CPPFLAGS="$CPPFLAGS -D_MT"
21251 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21252 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21253 fi
21254fi
21255
21256
21257
21258# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021260$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021261if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021262 $as_echo_n "(cached) " >&6
21263else
cristy8b350f62009-11-15 23:12:43 +000021264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021265/* end confdefs.h. */
21266#include <stdlib.h>
21267#include <stdarg.h>
21268#include <string.h>
21269#include <float.h>
21270
21271int
21272main ()
21273{
21274
21275 ;
21276 return 0;
21277}
21278_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021279if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021280 ac_cv_header_stdc=yes
21281else
cristy8b350f62009-11-15 23:12:43 +000021282 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021283fi
cristy3ed852e2009-09-05 21:47:34 +000021284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21285
21286if test $ac_cv_header_stdc = yes; then
21287 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021289/* end confdefs.h. */
21290#include <string.h>
21291
21292_ACEOF
21293if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021294 $EGREP "memchr" >/dev/null 2>&1; then :
21295
cristy3ed852e2009-09-05 21:47:34 +000021296else
21297 ac_cv_header_stdc=no
21298fi
21299rm -f conftest*
21300
21301fi
21302
21303if test $ac_cv_header_stdc = yes; then
21304 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021306/* end confdefs.h. */
21307#include <stdlib.h>
21308
21309_ACEOF
21310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021311 $EGREP "free" >/dev/null 2>&1; then :
21312
cristy3ed852e2009-09-05 21:47:34 +000021313else
21314 ac_cv_header_stdc=no
21315fi
21316rm -f conftest*
21317
21318fi
21319
21320if test $ac_cv_header_stdc = yes; then
21321 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021322 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021323 :
21324else
cristy8b350f62009-11-15 23:12:43 +000021325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021326/* end confdefs.h. */
21327#include <ctype.h>
21328#include <stdlib.h>
21329#if ((' ' & 0x0FF) == 0x020)
21330# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21331# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21332#else
21333# define ISLOWER(c) \
21334 (('a' <= (c) && (c) <= 'i') \
21335 || ('j' <= (c) && (c) <= 'r') \
21336 || ('s' <= (c) && (c) <= 'z'))
21337# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21338#endif
21339
21340#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21341int
21342main ()
21343{
21344 int i;
21345 for (i = 0; i < 256; i++)
21346 if (XOR (islower (i), ISLOWER (i))
21347 || toupper (i) != TOUPPER (i))
21348 return 2;
21349 return 0;
21350}
21351_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021352if ac_fn_c_try_run "$LINENO"; then :
21353
cristy3ed852e2009-09-05 21:47:34 +000021354else
cristy8b350f62009-11-15 23:12:43 +000021355 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021356fi
cristy8b350f62009-11-15 23:12:43 +000021357rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21358 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021359fi
21360
cristy3ed852e2009-09-05 21:47:34 +000021361fi
21362fi
cristy8b350f62009-11-15 23:12:43 +000021363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021364$as_echo "$ac_cv_header_stdc" >&6; }
21365if test $ac_cv_header_stdc = yes; then
21366
cristy8b350f62009-11-15 23:12:43 +000021367$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021368
21369fi
21370
21371if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021372 { $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 +000021373 header files. Compilation cannot proceed. Please install the ANSI C
21374 headers and rerun this script." >&5
21375$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21376 header files. Compilation cannot proceed. Please install the ANSI C
21377 headers and rerun this script." >&2;};
21378fi
cristya0b81c32010-01-22 02:54:33 +000021379
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21381$as_echo_n "checking whether to enable assertions... " >&6; }
21382 # Check whether --enable-assert was given.
21383if test "${enable_assert+set}" = set; then :
21384 enableval=$enable_assert; ac_enable_assert=$enableval
21385 if test "x$enableval" = xno; then :
21386
21387$as_echo "#define NDEBUG 1" >>confdefs.h
21388
21389elif test "x$enableval" != xyes; then :
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21391$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21392 ac_enable_assert=yes
21393fi
21394else
21395 ac_enable_assert=yes
21396fi
21397
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21399$as_echo "$ac_enable_assert" >&6; }
21400
cristy3ed852e2009-09-05 21:47:34 +000021401ac_header_dirent=no
21402for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21403 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021405$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021406if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021407 $as_echo_n "(cached) " >&6
21408else
cristy8b350f62009-11-15 23:12:43 +000021409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021410/* end confdefs.h. */
21411#include <sys/types.h>
21412#include <$ac_hdr>
21413
21414int
21415main ()
21416{
21417if ((DIR *) 0)
21418return 0;
21419 ;
21420 return 0;
21421}
21422_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021423if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021424 eval "$as_ac_Header=yes"
21425else
cristy8b350f62009-11-15 23:12:43 +000021426 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021427fi
cristy3ed852e2009-09-05 21:47:34 +000021428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21429fi
cristy8b350f62009-11-15 23:12:43 +000021430eval ac_res=\$$as_ac_Header
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021432$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021433if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021434 cat >>confdefs.h <<_ACEOF
21435#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21436_ACEOF
21437
21438ac_header_dirent=$ac_hdr; break
21439fi
21440
21441done
21442# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21443if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021445$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021446if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021447 $as_echo_n "(cached) " >&6
21448else
21449 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021451/* end confdefs.h. */
21452
21453/* Override any GCC internal prototype to avoid an error.
21454 Use char because int might match the return type of a GCC
21455 builtin and then its argument prototype would still apply. */
21456#ifdef __cplusplus
21457extern "C"
21458#endif
21459char opendir ();
21460int
21461main ()
21462{
21463return opendir ();
21464 ;
21465 return 0;
21466}
21467_ACEOF
21468for ac_lib in '' dir; do
21469 if test -z "$ac_lib"; then
21470 ac_res="none required"
21471 else
21472 ac_res=-l$ac_lib
21473 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21474 fi
cristy8b350f62009-11-15 23:12:43 +000021475 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021476 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021477fi
cristy8b350f62009-11-15 23:12:43 +000021478rm -f core conftest.err conftest.$ac_objext \
21479 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021480 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021481 break
21482fi
21483done
cristyda16f162011-02-19 23:52:17 +000021484if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021485
cristy3ed852e2009-09-05 21:47:34 +000021486else
21487 ac_cv_search_opendir=no
21488fi
21489rm conftest.$ac_ext
21490LIBS=$ac_func_search_save_LIBS
21491fi
cristy8b350f62009-11-15 23:12:43 +000021492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021493$as_echo "$ac_cv_search_opendir" >&6; }
21494ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021495if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021496 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21497
21498fi
21499
21500else
cristy8b350f62009-11-15 23:12:43 +000021501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021502$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021503if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021504 $as_echo_n "(cached) " >&6
21505else
21506 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021508/* end confdefs.h. */
21509
21510/* Override any GCC internal prototype to avoid an error.
21511 Use char because int might match the return type of a GCC
21512 builtin and then its argument prototype would still apply. */
21513#ifdef __cplusplus
21514extern "C"
21515#endif
21516char opendir ();
21517int
21518main ()
21519{
21520return opendir ();
21521 ;
21522 return 0;
21523}
21524_ACEOF
21525for ac_lib in '' x; do
21526 if test -z "$ac_lib"; then
21527 ac_res="none required"
21528 else
21529 ac_res=-l$ac_lib
21530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21531 fi
cristy8b350f62009-11-15 23:12:43 +000021532 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021533 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021534fi
cristy8b350f62009-11-15 23:12:43 +000021535rm -f core conftest.err conftest.$ac_objext \
21536 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021537 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021538 break
21539fi
21540done
cristyda16f162011-02-19 23:52:17 +000021541if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021542
cristy3ed852e2009-09-05 21:47:34 +000021543else
21544 ac_cv_search_opendir=no
21545fi
21546rm conftest.$ac_ext
21547LIBS=$ac_func_search_save_LIBS
21548fi
cristy8b350f62009-11-15 23:12:43 +000021549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021550$as_echo "$ac_cv_search_opendir" >&6; }
21551ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021552if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21554
21555fi
21556
21557fi
21558
21559
21560# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000021561for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h
cristy8b350f62009-11-15 23:12:43 +000021562do :
21563 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21564ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021565if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021566 cat >>confdefs.h <<_ACEOF
21567#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21568_ACEOF
21569
21570fi
21571
21572done
21573
21574
21575########
21576#
21577# Checks for typedefs, structures, and compiler characteristics.
21578#
21579########
21580
cristy8b350f62009-11-15 23:12:43 +000021581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021582$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021583if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021584 $as_echo_n "(cached) " >&6
21585else
cristy8b350f62009-11-15 23:12:43 +000021586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021587/* end confdefs.h. */
21588
21589#include <stdbool.h>
21590#ifndef bool
21591 "error: bool is not defined"
21592#endif
21593#ifndef false
21594 "error: false is not defined"
21595#endif
21596#if false
21597 "error: false is not 0"
21598#endif
21599#ifndef true
21600 "error: true is not defined"
21601#endif
21602#if true != 1
21603 "error: true is not 1"
21604#endif
21605#ifndef __bool_true_false_are_defined
21606 "error: __bool_true_false_are_defined is not defined"
21607#endif
21608
21609 struct s { _Bool s: 1; _Bool t; } s;
21610
21611 char a[true == 1 ? 1 : -1];
21612 char b[false == 0 ? 1 : -1];
21613 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21614 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021615 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021616 char f[(_Bool) 0.0 == false ? 1 : -1];
21617 char g[true];
21618 char h[sizeof (_Bool)];
21619 char i[sizeof s.t];
21620 enum { j = false, k = true, l = false * true, m = true * 256 };
21621 /* The following fails for
21622 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21623 _Bool n[m];
21624 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21625 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021626 /* Catch a bug in an HP-UX C compiler. See
21627 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21628 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21629 */
21630 _Bool q = true;
21631 _Bool *pq = &q;
21632
21633int
21634main ()
21635{
21636
cristyda16f162011-02-19 23:52:17 +000021637 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021638 *pq |= q;
21639 *pq |= ! q;
21640 /* Refer to every declared value, to avoid compiler optimizations. */
21641 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21642 + !m + !n + !o + !p + !q + !pq);
21643
21644 ;
21645 return 0;
21646}
21647_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021648if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021649 ac_cv_header_stdbool_h=yes
21650else
cristy8b350f62009-11-15 23:12:43 +000021651 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021652fi
cristy3ed852e2009-09-05 21:47:34 +000021653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21654fi
cristy8b350f62009-11-15 23:12:43 +000021655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021656$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021657ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021658if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021659
21660cat >>confdefs.h <<_ACEOF
21661#define HAVE__BOOL 1
21662_ACEOF
21663
21664
21665fi
21666
21667if test $ac_cv_header_stdbool_h = yes; then
21668
cristy8b350f62009-11-15 23:12:43 +000021669$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021670
21671fi
21672
cristy8b350f62009-11-15 23:12:43 +000021673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021674$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021675if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021676 $as_echo_n "(cached) " >&6
21677else
cristy8b350f62009-11-15 23:12:43 +000021678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021679/* end confdefs.h. */
21680
21681int
21682main ()
21683{
21684
21685volatile int x;
21686int * volatile y = (int *) 0;
21687return !x && !y;
21688 ;
21689 return 0;
21690}
21691_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021692if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021693 ac_cv_c_volatile=yes
21694else
cristy8b350f62009-11-15 23:12:43 +000021695 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021696fi
cristy3ed852e2009-09-05 21:47:34 +000021697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21698fi
cristy8b350f62009-11-15 23:12:43 +000021699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021700$as_echo "$ac_cv_c_volatile" >&6; }
21701if test $ac_cv_c_volatile = no; then
21702
cristy8b350f62009-11-15 23:12:43 +000021703$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021704
21705fi
21706
cristy8b350f62009-11-15 23:12:43 +000021707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021708$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021709if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021710 $as_echo_n "(cached) " >&6
21711else
cristy8b350f62009-11-15 23:12:43 +000021712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021713/* end confdefs.h. */
21714#define x(y) #y
21715
21716char *s = x(teststring);
21717_ACEOF
21718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021719 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021720 ac_cv_c_stringize=no
21721else
21722 ac_cv_c_stringize=yes
21723fi
21724rm -f conftest*
21725
21726fi
cristy8b350f62009-11-15 23:12:43 +000021727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021728$as_echo "$ac_cv_c_stringize" >&6; }
21729if test $ac_cv_c_stringize = yes; then
21730
cristy8b350f62009-11-15 23:12:43 +000021731$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021732
21733fi
21734
cristy8b350f62009-11-15 23:12:43 +000021735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021736$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021737if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021738 $as_echo_n "(cached) " >&6
21739else
cristy8b350f62009-11-15 23:12:43 +000021740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021741/* end confdefs.h. */
21742#include <sys/types.h>
21743#include <sys/stat.h>
21744
21745#if defined S_ISBLK && defined S_IFDIR
21746extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21747#endif
21748
21749#if defined S_ISBLK && defined S_IFCHR
21750extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21751#endif
21752
21753#if defined S_ISLNK && defined S_IFREG
21754extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21755#endif
21756
21757#if defined S_ISSOCK && defined S_IFREG
21758extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21759#endif
21760
21761_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021762if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021763 ac_cv_header_stat_broken=no
21764else
cristy8b350f62009-11-15 23:12:43 +000021765 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021766fi
cristy3ed852e2009-09-05 21:47:34 +000021767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21768fi
cristy8b350f62009-11-15 23:12:43 +000021769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021770$as_echo "$ac_cv_header_stat_broken" >&6; }
21771if test $ac_cv_header_stat_broken = yes; then
21772
cristy8b350f62009-11-15 23:12:43 +000021773$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021774
21775fi
21776
cristy8b350f62009-11-15 23:12:43 +000021777{ $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 +000021778$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021779if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021780 $as_echo_n "(cached) " >&6
21781else
cristy8b350f62009-11-15 23:12:43 +000021782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021783/* end confdefs.h. */
21784#include <sys/types.h>
21785#include <sys/time.h>
21786#include <time.h>
21787
21788int
21789main ()
21790{
21791if ((struct tm *) 0)
21792return 0;
21793 ;
21794 return 0;
21795}
21796_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021797if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021798 ac_cv_header_time=yes
21799else
cristy8b350f62009-11-15 23:12:43 +000021800 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021801fi
cristy3ed852e2009-09-05 21:47:34 +000021802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21803fi
cristy8b350f62009-11-15 23:12:43 +000021804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021805$as_echo "$ac_cv_header_time" >&6; }
21806if test $ac_cv_header_time = yes; then
21807
cristy8b350f62009-11-15 23:12:43 +000021808$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021809
21810fi
21811
cristy8b350f62009-11-15 23:12:43 +000021812{ $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 +000021813$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021814if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021815 $as_echo_n "(cached) " >&6
21816else
cristy8b350f62009-11-15 23:12:43 +000021817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021818/* end confdefs.h. */
21819#include <sys/types.h>
21820#include <time.h>
21821
21822int
21823main ()
21824{
21825struct tm tm;
21826 int *p = &tm.tm_sec;
21827 return !p;
21828 ;
21829 return 0;
21830}
21831_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021832if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021833 ac_cv_struct_tm=time.h
21834else
cristy8b350f62009-11-15 23:12:43 +000021835 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021836fi
cristy3ed852e2009-09-05 21:47:34 +000021837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21838fi
cristy8b350f62009-11-15 23:12:43 +000021839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021840$as_echo "$ac_cv_struct_tm" >&6; }
21841if test $ac_cv_struct_tm = sys/time.h; then
21842
cristy8b350f62009-11-15 23:12:43 +000021843$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021844
21845fi
21846
cristy92703d82010-04-26 00:18:18 +000021847ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21848#include <$ac_cv_struct_tm>
21849
21850"
cristyda16f162011-02-19 23:52:17 +000021851if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021852
21853cat >>confdefs.h <<_ACEOF
21854#define HAVE_STRUCT_TM_TM_ZONE 1
21855_ACEOF
21856
21857
21858fi
21859
21860if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21861
21862$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21863
21864else
21865 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21866"
cristyda16f162011-02-19 23:52:17 +000021867if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021868 ac_have_decl=1
21869else
21870 ac_have_decl=0
21871fi
21872
21873cat >>confdefs.h <<_ACEOF
21874#define HAVE_DECL_TZNAME $ac_have_decl
21875_ACEOF
21876
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21878$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021879if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021880 $as_echo_n "(cached) " >&6
21881else
21882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21883/* end confdefs.h. */
21884#include <time.h>
21885#if !HAVE_DECL_TZNAME
21886extern char *tzname[];
21887#endif
21888
21889int
21890main ()
21891{
21892return tzname[0][0];
21893 ;
21894 return 0;
21895}
21896_ACEOF
21897if ac_fn_c_try_link "$LINENO"; then :
21898 ac_cv_var_tzname=yes
21899else
21900 ac_cv_var_tzname=no
21901fi
21902rm -f core conftest.err conftest.$ac_objext \
21903 conftest$ac_exeext conftest.$ac_ext
21904fi
21905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21906$as_echo "$ac_cv_var_tzname" >&6; }
21907 if test $ac_cv_var_tzname = yes; then
21908
21909$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21910
21911 fi
21912fi
21913
cristy8b350f62009-11-15 23:12:43 +000021914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021915$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021916if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021917 $as_echo_n "(cached) " >&6
21918else
21919 echo '#! /bin/cat
21920exit 69
21921' >conftest
21922chmod u+x conftest
21923(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21924if test $? -ne 69; then
21925 ac_cv_sys_interpreter=yes
21926else
21927 ac_cv_sys_interpreter=no
21928fi
21929rm -f conftest
21930fi
cristy8b350f62009-11-15 23:12:43 +000021931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021932$as_echo "$ac_cv_sys_interpreter" >&6; }
21933interpval=$ac_cv_sys_interpreter
21934
21935
cristy3ed852e2009-09-05 21:47:34 +000021936# If the C compiler supports the keyword inline, do nothing. Otherwise
21937# define inline to __inline__ or __inline if it accepts one of those,
21938# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021940$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021941if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021942 $as_echo_n "(cached) " >&6
21943else
21944 ac_cv_c_inline=no
21945for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021947/* end confdefs.h. */
21948#ifndef __cplusplus
21949typedef int foo_t;
21950static $ac_kw foo_t static_foo () {return 0; }
21951$ac_kw foo_t foo () {return 0; }
21952#endif
21953
21954_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021955if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021956 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021957fi
cristy3ed852e2009-09-05 21:47:34 +000021958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21959 test "$ac_cv_c_inline" != no && break
21960done
21961
21962fi
cristy8b350f62009-11-15 23:12:43 +000021963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021964$as_echo "$ac_cv_c_inline" >&6; }
21965
cristy3ed852e2009-09-05 21:47:34 +000021966case $ac_cv_c_inline in
21967 inline | yes) ;;
21968 *)
21969 case $ac_cv_c_inline in
21970 no) ac_val=;;
21971 *) ac_val=$ac_cv_c_inline;;
21972 esac
21973 cat >>confdefs.h <<_ACEOF
21974#ifndef __cplusplus
21975#define inline $ac_val
21976#endif
21977_ACEOF
21978 ;;
21979esac
21980
21981
21982# If the C compiler supports the keyword restrict, do nothing. Otherwise
21983# define restrict to __restrict__ or __restrict if it accepts one of those,
21984# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021986$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021987if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021988 $as_echo_n "(cached) " >&6
21989else
21990 ac_cv_c_restrict=no
21991 # The order here caters to the fact that C++ does not require restrict.
21992 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021994/* end confdefs.h. */
21995typedef int * int_ptr;
21996 int foo (int_ptr $ac_kw ip) {
21997 return ip[0];
21998 }
21999int
22000main ()
22001{
22002int s[1];
22003 int * $ac_kw t = s;
22004 t[0] = 0;
22005 return foo(t)
22006 ;
22007 return 0;
22008}
22009_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022010if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022011 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022012fi
cristy3ed852e2009-09-05 21:47:34 +000022013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22014 test "$ac_cv_c_restrict" != no && break
22015 done
22016
22017fi
cristy8b350f62009-11-15 23:12:43 +000022018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022019$as_echo "$ac_cv_c_restrict" >&6; }
22020
cristy3ed852e2009-09-05 21:47:34 +000022021 case $ac_cv_c_restrict in
22022 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022023 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022024 ;;
22025 *) cat >>confdefs.h <<_ACEOF
22026#define restrict $ac_cv_c_restrict
22027_ACEOF
22028 ;;
22029 esac
22030
22031
22032# If words are stored with the most significant byte first (like
22033# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022035$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022036if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022037 $as_echo_n "(cached) " >&6
22038else
22039 ac_cv_c_bigendian=unknown
22040 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022042/* end confdefs.h. */
22043#ifndef __APPLE_CC__
22044 not a universal capable compiler
22045 #endif
22046 typedef int dummy;
22047
22048_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022049if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022050
22051 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022052 # there are at least two -arch flags with different values.
22053 ac_arch=
22054 ac_prev=
22055 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22056 if test -n "$ac_prev"; then
22057 case $ac_word in
22058 i?86 | x86_64 | ppc | ppc64)
22059 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22060 ac_arch=$ac_word
22061 else
22062 ac_cv_c_bigendian=universal
22063 break
22064 fi
22065 ;;
22066 esac
22067 ac_prev=
22068 elif test "x$ac_word" = "x-arch"; then
22069 ac_prev=arch
22070 fi
22071 done
cristy3ed852e2009-09-05 21:47:34 +000022072fi
cristy3ed852e2009-09-05 21:47:34 +000022073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22074 if test $ac_cv_c_bigendian = unknown; then
22075 # See if sys/param.h defines the BYTE_ORDER macro.
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#include <sys/types.h>
22079 #include <sys/param.h>
22080
22081int
22082main ()
22083{
22084#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22085 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22086 && LITTLE_ENDIAN)
22087 bogus endian macros
22088 #endif
22089
22090 ;
22091 return 0;
22092}
22093_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022094if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022095 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022097/* end confdefs.h. */
22098#include <sys/types.h>
22099 #include <sys/param.h>
22100
22101int
22102main ()
22103{
22104#if BYTE_ORDER != BIG_ENDIAN
22105 not big endian
22106 #endif
22107
22108 ;
22109 return 0;
22110}
22111_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022112if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022113 ac_cv_c_bigendian=yes
22114else
cristy8b350f62009-11-15 23:12:43 +000022115 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022116fi
cristy3ed852e2009-09-05 21:47:34 +000022117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022118fi
cristy3ed852e2009-09-05 21:47:34 +000022119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22120 fi
22121 if test $ac_cv_c_bigendian = unknown; then
22122 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022124/* end confdefs.h. */
22125#include <limits.h>
22126
22127int
22128main ()
22129{
22130#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22131 bogus endian macros
22132 #endif
22133
22134 ;
22135 return 0;
22136}
22137_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022138if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022139 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022141/* end confdefs.h. */
22142#include <limits.h>
22143
22144int
22145main ()
22146{
22147#ifndef _BIG_ENDIAN
22148 not big endian
22149 #endif
22150
22151 ;
22152 return 0;
22153}
22154_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022155if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022156 ac_cv_c_bigendian=yes
22157else
cristy8b350f62009-11-15 23:12:43 +000022158 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022159fi
cristy3ed852e2009-09-05 21:47:34 +000022160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022161fi
cristy3ed852e2009-09-05 21:47:34 +000022162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22163 fi
22164 if test $ac_cv_c_bigendian = unknown; then
22165 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022166 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022167 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022169/* end confdefs.h. */
22170short int ascii_mm[] =
22171 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22172 short int ascii_ii[] =
22173 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22174 int use_ascii (int i) {
22175 return ascii_mm[i] + ascii_ii[i];
22176 }
22177 short int ebcdic_ii[] =
22178 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22179 short int ebcdic_mm[] =
22180 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22181 int use_ebcdic (int i) {
22182 return ebcdic_mm[i] + ebcdic_ii[i];
22183 }
22184 extern int foo;
22185
22186int
22187main ()
22188{
22189return use_ascii (foo) == use_ebcdic (foo);
22190 ;
22191 return 0;
22192}
22193_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022194if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022195 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22196 ac_cv_c_bigendian=yes
22197 fi
22198 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22199 if test "$ac_cv_c_bigendian" = unknown; then
22200 ac_cv_c_bigendian=no
22201 else
22202 # finding both strings is unlikely to happen, but who knows?
22203 ac_cv_c_bigendian=unknown
22204 fi
22205 fi
cristy3ed852e2009-09-05 21:47:34 +000022206fi
cristy3ed852e2009-09-05 21:47:34 +000022207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22208else
cristy8b350f62009-11-15 23:12:43 +000022209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022210/* end confdefs.h. */
22211$ac_includes_default
22212int
22213main ()
22214{
22215
22216 /* Are we little or big endian? From Harbison&Steele. */
22217 union
22218 {
22219 long int l;
22220 char c[sizeof (long int)];
22221 } u;
22222 u.l = 1;
22223 return u.c[sizeof (long int) - 1] == 1;
22224
22225 ;
22226 return 0;
22227}
22228_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022229if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022230 ac_cv_c_bigendian=no
22231else
cristy8b350f62009-11-15 23:12:43 +000022232 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022233fi
cristy8b350f62009-11-15 23:12:43 +000022234rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22235 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022236fi
22237
cristy3ed852e2009-09-05 21:47:34 +000022238 fi
22239fi
cristy8b350f62009-11-15 23:12:43 +000022240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022241$as_echo "$ac_cv_c_bigendian" >&6; }
22242 case $ac_cv_c_bigendian in #(
22243 yes)
cristy8b350f62009-11-15 23:12:43 +000022244 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022245;; #(
22246 no)
22247 ;; #(
22248 universal)
22249
cristy8b350f62009-11-15 23:12:43 +000022250$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022251
22252 ;; #(
22253 *)
cristy98dddb52010-11-04 00:30:15 +000022254 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022255 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022256 esac
22257
22258
22259# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022260ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022261if test "x$ac_cv_type_mode_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022262
cristy3ed852e2009-09-05 21:47:34 +000022263else
22264
22265cat >>confdefs.h <<_ACEOF
22266#define mode_t int
22267_ACEOF
22268
22269fi
22270
22271
22272# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022273ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022274if test "x$ac_cv_type_off_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022275
cristy3ed852e2009-09-05 21:47:34 +000022276else
22277
22278cat >>confdefs.h <<_ACEOF
22279#define off_t long int
22280_ACEOF
22281
22282fi
22283
22284
22285# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022286ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022287if test "x$ac_cv_type_pid_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022288
cristy3ed852e2009-09-05 21:47:34 +000022289else
22290
22291cat >>confdefs.h <<_ACEOF
22292#define pid_t int
22293_ACEOF
22294
22295fi
22296
22297
22298# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022299ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022300if test "x$ac_cv_type_size_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022301
cristy3ed852e2009-09-05 21:47:34 +000022302else
22303
22304cat >>confdefs.h <<_ACEOF
22305#define size_t unsigned int
22306_ACEOF
22307
22308fi
22309
22310
22311# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022312ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022313if test "x$ac_cv_type_ssize_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022314
cristy3ed852e2009-09-05 21:47:34 +000022315else
22316
22317cat >>confdefs.h <<_ACEOF
22318#define ssize_t int
22319_ACEOF
22320
22321fi
22322
22323
22324# If the C compiler supports a working long double type with more range
22325# or precision than the double type, define HAVE_LONG_DOUBLE.
22326
cristy8b350f62009-11-15 23:12:43 +000022327 { $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 +000022328$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022329if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022330 $as_echo_n "(cached) " >&6
22331else
cristy8b350f62009-11-15 23:12:43 +000022332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022333/* end confdefs.h. */
22334#include <float.h>
22335 long double const a[] =
22336 {
22337 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22338 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22339 };
22340 long double
22341 f (long double x)
22342 {
22343 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22344 + (x ? f (x) : 'c'));
22345 }
22346
22347int
22348main ()
22349{
22350static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22351 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22352 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22353 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22354 && (int) LDBL_EPSILON == 0
22355 )];
22356test_array [0] = 0
22357
22358 ;
22359 return 0;
22360}
22361_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022362if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022363 ac_cv_type_long_double_wider=yes
22364else
cristy8b350f62009-11-15 23:12:43 +000022365 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022366fi
cristy3ed852e2009-09-05 21:47:34 +000022367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22368fi
cristy8b350f62009-11-15 23:12:43 +000022369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022370$as_echo "$ac_cv_type_long_double_wider" >&6; }
22371 if test $ac_cv_type_long_double_wider = yes; then
22372
cristy8b350f62009-11-15 23:12:43 +000022373$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022374
22375 fi
22376
22377
22378# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
22379# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000022380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022381$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022382if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022383 $as_echo_n "(cached) " >&6
22384else
cristy8b350f62009-11-15 23:12:43 +000022385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022386/* end confdefs.h. */
22387$ac_includes_default
22388int
22389main ()
22390{
22391static int test_array [1 - 2 * !(((char) -1) < 0)];
22392test_array [0] = 0
22393
22394 ;
22395 return 0;
22396}
22397_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022398if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022399 ac_cv_c_char_unsigned=no
22400else
cristy8b350f62009-11-15 23:12:43 +000022401 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000022402fi
cristy3ed852e2009-09-05 21:47:34 +000022403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22404fi
cristy8b350f62009-11-15 23:12:43 +000022405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022406$as_echo "$ac_cv_c_char_unsigned" >&6; }
22407if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000022408 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022409
22410fi
22411
22412
22413# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
22414# The cast to long int works around a bug in the HP C Compiler
22415# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22416# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22417# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022419$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022420if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022421 $as_echo_n "(cached) " >&6
22422else
cristy8b350f62009-11-15 23:12:43 +000022423 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 +000022424
cristy3ed852e2009-09-05 21:47:34 +000022425else
cristy8b350f62009-11-15 23:12:43 +000022426 if test "$ac_cv_type_signed_short" = yes; then
22427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022429as_fn_error 77 "cannot compute sizeof (signed short)
22430See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022431 else
22432 ac_cv_sizeof_signed_short=0
22433 fi
22434fi
cristy8b350f62009-11-15 23:12:43 +000022435
cristy3ed852e2009-09-05 21:47:34 +000022436fi
cristy8b350f62009-11-15 23:12:43 +000022437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022438$as_echo "$ac_cv_sizeof_signed_short" >&6; }
22439
22440
22441
22442cat >>confdefs.h <<_ACEOF
22443#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
22444_ACEOF
22445
22446
22447
22448# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
22449# The cast to long int works around a bug in the HP C Compiler
22450# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22451# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22452# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022454$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022455if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022456 $as_echo_n "(cached) " >&6
22457else
cristy8b350f62009-11-15 23:12:43 +000022458 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 +000022459
cristy3ed852e2009-09-05 21:47:34 +000022460else
cristy8b350f62009-11-15 23:12:43 +000022461 if test "$ac_cv_type_unsigned_short" = yes; then
22462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022464as_fn_error 77 "cannot compute sizeof (unsigned short)
22465See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022466 else
22467 ac_cv_sizeof_unsigned_short=0
22468 fi
22469fi
cristy8b350f62009-11-15 23:12:43 +000022470
cristy3ed852e2009-09-05 21:47:34 +000022471fi
cristy8b350f62009-11-15 23:12:43 +000022472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022473$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
22474
22475
22476
22477cat >>confdefs.h <<_ACEOF
22478#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
22479_ACEOF
22480
22481
22482
22483# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
22484# The cast to long int works around a bug in the HP C Compiler
22485# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22486# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22487# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022489$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022490if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022491 $as_echo_n "(cached) " >&6
22492else
cristy8b350f62009-11-15 23:12:43 +000022493 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 +000022494
cristy3ed852e2009-09-05 21:47:34 +000022495else
cristy8b350f62009-11-15 23:12:43 +000022496 if test "$ac_cv_type_signed_int" = yes; then
22497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022499as_fn_error 77 "cannot compute sizeof (signed int)
22500See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022501 else
22502 ac_cv_sizeof_signed_int=0
22503 fi
22504fi
cristy8b350f62009-11-15 23:12:43 +000022505
cristy3ed852e2009-09-05 21:47:34 +000022506fi
cristy8b350f62009-11-15 23:12:43 +000022507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022508$as_echo "$ac_cv_sizeof_signed_int" >&6; }
22509
22510
22511
22512cat >>confdefs.h <<_ACEOF
22513#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
22514_ACEOF
22515
22516
22517
22518# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
22519# The cast to long int works around a bug in the HP C Compiler
22520# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22521# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22522# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022524$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022525if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022526 $as_echo_n "(cached) " >&6
22527else
cristy8b350f62009-11-15 23:12:43 +000022528 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 +000022529
cristy3ed852e2009-09-05 21:47:34 +000022530else
cristy8b350f62009-11-15 23:12:43 +000022531 if test "$ac_cv_type_unsigned_int" = yes; then
22532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022534as_fn_error 77 "cannot compute sizeof (unsigned int)
22535See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022536 else
22537 ac_cv_sizeof_unsigned_int=0
22538 fi
22539fi
cristy8b350f62009-11-15 23:12:43 +000022540
cristy3ed852e2009-09-05 21:47:34 +000022541fi
cristy8b350f62009-11-15 23:12:43 +000022542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022543$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
22544
22545
22546
22547cat >>confdefs.h <<_ACEOF
22548#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
22549_ACEOF
22550
22551
22552
22553# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
22554# The cast to long int works around a bug in the HP C Compiler
22555# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22556# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22557# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022559$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022560if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022561 $as_echo_n "(cached) " >&6
22562else
cristy8b350f62009-11-15 23:12:43 +000022563 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 +000022564
cristy3ed852e2009-09-05 21:47:34 +000022565else
cristy8b350f62009-11-15 23:12:43 +000022566 if test "$ac_cv_type_signed_long" = yes; then
22567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022569as_fn_error 77 "cannot compute sizeof (signed long)
22570See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022571 else
22572 ac_cv_sizeof_signed_long=0
22573 fi
22574fi
cristy8b350f62009-11-15 23:12:43 +000022575
cristy3ed852e2009-09-05 21:47:34 +000022576fi
cristy8b350f62009-11-15 23:12:43 +000022577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022578$as_echo "$ac_cv_sizeof_signed_long" >&6; }
22579
22580
22581
22582cat >>confdefs.h <<_ACEOF
22583#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
22584_ACEOF
22585
22586
22587
22588# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
22589# The cast to long int works around a bug in the HP C Compiler
22590# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22591# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22592# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022594$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022595if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022596 $as_echo_n "(cached) " >&6
22597else
cristy8b350f62009-11-15 23:12:43 +000022598 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 +000022599
cristy3ed852e2009-09-05 21:47:34 +000022600else
cristy8b350f62009-11-15 23:12:43 +000022601 if test "$ac_cv_type_unsigned_long" = yes; then
22602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022604as_fn_error 77 "cannot compute sizeof (unsigned long)
22605See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022606 else
22607 ac_cv_sizeof_unsigned_long=0
22608 fi
22609fi
cristy8b350f62009-11-15 23:12:43 +000022610
cristy3ed852e2009-09-05 21:47:34 +000022611fi
cristy8b350f62009-11-15 23:12:43 +000022612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022613$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22614
22615
22616
22617cat >>confdefs.h <<_ACEOF
22618#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22619_ACEOF
22620
22621
22622
22623# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
22624# 'signed long long' is not supported then the value defined is zero.
22625# The cast to long int works around a bug in the HP C Compiler
22626# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22627# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22628# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022630$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022631if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022632 $as_echo_n "(cached) " >&6
22633else
cristy8b350f62009-11-15 23:12:43 +000022634 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 +000022635
cristy3ed852e2009-09-05 21:47:34 +000022636else
cristy8b350f62009-11-15 23:12:43 +000022637 if test "$ac_cv_type_signed_long_long" = yes; then
22638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022639$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022640as_fn_error 77 "cannot compute sizeof (signed long long)
22641See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022642 else
22643 ac_cv_sizeof_signed_long_long=0
22644 fi
22645fi
cristy8b350f62009-11-15 23:12:43 +000022646
cristy3ed852e2009-09-05 21:47:34 +000022647fi
cristy8b350f62009-11-15 23:12:43 +000022648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022649$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
22650
22651
22652
22653cat >>confdefs.h <<_ACEOF
22654#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
22655_ACEOF
22656
22657
22658
22659# Obtain size of a 'unsigned long long' and define as
22660# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
22661# supported then the value defined is zero.
22662# The cast to long int works around a bug in the HP C Compiler
22663# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22664# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22665# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022667$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022668if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022669 $as_echo_n "(cached) " >&6
22670else
cristy8b350f62009-11-15 23:12:43 +000022671 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 +000022672
cristy3ed852e2009-09-05 21:47:34 +000022673else
cristy8b350f62009-11-15 23:12:43 +000022674 if test "$ac_cv_type_unsigned_long_long" = yes; then
22675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022677as_fn_error 77 "cannot compute sizeof (unsigned long long)
22678See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022679 else
22680 ac_cv_sizeof_unsigned_long_long=0
22681 fi
22682fi
cristy8b350f62009-11-15 23:12:43 +000022683
cristy3ed852e2009-09-05 21:47:34 +000022684fi
cristy8b350f62009-11-15 23:12:43 +000022685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022686$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22687
22688
22689
22690cat >>confdefs.h <<_ACEOF
22691#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22692_ACEOF
22693
22694
22695
22696# Obtain size of off_t and define as SIZEOF_OFF_T
22697# The cast to long int works around a bug in the HP C Compiler
22698# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22699# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22700# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022702$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022703if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022704 $as_echo_n "(cached) " >&6
22705else
cristy8b350f62009-11-15 23:12:43 +000022706 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 +000022707
cristy3ed852e2009-09-05 21:47:34 +000022708else
cristy8b350f62009-11-15 23:12:43 +000022709 if test "$ac_cv_type_off_t" = yes; then
22710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022712as_fn_error 77 "cannot compute sizeof (off_t)
22713See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022714 else
22715 ac_cv_sizeof_off_t=0
22716 fi
22717fi
cristy8b350f62009-11-15 23:12:43 +000022718
cristy3ed852e2009-09-05 21:47:34 +000022719fi
cristy8b350f62009-11-15 23:12:43 +000022720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022721$as_echo "$ac_cv_sizeof_off_t" >&6; }
22722
22723
22724
22725cat >>confdefs.h <<_ACEOF
22726#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22727_ACEOF
22728
22729
22730
22731# Obtain size of size_t and define as SIZEOF_SIZE_T
22732# The cast to long int works around a bug in the HP C Compiler
22733# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22734# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22735# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022737$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022738if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022739 $as_echo_n "(cached) " >&6
22740else
cristy8b350f62009-11-15 23:12:43 +000022741 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 +000022742
cristy3ed852e2009-09-05 21:47:34 +000022743else
cristy8b350f62009-11-15 23:12:43 +000022744 if test "$ac_cv_type_size_t" = yes; then
22745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022747as_fn_error 77 "cannot compute sizeof (size_t)
22748See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022749 else
22750 ac_cv_sizeof_size_t=0
22751 fi
22752fi
cristy8b350f62009-11-15 23:12:43 +000022753
cristy3ed852e2009-09-05 21:47:34 +000022754fi
cristy8b350f62009-11-15 23:12:43 +000022755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022756$as_echo "$ac_cv_sizeof_size_t" >&6; }
22757
22758
22759
22760cat >>confdefs.h <<_ACEOF
22761#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22762_ACEOF
22763
22764
22765
cristy330e9352010-06-01 18:42:49 +000022766# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
22767# The cast to long int works around a bug in the HP C Compiler
22768# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22769# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22770# This bug is HP SR number 8606223364.
22771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
22772$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022773if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000022774 $as_echo_n "(cached) " >&6
22775else
22776 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
22777
22778else
22779 if test "$ac_cv_type_ssize_t" = yes; then
22780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022782as_fn_error 77 "cannot compute sizeof (ssize_t)
22783See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000022784 else
22785 ac_cv_sizeof_ssize_t=0
22786 fi
22787fi
22788
22789fi
22790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
22791$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
22792
22793
22794
22795cat >>confdefs.h <<_ACEOF
22796#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22797_ACEOF
22798
22799
22800
cristy3ed852e2009-09-05 21:47:34 +000022801# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22802# The cast to long int works around a bug in the HP C Compiler
22803# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22804# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22805# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000022807$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022808if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022809 $as_echo_n "(cached) " >&6
22810else
cristy8b350f62009-11-15 23:12:43 +000022811 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 +000022812
cristy3ed852e2009-09-05 21:47:34 +000022813else
cristy8b350f62009-11-15 23:12:43 +000022814 if test "$ac_cv_type_unsigned_intp" = yes; then
22815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022817as_fn_error 77 "cannot compute sizeof (unsigned int*)
22818See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022819 else
22820 ac_cv_sizeof_unsigned_intp=0
22821 fi
22822fi
cristy8b350f62009-11-15 23:12:43 +000022823
cristy3ed852e2009-09-05 21:47:34 +000022824fi
cristy8b350f62009-11-15 23:12:43 +000022825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022826$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22827
22828
22829
22830cat >>confdefs.h <<_ACEOF
22831#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22832_ACEOF
22833
22834
22835
22836#
22837# Compute sized types for current CPU and compiler options.
22838#
22839
cristy8b350f62009-11-15 23:12:43 +000022840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022841$as_echo_n "checking for signed 8-bit type... " >&6; }
22842INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000022843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022844$as_echo "$INT8_T" >&6; }
22845
22846
cristy8b350f62009-11-15 23:12:43 +000022847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022848$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22849UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022851$as_echo "$UINT8_T" >&6; }
22852
22853
cristy8b350f62009-11-15 23:12:43 +000022854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022855$as_echo_n "checking for signed 16-bit type... " >&6; }
22856INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022858$as_echo "$INT16_T" >&6; }
22859
22860
cristy8b350f62009-11-15 23:12:43 +000022861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022862$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22863UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022865$as_echo "$UINT16_T" >&6; }
22866
22867
cristy8b350f62009-11-15 23:12:43 +000022868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022869$as_echo_n "checking for signed 32-bit type... " >&6; }
22870INT32_T='none'
22871if test $ac_cv_sizeof_signed_int -eq 4; then
22872 INT32_T='signed int'
22873elif test $ac_cv_sizeof_signed_long -eq 4; then
22874 INT32_T='signed long'
22875fi
cristy8b350f62009-11-15 23:12:43 +000022876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022877$as_echo "$INT32_T" >&6; }
22878
22879
cristy8b350f62009-11-15 23:12:43 +000022880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022881$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22882UINT32_T='none'
22883if test $ac_cv_sizeof_unsigned_int -eq 4; then
22884 UINT32_T='unsigned int'
22885elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22886 UINT32_T='unsigned long'
22887fi
cristy8b350f62009-11-15 23:12:43 +000022888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022889$as_echo "$UINT32_T" >&6; }
22890
22891
cristy8b350f62009-11-15 23:12:43 +000022892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022893$as_echo_n "checking for signed 64-bit type... " >&6; }
22894INT64_T='none'
22895if test $ac_cv_sizeof_signed_long -eq 8; then
22896 INT64_T='signed long'
22897elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22898 INT64_T='signed long long'
22899fi
cristy8b350f62009-11-15 23:12:43 +000022900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022901$as_echo "$INT64_T" >&6; }
22902
22903
cristy8b350f62009-11-15 23:12:43 +000022904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022905$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22906UINT64_T='none'
22907if test $ac_cv_sizeof_unsigned_long -eq 8; then
22908 UINT64_T='unsigned long'
22909elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22910 UINT64_T='unsigned long long'
22911fi
cristy8b350f62009-11-15 23:12:43 +000022912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022913$as_echo "$UINT64_T" >&6; }
22914
22915
cristy8b350f62009-11-15 23:12:43 +000022916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022917$as_echo_n "checking for unsigned maximum type... " >&6; }
22918UINTMAX_T='none'
22919if test "$UINT64_T" != 'none'; then
22920 UINTMAX_T=$UINT64_T
22921elif test "$UINT32_T" != 'none'; then
22922 UINTMAX_T=$UINT32_T
22923fi
cristy8b350f62009-11-15 23:12:43 +000022924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022925$as_echo "$UINTMAX_T" >&6; }
22926
22927
cristy8b350f62009-11-15 23:12:43 +000022928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022929$as_echo_n "checking for pointer difference type... " >&6; }
22930UINTPTR_T='none'
22931if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22932 UINTPTR_T='unsigned long'
22933elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22934 UINTPTR_T='unsigned long long'
22935fi
cristy8b350f62009-11-15 23:12:43 +000022936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022937$as_echo "$UINTPTR_T" >&6; }
22938
22939
cristy8b350f62009-11-15 23:12:43 +000022940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022941$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022943/* end confdefs.h. */
22944
22945int
22946main ()
22947{
22948{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22949 ;
22950 return 0;
22951}
22952_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022953if ac_fn_c_try_compile "$LINENO"; then :
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022955$as_echo "yes" >&6; }
22956else
cristy8b350f62009-11-15 23:12:43 +000022957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022958$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022960$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022962/* end confdefs.h. */
22963
22964int
22965main ()
22966{
22967{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22968 ;
22969 return 0;
22970}
22971_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022972if ac_fn_c_try_compile "$LINENO"; then :
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022974$as_echo "yes" >&6; }
22975
cristy8b350f62009-11-15 23:12:43 +000022976$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022977
22978else
cristy8b350f62009-11-15 23:12:43 +000022979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022980$as_echo "no" >&6; }
22981
cristy8b350f62009-11-15 23:12:43 +000022982$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022983
22984fi
cristy3ed852e2009-09-05 21:47:34 +000022985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22986fi
cristy3ed852e2009-09-05 21:47:34 +000022987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22988
22989########
22990#
22991# Check for functions
22992#
22993########
cristy73bd4a52010-10-05 11:24:23 +000022994for ac_header in stdlib.h unistd.h
22995do :
22996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22997ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022998if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000022999 cat >>confdefs.h <<_ACEOF
23000#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23001_ACEOF
23002
23003fi
23004
23005done
23006
23007for ac_func in getpagesize
23008do :
23009 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023010if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023011 cat >>confdefs.h <<_ACEOF
23012#define HAVE_GETPAGESIZE 1
23013_ACEOF
23014
23015fi
23016done
23017
23018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23019$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023020if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023021 $as_echo_n "(cached) " >&6
23022else
23023 if test "$cross_compiling" = yes; then :
23024 magick_cv_func_mmap_fileio=no
23025else
23026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23027/* end confdefs.h. */
23028$ac_includes_default
23029/* malloc might have been renamed as rpl_malloc. */
23030#undef malloc
23031
23032/*
23033 This test is derived from GNU Autoconf's similar macro.
23034 The purpose of this test is to verify that files may be memory
23035 mapped, and that memory mapping and file I/O are coherent.
23036
23037 The test creates a test file, memory maps the file, updates
23038 the file using the memory map, and then reads the file using
23039 file I/O to verify that the file contains the updates.
23040*/
23041
23042#include <fcntl.h>
23043#include <sys/mman.h>
23044
23045#if !STDC_HEADERS && !HAVE_STDLIB_H
23046char *malloc ();
23047#endif
23048
23049/* This mess was copied from the GNU getpagesize.h. */
23050#if !HAVE_GETPAGESIZE
23051/* Assume that all systems that can run configure have sys/param.h. */
23052# if !HAVE_SYS_PARAM_H
23053# define HAVE_SYS_PARAM_H 1
23054# endif
23055
23056# ifdef _SC_PAGESIZE
23057# define getpagesize() sysconf(_SC_PAGESIZE)
23058# else /* no _SC_PAGESIZE */
23059# if HAVE_SYS_PARAM_H
23060# include <sys/param.h>
23061# ifdef EXEC_PAGESIZE
23062# define getpagesize() EXEC_PAGESIZE
23063# else /* no EXEC_PAGESIZE */
23064# ifdef NBPG
23065# define getpagesize() NBPG * CLSIZE
23066# ifndef CLSIZE
23067# define CLSIZE 1
23068# endif /* no CLSIZE */
23069# else /* no NBPG */
23070# ifdef NBPC
23071# define getpagesize() NBPC
23072# else /* no NBPC */
23073# ifdef PAGESIZE
23074# define getpagesize() PAGESIZE
23075# endif /* PAGESIZE */
23076# endif /* no NBPC */
23077# endif /* no NBPG */
23078# endif /* no EXEC_PAGESIZE */
23079# else /* no HAVE_SYS_PARAM_H */
23080# define getpagesize() 8192 /* punt totally */
23081# endif /* no HAVE_SYS_PARAM_H */
23082# endif /* no _SC_PAGESIZE */
23083
23084#endif /* no HAVE_GETPAGESIZE */
23085
23086int
23087main ()
23088{
23089 char *data, *data2, *data3;
23090 int i, pagesize;
23091 int fd;
23092
23093 pagesize = getpagesize ();
23094
23095 /* First, make a file with some known garbage in it. */
23096 data = (char *) malloc (pagesize);
23097 if (!data)
23098 exit (1);
23099 for (i = 0; i < pagesize; ++i)
23100 *(data + i) = rand ();
23101 umask (0);
23102 fd = creat ("conftest.mmap", 0600);
23103 if (fd < 0)
23104 exit (1);
23105 if (write (fd, data, pagesize) != pagesize)
23106 exit (1);
23107 close (fd);
23108
23109 /* Mmap the file as read/write/shared and verify that we see the
23110 same garbage. */
23111 fd = open ("conftest.mmap", O_RDWR);
23112 if (fd < 0)
23113 exit (1);
23114 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23115 if (data2 == 0)
23116 exit (1);
23117 for (i = 0; i < pagesize; ++i)
23118 if (*(data + i) != *(data2 + i))
23119 exit (1);
23120
23121 /* Finally, make sure that changes to the mapped area
23122 percolate back to the file as seen by read(). */
23123 for (i = 0; i < pagesize; ++i)
23124 *(data2 + i) = *(data2 + i) + 1;
23125 data3 = (char *) malloc (pagesize);
23126 if (!data3)
23127 exit (1);
23128 if (read (fd, data3, pagesize) != pagesize)
23129 exit (1);
23130 for (i = 0; i < pagesize; ++i)
23131 if (*(data2 + i) != *(data3 + i))
23132 exit (1);
23133 close (fd);
23134 exit (0);
23135}
23136_ACEOF
23137if ac_fn_c_try_run "$LINENO"; then :
23138 magick_cv_func_mmap_fileio=yes
23139else
23140 magick_cv_func_mmap_fileio=no
23141fi
23142rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23143 conftest.$ac_objext conftest.beam conftest.$ac_ext
23144fi
23145
23146fi
23147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23148$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23149if test $magick_cv_func_mmap_fileio = yes; then
23150
23151$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23152
23153fi
23154rm -f conftest.mmap
23155
cristy8b350f62009-11-15 23:12:43 +000023156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023157$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023158if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023159 $as_echo_n "(cached) " >&6
23160else
cristy8b350f62009-11-15 23:12:43 +000023161 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023162 ac_cv_func_closedir_void=yes
23163else
cristy8b350f62009-11-15 23:12:43 +000023164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023165/* end confdefs.h. */
23166$ac_includes_default
23167#include <$ac_header_dirent>
23168#ifndef __cplusplus
23169int closedir ();
23170#endif
23171
23172int
23173main ()
23174{
23175return closedir (opendir (".")) != 0;
23176 ;
23177 return 0;
23178}
23179_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023180if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023181 ac_cv_func_closedir_void=no
23182else
cristy8b350f62009-11-15 23:12:43 +000023183 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023184fi
cristy8b350f62009-11-15 23:12:43 +000023185rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23186 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023187fi
23188
cristy3ed852e2009-09-05 21:47:34 +000023189fi
cristy8b350f62009-11-15 23:12:43 +000023190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023191$as_echo "$ac_cv_func_closedir_void" >&6; }
23192if test $ac_cv_func_closedir_void = yes; then
23193
cristy8b350f62009-11-15 23:12:43 +000023194$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023195
23196fi
23197
cristycd4c5312009-11-22 01:19:08 +000023198
23199
23200
23201 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023202do :
23203 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023204ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23205"
cristy98dddb52010-11-04 00:30:15 +000023206if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023207 cat >>confdefs.h <<_ACEOF
23208#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23209_ACEOF
23210
23211fi
23212
23213done
23214
cristycd4c5312009-11-22 01:19:08 +000023215
23216
23217
23218
23219
23220
23221
cristy3ed852e2009-09-05 21:47:34 +000023222for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000023223do :
23224 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023225if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023226 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023227#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000023228_ACEOF
23229
23230fi
23231done
23232
cristy8b350f62009-11-15 23:12:43 +000023233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000023234$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023235if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023236 $as_echo_n "(cached) " >&6
23237else
cristy8b350f62009-11-15 23:12:43 +000023238 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023239 ac_cv_func_mmap_fixed_mapped=no
23240else
cristy8b350f62009-11-15 23:12:43 +000023241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023242/* end confdefs.h. */
23243$ac_includes_default
23244/* malloc might have been renamed as rpl_malloc. */
23245#undef malloc
23246
23247/* Thanks to Mike Haertel and Jim Avera for this test.
23248 Here is a matrix of mmap possibilities:
23249 mmap private not fixed
23250 mmap private fixed at somewhere currently unmapped
23251 mmap private fixed at somewhere already mapped
23252 mmap shared not fixed
23253 mmap shared fixed at somewhere currently unmapped
23254 mmap shared fixed at somewhere already mapped
23255 For private mappings, we should verify that changes cannot be read()
23256 back from the file, nor mmap's back from the file at a different
23257 address. (There have been systems where private was not correctly
23258 implemented like the infamous i386 svr4.0, and systems where the
23259 VM page cache was not coherent with the file system buffer cache
23260 like early versions of FreeBSD and possibly contemporary NetBSD.)
23261 For shared mappings, we should conversely verify that changes get
23262 propagated back to all the places they're supposed to be.
23263
23264 Grep wants private fixed already mapped.
23265 The main things grep needs to know about mmap are:
23266 * does it exist and is it safe to write into the mmap'd area
23267 * how to use it (BSD variants) */
23268
23269#include <fcntl.h>
23270#include <sys/mman.h>
23271
23272#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23273char *malloc ();
23274#endif
23275
23276/* This mess was copied from the GNU getpagesize.h. */
23277#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000023278# ifdef _SC_PAGESIZE
23279# define getpagesize() sysconf(_SC_PAGESIZE)
23280# else /* no _SC_PAGESIZE */
23281# ifdef HAVE_SYS_PARAM_H
23282# include <sys/param.h>
23283# ifdef EXEC_PAGESIZE
23284# define getpagesize() EXEC_PAGESIZE
23285# else /* no EXEC_PAGESIZE */
23286# ifdef NBPG
23287# define getpagesize() NBPG * CLSIZE
23288# ifndef CLSIZE
23289# define CLSIZE 1
23290# endif /* no CLSIZE */
23291# else /* no NBPG */
23292# ifdef NBPC
23293# define getpagesize() NBPC
23294# else /* no NBPC */
23295# ifdef PAGESIZE
23296# define getpagesize() PAGESIZE
23297# endif /* PAGESIZE */
23298# endif /* no NBPC */
23299# endif /* no NBPG */
23300# endif /* no EXEC_PAGESIZE */
23301# else /* no HAVE_SYS_PARAM_H */
23302# define getpagesize() 8192 /* punt totally */
23303# endif /* no HAVE_SYS_PARAM_H */
23304# endif /* no _SC_PAGESIZE */
23305
23306#endif /* no HAVE_GETPAGESIZE */
23307
23308int
23309main ()
23310{
23311 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000023312 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000023313 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000023314 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000023315
23316 pagesize = getpagesize ();
23317
23318 /* First, make a file with some known garbage in it. */
23319 data = (char *) malloc (pagesize);
23320 if (!data)
23321 return 1;
23322 for (i = 0; i < pagesize; ++i)
23323 *(data + i) = rand ();
23324 umask (0);
23325 fd = creat ("conftest.mmap", 0600);
23326 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000023327 return 2;
cristy3ed852e2009-09-05 21:47:34 +000023328 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000023329 return 3;
cristy3ed852e2009-09-05 21:47:34 +000023330 close (fd);
23331
cristycd4c5312009-11-22 01:19:08 +000023332 /* Next, check that the tail of a page is zero-filled. File must have
23333 non-zero length, otherwise we risk SIGBUS for entire page. */
23334 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
23335 if (fd2 < 0)
23336 return 4;
cristyc54f5d42009-11-27 21:36:31 +000023337 cdata2 = "";
23338 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000023339 return 5;
cristyc54f5d42009-11-27 21:36:31 +000023340 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000023341 if (data2 == MAP_FAILED)
23342 return 6;
23343 for (i = 0; i < pagesize; ++i)
23344 if (*(data2 + i))
23345 return 7;
23346 close (fd2);
23347 if (munmap (data2, pagesize))
23348 return 8;
23349
cristy3ed852e2009-09-05 21:47:34 +000023350 /* Next, try to mmap the file at a fixed address which already has
23351 something else allocated at it. If we can, also make sure that
23352 we see the same garbage. */
23353 fd = open ("conftest.mmap", O_RDWR);
23354 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000023355 return 9;
cristy3ed852e2009-09-05 21:47:34 +000023356 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23357 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000023358 return 10;
cristy3ed852e2009-09-05 21:47:34 +000023359 for (i = 0; i < pagesize; ++i)
23360 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000023361 return 11;
cristy3ed852e2009-09-05 21:47:34 +000023362
23363 /* Finally, make sure that changes to the mapped area do not
23364 percolate back to the file as seen by read(). (This is a bug on
23365 some variants of i386 svr4.0.) */
23366 for (i = 0; i < pagesize; ++i)
23367 *(data2 + i) = *(data2 + i) + 1;
23368 data3 = (char *) malloc (pagesize);
23369 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000023370 return 12;
cristy3ed852e2009-09-05 21:47:34 +000023371 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000023372 return 13;
cristy3ed852e2009-09-05 21:47:34 +000023373 for (i = 0; i < pagesize; ++i)
23374 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000023375 return 14;
cristy3ed852e2009-09-05 21:47:34 +000023376 close (fd);
23377 return 0;
23378}
23379_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023380if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023381 ac_cv_func_mmap_fixed_mapped=yes
23382else
cristy8b350f62009-11-15 23:12:43 +000023383 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000023384fi
cristy8b350f62009-11-15 23:12:43 +000023385rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23386 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023387fi
23388
cristy3ed852e2009-09-05 21:47:34 +000023389fi
cristy8b350f62009-11-15 23:12:43 +000023390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000023391$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
23392if test $ac_cv_func_mmap_fixed_mapped = yes; then
23393
cristy8b350f62009-11-15 23:12:43 +000023394$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023395
23396fi
cristycd4c5312009-11-22 01:19:08 +000023397rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000023398
cristy3ed852e2009-09-05 21:47:34 +000023399for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000023400do :
23401 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000023402if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023403 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023404#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000023405_ACEOF
23406
23407fi
23408
23409done
23410
cristy3ed852e2009-09-05 21:47:34 +000023411for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000023412do :
23413 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23414ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023415if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023416 cat >>confdefs.h <<_ACEOF
23417#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23418_ACEOF
23419
23420fi
23421done
23422
23423if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000023424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000023425$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023426if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023427 $as_echo_n "(cached) " >&6
23428else
cristy8b350f62009-11-15 23:12:43 +000023429 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023430 ac_cv_func_fork_works=cross
23431else
cristy8b350f62009-11-15 23:12:43 +000023432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023433/* end confdefs.h. */
23434$ac_includes_default
23435int
23436main ()
23437{
23438
23439 /* By Ruediger Kuhlmann. */
23440 return fork () < 0;
23441
23442 ;
23443 return 0;
23444}
23445_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023446if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023447 ac_cv_func_fork_works=yes
23448else
cristy8b350f62009-11-15 23:12:43 +000023449 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000023450fi
cristy8b350f62009-11-15 23:12:43 +000023451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23452 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023453fi
23454
cristy3ed852e2009-09-05 21:47:34 +000023455fi
cristy8b350f62009-11-15 23:12:43 +000023456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023457$as_echo "$ac_cv_func_fork_works" >&6; }
23458
23459else
23460 ac_cv_func_fork_works=$ac_cv_func_fork
23461fi
23462if test "x$ac_cv_func_fork_works" = xcross; then
23463 case $host in
23464 *-*-amigaos* | *-*-msdosdjgpp*)
23465 # Override, as these systems have only a dummy fork() stub
23466 ac_cv_func_fork_works=no
23467 ;;
23468 *)
23469 ac_cv_func_fork_works=yes
23470 ;;
23471 esac
cristy8b350f62009-11-15 23:12:43 +000023472 { $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 +000023473$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23474fi
23475ac_cv_func_vfork_works=$ac_cv_func_vfork
23476if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000023477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000023478$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023479if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023480 $as_echo_n "(cached) " >&6
23481else
cristy8b350f62009-11-15 23:12:43 +000023482 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023483 ac_cv_func_vfork_works=cross
23484else
cristy8b350f62009-11-15 23:12:43 +000023485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023486/* end confdefs.h. */
23487/* Thanks to Paul Eggert for this test. */
23488$ac_includes_default
23489#include <sys/wait.h>
23490#ifdef HAVE_VFORK_H
23491# include <vfork.h>
23492#endif
23493/* On some sparc systems, changes by the child to local and incoming
23494 argument registers are propagated back to the parent. The compiler
23495 is told about this with #include <vfork.h>, but some compilers
23496 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23497 static variable whose address is put into a register that is
23498 clobbered by the vfork. */
23499static void
23500#ifdef __cplusplus
23501sparc_address_test (int arg)
23502# else
23503sparc_address_test (arg) int arg;
23504#endif
23505{
23506 static pid_t child;
23507 if (!child) {
23508 child = vfork ();
23509 if (child < 0) {
23510 perror ("vfork");
23511 _exit(2);
23512 }
23513 if (!child) {
23514 arg = getpid();
23515 write(-1, "", 0);
23516 _exit (arg);
23517 }
23518 }
23519}
23520
23521int
23522main ()
23523{
23524 pid_t parent = getpid ();
23525 pid_t child;
23526
23527 sparc_address_test (0);
23528
23529 child = vfork ();
23530
23531 if (child == 0) {
23532 /* Here is another test for sparc vfork register problems. This
23533 test uses lots of local variables, at least as many local
23534 variables as main has allocated so far including compiler
23535 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23536 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23537 reuse the register of parent for one of the local variables,
23538 since it will think that parent can't possibly be used any more
23539 in this routine. Assigning to the local variable will thus
23540 munge parent in the parent process. */
23541 pid_t
23542 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23543 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23544 /* Convince the compiler that p..p7 are live; otherwise, it might
23545 use the same hardware register for all 8 local variables. */
23546 if (p != p1 || p != p2 || p != p3 || p != p4
23547 || p != p5 || p != p6 || p != p7)
23548 _exit(1);
23549
23550 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23551 from child file descriptors. If the child closes a descriptor
23552 before it execs or exits, this munges the parent's descriptor
23553 as well. Test for this by closing stdout in the child. */
23554 _exit(close(fileno(stdout)) != 0);
23555 } else {
23556 int status;
23557 struct stat st;
23558
23559 while (wait(&status) != child)
23560 ;
23561 return (
23562 /* Was there some problem with vforking? */
23563 child < 0
23564
23565 /* Did the child fail? (This shouldn't happen.) */
23566 || status
23567
23568 /* Did the vfork/compiler bug occur? */
23569 || parent != getpid()
23570
23571 /* Did the file descriptor bug occur? */
23572 || fstat(fileno(stdout), &st) != 0
23573 );
23574 }
23575}
23576_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023577if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023578 ac_cv_func_vfork_works=yes
23579else
cristy8b350f62009-11-15 23:12:43 +000023580 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000023581fi
cristy8b350f62009-11-15 23:12:43 +000023582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23583 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023584fi
23585
cristy3ed852e2009-09-05 21:47:34 +000023586fi
cristy8b350f62009-11-15 23:12:43 +000023587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023588$as_echo "$ac_cv_func_vfork_works" >&6; }
23589
23590fi;
23591if test "x$ac_cv_func_fork_works" = xcross; then
23592 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000023593 { $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 +000023594$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23595fi
23596
23597if test "x$ac_cv_func_vfork_works" = xyes; then
23598
cristy8b350f62009-11-15 23:12:43 +000023599$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023600
23601else
23602
cristy8b350f62009-11-15 23:12:43 +000023603$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023604
23605fi
23606if test "x$ac_cv_func_fork_works" = xyes; then
23607
cristy8b350f62009-11-15 23:12:43 +000023608$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023609
23610fi
23611
cristy8b350f62009-11-15 23:12:43 +000023612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023613$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023614if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023615 $as_echo_n "(cached) " >&6
23616else
cristy8b350f62009-11-15 23:12:43 +000023617 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023618 ac_cv_func_memcmp_working=no
23619else
cristy8b350f62009-11-15 23:12:43 +000023620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023621/* end confdefs.h. */
23622$ac_includes_default
23623int
23624main ()
23625{
23626
23627 /* Some versions of memcmp are not 8-bit clean. */
23628 char c0 = '\100', c1 = '\200', c2 = '\201';
23629 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23630 return 1;
23631
23632 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23633 or more and with at least one buffer not starting on a 4-byte boundary.
23634 William Lewis provided this test program. */
23635 {
23636 char foo[21];
23637 char bar[21];
23638 int i;
23639 for (i = 0; i < 4; i++)
23640 {
23641 char *a = foo + i;
23642 char *b = bar + i;
23643 strcpy (a, "--------01111111");
23644 strcpy (b, "--------10000000");
23645 if (memcmp (a, b, 16) >= 0)
23646 return 1;
23647 }
23648 return 0;
23649 }
23650
23651 ;
23652 return 0;
23653}
23654_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023655if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023656 ac_cv_func_memcmp_working=yes
23657else
cristy8b350f62009-11-15 23:12:43 +000023658 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000023659fi
cristy8b350f62009-11-15 23:12:43 +000023660rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23661 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023662fi
23663
cristy3ed852e2009-09-05 21:47:34 +000023664fi
cristy8b350f62009-11-15 23:12:43 +000023665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000023666$as_echo "$ac_cv_func_memcmp_working" >&6; }
23667test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23668 *" memcmp.$ac_objext "* ) ;;
23669 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23670 ;;
23671esac
23672
23673
cristy3ed852e2009-09-05 21:47:34 +000023674for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000023675do :
23676 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23677ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023678if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023679 cat >>confdefs.h <<_ACEOF
23680#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23681_ACEOF
23682
23683fi
23684
23685done
23686
cristy8b350f62009-11-15 23:12:43 +000023687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000023688$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023689if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023690 $as_echo_n "(cached) " >&6
23691else
23692 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23693 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23694 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000023695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023696/* end confdefs.h. */
23697$ac_includes_default
23698#ifdef HAVE_SYS_SELECT_H
23699# include <sys/select.h>
23700#endif
23701#ifdef HAVE_SYS_SOCKET_H
23702# include <sys/socket.h>
23703#endif
23704
23705int
23706main ()
23707{
23708extern int select ($ac_arg1,
23709 $ac_arg234, $ac_arg234, $ac_arg234,
23710 $ac_arg5);
23711 ;
23712 return 0;
23713}
23714_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023715if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023716 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000023717fi
cristy3ed852e2009-09-05 21:47:34 +000023718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23719 done
23720 done
23721done
23722# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000023723: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000023724
23725fi
cristy8b350f62009-11-15 23:12:43 +000023726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000023727$as_echo "$ac_cv_func_select_args" >&6; }
23728ac_save_IFS=$IFS; IFS=','
23729set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23730IFS=$ac_save_IFS
23731shift
23732
23733cat >>confdefs.h <<_ACEOF
23734#define SELECT_TYPE_ARG1 $1
23735_ACEOF
23736
23737
23738cat >>confdefs.h <<_ACEOF
23739#define SELECT_TYPE_ARG234 ($2)
23740_ACEOF
23741
23742
23743cat >>confdefs.h <<_ACEOF
23744#define SELECT_TYPE_ARG5 ($3)
23745_ACEOF
23746
23747rm -f conftest*
23748
cristyda16f162011-02-19 23:52:17 +000023749if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023750 $as_echo_n "(cached) " >&6
23751else
23752 ac_cv_func_setvbuf_reversed=no
23753fi
23754
23755
cristy8b350f62009-11-15 23:12:43 +000023756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000023757$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023758if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023759 $as_echo_n "(cached) " >&6
23760else
cristy8b350f62009-11-15 23:12:43 +000023761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023762/* end confdefs.h. */
23763#include <sys/types.h>
23764#include <signal.h>
23765
23766int
23767main ()
23768{
23769return *(signal (0, 0)) (0) == 1;
23770 ;
23771 return 0;
23772}
23773_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023774if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023775 ac_cv_type_signal=int
23776else
cristy8b350f62009-11-15 23:12:43 +000023777 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000023778fi
cristy3ed852e2009-09-05 21:47:34 +000023779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23780fi
cristy8b350f62009-11-15 23:12:43 +000023781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000023782$as_echo "$ac_cv_type_signal" >&6; }
23783
23784cat >>confdefs.h <<_ACEOF
23785#define RETSIGTYPE $ac_cv_type_signal
23786_ACEOF
23787
23788
cristy8b350f62009-11-15 23:12:43 +000023789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023790$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023791if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023792 $as_echo_n "(cached) " >&6
23793else
cristy8b350f62009-11-15 23:12:43 +000023794 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023795 ac_cv_func_strtod=no
23796else
cristy8b350f62009-11-15 23:12:43 +000023797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023798/* end confdefs.h. */
23799
23800$ac_includes_default
23801#ifndef strtod
23802double strtod ();
23803#endif
23804int
23805main()
23806{
23807 {
23808 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
23809 char *string = " +69";
23810 char *term;
23811 double value;
23812 value = strtod (string, &term);
23813 if (value != 69 || term != (string + 4))
23814 return 1;
23815 }
23816
23817 {
23818 /* Under Solaris 2.4, strtod returns the wrong value for the
23819 terminating character under some conditions. */
23820 char *string = "NaN";
23821 char *term;
23822 strtod (string, &term);
23823 if (term != string && *(term - 1) == 0)
23824 return 1;
23825 }
23826 return 0;
23827}
23828
23829_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023830if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023831 ac_cv_func_strtod=yes
23832else
cristy8b350f62009-11-15 23:12:43 +000023833 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000023834fi
cristy8b350f62009-11-15 23:12:43 +000023835rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23836 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023837fi
23838
cristy3ed852e2009-09-05 21:47:34 +000023839fi
cristy8b350f62009-11-15 23:12:43 +000023840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023841$as_echo "$ac_cv_func_strtod" >&6; }
23842if test $ac_cv_func_strtod = no; then
23843 case " $LIBOBJS " in
23844 *" strtod.$ac_objext "* ) ;;
23845 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23846 ;;
23847esac
23848
cristy8b350f62009-11-15 23:12:43 +000023849ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000023850if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023851
cristy3ed852e2009-09-05 21:47:34 +000023852fi
23853
cristy3ed852e2009-09-05 21:47:34 +000023854if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023856$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023857if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023858 $as_echo_n "(cached) " >&6
23859else
23860 ac_check_lib_save_LIBS=$LIBS
23861LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023863/* end confdefs.h. */
23864
23865/* Override any GCC internal prototype to avoid an error.
23866 Use char because int might match the return type of a GCC
23867 builtin and then its argument prototype would still apply. */
23868#ifdef __cplusplus
23869extern "C"
23870#endif
23871char pow ();
23872int
23873main ()
23874{
23875return pow ();
23876 ;
23877 return 0;
23878}
23879_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023880if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023881 ac_cv_lib_m_pow=yes
23882else
cristy8b350f62009-11-15 23:12:43 +000023883 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023884fi
cristy8b350f62009-11-15 23:12:43 +000023885rm -f core conftest.err conftest.$ac_objext \
23886 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023887LIBS=$ac_check_lib_save_LIBS
23888fi
cristy8b350f62009-11-15 23:12:43 +000023889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023890$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000023891if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023892 POW_LIB=-lm
23893else
cristy8b350f62009-11-15 23:12:43 +000023894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023895$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23896fi
23897
23898fi
23899
23900fi
23901
cristy3ed852e2009-09-05 21:47:34 +000023902for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023903do :
23904 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000023905if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023906 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023907#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023908_ACEOF
23909
cristy8b350f62009-11-15 23:12:43 +000023910ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000023911if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023912
cristy8b350f62009-11-15 23:12:43 +000023913$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023914
23915fi
23916
23917fi
23918done
23919
23920
23921
cristy161b9262010-03-20 19:34:32 +000023922#
23923# Find math library
23924#
23925MATH_LIBS=''
23926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23927$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023928if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000023929 $as_echo_n "(cached) " >&6
23930else
23931 ac_check_lib_save_LIBS=$LIBS
23932LIBS="-lm $LIBS"
23933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23934/* end confdefs.h. */
23935
23936/* Override any GCC internal prototype to avoid an error.
23937 Use char because int might match the return type of a GCC
23938 builtin and then its argument prototype would still apply. */
23939#ifdef __cplusplus
23940extern "C"
23941#endif
23942char sqrt ();
23943int
23944main ()
23945{
23946return sqrt ();
23947 ;
23948 return 0;
23949}
23950_ACEOF
23951if ac_fn_c_try_link "$LINENO"; then :
23952 ac_cv_lib_m_sqrt=yes
23953else
23954 ac_cv_lib_m_sqrt=no
23955fi
23956rm -f core conftest.err conftest.$ac_objext \
23957 conftest$ac_exeext conftest.$ac_ext
23958LIBS=$ac_check_lib_save_LIBS
23959fi
23960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23961$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000023962if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000023963 MATH_LIBS="-lm"
23964fi
23965
23966LIBS="$MATH_LIBS $LIBS"
23967
23968
cristy47b022b2011-01-18 22:29:21 +000023969for ac_func in atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000023970do :
23971 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23972ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023973if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023974 cat >>confdefs.h <<_ACEOF
23975#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23976_ACEOF
23977
23978fi
23979done
23980
23981
cristye43a45e2009-09-28 14:49:00 +000023982#
23983# Check for clock_gettime().
23984#
cristy8b350f62009-11-15 23:12:43 +000023985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023986$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023987if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000023988 $as_echo_n "(cached) " >&6
23989else
23990 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023992/* end confdefs.h. */
23993
23994/* Override any GCC internal prototype to avoid an error.
23995 Use char because int might match the return type of a GCC
23996 builtin and then its argument prototype would still apply. */
23997#ifdef __cplusplus
23998extern "C"
23999#endif
24000char clock_gettime ();
24001int
24002main ()
24003{
24004return clock_gettime ();
24005 ;
24006 return 0;
24007}
24008_ACEOF
24009for ac_lib in '' rt; do
24010 if test -z "$ac_lib"; then
24011 ac_res="none required"
24012 else
24013 ac_res=-l$ac_lib
24014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24015 fi
cristy8b350f62009-11-15 23:12:43 +000024016 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024017 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024018fi
cristy8b350f62009-11-15 23:12:43 +000024019rm -f core conftest.err conftest.$ac_objext \
24020 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024021 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024022 break
24023fi
24024done
cristyda16f162011-02-19 23:52:17 +000024025if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024026
cristye43a45e2009-09-28 14:49:00 +000024027else
24028 ac_cv_search_clock_gettime=no
24029fi
24030rm conftest.$ac_ext
24031LIBS=$ac_func_search_save_LIBS
24032fi
cristy8b350f62009-11-15 23:12:43 +000024033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024034$as_echo "$ac_cv_search_clock_gettime" >&6; }
24035ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024036if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24038
24039
cristy8b350f62009-11-15 23:12:43 +000024040$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024041
cristy8b350f62009-11-15 23:12:43 +000024042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024043$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024045/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024046
24047 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024048int
24049main ()
24050{
24051clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024052 ;
24053 return 0;
24054}
24055_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024056if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024057
cristy8b350f62009-11-15 23:12:43 +000024058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000024059$as_echo "yes" >&6; }
24060
cristy8b350f62009-11-15 23:12:43 +000024061$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024062
24063
24064else
cristy8b350f62009-11-15 23:12:43 +000024065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000024066$as_echo "no" >&6; }
24067
24068fi
cristye43a45e2009-09-28 14:49:00 +000024069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24070
24071else
24072
cristy8b350f62009-11-15 23:12:43 +000024073 for ac_func in gettimeofday ftime
24074do :
24075 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24076ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024077if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024078 cat >>confdefs.h <<_ACEOF
24079#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24080_ACEOF
24081 break
24082fi
24083done
24084
24085
24086
24087fi
24088
24089
cristy3ed852e2009-09-05 21:47:34 +000024090########
24091#
24092# Check for function prototypes
24093#
24094########
24095
cristy8b350f62009-11-15 23:12:43 +000024096ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024097#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024098"
cristyda16f162011-02-19 23:52:17 +000024099if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024100 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024101else
cristy8b350f62009-11-15 23:12:43 +000024102 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024103fi
24104
cristy3ed852e2009-09-05 21:47:34 +000024105cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024106#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024107_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024108ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024109#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024110"
cristyda16f162011-02-19 23:52:17 +000024111if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024112 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024113else
cristy8b350f62009-11-15 23:12:43 +000024114 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024115fi
24116
cristy3ed852e2009-09-05 21:47:34 +000024117cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024118#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024119_ACEOF
24120
24121
cristy8b350f62009-11-15 23:12:43 +000024122ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024123#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024124"
cristyda16f162011-02-19 23:52:17 +000024125if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024126 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024127else
cristy8b350f62009-11-15 23:12:43 +000024128 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024129fi
24130
cristy3ed852e2009-09-05 21:47:34 +000024131cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024132#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024133_ACEOF
24134
24135
cristy8b350f62009-11-15 23:12:43 +000024136ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000024137#include <stdio.h>
24138#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000024139"
cristyda16f162011-02-19 23:52:17 +000024140if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024141 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024142else
cristy8b350f62009-11-15 23:12:43 +000024143 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024144fi
24145
cristy3ed852e2009-09-05 21:47:34 +000024146cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024147#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024148_ACEOF
24149
24150
cristy3ed852e2009-09-05 21:47:34 +000024151########
24152#
24153# C++ Support Tests (For Magick++)
24154#
24155########
24156have_magick_plus_plus='no'
24157if test "$with_magick_plus_plus" = 'yes'; then
24158 OLIBS="$LIBS"
24159 LIBS=''
24160 ac_ext=cpp
24161ac_cpp='$CXXCPP $CPPFLAGS'
24162ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24163ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24164ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24165
24166
24167 # Full set of headers used...
24168 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24169 # functional iomanip iosfwd iostream iterator list string strstream utility
24170 ac_ext=cpp
24171ac_cpp='$CXXCPP $CPPFLAGS'
24172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24175
24176 ac_ext=cpp
24177ac_cpp='$CXXCPP $CPPFLAGS'
24178ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24179ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24180ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24181if test -z "$CXX"; then
24182 if test -n "$CCC"; then
24183 CXX=$CCC
24184 else
24185 if test -n "$ac_tool_prefix"; then
24186 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24187 do
24188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24189set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024191$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024192if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024193 $as_echo_n "(cached) " >&6
24194else
24195 if test -n "$CXX"; then
24196 ac_cv_prog_CXX="$CXX" # Let the user override the test.
24197else
24198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24199for as_dir in $PATH
24200do
24201 IFS=$as_save_IFS
24202 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024203 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24205 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024207 break 2
24208 fi
24209done
cristy8b350f62009-11-15 23:12:43 +000024210 done
cristy3ed852e2009-09-05 21:47:34 +000024211IFS=$as_save_IFS
24212
24213fi
24214fi
24215CXX=$ac_cv_prog_CXX
24216if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024218$as_echo "$CXX" >&6; }
24219else
cristy8b350f62009-11-15 23:12:43 +000024220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024221$as_echo "no" >&6; }
24222fi
24223
24224
24225 test -n "$CXX" && break
24226 done
24227fi
24228if test -z "$CXX"; then
24229 ac_ct_CXX=$CXX
24230 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24231do
24232 # Extract the first word of "$ac_prog", so it can be a program name with args.
24233set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024235$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024236if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024237 $as_echo_n "(cached) " >&6
24238else
24239 if test -n "$ac_ct_CXX"; then
24240 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
24241else
24242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24243for as_dir in $PATH
24244do
24245 IFS=$as_save_IFS
24246 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024247 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24249 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024251 break 2
24252 fi
24253done
cristy8b350f62009-11-15 23:12:43 +000024254 done
cristy3ed852e2009-09-05 21:47:34 +000024255IFS=$as_save_IFS
24256
24257fi
24258fi
24259ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
24260if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024262$as_echo "$ac_ct_CXX" >&6; }
24263else
cristy8b350f62009-11-15 23:12:43 +000024264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024265$as_echo "no" >&6; }
24266fi
24267
24268
24269 test -n "$ac_ct_CXX" && break
24270done
24271
24272 if test "x$ac_ct_CXX" = x; then
24273 CXX="g++"
24274 else
24275 case $cross_compiling:$ac_tool_warned in
24276yes:)
cristy8b350f62009-11-15 23:12:43 +000024277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000024278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24279ac_tool_warned=yes ;;
24280esac
24281 CXX=$ac_ct_CXX
24282 fi
24283fi
24284
24285 fi
24286fi
24287# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000024288$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000024289set X $ac_compile
24290ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000024291for ac_option in --version -v -V -qversion; do
24292 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000024293case "(($ac_try" in
24294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24295 *) ac_try_echo=$ac_try;;
24296esac
cristy8b350f62009-11-15 23:12:43 +000024297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
24298$as_echo "$ac_try_echo"; } >&5
24299 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000024300 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024301 if test -s conftest.err; then
24302 sed '10a\
24303... rest of stderr output deleted ...
24304 10q' conftest.err >conftest.er1
24305 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000024306 fi
cristycd4c5312009-11-22 01:19:08 +000024307 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000024308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24309 test $ac_status = 0; }
24310done
cristy3ed852e2009-09-05 21:47:34 +000024311
cristy8b350f62009-11-15 23:12:43 +000024312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000024313$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024314if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024315 $as_echo_n "(cached) " >&6
24316else
cristy8b350f62009-11-15 23:12:43 +000024317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024318/* end confdefs.h. */
24319
24320int
24321main ()
24322{
24323#ifndef __GNUC__
24324 choke me
24325#endif
24326
24327 ;
24328 return 0;
24329}
24330_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024331if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024332 ac_compiler_gnu=yes
24333else
cristy8b350f62009-11-15 23:12:43 +000024334 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000024335fi
cristy3ed852e2009-09-05 21:47:34 +000024336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24337ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
24338
24339fi
cristy8b350f62009-11-15 23:12:43 +000024340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000024341$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
24342if test $ac_compiler_gnu = yes; then
24343 GXX=yes
24344else
24345 GXX=
24346fi
24347ac_test_CXXFLAGS=${CXXFLAGS+set}
24348ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000024349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000024350$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024351if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024352 $as_echo_n "(cached) " >&6
24353else
24354 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
24355 ac_cxx_werror_flag=yes
24356 ac_cv_prog_cxx_g=no
24357 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000024358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024359/* end confdefs.h. */
24360
24361int
24362main ()
24363{
24364
24365 ;
24366 return 0;
24367}
24368_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024369if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024370 ac_cv_prog_cxx_g=yes
24371else
cristy8b350f62009-11-15 23:12:43 +000024372 CXXFLAGS=""
24373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024374/* end confdefs.h. */
24375
24376int
24377main ()
24378{
24379
24380 ;
24381 return 0;
24382}
24383_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024384if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024385
cristy8b350f62009-11-15 23:12:43 +000024386else
24387 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000024388 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000024389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024390/* end confdefs.h. */
24391
24392int
24393main ()
24394{
24395
24396 ;
24397 return 0;
24398}
24399_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024400if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024401 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000024402fi
cristy3ed852e2009-09-05 21:47:34 +000024403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24404fi
cristy3ed852e2009-09-05 21:47:34 +000024405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24406fi
cristy3ed852e2009-09-05 21:47:34 +000024407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24408 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
24409fi
cristy8b350f62009-11-15 23:12:43 +000024410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000024411$as_echo "$ac_cv_prog_cxx_g" >&6; }
24412if test "$ac_test_CXXFLAGS" = set; then
24413 CXXFLAGS=$ac_save_CXXFLAGS
24414elif test $ac_cv_prog_cxx_g = yes; then
24415 if test "$GXX" = yes; then
24416 CXXFLAGS="-g -O2"
24417 else
24418 CXXFLAGS="-g"
24419 fi
24420else
24421 if test "$GXX" = yes; then
24422 CXXFLAGS="-O2"
24423 else
24424 CXXFLAGS=
24425 fi
24426fi
24427ac_ext=cpp
24428ac_cpp='$CXXCPP $CPPFLAGS'
24429ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24430ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24431ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24432
cristy73bd4a52010-10-05 11:24:23 +000024433depcc="$CXX" am_compiler_list=
24434
24435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
24436$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024437if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024438 $as_echo_n "(cached) " >&6
24439else
24440 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
24441 # We make a subdir and do the tests there. Otherwise we can end up
24442 # making bogus files that we don't know about and never remove. For
24443 # instance it was reported that on HP-UX the gcc test will end up
24444 # making a dummy file named `D' -- because `-MD' means `put the output
24445 # in D'.
24446 mkdir conftest.dir
24447 # Copy depcomp to subdir because otherwise we won't find it if we're
24448 # using a relative directory.
24449 cp "$am_depcomp" conftest.dir
24450 cd conftest.dir
24451 # We will build objects and dependencies in a subdirectory because
24452 # it helps to detect inapplicable dependency modes. For instance
24453 # both Tru64's cc and ICC support -MD to output dependencies as a
24454 # side effect of compilation, but ICC will put the dependencies in
24455 # the current directory while Tru64 will put them in the object
24456 # directory.
24457 mkdir sub
24458
24459 am_cv_CXX_dependencies_compiler_type=none
24460 if test "$am_compiler_list" = ""; then
24461 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
24462 fi
24463 am__universal=false
24464 case " $depcc " in #(
24465 *\ -arch\ *\ -arch\ *) am__universal=true ;;
24466 esac
24467
24468 for depmode in $am_compiler_list; do
24469 # Setup a source with many dependencies, because some compilers
24470 # like to wrap large dependency lists on column 80 (with \), and
24471 # we should not choose a depcomp mode which is confused by this.
24472 #
24473 # We need to recreate these files for each test, as the compiler may
24474 # overwrite some of them when testing with obscure command lines.
24475 # This happens at least with the AIX C compiler.
24476 : > sub/conftest.c
24477 for i in 1 2 3 4 5 6; do
24478 echo '#include "conftst'$i'.h"' >> sub/conftest.c
24479 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
24480 # Solaris 8's {/usr,}/bin/sh.
24481 touch sub/conftst$i.h
24482 done
24483 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
24484
24485 # We check with `-c' and `-o' for the sake of the "dashmstdout"
24486 # mode. It turns out that the SunPro C++ compiler does not properly
24487 # handle `-M -o', and we need to detect this. Also, some Intel
24488 # versions had trouble with output in subdirs
24489 am__obj=sub/conftest.${OBJEXT-o}
24490 am__minus_obj="-o $am__obj"
24491 case $depmode in
24492 gcc)
24493 # This depmode causes a compiler race in universal mode.
24494 test "$am__universal" = false || continue
24495 ;;
24496 nosideeffect)
24497 # after this tag, mechanisms are not by side-effect, so they'll
24498 # only be used when explicitly requested
24499 if test "x$enable_dependency_tracking" = xyes; then
24500 continue
24501 else
24502 break
24503 fi
24504 ;;
24505 msvisualcpp | msvcmsys)
24506 # This compiler won't grok `-c -o', but also, the minuso test has
24507 # not run yet. These depmodes are late enough in the game, and
24508 # so weak that their functioning should not be impacted.
24509 am__obj=conftest.${OBJEXT-o}
24510 am__minus_obj=
24511 ;;
24512 none) break ;;
24513 esac
24514 if depmode=$depmode \
24515 source=sub/conftest.c object=$am__obj \
24516 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
24517 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
24518 >/dev/null 2>conftest.err &&
24519 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
24520 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
24521 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
24522 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
24523 # icc doesn't choke on unknown options, it will just issue warnings
24524 # or remarks (even with -Werror). So we grep stderr for any message
24525 # that says an option was ignored or not supported.
24526 # When given -MP, icc 7.0 and 7.1 complain thusly:
24527 # icc: Command line warning: ignoring option '-M'; no argument required
24528 # The diagnosis changed in icc 8.0:
24529 # icc: Command line remark: option '-MP' not supported
24530 if (grep 'ignoring option' conftest.err ||
24531 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
24532 am_cv_CXX_dependencies_compiler_type=$depmode
24533 break
24534 fi
24535 fi
24536 done
24537
24538 cd ..
24539 rm -rf conftest.dir
24540else
24541 am_cv_CXX_dependencies_compiler_type=none
24542fi
24543
24544fi
24545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
24546$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
24547CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
24548
24549 if
24550 test "x$enable_dependency_tracking" != xno \
24551 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
24552 am__fastdepCXX_TRUE=
24553 am__fastdepCXX_FALSE='#'
24554else
24555 am__fastdepCXX_TRUE='#'
24556 am__fastdepCXX_FALSE=
24557fi
24558
24559
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
24561$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024562if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024563 $as_echo_n "(cached) " >&6
24564else
24565
24566 ac_ext=cpp
24567ac_cpp='$CXXCPP $CPPFLAGS'
24568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24571
24572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24573/* end confdefs.h. */
24574
24575int f(int x){return 1;}
24576int f(char x){return 1;}
24577int f(bool x){return 1;}
24578
24579int
24580main ()
24581{
24582bool b = true; return f(b);
24583 ;
24584 return 0;
24585}
24586_ACEOF
24587if ac_fn_cxx_try_compile "$LINENO"; then :
24588 ax_cv_cxx_bool=yes
24589else
24590 ax_cv_cxx_bool=no
24591fi
24592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24593 ac_ext=cpp
24594ac_cpp='$CXXCPP $CPPFLAGS'
24595ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24596ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24597ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24598
24599
24600fi
24601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
24602$as_echo "$ax_cv_cxx_bool" >&6; }
24603if test "$ax_cv_cxx_bool" = yes; then
24604
24605$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
24606
24607fi
24608
24609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
24610$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024611if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024612 $as_echo_n "(cached) " >&6
24613else
24614
24615 ac_ext=cpp
24616ac_cpp='$CXXCPP $CPPFLAGS'
24617ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24618ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24619ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24620
24621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24622/* end confdefs.h. */
24623namespace Outer { namespace Inner { int i = 0; }}
24624int
24625main ()
24626{
24627using namespace Outer::Inner; return i;
24628 ;
24629 return 0;
24630}
24631_ACEOF
24632if ac_fn_cxx_try_compile "$LINENO"; then :
24633 ax_cv_cxx_namespaces=yes
24634else
24635 ax_cv_cxx_namespaces=no
24636fi
24637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24638 ac_ext=cpp
24639ac_cpp='$CXXCPP $CPPFLAGS'
24640ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24641ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24642ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24643
24644
24645fi
24646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
24647$as_echo "$ax_cv_cxx_namespaces" >&6; }
24648if test "$ax_cv_cxx_namespaces" = yes; then
24649
24650$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
24651
24652fi
24653
24654
24655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
24656$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024657if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024658 $as_echo_n "(cached) " >&6
24659else
24660
24661 ac_ext=cpp
24662ac_cpp='$CXXCPP $CPPFLAGS'
24663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24666
24667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24668/* end confdefs.h. */
24669#include <iostream>
24670 std::istream& is = std::cin;
24671int
24672main ()
24673{
24674
24675 ;
24676 return 0;
24677}
24678_ACEOF
24679if ac_fn_cxx_try_compile "$LINENO"; then :
24680 ax_cv_cxx_have_std_namespace=yes
24681else
24682 ax_cv_cxx_have_std_namespace=no
24683fi
24684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24685 ac_ext=cpp
24686ac_cpp='$CXXCPP $CPPFLAGS'
24687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24690
24691
24692fi
24693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24694$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24695 if test "$ax_cv_cxx_have_std_namespace" = yes; then
24696
24697$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
24698
24699 fi
24700
24701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
24702$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024703if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024704 $as_echo_n "(cached) " >&6
24705else
24706
24707
24708 ac_ext=cpp
24709ac_cpp='$CXXCPP $CPPFLAGS'
24710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24713
24714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24715/* end confdefs.h. */
24716#include <iostream>
24717#include <map>
24718#include <iomanip>
24719#include <cmath>
24720#ifdef HAVE_NAMESPACES
24721using namespace std;
24722#endif
24723int
24724main ()
24725{
24726return 0;
24727 ;
24728 return 0;
24729}
24730_ACEOF
24731if ac_fn_cxx_try_compile "$LINENO"; then :
24732 ac_cv_cxx_have_std_libs=yes
24733else
24734 ac_cv_cxx_have_std_libs=no
24735fi
24736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24737 ac_ext=cpp
24738ac_cpp='$CXXCPP $CPPFLAGS'
24739ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24740ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24741ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24742
24743
24744fi
24745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
24746$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24747if test "$ac_cv_cxx_have_std_libs" = yes; then
24748
24749$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
24750
24751fi
24752
cristy3ed852e2009-09-05 21:47:34 +000024753
24754 OPENMP_CXXFLAGS=
24755 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000024756if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024757 enableval=$enable_openmp;
24758fi
24759
24760 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000024761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24762$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024763if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024764 $as_echo_n "(cached) " >&6
24765else
cristy8b350f62009-11-15 23:12:43 +000024766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24767/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024768
24769#ifndef _OPENMP
24770 choke me
24771#endif
24772#include <omp.h>
24773int main () { return omp_get_num_threads (); }
24774
24775_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024776if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024777 ac_cv_prog_cxx_openmp='none needed'
24778else
cristy8b350f62009-11-15 23:12:43 +000024779 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000024780 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24781 ac_save_CXXFLAGS=$CXXFLAGS
24782 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000024783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24784/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024785
24786#ifndef _OPENMP
24787 choke me
24788#endif
24789#include <omp.h>
24790int main () { return omp_get_num_threads (); }
24791
24792_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024793if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024794 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000024795fi
cristy8b350f62009-11-15 23:12:43 +000024796rm -f core conftest.err conftest.$ac_objext \
24797 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024798 CXXFLAGS=$ac_save_CXXFLAGS
24799 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24800 break
24801 fi
24802 done
24803fi
cristy8b350f62009-11-15 23:12:43 +000024804rm -f core conftest.err conftest.$ac_objext \
24805 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024806fi
cristy8b350f62009-11-15 23:12:43 +000024807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024808$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24809 case $ac_cv_prog_cxx_openmp in #(
24810 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024811 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024812 *)
cristy8b350f62009-11-15 23:12:43 +000024813 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024814 esac
24815 fi
24816
24817
24818 ac_ext=c
24819ac_cpp='$CPP $CPPFLAGS'
24820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24822ac_compiler_gnu=$ac_cv_c_compiler_gnu
24823
24824
cristy8b350f62009-11-15 23:12:43 +000024825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024826$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24827 if \
cristy964cb7f2010-04-25 23:18:00 +000024828 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024829 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024830 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024831 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024832 have_magick_plus_plus='yes'
24833 else
24834 have_magick_plus_plus='no (failed tests)'
24835 fi
cristy8b350f62009-11-15 23:12:43 +000024836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024837$as_echo "$have_magick_plus_plus" >&6; }
24838 LIBS="$OLIBS"
24839fi
cristy73bd4a52010-10-05 11:24:23 +000024840 if test "$have_magick_plus_plus" = 'yes'; then
24841 WITH_MAGICK_PLUS_PLUS_TRUE=
24842 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24843else
24844 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24845 WITH_MAGICK_PLUS_PLUS_FALSE=
24846fi
24847
cristy3ed852e2009-09-05 21:47:34 +000024848
24849# Only check for delegate libraries in subdirectories if requested.
24850if test "$enable_delegate_build" != 'no'; then
24851 # Check for delegate sub-directories and add -I & -L options as required.
24852 # This presumes that delegates are installed as detailed in the ImageMagick
24853 # README. If delegates are installed in a standard location where the
24854 # compiler will automatically find them then these options should not be
24855 # required.
24856
24857 #
24858 # Most delegates have includes in the same directory as the library, but not all...
24859 #
24860 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000024861 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 +000024862 if test -d "$builddir/$dir"; then
24863 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24864 else
24865 if test -d "$srcdirfull/$dir"; then
24866 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24867 fi
24868 fi
24869 done
24870
24871 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000024872 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 +000024873 if test -d "$builddir/$dir/.libs"; then
24874 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24875 else
24876 if test -d "$srcdirfull/$dir/.libs"; then
24877 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24878 fi
24879 fi
24880 if test -d "$builddir/$dir"; then
24881 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24882 else
24883 if test -d "$srcdirfull/$dir"; then
24884 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24885 fi
24886 fi
24887 done
24888fi
24889
24890# Assume that delegate headers reside under same directory as ImageMagick
24891# installation prefix.
24892MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24893
24894#
24895# Find the X11 RGB database
24896#
cristy8b350f62009-11-15 23:12:43 +000024897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024898$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024899if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024900 $as_echo_n "(cached) " >&6
24901else
24902 # Look for the header file in a standard set of common directories.
24903# Check X11 before X11Rn because it is often a symlink to the current release.
24904 for ac_dir in \
24905 /lib/usr/lib/X11 \
24906 /usr/X11/lib \
24907 /usr/X11R4/lib \
24908 /usr/X11R5/lib \
24909 /usr/X11R6/lib \
24910 /usr/X11R7/lib \
24911 /usr/X386/lib \
24912 /usr/XFree86/lib/X11 \
24913 /usr/athena/lib \
24914 /usr/lib \
24915 /usr/lib/X11 \
24916 /usr/lib/X11R4 \
24917 /usr/lib/X11R5 \
24918 /usr/lib/X11R6 \
24919 /usr/lib/X11R7 \
24920 /usr/local/X11/lib \
24921 /usr/local/X11R4/lib \
24922 /usr/local/X11R5/lib \
24923 /usr/local/X11R6/lib \
24924 /usr/local/lib \
24925 /usr/local/lib/X11 \
24926 /usr/local/lib/X11R4 \
24927 /usr/local/lib/X11R5 \
24928 /usr/local/lib/X11R6 \
24929 /usr/local/lib/X11R7 \
24930 /usr/local/x11r5/lib \
24931 /usr/lpp/Xamples/lib \
24932 /usr/openwin/lib \
24933 /usr/openwin/share/lib \
24934 /usr/unsupported/lib \
24935 /usr/x386/lib \
24936 ; do
24937 if test -f "$ac_dir/X11/rgb.txt"; then
24938 im_cv_x_configure="$ac_dir/X11/"
24939 break
24940 elif test -f "$ac_dir/rgb.txt"; then
24941 im_cv_x_configure="$ac_dir/"
24942 break
24943 fi
24944
24945 done
24946fi
cristy8b350f62009-11-15 23:12:43 +000024947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024948$as_echo "$im_cv_x_configure" >&6; }
24949X11_CONFIGURE_PATH="$im_cv_x_configure"
24950case "${build_os}" in
24951 mingw* )
24952 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24953 ;;
24954esac
24955
24956cat >>confdefs.h <<_ACEOF
24957#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24958_ACEOF
24959
24960
24961#
24962# Find OpenMP library
24963#
24964GOMP_LIBS=''
24965if test "$enable_openmp" != 'no'; then
24966 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024968$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024969if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024970 $as_echo_n "(cached) " >&6
24971else
24972 ac_check_lib_save_LIBS=$LIBS
24973LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024975/* end confdefs.h. */
24976
24977/* Override any GCC internal prototype to avoid an error.
24978 Use char because int might match the return type of a GCC
24979 builtin and then its argument prototype would still apply. */
24980#ifdef __cplusplus
24981extern "C"
24982#endif
24983char GOMP_parallel_start ();
24984int
24985main ()
24986{
24987return GOMP_parallel_start ();
24988 ;
24989 return 0;
24990}
24991_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024992if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024993 ac_cv_lib_gomp_GOMP_parallel_start=yes
24994else
cristy8b350f62009-11-15 23:12:43 +000024995 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024996fi
cristy8b350f62009-11-15 23:12:43 +000024997rm -f core conftest.err conftest.$ac_objext \
24998 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024999LIBS=$ac_check_lib_save_LIBS
25000fi
cristy8b350f62009-11-15 23:12:43 +000025001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025002$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025003if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025004 GOMP_LIBS="-lgomp"
25005fi
25006 # gcc
25007 else
cristy8b350f62009-11-15 23:12:43 +000025008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025009$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025010if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025011 $as_echo_n "(cached) " >&6
25012else
25013 ac_check_lib_save_LIBS=$LIBS
25014LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025016/* end confdefs.h. */
25017
25018/* Override any GCC internal prototype to avoid an error.
25019 Use char because int might match the return type of a GCC
25020 builtin and then its argument prototype would still apply. */
25021#ifdef __cplusplus
25022extern "C"
25023#endif
25024char sunw_mp_register_warn ();
25025int
25026main ()
25027{
25028return sunw_mp_register_warn ();
25029 ;
25030 return 0;
25031}
25032_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025033if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025034 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25035else
cristy8b350f62009-11-15 23:12:43 +000025036 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025037fi
cristy8b350f62009-11-15 23:12:43 +000025038rm -f core conftest.err conftest.$ac_objext \
25039 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025040LIBS=$ac_check_lib_save_LIBS
25041fi
cristy8b350f62009-11-15 23:12:43 +000025042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025043$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025044if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025045 GOMP_LIBS="-lmtsk"
25046fi
25047 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000025048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025049$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025050if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025051 $as_echo_n "(cached) " >&6
25052else
25053 ac_check_lib_save_LIBS=$LIBS
25054LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025056/* end confdefs.h. */
25057
25058/* Override any GCC internal prototype to avoid an error.
25059 Use char because int might match the return type of a GCC
25060 builtin and then its argument prototype would still apply. */
25061#ifdef __cplusplus
25062extern "C"
25063#endif
25064char _xlsmpFlush ();
25065int
25066main ()
25067{
25068return _xlsmpFlush ();
25069 ;
25070 return 0;
25071}
25072_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025073if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025074 ac_cv_lib_xlsmp__xlsmpFlush=yes
25075else
cristy8b350f62009-11-15 23:12:43 +000025076 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000025077fi
cristy8b350f62009-11-15 23:12:43 +000025078rm -f core conftest.err conftest.$ac_objext \
25079 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025080LIBS=$ac_check_lib_save_LIBS
25081fi
cristy8b350f62009-11-15 23:12:43 +000025082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000025083$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000025084if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025085 GOMP_LIBS="-lxlsmp"
25086fi
25087 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000025088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025089$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025090if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025091 $as_echo_n "(cached) " >&6
25092else
25093 ac_check_lib_save_LIBS=$LIBS
25094LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025096/* end confdefs.h. */
25097
25098/* Override any GCC internal prototype to avoid an error.
25099 Use char because int might match the return type of a GCC
25100 builtin and then its argument prototype would still apply. */
25101#ifdef __cplusplus
25102extern "C"
25103#endif
25104char mp_destroy ();
25105int
25106main ()
25107{
25108return mp_destroy ();
25109 ;
25110 return 0;
25111}
25112_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025113if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025114 ac_cv_lib_mp_mp_destroy=yes
25115else
cristy8b350f62009-11-15 23:12:43 +000025116 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000025117fi
cristy8b350f62009-11-15 23:12:43 +000025118rm -f core conftest.err conftest.$ac_objext \
25119 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025120LIBS=$ac_check_lib_save_LIBS
25121fi
cristy8b350f62009-11-15 23:12:43 +000025122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000025123$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000025124if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025125 GOMP_LIBS="-lmp"
25126fi
25127 # SGI IRIX 6.5 MIPSpro C/C++
25128 fi
25129 LIBS="$GOMP_LIBS $LIBS"
25130fi
25131
25132
25133#
25134# Find Posix threads library
25135#
25136THREAD_LIBS=''
25137if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25138
25139 if test "x$PTHREAD_LIBS" = "x"; then
25140 case "${host_cpu}-${host_os}" in
25141 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000025142
25143
25144
25145ac_ext=c
25146ac_cpp='$CPP $CPPFLAGS'
25147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25149ac_compiler_gnu=$ac_cv_c_compiler_gnu
25150
25151magick_pthread_lib_ok=no
25152
25153LIB=-lc_r
25154save_LIBS="$LIBS"
25155LIBS="$LIBS $LIB"
25156
25157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25158$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25160/* end confdefs.h. */
25161#include <pthread.h>
25162int
25163main ()
25164{
25165 pthread_t th;
25166 pthread_join(th, 0);
25167 pthread_attr_init(0);
25168 pthread_cleanup_push(0, 0);
25169 pthread_create(0,0,0,0);
25170 pthread_cleanup_pop(0);
25171 ;
25172 return 0;
25173}
25174_ACEOF
25175if ac_fn_c_try_link "$LINENO"; then :
25176 magick_pthread_lib_ok=yes
25177fi
25178rm -f core conftest.err conftest.$ac_objext \
25179 conftest$ac_exeext conftest.$ac_ext
25180
25181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25182$as_echo "${magick_pthread_lib_ok}" >&6; }
25183if test "$magick_pthread_lib_ok" = yes
25184then
25185 PTHREAD_LIBS=-lc_r
25186 :
25187else
25188
25189 :
25190fi
25191
25192LIBS="$save_LIBS"
25193
25194ac_ext=c
25195ac_cpp='$CPP $CPPFLAGS'
25196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25198ac_compiler_gnu=$ac_cv_c_compiler_gnu
25199
25200 ;;
cristy3ed852e2009-09-05 21:47:34 +000025201 esac
25202 fi
25203
25204 for lib in pthread pthreads; do
25205 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000025206
25207
25208
25209ac_ext=c
25210ac_cpp='$CPP $CPPFLAGS'
25211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25213ac_compiler_gnu=$ac_cv_c_compiler_gnu
25214
25215magick_pthread_lib_ok=no
25216
25217LIB=-l$lib
25218save_LIBS="$LIBS"
25219LIBS="$LIBS $LIB"
25220
25221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25222$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25224/* end confdefs.h. */
25225#include <pthread.h>
25226int
25227main ()
25228{
25229 pthread_t th;
25230 pthread_join(th, 0);
25231 pthread_attr_init(0);
25232 pthread_cleanup_push(0, 0);
25233 pthread_create(0,0,0,0);
25234 pthread_cleanup_pop(0);
25235 ;
25236 return 0;
25237}
25238_ACEOF
25239if ac_fn_c_try_link "$LINENO"; then :
25240 magick_pthread_lib_ok=yes
25241fi
25242rm -f core conftest.err conftest.$ac_objext \
25243 conftest$ac_exeext conftest.$ac_ext
25244
25245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25246$as_echo "${magick_pthread_lib_ok}" >&6; }
25247if test "$magick_pthread_lib_ok" = yes
25248then
25249 PTHREAD_LIBS=-l$lib
25250 :
25251else
25252
25253 :
25254fi
25255
25256LIBS="$save_LIBS"
25257
25258ac_ext=c
25259ac_cpp='$CPP $CPPFLAGS'
25260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25262ac_compiler_gnu=$ac_cv_c_compiler_gnu
25263
25264
cristy3ed852e2009-09-05 21:47:34 +000025265 fi
25266 done
25267
25268 THREAD_LIBS="$PTHREAD_LIBS"
25269 LIBS="$LIBS $THREAD_LIBS"
25270fi
25271
25272
25273#
25274# Check for umem.
25275#
25276have_umem='no'
25277UMEM_LIBS=''
25278if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000025280$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025282$as_echo "" >&6; }
25283 failed=0
25284 passed=0
cristy8b350f62009-11-15 23:12:43 +000025285 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025286if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025287 passed=`expr $passed + 1`
25288else
25289 failed=`expr $failed + 1`
25290fi
25291
25292
cristy8b350f62009-11-15 23:12:43 +000025293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000025294$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025295if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025296 $as_echo_n "(cached) " >&6
25297else
25298 ac_check_lib_save_LIBS=$LIBS
25299LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025301/* end confdefs.h. */
25302
25303/* Override any GCC internal prototype to avoid an error.
25304 Use char because int might match the return type of a GCC
25305 builtin and then its argument prototype would still apply. */
25306#ifdef __cplusplus
25307extern "C"
25308#endif
25309char umem_alloc ();
25310int
25311main ()
25312{
25313return umem_alloc ();
25314 ;
25315 return 0;
25316}
25317_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025318if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025319 ac_cv_lib_umem_umem_alloc=yes
25320else
cristy8b350f62009-11-15 23:12:43 +000025321 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000025322fi
cristy8b350f62009-11-15 23:12:43 +000025323rm -f core conftest.err conftest.$ac_objext \
25324 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025325LIBS=$ac_check_lib_save_LIBS
25326fi
cristy8b350f62009-11-15 23:12:43 +000025327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025328$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000025329if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025330 passed=`expr $passed + 1`
25331else
25332 failed=`expr $failed + 1`
25333fi
25334
cristy8b350f62009-11-15 23:12:43 +000025335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000025336$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025337if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025338 $as_echo_n "(cached) " >&6
25339else
25340 ac_check_lib_save_LIBS=$LIBS
25341LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025343/* end confdefs.h. */
25344
25345/* Override any GCC internal prototype to avoid an error.
25346 Use char because int might match the return type of a GCC
25347 builtin and then its argument prototype would still apply. */
25348#ifdef __cplusplus
25349extern "C"
25350#endif
25351char umem_free ();
25352int
25353main ()
25354{
25355return umem_free ();
25356 ;
25357 return 0;
25358}
25359_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025360if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025361 ac_cv_lib_umem_umem_free=yes
25362else
cristy8b350f62009-11-15 23:12:43 +000025363 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000025364fi
cristy8b350f62009-11-15 23:12:43 +000025365rm -f core conftest.err conftest.$ac_objext \
25366 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025367LIBS=$ac_check_lib_save_LIBS
25368fi
cristy8b350f62009-11-15 23:12:43 +000025369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000025370$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000025371if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025372 passed=`expr $passed + 1`
25373else
25374 failed=`expr $failed + 1`
25375fi
25376
cristy8b350f62009-11-15 23:12:43 +000025377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025378$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
25379 if test $passed -gt 0; then
25380 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025382$as_echo "no -- some components failed test" >&6; }
25383 have_umem='no (failed tests)'
25384 else
25385 UMEM_LIBS='-lumem'
25386 LIBS="$UMEM_LIBS $LIBS"
25387
cristy8b350f62009-11-15 23:12:43 +000025388$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025389
cristy8b350f62009-11-15 23:12:43 +000025390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025391$as_echo "yes" >&6; }
25392 have_umem='yes'
25393 fi
25394 else
cristy8b350f62009-11-15 23:12:43 +000025395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025396$as_echo "no" >&6; }
25397 fi
25398fi
cristy73bd4a52010-10-05 11:24:23 +000025399 if test "$have_umem" = 'yes'; then
25400 HasUMEM_TRUE=
25401 HasUMEM_FALSE='#'
25402else
25403 HasUMEM_TRUE='#'
25404 HasUMEM_FALSE=
25405fi
25406
cristy3ed852e2009-09-05 21:47:34 +000025407
25408
25409#
25410# Add support for ccmalloc memory debugging library if requested
25411#
25412have_ccmalloc='no'
25413CCMALLOC_LIBS=''
25414if test "$enable_ccmalloc" = 'yes'; then
25415 # Extract the first word of "ccmalloc", so it can be a program name with args.
25416set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025418$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025419if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025420 $as_echo_n "(cached) " >&6
25421else
25422 case $CCMALLOCDelegate in
25423 [\\/]* | ?:[\\/]*)
25424 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
25425 ;;
25426 *)
25427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25428for as_dir in $PATH
25429do
25430 IFS=$as_save_IFS
25431 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025432 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25434 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000025435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025436 break 2
25437 fi
25438done
cristy8b350f62009-11-15 23:12:43 +000025439 done
cristy3ed852e2009-09-05 21:47:34 +000025440IFS=$as_save_IFS
25441
25442 ;;
25443esac
25444fi
25445CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
25446if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000025447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025448$as_echo "$CCMALLOCDelegate" >&6; }
25449else
cristy8b350f62009-11-15 23:12:43 +000025450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025451$as_echo "no" >&6; }
25452fi
25453
25454
25455 if test -n "$CCMALLOCDelegate"; then
25456 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
25457 OLIBS="$LIBS"
25458 # Assume that gcc is used with ccmalloc.
25459 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000025460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025461$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025462if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025463 $as_echo_n "(cached) " >&6
25464else
25465 ac_check_lib_save_LIBS=$LIBS
25466LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025468/* end confdefs.h. */
25469
25470/* Override any GCC internal prototype to avoid an error.
25471 Use char because int might match the return type of a GCC
25472 builtin and then its argument prototype would still apply. */
25473#ifdef __cplusplus
25474extern "C"
25475#endif
25476char ccmalloc_malloc ();
25477int
25478main ()
25479{
25480return ccmalloc_malloc ();
25481 ;
25482 return 0;
25483}
25484_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025485if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025486 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
25487else
cristy8b350f62009-11-15 23:12:43 +000025488 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000025489fi
cristy8b350f62009-11-15 23:12:43 +000025490rm -f core conftest.err conftest.$ac_objext \
25491 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025492LIBS=$ac_check_lib_save_LIBS
25493fi
cristy8b350f62009-11-15 23:12:43 +000025494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025495$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000025496if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025497 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
25498fi
25499
25500 if test -n "$CCMALLOC_LIBS"; then
25501 LIBS="$OLIBS"
25502 LIBS="$LIBS $CCMALLOC_LIBS"
25503 have_ccmalloc='yes'
25504 else
25505 LIBS="$OLIBS"
25506 fi
25507 fi
25508fi
25509
25510#
25511# Add support for efence memory debugging library if requested
25512#
25513if test "$enable_efence" = 'yes'; then
25514 EFENCE_LIBS='-lefence'
25515 LIBS="$EFENCE_LIBS $LIBS"
25516fi
25517
cristy3ed852e2009-09-05 21:47:34 +000025518
25519#
25520# Check for BZLIB
25521#
25522
25523
25524# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000025525if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025526 withval=$with_bzlib; with_bzlib=$withval
25527else
25528 with_bzlib='yes'
25529fi
25530
25531
25532if test "$with_bzlib" != 'yes'; then
25533 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
25534fi
25535
25536have_bzlib='no'
25537if test "$with_bzlib" != 'no'; then
25538 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025540$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025542$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025544$as_echo "" >&6; }
25545 failed=0
25546 passed=0
25547 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000025548 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025549if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025550 passed=`expr $passed + 1`
25551else
25552 failed=`expr $failed + 1`
25553fi
25554
25555
cristy8b350f62009-11-15 23:12:43 +000025556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000025557$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025558if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025559 $as_echo_n "(cached) " >&6
25560else
25561 ac_check_lib_save_LIBS=$LIBS
25562LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025564/* end confdefs.h. */
25565
25566/* Override any GCC internal prototype to avoid an error.
25567 Use char because int might match the return type of a GCC
25568 builtin and then its argument prototype would still apply. */
25569#ifdef __cplusplus
25570extern "C"
25571#endif
25572char BZ2_bzDecompress ();
25573int
25574main ()
25575{
25576return BZ2_bzDecompress ();
25577 ;
25578 return 0;
25579}
25580_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025581if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025582 ac_cv_lib_bz2_BZ2_bzDecompress=yes
25583else
cristy8b350f62009-11-15 23:12:43 +000025584 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000025585fi
cristy8b350f62009-11-15 23:12:43 +000025586rm -f core conftest.err conftest.$ac_objext \
25587 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025588LIBS=$ac_check_lib_save_LIBS
25589fi
cristy8b350f62009-11-15 23:12:43 +000025590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025591$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000025592if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025593 found_libbz=`expr $found_libbz + 1`
25594fi
25595
25596 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000025598$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025599if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025600 $as_echo_n "(cached) " >&6
25601else
25602 ac_check_lib_save_LIBS=$LIBS
25603LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025605/* end confdefs.h. */
25606
25607/* Override any GCC internal prototype to avoid an error.
25608 Use char because int might match the return type of a GCC
25609 builtin and then its argument prototype would still apply. */
25610#ifdef __cplusplus
25611extern "C"
25612#endif
25613char _imp__BZ2_decompress ();
25614int
25615main ()
25616{
25617return _imp__BZ2_decompress ();
25618 ;
25619 return 0;
25620}
25621_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025622if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025623 ac_cv_lib_bz2__imp__BZ2_decompress=yes
25624else
cristy8b350f62009-11-15 23:12:43 +000025625 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000025626fi
cristy8b350f62009-11-15 23:12:43 +000025627rm -f core conftest.err conftest.$ac_objext \
25628 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025629LIBS=$ac_check_lib_save_LIBS
25630fi
cristy8b350f62009-11-15 23:12:43 +000025631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025632$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000025633if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025634 found_libbz=`expr $found_libbz + 1`
25635fi
25636
25637 fi
25638 if test $found_libbz -gt 0; then
25639 passed=`expr $passed + 1`
25640 else
25641 failed=`expr $failed + 1`
25642 fi
cristy8b350f62009-11-15 23:12:43 +000025643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025644$as_echo_n "checking if BZLIB package is complete... " >&6; }
25645 if test $passed -gt 0; then
25646 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025648$as_echo "no -- some components failed test" >&6; }
25649 have_bzlib='no (failed tests)'
25650 else
25651 BZLIB_LIBS='-lbz2'
25652 LIBS="$BZLIB_LIBS $LIBS"
25653
cristy8b350f62009-11-15 23:12:43 +000025654$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025655
cristy8b350f62009-11-15 23:12:43 +000025656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025657$as_echo "yes" >&6; }
25658 have_bzlib='yes'
25659 fi
25660 else
cristy8b350f62009-11-15 23:12:43 +000025661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025662$as_echo "no" >&6; }
25663 fi
25664fi
cristy73bd4a52010-10-05 11:24:23 +000025665 if test "$have_bzlib" = 'yes'; then
25666 BZLIB_DELEGATE_TRUE=
25667 BZLIB_DELEGATE_FALSE='#'
25668else
25669 BZLIB_DELEGATE_TRUE='#'
25670 BZLIB_DELEGATE_FALSE=
25671fi
25672
cristy3ed852e2009-09-05 21:47:34 +000025673
25674
25675#
25676# Find the X11 include and library directories.
25677#
25678IPC_LIBS=''
25679X11_LIBS=''
25680XEXT_LIBS=''
25681XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000025683$as_echo_n "checking for X... " >&6; }
25684
25685
25686# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000025687if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025688 withval=$with_x;
25689fi
25690
25691# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25692if test "x$with_x" = xno; then
25693 # The user explicitly disabled X.
25694 have_x=disabled
25695else
25696 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000025697 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000025698 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000025699 $as_echo_n "(cached) " >&6
25700else
25701 # One or both of the vars are not set, and there is no cached value.
25702ac_x_includes=no ac_x_libraries=no
25703rm -f -r conftest.dir
25704if mkdir conftest.dir; then
25705 cd conftest.dir
25706 cat >Imakefile <<'_ACEOF'
25707incroot:
25708 @echo incroot='${INCROOT}'
25709usrlibdir:
25710 @echo usrlibdir='${USRLIBDIR}'
25711libdir:
25712 @echo libdir='${LIBDIR}'
25713_ACEOF
25714 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000025715 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000025716 for ac_var in incroot usrlibdir libdir; do
25717 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25718 done
25719 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25720 for ac_extension in a so sl dylib la dll; do
25721 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25722 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25723 ac_im_usrlibdir=$ac_im_libdir; break
25724 fi
25725 done
25726 # Screen out bogus values from the imake configuration. They are
25727 # bogus both because they are the default anyway, and because
25728 # using them would break gcc on systems where it needs fixed includes.
25729 case $ac_im_incroot in
25730 /usr/include) ac_x_includes= ;;
25731 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25732 esac
25733 case $ac_im_usrlibdir in
25734 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25735 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25736 esac
25737 fi
25738 cd ..
25739 rm -f -r conftest.dir
25740fi
25741
25742# Standard set of common directories for X headers.
25743# Check X11 before X11Rn because it is often a symlink to the current release.
25744ac_x_header_dirs='
25745/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000025746/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025747/usr/X11R6/include
25748/usr/X11R5/include
25749/usr/X11R4/include
25750
25751/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000025752/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025753/usr/include/X11R6
25754/usr/include/X11R5
25755/usr/include/X11R4
25756
25757/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000025758/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025759/usr/local/X11R6/include
25760/usr/local/X11R5/include
25761/usr/local/X11R4/include
25762
25763/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000025764/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025765/usr/local/include/X11R6
25766/usr/local/include/X11R5
25767/usr/local/include/X11R4
25768
25769/usr/X386/include
25770/usr/x386/include
25771/usr/XFree86/include/X11
25772
25773/usr/include
25774/usr/local/include
25775/usr/unsupported/include
25776/usr/athena/include
25777/usr/local/x11r5/include
25778/usr/lpp/Xamples/include
25779
25780/usr/openwin/include
25781/usr/openwin/share/include'
25782
25783if test "$ac_x_includes" = no; then
25784 # Guess where to find include files, by looking for Xlib.h.
25785 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000025786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025787/* end confdefs.h. */
25788#include <X11/Xlib.h>
25789_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025790if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025791 # We can compile using X headers with no special include directory.
25792ac_x_includes=
25793else
cristyc7083c12009-10-14 03:16:55 +000025794 for ac_dir in $ac_x_header_dirs; do
25795 if test -r "$ac_dir/X11/Xlib.h"; then
25796 ac_x_includes=$ac_dir
25797 break
25798 fi
25799done
25800fi
cristyda16f162011-02-19 23:52:17 +000025801rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025802fi # $ac_x_includes = no
25803
25804if test "$ac_x_libraries" = no; then
25805 # Check for the libraries.
25806 # See if we find them without any special options.
25807 # Don't add to $LIBS permanently.
25808 ac_save_LIBS=$LIBS
25809 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025811/* end confdefs.h. */
25812#include <X11/Xlib.h>
25813int
25814main ()
25815{
25816XrmInitialize ()
25817 ;
25818 return 0;
25819}
25820_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025821if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025822 LIBS=$ac_save_LIBS
25823# We can link X programs with no special library path.
25824ac_x_libraries=
25825else
cristy8b350f62009-11-15 23:12:43 +000025826 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025827for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25828do
25829 # Don't even attempt the hair of trying to link an X program!
25830 for ac_extension in a so sl dylib la dll; do
25831 if test -r "$ac_dir/libX11.$ac_extension"; then
25832 ac_x_libraries=$ac_dir
25833 break 2
25834 fi
25835 done
25836done
25837fi
cristy8b350f62009-11-15 23:12:43 +000025838rm -f core conftest.err conftest.$ac_objext \
25839 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025840fi # $ac_x_libraries = no
25841
25842case $ac_x_includes,$ac_x_libraries in #(
25843 no,* | *,no | *\'*)
25844 # Didn't find X, or a directory has "'" in its name.
25845 ac_cv_have_x="have_x=no";; #(
25846 *)
25847 # Record where we found X for the cache.
25848 ac_cv_have_x="have_x=yes\
25849 ac_x_includes='$ac_x_includes'\
25850 ac_x_libraries='$ac_x_libraries'"
25851esac
25852fi
25853;; #(
25854 *) have_x=yes;;
25855 esac
25856 eval "$ac_cv_have_x"
25857fi # $with_x != no
25858
25859if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025861$as_echo "$have_x" >&6; }
25862 no_x=yes
25863else
25864 # If each of the values was on the command line, it overrides each guess.
25865 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25866 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25867 # Update the cache value to reflect the command line values.
25868 ac_cv_have_x="have_x=yes\
25869 ac_x_includes='$x_includes'\
25870 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025872$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25873fi
25874
cristy3ed852e2009-09-05 21:47:34 +000025875if test "$no_x" = yes; then
25876 # Not all programs may use this symbol, but it does not hurt to define it.
25877
cristy8b350f62009-11-15 23:12:43 +000025878$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025879
25880 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25881else
25882 if test -n "$x_includes"; then
25883 X_CFLAGS="$X_CFLAGS -I$x_includes"
25884 fi
25885
25886 # It would also be nice to do this for all -L options, not just this one.
25887 if test -n "$x_libraries"; then
25888 X_LIBS="$X_LIBS -L$x_libraries"
25889 # For Solaris; some versions of Sun CC require a space after -R and
25890 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025892$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25893 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25894 ac_xsave_c_werror_flag=$ac_c_werror_flag
25895 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025897/* end confdefs.h. */
25898
25899int
25900main ()
25901{
25902
25903 ;
25904 return 0;
25905}
25906_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025907if ac_fn_c_try_link "$LINENO"; then :
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025909$as_echo "no" >&6; }
25910 X_LIBS="$X_LIBS -R$x_libraries"
25911else
cristy8b350f62009-11-15 23:12:43 +000025912 LIBS="$ac_xsave_LIBS -R $x_libraries"
25913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025914/* end confdefs.h. */
25915
25916int
25917main ()
25918{
25919
25920 ;
25921 return 0;
25922}
25923_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025924if ac_fn_c_try_link "$LINENO"; then :
25925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025926$as_echo "yes" >&6; }
25927 X_LIBS="$X_LIBS -R $x_libraries"
25928else
cristy8b350f62009-11-15 23:12:43 +000025929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025930$as_echo "neither works" >&6; }
25931fi
cristy8b350f62009-11-15 23:12:43 +000025932rm -f core conftest.err conftest.$ac_objext \
25933 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025934fi
cristy8b350f62009-11-15 23:12:43 +000025935rm -f core conftest.err conftest.$ac_objext \
25936 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025937 ac_c_werror_flag=$ac_xsave_c_werror_flag
25938 LIBS=$ac_xsave_LIBS
25939 fi
25940
25941 # Check for system-dependent libraries X programs must link with.
25942 # Do this before checking for the system-independent R6 libraries
25943 # (-lICE), since we may need -lsocket or whatever for X linking.
25944
25945 if test "$ISC" = yes; then
25946 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25947 else
25948 # Martyn Johnson says this is needed for Ultrix, if the X
25949 # libraries were built with DECnet support. And Karl Berry says
25950 # the Alpha needs dnet_stub (dnet does not exist).
25951 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025953/* end confdefs.h. */
25954
25955/* Override any GCC internal prototype to avoid an error.
25956 Use char because int might match the return type of a GCC
25957 builtin and then its argument prototype would still apply. */
25958#ifdef __cplusplus
25959extern "C"
25960#endif
25961char XOpenDisplay ();
25962int
25963main ()
25964{
25965return XOpenDisplay ();
25966 ;
25967 return 0;
25968}
25969_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025970if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025971
cristy8b350f62009-11-15 23:12:43 +000025972else
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025974$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025975if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025976 $as_echo_n "(cached) " >&6
25977else
25978 ac_check_lib_save_LIBS=$LIBS
25979LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025981/* end confdefs.h. */
25982
25983/* Override any GCC internal prototype to avoid an error.
25984 Use char because int might match the return type of a GCC
25985 builtin and then its argument prototype would still apply. */
25986#ifdef __cplusplus
25987extern "C"
25988#endif
25989char dnet_ntoa ();
25990int
25991main ()
25992{
25993return dnet_ntoa ();
25994 ;
25995 return 0;
25996}
25997_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025998if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025999 ac_cv_lib_dnet_dnet_ntoa=yes
26000else
cristy8b350f62009-11-15 23:12:43 +000026001 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026002fi
cristy8b350f62009-11-15 23:12:43 +000026003rm -f core conftest.err conftest.$ac_objext \
26004 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026005LIBS=$ac_check_lib_save_LIBS
26006fi
cristy8b350f62009-11-15 23:12:43 +000026007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026008$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026009if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026010 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26011fi
26012
26013 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026015$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026016if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026017 $as_echo_n "(cached) " >&6
26018else
26019 ac_check_lib_save_LIBS=$LIBS
26020LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026022/* end confdefs.h. */
26023
26024/* Override any GCC internal prototype to avoid an error.
26025 Use char because int might match the return type of a GCC
26026 builtin and then its argument prototype would still apply. */
26027#ifdef __cplusplus
26028extern "C"
26029#endif
26030char dnet_ntoa ();
26031int
26032main ()
26033{
26034return dnet_ntoa ();
26035 ;
26036 return 0;
26037}
26038_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026039if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026040 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26041else
cristy8b350f62009-11-15 23:12:43 +000026042 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026043fi
cristy8b350f62009-11-15 23:12:43 +000026044rm -f core conftest.err conftest.$ac_objext \
26045 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026046LIBS=$ac_check_lib_save_LIBS
26047fi
cristy8b350f62009-11-15 23:12:43 +000026048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026049$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026050if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026051 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26052fi
26053
26054 fi
26055fi
cristy8b350f62009-11-15 23:12:43 +000026056rm -f core conftest.err conftest.$ac_objext \
26057 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026058 LIBS="$ac_xsave_LIBS"
26059
26060 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26061 # to get the SysV transport functions.
26062 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26063 # needs -lnsl.
26064 # The nsl library prevents programs from opening the X display
26065 # on Irix 5.2, according to T.E. Dickey.
26066 # The functions gethostbyname, getservbyname, and inet_addr are
26067 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026068 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026069if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026070
cristy3ed852e2009-09-05 21:47:34 +000026071fi
26072
cristy3ed852e2009-09-05 21:47:34 +000026073 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026075$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026076if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026077 $as_echo_n "(cached) " >&6
26078else
26079 ac_check_lib_save_LIBS=$LIBS
26080LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026082/* end confdefs.h. */
26083
26084/* Override any GCC internal prototype to avoid an error.
26085 Use char because int might match the return type of a GCC
26086 builtin and then its argument prototype would still apply. */
26087#ifdef __cplusplus
26088extern "C"
26089#endif
26090char gethostbyname ();
26091int
26092main ()
26093{
26094return gethostbyname ();
26095 ;
26096 return 0;
26097}
26098_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026099if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026100 ac_cv_lib_nsl_gethostbyname=yes
26101else
cristy8b350f62009-11-15 23:12:43 +000026102 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026103fi
cristy8b350f62009-11-15 23:12:43 +000026104rm -f core conftest.err conftest.$ac_objext \
26105 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026106LIBS=$ac_check_lib_save_LIBS
26107fi
cristy8b350f62009-11-15 23:12:43 +000026108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026109$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026110if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026111 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26112fi
26113
26114 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000026116$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026117if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026118 $as_echo_n "(cached) " >&6
26119else
26120 ac_check_lib_save_LIBS=$LIBS
26121LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026123/* end confdefs.h. */
26124
26125/* Override any GCC internal prototype to avoid an error.
26126 Use char because int might match the return type of a GCC
26127 builtin and then its argument prototype would still apply. */
26128#ifdef __cplusplus
26129extern "C"
26130#endif
26131char gethostbyname ();
26132int
26133main ()
26134{
26135return gethostbyname ();
26136 ;
26137 return 0;
26138}
26139_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026140if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026141 ac_cv_lib_bsd_gethostbyname=yes
26142else
cristy8b350f62009-11-15 23:12:43 +000026143 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026144fi
cristy8b350f62009-11-15 23:12:43 +000026145rm -f core conftest.err conftest.$ac_objext \
26146 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026147LIBS=$ac_check_lib_save_LIBS
26148fi
cristy8b350f62009-11-15 23:12:43 +000026149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026150$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026151if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026152 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26153fi
26154
26155 fi
26156 fi
26157
26158 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26159 # socket/setsockopt and other routines are undefined under SCO ODT
26160 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26161 # on later versions), says Simon Leinen: it contains gethostby*
26162 # variants that don't use the name server (or something). -lsocket
26163 # must be given before -lnsl if both are needed. We assume that
26164 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000026165 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000026166if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026167
cristy3ed852e2009-09-05 21:47:34 +000026168fi
26169
cristy3ed852e2009-09-05 21:47:34 +000026170 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000026171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000026172$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026173if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026174 $as_echo_n "(cached) " >&6
26175else
26176 ac_check_lib_save_LIBS=$LIBS
26177LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026179/* end confdefs.h. */
26180
26181/* Override any GCC internal prototype to avoid an error.
26182 Use char because int might match the return type of a GCC
26183 builtin and then its argument prototype would still apply. */
26184#ifdef __cplusplus
26185extern "C"
26186#endif
26187char connect ();
26188int
26189main ()
26190{
26191return connect ();
26192 ;
26193 return 0;
26194}
26195_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026196if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026197 ac_cv_lib_socket_connect=yes
26198else
cristy8b350f62009-11-15 23:12:43 +000026199 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000026200fi
cristy8b350f62009-11-15 23:12:43 +000026201rm -f core conftest.err conftest.$ac_objext \
26202 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026203LIBS=$ac_check_lib_save_LIBS
26204fi
cristy8b350f62009-11-15 23:12:43 +000026205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000026206$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000026207if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026208 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26209fi
26210
26211 fi
26212
26213 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000026214 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000026215if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026216
cristy3ed852e2009-09-05 21:47:34 +000026217fi
26218
cristy3ed852e2009-09-05 21:47:34 +000026219 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000026220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000026221$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026222if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026223 $as_echo_n "(cached) " >&6
26224else
26225 ac_check_lib_save_LIBS=$LIBS
26226LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026228/* end confdefs.h. */
26229
26230/* Override any GCC internal prototype to avoid an error.
26231 Use char because int might match the return type of a GCC
26232 builtin and then its argument prototype would still apply. */
26233#ifdef __cplusplus
26234extern "C"
26235#endif
26236char remove ();
26237int
26238main ()
26239{
26240return remove ();
26241 ;
26242 return 0;
26243}
26244_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026245if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026246 ac_cv_lib_posix_remove=yes
26247else
cristy8b350f62009-11-15 23:12:43 +000026248 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000026249fi
cristy8b350f62009-11-15 23:12:43 +000026250rm -f core conftest.err conftest.$ac_objext \
26251 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026252LIBS=$ac_check_lib_save_LIBS
26253fi
cristy8b350f62009-11-15 23:12:43 +000026254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000026255$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000026256if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026257 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26258fi
26259
26260 fi
26261
26262 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000026263 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000026264if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026265
cristy3ed852e2009-09-05 21:47:34 +000026266fi
26267
cristy3ed852e2009-09-05 21:47:34 +000026268 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000026269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026270$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026271if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026272 $as_echo_n "(cached) " >&6
26273else
26274 ac_check_lib_save_LIBS=$LIBS
26275LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026277/* end confdefs.h. */
26278
26279/* Override any GCC internal prototype to avoid an error.
26280 Use char because int might match the return type of a GCC
26281 builtin and then its argument prototype would still apply. */
26282#ifdef __cplusplus
26283extern "C"
26284#endif
26285char shmat ();
26286int
26287main ()
26288{
26289return shmat ();
26290 ;
26291 return 0;
26292}
26293_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026294if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026295 ac_cv_lib_ipc_shmat=yes
26296else
cristy8b350f62009-11-15 23:12:43 +000026297 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000026298fi
cristy8b350f62009-11-15 23:12:43 +000026299rm -f core conftest.err conftest.$ac_objext \
26300 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026301LIBS=$ac_check_lib_save_LIBS
26302fi
cristy8b350f62009-11-15 23:12:43 +000026303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000026304$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000026305if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026306 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26307fi
26308
26309 fi
26310 fi
26311
26312 # Check for libraries that X11R6 Xt/Xaw programs need.
26313 ac_save_LDFLAGS=$LDFLAGS
26314 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26315 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26316 # check for ICE first), but we must link in the order -lSM -lICE or
26317 # we get undefined symbols. So assume we have SM if we have ICE.
26318 # These have to be linked with before -lX11, unlike the other
26319 # libraries we check for below, so use a different variable.
26320 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000026321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026322$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026323if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026324 $as_echo_n "(cached) " >&6
26325else
26326 ac_check_lib_save_LIBS=$LIBS
26327LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026329/* end confdefs.h. */
26330
26331/* Override any GCC internal prototype to avoid an error.
26332 Use char because int might match the return type of a GCC
26333 builtin and then its argument prototype would still apply. */
26334#ifdef __cplusplus
26335extern "C"
26336#endif
26337char IceConnectionNumber ();
26338int
26339main ()
26340{
26341return IceConnectionNumber ();
26342 ;
26343 return 0;
26344}
26345_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026346if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026347 ac_cv_lib_ICE_IceConnectionNumber=yes
26348else
cristy8b350f62009-11-15 23:12:43 +000026349 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000026350fi
cristy8b350f62009-11-15 23:12:43 +000026351rm -f core conftest.err conftest.$ac_objext \
26352 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026353LIBS=$ac_check_lib_save_LIBS
26354fi
cristy8b350f62009-11-15 23:12:43 +000026355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000026356$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000026357if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026358 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26359fi
26360
26361 LDFLAGS=$ac_save_LDFLAGS
26362
26363fi
26364
26365if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026367$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000026369$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026371$as_echo "" >&6; }
26372 LDFLAGS="$LDFLAGS $X_LIBS"
26373 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
26374 LIBS="$X11_LIBS $LIBS"
26375 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
26376
26377
cristy8b350f62009-11-15 23:12:43 +000026378$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026379
26380 #
26381 # Check for X11 shared memory extension
26382 #
26383 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000026384 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000026385if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026386 have_shmctl='yes'
26387fi
26388
26389 if test "$have_shmctl" != 'yes'; then
26390 PERSIST_LIBS=$LIBS
26391 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000026392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026393/* end confdefs.h. */
26394
26395/* Override any GCC internal prototype to avoid an error.
26396 Use char because int might match the return type of a GCC
26397 builtin and then its argument prototype would still apply. */
26398#ifdef __cplusplus
26399extern "C"
26400#endif
26401char shmctl ();
26402int
26403main ()
26404{
26405return shmctl ();
26406 ;
26407 return 0;
26408}
26409_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026410if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026411 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000026412fi
cristy8b350f62009-11-15 23:12:43 +000026413rm -f core conftest.err conftest.$ac_objext \
26414 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026415 LIBS=$PERSIST_LIBS
26416 fi
26417
26418 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026420$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026421if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026422 $as_echo_n "(cached) " >&6
26423else
26424 ac_check_lib_save_LIBS=$LIBS
26425LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026427/* end confdefs.h. */
26428
26429/* Override any GCC internal prototype to avoid an error.
26430 Use char because int might match the return type of a GCC
26431 builtin and then its argument prototype would still apply. */
26432#ifdef __cplusplus
26433extern "C"
26434#endif
26435char XShmAttach ();
26436int
26437main ()
26438{
26439return XShmAttach ();
26440 ;
26441 return 0;
26442}
26443_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026444if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026445 ac_cv_lib_Xext_XShmAttach=yes
26446else
cristy8b350f62009-11-15 23:12:43 +000026447 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000026448fi
cristy8b350f62009-11-15 23:12:43 +000026449rm -f core conftest.err conftest.$ac_objext \
26450 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026451LIBS=$ac_check_lib_save_LIBS
26452fi
cristy8b350f62009-11-15 23:12:43 +000026453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000026454$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000026455if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026456 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000026457$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026458
26459fi
26460
26461 fi
26462
26463 #
26464 # Check for X11 shape extension
26465 #
cristy8b350f62009-11-15 23:12:43 +000026466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026467$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026468if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026469 $as_echo_n "(cached) " >&6
26470else
26471 ac_check_lib_save_LIBS=$LIBS
26472LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026474/* end confdefs.h. */
26475
26476/* Override any GCC internal prototype to avoid an error.
26477 Use char because int might match the return type of a GCC
26478 builtin and then its argument prototype would still apply. */
26479#ifdef __cplusplus
26480extern "C"
26481#endif
26482char XShapeCombineMask ();
26483int
26484main ()
26485{
26486return XShapeCombineMask ();
26487 ;
26488 return 0;
26489}
26490_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026491if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026492 ac_cv_lib_Xext_XShapeCombineMask=yes
26493else
cristy8b350f62009-11-15 23:12:43 +000026494 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000026495fi
cristy8b350f62009-11-15 23:12:43 +000026496rm -f core conftest.err conftest.$ac_objext \
26497 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026498LIBS=$ac_check_lib_save_LIBS
26499fi
cristy8b350f62009-11-15 23:12:43 +000026500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000026501$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000026502if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026503 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000026504$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026505
26506fi
26507
cristy8b350f62009-11-15 23:12:43 +000026508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000026509$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026510if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026511 $as_echo_n "(cached) " >&6
26512else
26513 ac_check_lib_save_LIBS=$LIBS
26514LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026516/* end confdefs.h. */
26517
26518/* Override any GCC internal prototype to avoid an error.
26519 Use char because int might match the return type of a GCC
26520 builtin and then its argument prototype would still apply. */
26521#ifdef __cplusplus
26522extern "C"
26523#endif
26524char XtSetEventDispatcher ();
26525int
26526main ()
26527{
26528return XtSetEventDispatcher ();
26529 ;
26530 return 0;
26531}
26532_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026533if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026534 ac_cv_lib_Xt_XtSetEventDispatcher=yes
26535else
cristy8b350f62009-11-15 23:12:43 +000026536 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000026537fi
cristy8b350f62009-11-15 23:12:43 +000026538rm -f core conftest.err conftest.$ac_objext \
26539 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026540LIBS=$ac_check_lib_save_LIBS
26541fi
cristy8b350f62009-11-15 23:12:43 +000026542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000026543$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000026544if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026545 XT_LIBS='-lXt'
26546fi
26547
26548 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
26549fi
26550if test "$no_x" != 'yes'; then
26551 have_x='yes'
26552else
26553 have_x='no'
26554fi
cristy73bd4a52010-10-05 11:24:23 +000026555 if test "$have_x" = 'yes'; then
26556 X11_DELEGATE_TRUE=
26557 X11_DELEGATE_FALSE='#'
26558else
26559 X11_DELEGATE_TRUE='#'
26560 X11_DELEGATE_FALSE=
26561fi
26562
cristy3ed852e2009-09-05 21:47:34 +000026563
26564
26565
26566
26567#
26568# Check for ZLIB
26569#
26570
26571# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000026572if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026573 withval=$with_zlib; with_zlib=$withval
26574else
26575 with_zlib='yes'
26576fi
26577
26578
26579if test "$with_zlib" != 'yes'; then
26580 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
26581fi
26582
26583have_zlib='no'
26584ZLIB_LIBS=''
26585if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026587$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026589$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026591$as_echo "" >&6; }
26592 ZLIB_LIBS=''
26593 failed=0
26594 passed=0
cristy8b350f62009-11-15 23:12:43 +000026595 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026596if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026597 passed=`expr $passed + 1`
26598else
26599 failed=`expr $failed + 1`
26600fi
26601
26602
cristy8b350f62009-11-15 23:12:43 +000026603 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026604if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026605 passed=`expr $passed + 1`
26606else
26607 failed=`expr $failed + 1`
26608fi
26609
26610
cristy8b350f62009-11-15 23:12:43 +000026611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026612$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026613if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026614 $as_echo_n "(cached) " >&6
26615else
26616 ac_check_lib_save_LIBS=$LIBS
26617LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026619/* end confdefs.h. */
26620
26621/* Override any GCC internal prototype to avoid an error.
26622 Use char because int might match the return type of a GCC
26623 builtin and then its argument prototype would still apply. */
26624#ifdef __cplusplus
26625extern "C"
26626#endif
26627char compress ();
26628int
26629main ()
26630{
26631return compress ();
26632 ;
26633 return 0;
26634}
26635_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026636if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026637 ac_cv_lib_z_compress=yes
26638else
cristy8b350f62009-11-15 23:12:43 +000026639 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000026640fi
cristy8b350f62009-11-15 23:12:43 +000026641rm -f core conftest.err conftest.$ac_objext \
26642 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026643LIBS=$ac_check_lib_save_LIBS
26644fi
cristy8b350f62009-11-15 23:12:43 +000026645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026646$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026647if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026648 passed=`expr $passed + 1`
26649else
26650 failed=`expr $failed + 1`
26651fi
26652
cristy8b350f62009-11-15 23:12:43 +000026653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026654$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026655if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026656 $as_echo_n "(cached) " >&6
26657else
26658 ac_check_lib_save_LIBS=$LIBS
26659LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026661/* end confdefs.h. */
26662
26663/* Override any GCC internal prototype to avoid an error.
26664 Use char because int might match the return type of a GCC
26665 builtin and then its argument prototype would still apply. */
26666#ifdef __cplusplus
26667extern "C"
26668#endif
26669char uncompress ();
26670int
26671main ()
26672{
26673return uncompress ();
26674 ;
26675 return 0;
26676}
26677_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026678if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026679 ac_cv_lib_z_uncompress=yes
26680else
cristy8b350f62009-11-15 23:12:43 +000026681 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000026682fi
cristy8b350f62009-11-15 23:12:43 +000026683rm -f core conftest.err conftest.$ac_objext \
26684 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026685LIBS=$ac_check_lib_save_LIBS
26686fi
cristy8b350f62009-11-15 23:12:43 +000026687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026688$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026689if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026690 passed=`expr $passed + 1`
26691else
26692 failed=`expr $failed + 1`
26693fi
26694
cristy8b350f62009-11-15 23:12:43 +000026695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026696$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026697if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026698 $as_echo_n "(cached) " >&6
26699else
26700 ac_check_lib_save_LIBS=$LIBS
26701LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026703/* end confdefs.h. */
26704
26705/* Override any GCC internal prototype to avoid an error.
26706 Use char because int might match the return type of a GCC
26707 builtin and then its argument prototype would still apply. */
26708#ifdef __cplusplus
26709extern "C"
26710#endif
26711char deflate ();
26712int
26713main ()
26714{
26715return deflate ();
26716 ;
26717 return 0;
26718}
26719_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026720if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026721 ac_cv_lib_z_deflate=yes
26722else
cristy8b350f62009-11-15 23:12:43 +000026723 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000026724fi
cristy8b350f62009-11-15 23:12:43 +000026725rm -f core conftest.err conftest.$ac_objext \
26726 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026727LIBS=$ac_check_lib_save_LIBS
26728fi
cristy8b350f62009-11-15 23:12:43 +000026729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026730$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000026731if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026732 passed=`expr $passed + 1`
26733else
26734 failed=`expr $failed + 1`
26735fi
26736
cristy8b350f62009-11-15 23:12:43 +000026737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026738$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026739if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026740 $as_echo_n "(cached) " >&6
26741else
26742 ac_check_lib_save_LIBS=$LIBS
26743LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026745/* end confdefs.h. */
26746
26747/* Override any GCC internal prototype to avoid an error.
26748 Use char because int might match the return type of a GCC
26749 builtin and then its argument prototype would still apply. */
26750#ifdef __cplusplus
26751extern "C"
26752#endif
26753char inflate ();
26754int
26755main ()
26756{
26757return inflate ();
26758 ;
26759 return 0;
26760}
26761_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026762if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026763 ac_cv_lib_z_inflate=yes
26764else
cristy8b350f62009-11-15 23:12:43 +000026765 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000026766fi
cristy8b350f62009-11-15 23:12:43 +000026767rm -f core conftest.err conftest.$ac_objext \
26768 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026769LIBS=$ac_check_lib_save_LIBS
26770fi
cristy8b350f62009-11-15 23:12:43 +000026771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026772$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000026773if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026774 passed=`expr $passed + 1`
26775else
26776 failed=`expr $failed + 1`
26777fi
26778
cristy8b350f62009-11-15 23:12:43 +000026779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026780$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026781if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026782 $as_echo_n "(cached) " >&6
26783else
26784 ac_check_lib_save_LIBS=$LIBS
26785LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026787/* end confdefs.h. */
26788
26789/* Override any GCC internal prototype to avoid an error.
26790 Use char because int might match the return type of a GCC
26791 builtin and then its argument prototype would still apply. */
26792#ifdef __cplusplus
26793extern "C"
26794#endif
26795char gzseek ();
26796int
26797main ()
26798{
26799return gzseek ();
26800 ;
26801 return 0;
26802}
26803_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026804if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026805 ac_cv_lib_z_gzseek=yes
26806else
cristy8b350f62009-11-15 23:12:43 +000026807 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000026808fi
cristy8b350f62009-11-15 23:12:43 +000026809rm -f core conftest.err conftest.$ac_objext \
26810 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026811LIBS=$ac_check_lib_save_LIBS
26812fi
cristy8b350f62009-11-15 23:12:43 +000026813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026814$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000026815if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026816 passed=`expr $passed + 1`
26817else
26818 failed=`expr $failed + 1`
26819fi
26820
cristy8b350f62009-11-15 23:12:43 +000026821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026822$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026823if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026824 $as_echo_n "(cached) " >&6
26825else
26826 ac_check_lib_save_LIBS=$LIBS
26827LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026829/* end confdefs.h. */
26830
26831/* Override any GCC internal prototype to avoid an error.
26832 Use char because int might match the return type of a GCC
26833 builtin and then its argument prototype would still apply. */
26834#ifdef __cplusplus
26835extern "C"
26836#endif
26837char gztell ();
26838int
26839main ()
26840{
26841return gztell ();
26842 ;
26843 return 0;
26844}
26845_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026846if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026847 ac_cv_lib_z_gztell=yes
26848else
cristy8b350f62009-11-15 23:12:43 +000026849 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026850fi
cristy8b350f62009-11-15 23:12:43 +000026851rm -f core conftest.err conftest.$ac_objext \
26852 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026853LIBS=$ac_check_lib_save_LIBS
26854fi
cristy8b350f62009-11-15 23:12:43 +000026855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026856$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000026857if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026858 passed=`expr $passed + 1`
26859else
26860 failed=`expr $failed + 1`
26861fi
26862
cristy8b350f62009-11-15 23:12:43 +000026863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026864$as_echo_n "checking if ZLIB package is complete... " >&6; }
26865 if test $passed -gt 0; then
26866 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026868$as_echo "no -- some components failed test" >&6; }
26869 have_zlib='no (failed tests)'
26870 else
26871 ZLIB_LIBS='-lz'
26872 LIBS="$ZLIB_LIBS $LIBS"
26873
cristy8b350f62009-11-15 23:12:43 +000026874$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026875
cristy8b350f62009-11-15 23:12:43 +000026876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026877$as_echo "yes" >&6; }
26878 have_zlib='yes'
26879 fi
26880 else
cristy8b350f62009-11-15 23:12:43 +000026881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026882$as_echo "no" >&6; }
26883 fi
26884fi
cristy73bd4a52010-10-05 11:24:23 +000026885 if test "$have_zlib" = 'yes'; then
26886 ZLIB_DELEGATE_TRUE=
26887 ZLIB_DELEGATE_FALSE='#'
26888else
26889 ZLIB_DELEGATE_TRUE='#'
26890 ZLIB_DELEGATE_FALSE=
26891fi
26892
cristy3ed852e2009-09-05 21:47:34 +000026893
26894
26895#
26896# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26897#
26898LIB_DL=''
26899if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026901$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026902if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026903 $as_echo_n "(cached) " >&6
26904else
26905 ac_check_lib_save_LIBS=$LIBS
26906LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026908/* end confdefs.h. */
26909
26910/* Override any GCC internal prototype to avoid an error.
26911 Use char because int might match the return type of a GCC
26912 builtin and then its argument prototype would still apply. */
26913#ifdef __cplusplus
26914extern "C"
26915#endif
26916char dlopen ();
26917int
26918main ()
26919{
26920return dlopen ();
26921 ;
26922 return 0;
26923}
26924_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026925if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026926 ac_cv_lib_dl_dlopen=yes
26927else
cristy8b350f62009-11-15 23:12:43 +000026928 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026929fi
cristy8b350f62009-11-15 23:12:43 +000026930rm -f core conftest.err conftest.$ac_objext \
26931 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026932LIBS=$ac_check_lib_save_LIBS
26933fi
cristy8b350f62009-11-15 23:12:43 +000026934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026935$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000026936if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026937 LIB_DL='-ldl'
26938fi
26939
26940 LIBS="$LIB_DL $LIBS"
26941fi
26942
26943
26944
26945#
26946# Check for Autotrace delegate library.
26947#
26948
26949# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026950if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026951 withval=$with_autotrace; with_autotrace=$withval
26952else
26953 with_autotrace='no'
26954fi
26955
26956
26957if test "$with_autotrace" != 'yes'; then
26958 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26959fi
26960
26961have_autotrace='no'
26962AUTOTRACE_CFLAGS=""
26963AUTOTRACE_LIBS=""
26964AUTOTRACE_PKG=""
26965if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026967$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000026968
26969pkg_failed=no
26970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26971$as_echo_n "checking for AUTOTRACE... " >&6; }
26972
26973if test -n "$AUTOTRACE_CFLAGS"; then
26974 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26975 elif test -n "$PKG_CONFIG"; then
26976 if test -n "$PKG_CONFIG" && \
26977 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26978 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26979 ac_status=$?
26980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26981 test $ac_status = 0; }; then
26982 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26983else
26984 pkg_failed=yes
26985fi
26986 else
26987 pkg_failed=untried
26988fi
26989if test -n "$AUTOTRACE_LIBS"; then
26990 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26991 elif test -n "$PKG_CONFIG"; then
26992 if test -n "$PKG_CONFIG" && \
26993 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26994 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26995 ac_status=$?
26996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26997 test $ac_status = 0; }; then
26998 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26999else
27000 pkg_failed=yes
27001fi
27002 else
27003 pkg_failed=untried
27004fi
27005
27006
27007
27008if test $pkg_failed = yes; then
27009
27010if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27011 _pkg_short_errors_supported=yes
27012else
27013 _pkg_short_errors_supported=no
27014fi
27015 if test $_pkg_short_errors_supported = yes; then
27016 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27017 else
27018 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27019 fi
27020 # Put the nasty error message in config.log where it belongs
27021 echo "$AUTOTRACE_PKG_ERRORS" >&5
27022
27023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27024$as_echo "no" >&6; }
27025 have_autotrace=no
27026elif test $pkg_failed = untried; then
27027 have_autotrace=no
27028else
27029 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27030 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27032$as_echo "yes" >&6; }
27033 have_autotrace=yes
27034fi
cristy8b350f62009-11-15 23:12:43 +000027035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027036$as_echo "" >&6; }
27037fi
27038
27039if test "$have_autotrace" = 'yes'; then
27040 failed=0
27041
cristy8b350f62009-11-15 23:12:43 +000027042$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027043
27044 if test "$with_modules" = 'no'; then
27045 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27046 fi
27047fi
27048
cristy73bd4a52010-10-05 11:24:23 +000027049 if test "$have_autotrace" = 'yes'; then
27050 AUTOTRACE_DELEGATE_TRUE=
27051 AUTOTRACE_DELEGATE_FALSE='#'
27052else
27053 AUTOTRACE_DELEGATE_TRUE='#'
27054 AUTOTRACE_DELEGATE_FALSE=
27055fi
27056
cristy3ed852e2009-09-05 21:47:34 +000027057
27058
27059
27060
27061#
27062# Check for Display Postscript delegate library.
27063#
27064
27065# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000027066if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027067 withval=$with_dps; with_dps=$withval
27068else
27069 with_dps='yes'
27070fi
27071
27072
27073if test "$with_dps" != 'yes'; then
27074 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27075fi
27076
27077have_dps='no'
27078DPS_LIBS=''
27079if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027081$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027083$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027085$as_echo "" >&6; }
27086 failed=0
27087 passed=0
27088 PERSIST_CPPFLAGS="$CPPFLAGS"
27089 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000027090 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 +000027091if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027092 passed=`expr $passed + 1`
27093else
27094 failed=`expr $failed + 1`
27095fi
27096
27097
27098 # DPS issues:
27099 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27100 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27101 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27102 # ImageMagick itself doesn't use -lXt.
27103 have_libdps='no'
27104 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000027105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027106$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027107if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027108 $as_echo_n "(cached) " >&6
27109else
27110 ac_check_lib_save_LIBS=$LIBS
27111LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027113/* end confdefs.h. */
27114
27115/* Override any GCC internal prototype to avoid an error.
27116 Use char because int might match the return type of a GCC
27117 builtin and then its argument prototype would still apply. */
27118#ifdef __cplusplus
27119extern "C"
27120#endif
27121char DPSInitialize ();
27122int
27123main ()
27124{
27125return DPSInitialize ();
27126 ;
27127 return 0;
27128}
27129_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027130if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027131 ac_cv_lib_dps_DPSInitialize=yes
27132else
cristy8b350f62009-11-15 23:12:43 +000027133 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027134fi
cristy8b350f62009-11-15 23:12:43 +000027135rm -f core conftest.err conftest.$ac_objext \
27136 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027137LIBS=$ac_check_lib_save_LIBS
27138fi
cristy8b350f62009-11-15 23:12:43 +000027139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027140$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027141if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027142 have_libdps='yes'
27143else
27144 have_libdps='no'
27145fi
27146
27147 if test "$have_libdps" != 'yes'; then
27148 # Unset cache variable so we can try again.
27149 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000027150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027151$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027152if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027153 $as_echo_n "(cached) " >&6
27154else
27155 ac_check_lib_save_LIBS=$LIBS
27156LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027158/* end confdefs.h. */
27159
27160/* Override any GCC internal prototype to avoid an error.
27161 Use char because int might match the return type of a GCC
27162 builtin and then its argument prototype would still apply. */
27163#ifdef __cplusplus
27164extern "C"
27165#endif
27166char DPSInitialize ();
27167int
27168main ()
27169{
27170return DPSInitialize ();
27171 ;
27172 return 0;
27173}
27174_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027175if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027176 ac_cv_lib_dps_DPSInitialize=yes
27177else
cristy8b350f62009-11-15 23:12:43 +000027178 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027179fi
cristy8b350f62009-11-15 23:12:43 +000027180rm -f core conftest.err conftest.$ac_objext \
27181 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027182LIBS=$ac_check_lib_save_LIBS
27183fi
cristy8b350f62009-11-15 23:12:43 +000027184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027185$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027186if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027187 have_libdps='yes'
27188else
27189 have_libdps='no'
27190fi
27191
27192 if test "$have_libdps" = 'yes'; then
27193 LIBDPS_XT='-lXt'
27194 fi
27195 fi
27196 if test "$have_libdps" = 'yes'; then
27197 passed=`expr $passed + 1`
27198 else
27199 failed=`expr $failed + 1`
27200 fi
cristy8b350f62009-11-15 23:12:43 +000027201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000027202$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027203if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027204 $as_echo_n "(cached) " >&6
27205else
27206 ac_check_lib_save_LIBS=$LIBS
27207LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027209/* end confdefs.h. */
27210
27211/* Override any GCC internal prototype to avoid an error.
27212 Use char because int might match the return type of a GCC
27213 builtin and then its argument prototype would still apply. */
27214#ifdef __cplusplus
27215extern "C"
27216#endif
27217char XDPSPixelsPerPoint ();
27218int
27219main ()
27220{
27221return XDPSPixelsPerPoint ();
27222 ;
27223 return 0;
27224}
27225_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027226if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027227 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
27228else
cristy8b350f62009-11-15 23:12:43 +000027229 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000027230fi
cristy8b350f62009-11-15 23:12:43 +000027231rm -f core conftest.err conftest.$ac_objext \
27232 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027233LIBS=$ac_check_lib_save_LIBS
27234fi
cristy8b350f62009-11-15 23:12:43 +000027235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000027236$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000027237if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027238 passed=`expr $passed + 1`
27239else
27240 failed=`expr $failed + 1`
27241fi
27242
cristy8b350f62009-11-15 23:12:43 +000027243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027244$as_echo_n "checking if DPS package is complete... " >&6; }
27245 if test $passed -gt 0; then
27246 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027248$as_echo "no -- some components failed test" >&6; }
27249 have_dps='no (failed tests)'
27250 CPPFLAGS="$PERSIST_CPPFLAGS"
27251 else
27252 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
27253 LIBS="$DPS_LIBS $LIBS"
27254
cristy8b350f62009-11-15 23:12:43 +000027255$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027256
cristy8b350f62009-11-15 23:12:43 +000027257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027258$as_echo "yes" >&6; }
27259 have_dps='yes'
27260 fi
27261 else
cristy8b350f62009-11-15 23:12:43 +000027262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027263$as_echo "no" >&6; }
27264 CPPFLAGS=$PERSIST_CPPFLAGS
27265 fi
27266fi
cristy73bd4a52010-10-05 11:24:23 +000027267 if test "$have_dps" = 'yes'; then
27268 DPS_DELEGATE_TRUE=
27269 DPS_DELEGATE_FALSE='#'
27270else
27271 DPS_DELEGATE_TRUE='#'
27272 DPS_DELEGATE_FALSE=
27273fi
27274
cristy3ed852e2009-09-05 21:47:34 +000027275
27276
27277
27278#
27279# Check for DJVU delegate library.
27280#
27281
27282# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000027283if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027284 withval=$with_djvu; with_djvu=$withval
27285else
27286 with_djvu='yes'
27287fi
27288
27289
27290if test "$with_djvu" != 'yes'; then
27291 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
27292fi
27293
27294have_djvu='no'
27295DJVU_LIBS=''
27296if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027298$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000027300$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027302$as_echo "" >&6; }
27303 failed=0
27304 passed=0
cristy8b350f62009-11-15 23:12:43 +000027305 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 +000027306if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027307 passed=`expr $passed + 1`
27308else
27309 failed=`expr $failed + 1`
27310fi
27311
27312
cristy8b350f62009-11-15 23:12:43 +000027313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000027314$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027315if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027316 $as_echo_n "(cached) " >&6
27317else
27318 ac_check_lib_save_LIBS=$LIBS
27319LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027321/* end confdefs.h. */
27322
27323/* Override any GCC internal prototype to avoid an error.
27324 Use char because int might match the return type of a GCC
27325 builtin and then its argument prototype would still apply. */
27326#ifdef __cplusplus
27327extern "C"
27328#endif
27329char ddjvu_context_create ();
27330int
27331main ()
27332{
27333return ddjvu_context_create ();
27334 ;
27335 return 0;
27336}
27337_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027338if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027339 ac_cv_lib_djvulibre_ddjvu_context_create=yes
27340else
cristy8b350f62009-11-15 23:12:43 +000027341 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000027342fi
cristy8b350f62009-11-15 23:12:43 +000027343rm -f core conftest.err conftest.$ac_objext \
27344 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027345LIBS=$ac_check_lib_save_LIBS
27346fi
cristy8b350f62009-11-15 23:12:43 +000027347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027348$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000027349if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027350 passed=`expr $passed + 1`
27351else
27352 failed=`expr $failed + 1`
27353fi
27354
cristy8b350f62009-11-15 23:12:43 +000027355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027356$as_echo_n "checking if DJVU package is complete... " >&6; }
27357 if test $passed -gt 0; then
27358 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027360$as_echo "no -- some components failed test" >&6; }
27361 have_djvu='no (failed tests)'
27362 else
27363 DJVU_LIBS='-ldjvulibre'
27364 LIBS="$DJVU_LIBS $LIBS"
27365
cristy8b350f62009-11-15 23:12:43 +000027366$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027367
cristy8b350f62009-11-15 23:12:43 +000027368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027369$as_echo "yes" >&6; }
27370 have_djvu='yes'
27371 fi
27372 else
cristy8b350f62009-11-15 23:12:43 +000027373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027374$as_echo "no" >&6; }
27375 fi
27376fi
cristy73bd4a52010-10-05 11:24:23 +000027377 if test "$have_djvu" = 'yes'; then
27378 DJVU_DELEGATE_TRUE=
27379 DJVU_DELEGATE_FALSE='#'
27380else
27381 DJVU_DELEGATE_TRUE='#'
27382 DJVU_DELEGATE_FALSE=
27383fi
27384
cristy3ed852e2009-09-05 21:47:34 +000027385
27386
27387
27388#
cristy430a7312010-01-21 20:44:04 +000027389# Set DejaVu font directory.
27390#
27391
27392# Check whether --with-dejavu-font-dir was given.
27393if test "${with_dejavu_font_dir+set}" = set; then :
27394 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
27395else
27396 with_dejavu_font_dir='default'
27397fi
27398
27399
27400if test "$with_dejavu_font_dir" != 'default'; then
27401 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
27402fi
27403
27404
27405#
cristy3ed852e2009-09-05 21:47:34 +000027406# Check for FFTW delegate library.
27407#
27408
27409# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000027410if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027411 withval=$with_fftw; with_fftw=$withval
27412else
27413 with_fftw='yes'
27414fi
27415
27416
27417if test "$with_fftw" != 'yes'; then
27418 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
27419fi
27420
27421have_fftw='no'
27422FFTW_LIBS=''
27423if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027425$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000027427$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027429$as_echo "" >&6; }
27430 failed=0
27431 passed=0
cristy8b350f62009-11-15 23:12:43 +000027432 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027433if test "x$ac_cv_header_fftw3_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027434 passed=`expr $passed + 1`
27435else
27436 failed=`expr $failed + 1`
27437fi
27438
27439
cristy8b350f62009-11-15 23:12:43 +000027440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000027441$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027442if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027443 $as_echo_n "(cached) " >&6
27444else
27445 ac_check_lib_save_LIBS=$LIBS
27446LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027448/* end confdefs.h. */
27449
27450/* Override any GCC internal prototype to avoid an error.
27451 Use char because int might match the return type of a GCC
27452 builtin and then its argument prototype would still apply. */
27453#ifdef __cplusplus
27454extern "C"
27455#endif
27456char fftw_execute ();
27457int
27458main ()
27459{
27460return fftw_execute ();
27461 ;
27462 return 0;
27463}
27464_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027465if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027466 ac_cv_lib_fftw3_fftw_execute=yes
27467else
cristy8b350f62009-11-15 23:12:43 +000027468 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000027469fi
cristy8b350f62009-11-15 23:12:43 +000027470rm -f core conftest.err conftest.$ac_objext \
27471 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027472LIBS=$ac_check_lib_save_LIBS
27473fi
cristy8b350f62009-11-15 23:12:43 +000027474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000027475$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristyda16f162011-02-19 23:52:17 +000027476if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027477 passed=`expr $passed + 1`
27478else
27479 failed=`expr $failed + 1`
27480fi
27481
cristy8b350f62009-11-15 23:12:43 +000027482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027483$as_echo_n "checking if FFTW package is complete... " >&6; }
27484 if test $passed -gt 0; then
27485 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027487$as_echo "no -- some components failed test" >&6; }
27488 have_fftw='no (failed tests)'
27489 else
27490 FFTW_LIBS='-lfftw3'
27491 LIBS="$FFTW_LIBS $LIBS"
27492
cristy8b350f62009-11-15 23:12:43 +000027493$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027494
cristy8b350f62009-11-15 23:12:43 +000027495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027496$as_echo "yes" >&6; }
27497 have_fftw='yes'
27498 fi
27499 else
cristy8b350f62009-11-15 23:12:43 +000027500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027501$as_echo "no" >&6; }
27502 fi
27503fi
cristy73bd4a52010-10-05 11:24:23 +000027504 if test "$have_fftw" = 'yes'; then
27505 FFTW_DELEGATE_TRUE=
27506 FFTW_DELEGATE_FALSE='#'
27507else
27508 FFTW_DELEGATE_TRUE='#'
27509 FFTW_DELEGATE_FALSE=
27510fi
27511
cristy3ed852e2009-09-05 21:47:34 +000027512
27513
27514
27515#
27516# Check for FlashPIX delegate library.
27517#
27518
27519# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000027520if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027521 withval=$with_fpx; with_fpx=$withval
27522else
27523 with_fpx='yes'
27524fi
27525
27526
27527if test "$with_fpx" != 'yes'; then
27528 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
27529fi
27530
27531have_fpx='no'
27532FPX_LIBS=''
27533if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027535$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000027537$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027539$as_echo "" >&6; }
27540 failed=0
27541 passed=0
27542 ac_ext=cpp
27543ac_cpp='$CXXCPP $CPPFLAGS'
27544ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27545ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27546ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27547
27548
cristy8b350f62009-11-15 23:12:43 +000027549ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027550if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027551 passed=`expr $passed + 1`
27552else
27553 failed=`expr $failed + 1`
27554fi
27555
27556
cristy8b350f62009-11-15 23:12:43 +000027557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000027558$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027559if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027560 $as_echo_n "(cached) " >&6
27561else
27562 ac_check_lib_save_LIBS=$LIBS
27563LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027565/* end confdefs.h. */
27566
27567/* Override any GCC internal prototype to avoid an error.
27568 Use char because int might match the return type of a GCC
27569 builtin and then its argument prototype would still apply. */
27570#ifdef __cplusplus
27571extern "C"
27572#endif
27573char FPX_OpenImageByFilename ();
27574int
27575main ()
27576{
27577return FPX_OpenImageByFilename ();
27578 ;
27579 return 0;
27580}
27581_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027582if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027583 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
27584else
cristy8b350f62009-11-15 23:12:43 +000027585 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000027586fi
cristy8b350f62009-11-15 23:12:43 +000027587rm -f core conftest.err conftest.$ac_objext \
27588 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027589LIBS=$ac_check_lib_save_LIBS
27590fi
cristy8b350f62009-11-15 23:12:43 +000027591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000027592$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000027593if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027594 passed=`expr $passed + 1`
27595else
27596 failed=`expr $failed + 1`
27597fi
27598
27599 ac_ext=c
27600ac_cpp='$CPP $CPPFLAGS'
27601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27603ac_compiler_gnu=$ac_cv_c_compiler_gnu
27604
cristy8b350f62009-11-15 23:12:43 +000027605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027606$as_echo_n "checking if FlashPIX package is complete... " >&6; }
27607 if test $passed -gt 0; then
27608 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027610$as_echo "no -- some components failed test" >&6; }
27611 have_fpx='no (failed tests)'
27612 else
27613 FPX_LIBS='-lfpx'
27614
cristy8b350f62009-11-15 23:12:43 +000027615$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027616
cristy8b350f62009-11-15 23:12:43 +000027617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027618$as_echo "yes" >&6; }
27619 have_fpx='yes'
27620 PERLMAINCC="$CXX"
27621 fi
27622 else
cristy8b350f62009-11-15 23:12:43 +000027623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027624$as_echo "no" >&6; }
27625 fi
27626fi
cristy73bd4a52010-10-05 11:24:23 +000027627 if test "$have_fpx" = 'yes'; then
27628 FPX_DELEGATE_TRUE=
27629 FPX_DELEGATE_FALSE='#'
27630else
27631 FPX_DELEGATE_TRUE='#'
27632 FPX_DELEGATE_FALSE=
27633fi
27634
cristy3ed852e2009-09-05 21:47:34 +000027635
27636
27637
27638#
27639# Check for fontconfig delegate library.
27640#
27641
27642# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000027643if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027644 withval=$with_fontconfig; with_fontconfig=$withval
27645else
27646 with_fontconfig=$have_x
27647fi
27648
27649
27650if test "$with_fontconfig" != 'yes'; then
27651 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27652fi
27653
27654have_fontconfig='no'
27655FONTCONFIG_CFLAGS=""
27656FONTCONFIG_LIBS=""
27657FONTCONFIG_PKG=""
27658if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027660$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027661
27662pkg_failed=no
27663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
27664$as_echo_n "checking for FONTCONFIG... " >&6; }
27665
27666if test -n "$FONTCONFIG_CFLAGS"; then
27667 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27668 elif test -n "$PKG_CONFIG"; then
27669 if test -n "$PKG_CONFIG" && \
27670 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27671 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27672 ac_status=$?
27673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27674 test $ac_status = 0; }; then
27675 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27676else
27677 pkg_failed=yes
27678fi
27679 else
27680 pkg_failed=untried
27681fi
27682if test -n "$FONTCONFIG_LIBS"; then
27683 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27684 elif test -n "$PKG_CONFIG"; then
27685 if test -n "$PKG_CONFIG" && \
27686 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27687 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27688 ac_status=$?
27689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27690 test $ac_status = 0; }; then
27691 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27692else
27693 pkg_failed=yes
27694fi
27695 else
27696 pkg_failed=untried
27697fi
27698
27699
27700
27701if test $pkg_failed = yes; then
27702
27703if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27704 _pkg_short_errors_supported=yes
27705else
27706 _pkg_short_errors_supported=no
27707fi
27708 if test $_pkg_short_errors_supported = yes; then
27709 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27710 else
27711 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27712 fi
27713 # Put the nasty error message in config.log where it belongs
27714 echo "$FONTCONFIG_PKG_ERRORS" >&5
27715
27716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27717$as_echo "no" >&6; }
27718 have_fontconfig=no
27719elif test $pkg_failed = untried; then
27720 have_fontconfig=no
27721else
27722 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27723 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
27724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27725$as_echo "yes" >&6; }
27726 have_fontconfig=yes
27727fi
cristy8b350f62009-11-15 23:12:43 +000027728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027729$as_echo "" >&6; }
27730fi
27731
27732if test "$have_fontconfig" = 'yes'; then
27733
cristy8b350f62009-11-15 23:12:43 +000027734$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027735
cristyd09bcf92010-03-25 03:04:45 +000027736 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000027737 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000027738 fi
cristy3ed852e2009-09-05 21:47:34 +000027739fi
27740
cristy73bd4a52010-10-05 11:24:23 +000027741 if test "$have_fontconfig" = 'yes'; then
27742 FONTCONFIG_DELEGATE_TRUE=
27743 FONTCONFIG_DELEGATE_FALSE='#'
27744else
27745 FONTCONFIG_DELEGATE_TRUE='#'
27746 FONTCONFIG_DELEGATE_FALSE=
27747fi
27748
cristy3ed852e2009-09-05 21:47:34 +000027749
27750
27751
27752
27753#
27754# Check for freetype delegate library.
27755#
27756
27757# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000027758if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027759 withval=$with_freetype; with_freetype=$withval
27760else
27761 with_freetype='yes'
27762fi
27763
27764
27765
27766if test "$with_freetype" != 'yes'; then
27767 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27768fi
27769
27770have_freetype='no'
27771FREETYPE_LIBS=''
27772if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027774$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000027776$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027778$as_echo "" >&6; }
27779 failed=0
27780 passed=0
cristy66291112009-10-03 22:44:36 +000027781 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027782 PERSIST_CPPFLAGS="$CPPFLAGS"
27783 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27784 :
27785 else
27786 freetype_config=''
27787 for ac_prog in freetype-config
27788do
27789 # Extract the first word of "$ac_prog", so it can be a program name with args.
27790set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027792$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027793if ${ac_cv_prog_freetype_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027794 $as_echo_n "(cached) " >&6
27795else
27796 if test -n "$freetype_config"; then
27797 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27798else
27799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27800for as_dir in $PATH
27801do
27802 IFS=$as_save_IFS
27803 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027804 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27806 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027808 break 2
27809 fi
27810done
cristy8b350f62009-11-15 23:12:43 +000027811 done
cristy3ed852e2009-09-05 21:47:34 +000027812IFS=$as_save_IFS
27813
27814fi
27815fi
27816freetype_config=$ac_cv_prog_freetype_config
27817if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027819$as_echo "$freetype_config" >&6; }
27820else
cristy8b350f62009-11-15 23:12:43 +000027821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027822$as_echo "no" >&6; }
27823fi
27824
27825
27826 test -n "$freetype_config" && break
27827done
27828 if test -n "$freetype_config"; then
27829 freetype_cflags=`$freetype_config --cflags`
27830 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027831 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027832 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27833 fi
27834 fi
27835
27836 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027838$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027839if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027840 $as_echo_n "(cached) " >&6
27841else
27842 ac_check_lib_save_LIBS=$LIBS
27843LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027845/* end confdefs.h. */
27846
27847/* Override any GCC internal prototype to avoid an error.
27848 Use char because int might match the return type of a GCC
27849 builtin and then its argument prototype would still apply. */
27850#ifdef __cplusplus
27851extern "C"
27852#endif
27853char FT_Init_FreeType ();
27854int
27855main ()
27856{
27857return FT_Init_FreeType ();
27858 ;
27859 return 0;
27860}
27861_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027862if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027863 ac_cv_lib_freetype_FT_Init_FreeType=yes
27864else
cristy8b350f62009-11-15 23:12:43 +000027865 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027866fi
cristy8b350f62009-11-15 23:12:43 +000027867rm -f core conftest.err conftest.$ac_objext \
27868 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027869LIBS=$ac_check_lib_save_LIBS
27870fi
cristy8b350f62009-11-15 23:12:43 +000027871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027872$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristyda16f162011-02-19 23:52:17 +000027873if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027874 FREETYPE_LIBS='-lfreetype'
27875fi
27876
27877 if test "$FREETYPE_LIBS" != ''; then
27878 passed=`expr $passed + 1`
27879 else
27880 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027881 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027882 fi
27883 fi
27884
cristy8b350f62009-11-15 23:12:43 +000027885 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027886if test "x$ac_cv_header_ft2build_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027887 FT2BUILD_H='#include <ft2build.h>'
27888else
27889 ft2build=''
27890fi
27891
27892
cristy8b350f62009-11-15 23:12:43 +000027893 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27894"
cristyda16f162011-02-19 23:52:17 +000027895if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027896 have_freetype_h='yes'
27897else
27898 have_freetype_h='no'
27899fi
27900
27901
27902 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27903 passed=`expr $passed + 1`
27904 else
27905 failed=`expr $failed + 1`
27906 CPPFLAGS="$PERSIST_CPPFLAGS"
27907 fi
27908
cristy8b350f62009-11-15 23:12:43 +000027909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027910$as_echo_n "checking if FreeType package is complete... " >&6; }
27911 if test $passed -gt 0; then
27912 if test $failed -gt 0; then
27913 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027915$as_echo "no -- some components failed test" >&6; }
27916 have_freetype='no (failed tests)'
27917 else
27918 LIBS="$FREETYPE_LIBS $LIBS"
27919
cristy8b350f62009-11-15 23:12:43 +000027920$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027921
27922 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27923
cristy8b350f62009-11-15 23:12:43 +000027924$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027925
27926 fi
cristy8b350f62009-11-15 23:12:43 +000027927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027928$as_echo "yes" >&6; }
27929 have_freetype='yes'
27930 fi
27931 else
cristy8b350f62009-11-15 23:12:43 +000027932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027933$as_echo "no" >&6; }
27934 fi
27935fi
cristy73bd4a52010-10-05 11:24:23 +000027936 if test "$have_freetype" = 'yes'; then
27937 FREETYPE_DELEGATE_TRUE=
27938 FREETYPE_DELEGATE_FALSE='#'
27939else
27940 FREETYPE_DELEGATE_TRUE='#'
27941 FREETYPE_DELEGATE_FALSE=
27942fi
27943
cristy3ed852e2009-09-05 21:47:34 +000027944
27945
27946
27947
27948#
27949# Check for Ghostscript library or framework.
27950#
27951# Test for iapi.h & test for gsapi_new_instance in -lgs
27952# or -framework Ghostscript
27953
27954
27955# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027956if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027957 withval=$with_gslib; with_gslib=$withval
27958else
27959 with_gslib='no'
27960fi
27961
27962
cristyb7931f12009-09-25 10:22:21 +000027963gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027964if test "$with_gslib" != 'yes'; then
27965 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27966fi
27967
27968have_gslib='no'
27969GS_LIBS=''
27970if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027972$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027974$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027976$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027977 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027978 failed=0
27979 passed=0
cristy8b350f62009-11-15 23:12:43 +000027980 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 +000027981if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027982 passed=`expr $passed + 1`
27983else
27984 failed=`expr $failed + 1`
27985fi
27986
27987
cristy8b350f62009-11-15 23:12:43 +000027988 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 +000027989if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027990 passed=`expr $passed + 1`
27991else
27992 failed=`expr $failed + 1`
27993fi
27994
27995
cristy73bd4a52010-10-05 11:24:23 +000027996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27997$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027998if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000027999 $as_echo_n "(cached) " >&6
28000else
28001 ac_check_framework_save_LIBS=$LIBS
28002LIBS="-framework Ghostscript $LIBS"
28003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28004/* end confdefs.h. */
28005
28006/* Override any GCC internal prototype to avoid an error.
28007 Use char because int might match the return type of a GCC
28008 builtin and then its argument prototype would still apply. */
28009#ifdef __cplusplus
28010extern "C"
28011#endif
28012char gsapi_new_instance ();
28013int
28014main ()
28015{
28016return gsapi_new_instance ();
28017 ;
28018 return 0;
28019}
28020_ACEOF
28021if ac_fn_c_try_link "$LINENO"; then :
28022 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28023else
28024 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28025fi
28026rm -f core conftest.err conftest.$ac_objext \
28027 conftest$ac_exeext conftest.$ac_ext
28028LIBS=$ac_check_framework_save_LIBS
28029fi
28030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28031$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28032if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28033 framework=`expr $framework + 1`
28034else
28035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028036$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028037if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028038 $as_echo_n "(cached) " >&6
28039else
28040 ac_check_lib_save_LIBS=$LIBS
28041LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028043/* end confdefs.h. */
28044
28045/* Override any GCC internal prototype to avoid an error.
28046 Use char because int might match the return type of a GCC
28047 builtin and then its argument prototype would still apply. */
28048#ifdef __cplusplus
28049extern "C"
28050#endif
28051char gsapi_new_instance ();
28052int
28053main ()
28054{
28055return gsapi_new_instance ();
28056 ;
28057 return 0;
28058}
28059_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028060if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028061 ac_cv_lib_gs_gsapi_new_instance=yes
28062else
cristy8b350f62009-11-15 23:12:43 +000028063 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000028064fi
cristy8b350f62009-11-15 23:12:43 +000028065rm -f core conftest.err conftest.$ac_objext \
28066 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028067LIBS=$ac_check_lib_save_LIBS
28068fi
cristy8b350f62009-11-15 23:12:43 +000028069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000028070$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000028071if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028072 passed=`expr $passed + 1`
28073else
28074 failed=`expr $failed + 1`
28075fi
cristy73bd4a52010-10-05 11:24:23 +000028076
28077fi
cristy8b350f62009-11-15 23:12:43 +000028078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028079$as_echo_n "checking if Ghostscript package is complete... " >&6; }
28080 if test $passed -gt 0; then
28081 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028083$as_echo "no -- some components failed test" >&6; }
28084 have_gslib='no (failed tests)'
28085 else
28086 if test $framework -gt 0; then
28087 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000028088 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000028089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000028090$as_echo "yes, using framework." >&6; }
28091 else
cristy8b350f62009-11-15 23:12:43 +000028092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000028093$as_echo "yes, using library." >&6; }
28094 GS_LIBS='-lgs'
28095 fi
28096 LIBS="$GS_LIBS $LIBS"
28097
cristy8b350f62009-11-15 23:12:43 +000028098$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028099
28100 have_gslib='yes'
28101 fi
28102 else
cristy8b350f62009-11-15 23:12:43 +000028103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028104$as_echo "no" >&6; }
28105 fi
28106fi
cristy73bd4a52010-10-05 11:24:23 +000028107 if test "$have_gslib" = 'yes'; then
28108 GS_DELEGATE_TRUE=
28109 GS_DELEGATE_FALSE='#'
28110else
28111 GS_DELEGATE_TRUE='#'
28112 GS_DELEGATE_FALSE=
28113fi
28114
cristy3ed852e2009-09-05 21:47:34 +000028115
28116
28117# Set default font search path
28118
28119# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000028120if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028121 withval=$with_fontpath; with_fontpath=$withval
28122else
28123 with_fontpath=''
28124fi
28125
28126
28127if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28128 with_fontpath=''
28129else
28130
28131cat >>confdefs.h <<_ACEOF
28132#define MAGICK_FONT_PATH "$with_fontpath"
28133_ACEOF
28134
28135fi
28136if test "$with_fontpath=" != ''; then
28137 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28138fi
28139
28140# Set Ghostscript font directory
28141
28142# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028143if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028144 withval=$with_gs_font_dir; with_gs_font_dir=$withval
28145else
28146 with_gs_font_dir='default'
28147fi
28148
28149
28150if test "$with_gs_font_dir" != 'default'; then
28151 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28152fi
28153
28154
28155#
28156# Check for GVC delegate library.
28157#
28158
28159# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000028160if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028161 withval=$with_gvc; with_gvc=$withval
28162else
28163 with_gvc='yes'
28164fi
28165
28166
28167if test "$with_gvc" != 'yes'; then
28168 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28169fi
28170
28171GVC_PKG=""
28172if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028174$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028175
28176pkg_failed=no
28177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
28178$as_echo_n "checking for GVC... " >&6; }
28179
28180if test -n "$GVC_CFLAGS"; then
28181 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
28182 elif test -n "$PKG_CONFIG"; then
28183 if test -n "$PKG_CONFIG" && \
28184 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28185 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28186 ac_status=$?
28187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28188 test $ac_status = 0; }; then
28189 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
28190else
28191 pkg_failed=yes
28192fi
28193 else
28194 pkg_failed=untried
28195fi
28196if test -n "$GVC_LIBS"; then
28197 pkg_cv_GVC_LIBS="$GVC_LIBS"
28198 elif test -n "$PKG_CONFIG"; then
28199 if test -n "$PKG_CONFIG" && \
28200 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28201 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28202 ac_status=$?
28203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28204 test $ac_status = 0; }; then
28205 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
28206else
28207 pkg_failed=yes
28208fi
28209 else
28210 pkg_failed=untried
28211fi
28212
28213
28214
28215if test $pkg_failed = yes; then
28216
28217if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28218 _pkg_short_errors_supported=yes
28219else
28220 _pkg_short_errors_supported=no
28221fi
28222 if test $_pkg_short_errors_supported = yes; then
28223 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
28224 else
28225 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
28226 fi
28227 # Put the nasty error message in config.log where it belongs
28228 echo "$GVC_PKG_ERRORS" >&5
28229
28230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28231$as_echo "no" >&6; }
28232 have_gvc=no
28233elif test $pkg_failed = untried; then
28234 have_gvc=no
28235else
28236 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
28237 GVC_LIBS=$pkg_cv_GVC_LIBS
28238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28239$as_echo "yes" >&6; }
28240 have_gvc=yes
28241fi
cristy8b350f62009-11-15 23:12:43 +000028242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028243$as_echo "" >&6; }
28244fi
28245
28246if test "$have_gvc" = 'yes'; then
28247
cristy8b350f62009-11-15 23:12:43 +000028248$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028249
28250 if test "$with_modules" = 'no'; then
28251 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
28252 fi
28253fi
28254
cristy73bd4a52010-10-05 11:24:23 +000028255 if test "$have_gvc" = 'yes'; then
28256 GVC_DELEGATE_TRUE=
28257 GVC_DELEGATE_FALSE='#'
28258else
28259 GVC_DELEGATE_TRUE='#'
28260 GVC_DELEGATE_FALSE=
28261fi
28262
cristy3ed852e2009-09-05 21:47:34 +000028263
28264
28265
28266
28267#
28268# Check for JBIG delegate library.
28269#
28270
28271
28272# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000028273if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028274 withval=$with_jbig; with_jbig=$withval
28275else
28276 with_jbig='yes'
28277fi
28278
28279
28280have_jbig='no'
28281JBIG_LIBS=''
28282if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028284$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028286$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028288$as_echo "" >&6; }
28289 failed=0
28290 passed=0
cristy8b350f62009-11-15 23:12:43 +000028291 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028292if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028293 passed=`expr $passed + 1`
28294else
28295 failed=`expr $failed + 1`
28296fi
28297
28298
cristy8b350f62009-11-15 23:12:43 +000028299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000028300$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028301if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028302 $as_echo_n "(cached) " >&6
28303else
28304 ac_check_lib_save_LIBS=$LIBS
28305LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028307/* end confdefs.h. */
28308
28309/* Override any GCC internal prototype to avoid an error.
28310 Use char because int might match the return type of a GCC
28311 builtin and then its argument prototype would still apply. */
28312#ifdef __cplusplus
28313extern "C"
28314#endif
28315char jbg_dec_init ();
28316int
28317main ()
28318{
28319return jbg_dec_init ();
28320 ;
28321 return 0;
28322}
28323_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028324if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028325 ac_cv_lib_jbig_jbg_dec_init=yes
28326else
cristy8b350f62009-11-15 23:12:43 +000028327 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000028328fi
cristy8b350f62009-11-15 23:12:43 +000028329rm -f core conftest.err conftest.$ac_objext \
28330 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028331LIBS=$ac_check_lib_save_LIBS
28332fi
cristy8b350f62009-11-15 23:12:43 +000028333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000028334$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000028335if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028336 passed=`expr $passed + 1`
28337else
28338 failed=`expr $failed + 1`
28339fi
28340
cristy8b350f62009-11-15 23:12:43 +000028341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028342$as_echo_n "checking if JBIG package is complete... " >&6; }
28343 if test $passed -gt 0; then
28344 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028346$as_echo "no -- some components failed test" >&6; }
28347 have_jbig='no (failed tests)'
28348 else
28349 JBIG_LIBS='-ljbig'
28350 LIBS="$JBIG_LIBS $LIBS"
28351
cristy8b350f62009-11-15 23:12:43 +000028352$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028353
cristy8b350f62009-11-15 23:12:43 +000028354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028355$as_echo "yes" >&6; }
28356 have_jbig='yes'
28357 fi
28358 else
cristy8b350f62009-11-15 23:12:43 +000028359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028360$as_echo "no" >&6; }
28361 fi
28362fi
cristy73bd4a52010-10-05 11:24:23 +000028363 if test "$have_jbig" = 'yes'; then
28364 JBIG_DELEGATE_TRUE=
28365 JBIG_DELEGATE_FALSE='#'
28366else
28367 JBIG_DELEGATE_TRUE='#'
28368 JBIG_DELEGATE_FALSE=
28369fi
28370
cristy3ed852e2009-09-05 21:47:34 +000028371
28372
28373
28374#
28375# Check for JPEG delegate library.
28376#
28377
28378# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000028379if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028380 withval=$with_jpeg; with_jpeg=$withval
28381else
28382 with_jpeg='yes'
28383fi
28384
28385
28386if test "$with_jpeg" != 'yes'; then
28387 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
28388fi
28389
28390have_jpeg='no'
28391JPEG_LIBS=''
28392if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028394$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028396$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028398$as_echo "" >&6; }
28399 failed=0
28400 passed=0
cristy8b350f62009-11-15 23:12:43 +000028401 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028402if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028403 passed=`expr $passed + 1`
28404else
28405 failed=`expr $failed + 1`
28406fi
28407
28408
cristy8b350f62009-11-15 23:12:43 +000028409 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028410if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028411 passed=`expr $passed + 1`
28412else
28413 failed=`expr $failed + 1`
28414fi
28415
28416
cristy8b350f62009-11-15 23:12:43 +000028417 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028418if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028419 passed=`expr $passed + 1`
28420else
28421 failed=`expr $failed + 1`
28422fi
28423
28424
cristy8b350f62009-11-15 23:12:43 +000028425 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028426if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028427 passed=`expr $passed + 1`
28428else
28429 failed=`expr $failed + 1`
28430fi
28431
28432
cristy8b350f62009-11-15 23:12:43 +000028433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000028434$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028435if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028436 $as_echo_n "(cached) " >&6
28437else
28438 ac_check_lib_save_LIBS=$LIBS
28439LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028441/* end confdefs.h. */
28442
28443/* Override any GCC internal prototype to avoid an error.
28444 Use char because int might match the return type of a GCC
28445 builtin and then its argument prototype would still apply. */
28446#ifdef __cplusplus
28447extern "C"
28448#endif
28449char jpeg_read_header ();
28450int
28451main ()
28452{
28453return jpeg_read_header ();
28454 ;
28455 return 0;
28456}
28457_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028458if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028459 ac_cv_lib_jpeg_jpeg_read_header=yes
28460else
cristy8b350f62009-11-15 23:12:43 +000028461 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000028462fi
cristy8b350f62009-11-15 23:12:43 +000028463rm -f core conftest.err conftest.$ac_objext \
28464 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028465LIBS=$ac_check_lib_save_LIBS
28466fi
cristy8b350f62009-11-15 23:12:43 +000028467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000028468$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000028469if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028470 passed=`expr $passed + 1`
28471else
28472 failed=`expr $failed + 1`
28473fi
28474
28475
28476# Test for compatible JPEG library
28477if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000028479$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028480if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028481 $as_echo_n "(cached) " >&6
28482else
cristy8b350f62009-11-15 23:12:43 +000028483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028484/* end confdefs.h. */
28485#include <stdio.h>
28486#include <stdlib.h>
28487#include <jpeglib.h>
28488
28489int
28490main ()
28491{
28492
28493#if JPEG_LIB_VERSION < 62
28494#error IJG JPEG library must be version 6b or newer!
28495#endif
28496return 0;
28497
28498 ;
28499 return 0;
28500}
28501_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028502if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028503 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
28504else
cristy8b350f62009-11-15 23:12:43 +000028505 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028506fi
cristy3ed852e2009-09-05 21:47:34 +000028507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28508fi
cristy8b350f62009-11-15 23:12:43 +000028509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000028510$as_echo "$ac_cv_jpeg_version_ok" >&6; }
28511fi
cristy8b350f62009-11-15 23:12:43 +000028512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028513$as_echo_n "checking if JPEG package is complete... " >&6; }
28514 if test $passed -gt 0; then
28515 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028517$as_echo "no -- some components failed test" >&6; }
28518 have_jpeg='no (failed tests)'
28519 else
28520 JPEG_LIBS='-ljpeg'
28521 LIBS="$JPEG_LIBS $LIBS"
28522
cristy8b350f62009-11-15 23:12:43 +000028523$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028524
cristy8b350f62009-11-15 23:12:43 +000028525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028526$as_echo "yes" >&6; }
28527 have_jpeg='yes'
28528 fi
28529 else
cristy8b350f62009-11-15 23:12:43 +000028530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028531$as_echo "no" >&6; }
28532 fi
28533fi
cristy73bd4a52010-10-05 11:24:23 +000028534 if test "$have_jpeg" = 'yes'; then
28535 JPEG_DELEGATE_TRUE=
28536 JPEG_DELEGATE_FALSE='#'
28537else
28538 JPEG_DELEGATE_TRUE='#'
28539 JPEG_DELEGATE_FALSE=
28540fi
28541
cristy3ed852e2009-09-05 21:47:34 +000028542
28543
28544
28545#
28546# Check for JPEG Version 2 delegate library.
28547#
28548
28549# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000028550if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028551 withval=$with_jp2; with_jp2=$withval
28552else
28553 with_jp2='yes'
28554fi
28555
28556
28557if test "$with_jp2" != 'yes'; then
28558 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
28559fi
28560
28561have_jp2='no'
28562JP2_LIBS=''
28563if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028565$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000028567$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028569$as_echo "" >&6; }
28570 failed=0
28571 passed=0
cristy8b350f62009-11-15 23:12:43 +000028572 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 +000028573if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028574 passed=`expr $passed + 1`
28575else
28576 failed=`expr $failed + 1`
28577fi
28578
28579
cristy8b350f62009-11-15 23:12:43 +000028580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000028581$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028582if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028583 $as_echo_n "(cached) " >&6
28584else
28585 ac_check_lib_save_LIBS=$LIBS
28586LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028588/* end confdefs.h. */
28589
28590/* Override any GCC internal prototype to avoid an error.
28591 Use char because int might match the return type of a GCC
28592 builtin and then its argument prototype would still apply. */
28593#ifdef __cplusplus
28594extern "C"
28595#endif
28596char jas_stream_fopen ();
28597int
28598main ()
28599{
28600return jas_stream_fopen ();
28601 ;
28602 return 0;
28603}
28604_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028605if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028606 ac_cv_lib_jasper_jas_stream_fopen=yes
28607else
cristy8b350f62009-11-15 23:12:43 +000028608 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000028609fi
cristy8b350f62009-11-15 23:12:43 +000028610rm -f core conftest.err conftest.$ac_objext \
28611 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028612LIBS=$ac_check_lib_save_LIBS
28613fi
cristy8b350f62009-11-15 23:12:43 +000028614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028615$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028616if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028617 passed=`expr $passed + 1`
28618else
28619 failed=`expr $failed + 1`
28620fi
28621
cristy8b350f62009-11-15 23:12:43 +000028622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028623$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
28624 if test $passed -gt 0; then
28625 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028627$as_echo "no -- some components failed test" >&6; }
28628 have_jp2='no (failed tests)'
28629 else
28630 JP2_LIBS='-ljasper'
28631 LIBS="$JP2_LIBS $LIBS"
28632
cristy8b350f62009-11-15 23:12:43 +000028633$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028634
cristy8b350f62009-11-15 23:12:43 +000028635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028636$as_echo "yes" >&6; }
28637 have_jp2='yes'
28638 fi
28639 else
cristy8b350f62009-11-15 23:12:43 +000028640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028641$as_echo "no" >&6; }
28642 fi
28643fi
cristy73bd4a52010-10-05 11:24:23 +000028644 if test "$have_jp2" = 'yes'; then
28645 JP2_DELEGATE_TRUE=
28646 JP2_DELEGATE_FALSE='#'
28647else
28648 JP2_DELEGATE_TRUE='#'
28649 JP2_DELEGATE_FALSE=
28650fi
28651
cristy3ed852e2009-09-05 21:47:34 +000028652
28653
28654
28655#
28656# Check for LCMS delegate library.
28657#
cristy71203402010-06-18 13:12:03 +000028658# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000028659
28660# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000028661if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028662 withval=$with_lcms; with_lcms=$withval
28663else
28664 with_lcms='yes'
28665fi
28666
cristy71203402010-06-18 13:12:03 +000028667if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000028668 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28669fi
28670
cristy71203402010-06-18 13:12:03 +000028671# Disable LCMS2.
28672
28673# Check whether --with-lcms2 was given.
28674if test "${with_lcms2+set}" = set; then :
28675 withval=$with_lcms2; with_lcms2=$withval
28676else
28677 with_lcms2='yes'
28678fi
28679
28680if test "$with_lcms2" != 'yes' ; then
28681 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
28682fi
28683
28684have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000028685LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000028686if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028688$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
28690$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028692$as_echo "" >&6; }
28693 failed=0
28694 passed=0
28695 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028696
28697 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000028698 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028699if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028700 have_lcms_header='yes'
28701fi
28702
28703
28704 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000028705
28706$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28707
cristy71203402010-06-18 13:12:03 +000028708 passed=`expr $passed + 1`
28709 fi
28710
28711 # Check for <lcms2/lcms2.h)
28712 if test "$have_lcms_header" != 'yes'; then
28713 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 +000028714if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028715 have_lcms_header='yes'
28716fi
28717
28718
cristy71203402010-06-18 13:12:03 +000028719 if test "$have_lcms_header" = 'yes'; then
28720 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000028721
cristy71203402010-06-18 13:12:03 +000028722$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000028723
cristy71203402010-06-18 13:12:03 +000028724 fi
cristyd09bcf92010-03-25 03:04:45 +000028725 fi
cristy71203402010-06-18 13:12:03 +000028726
28727 # Failed to find lcms header?
28728 if test "$have_lcms_header" != 'yes'; then
28729 failed=`expr $failed + 1`
28730 fi
28731
28732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
28733$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028734if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000028735 $as_echo_n "(cached) " >&6
28736else
28737 ac_check_lib_save_LIBS=$LIBS
28738LIBS="-llcms2 $LIBS"
28739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28740/* end confdefs.h. */
28741
28742/* Override any GCC internal prototype to avoid an error.
28743 Use char because int might match the return type of a GCC
28744 builtin and then its argument prototype would still apply. */
28745#ifdef __cplusplus
28746extern "C"
28747#endif
cristy71203402010-06-18 13:12:03 +000028748char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028749int
28750main ()
28751{
cristy71203402010-06-18 13:12:03 +000028752return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028753 ;
28754 return 0;
28755}
28756_ACEOF
28757if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028758 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000028759else
cristy71203402010-06-18 13:12:03 +000028760 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000028761fi
28762rm -f core conftest.err conftest.$ac_objext \
28763 conftest$ac_exeext conftest.$ac_ext
28764LIBS=$ac_check_lib_save_LIBS
28765fi
cristy71203402010-06-18 13:12:03 +000028766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
28767$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000028768if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028769 passed=`expr $passed + 1`
28770else
28771 failed=`expr $failed + 1`
28772fi
28773
cristy71203402010-06-18 13:12:03 +000028774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
28775$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028776 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028777 if test $failed -gt 0; then
28778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000028779$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028780 have_lcms2='no (failed tests)'
28781 else
28782 LCMS_LIBS='-llcms2'
28783 LIBS="$LCMS_LIBS $LIBS"
28784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000028785$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028786 have_lcms2='yes'
28787 fi
cristyd09bcf92010-03-25 03:04:45 +000028788 else
cristy71203402010-06-18 13:12:03 +000028789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000028790$as_echo "no" >&6; }
28791 fi
28792fi
28793
cristy71203402010-06-18 13:12:03 +000028794#
28795# Check for LCMS v1 (1.11 or later)
28796#
28797if test $have_lcms2 = 'yes'; then
28798 with_lcms='no'
28799fi
28800
28801have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000028802if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000028803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28804$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28806$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28808$as_echo "" >&6; }
28809 failed=0
28810 passed=0
28811 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028812
28813 # Check for <lcms.h>
28814 if test "$have_lcms_header" != 'yes'; then
28815 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028816if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028817 have_lcms_header='yes'
28818fi
28819
28820
cristy71203402010-06-18 13:12:03 +000028821 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028822 passed=`expr $passed + 1`
28823
cristy8b350f62009-11-15 23:12:43 +000028824$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028825
cristy71203402010-06-18 13:12:03 +000028826 fi
28827 fi
28828
28829 # Check for <lcms/lcms.h>
28830 if test "$have_lcms_header" != 'yes'; then
28831 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 +000028832if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028833 have_lcms_header='yes'
28834fi
28835
28836
cristy71203402010-06-18 13:12:03 +000028837 if test "$have_lcms_header" = 'yes'; then
28838 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028839
cristy8b350f62009-11-15 23:12:43 +000028840$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028841
cristy71203402010-06-18 13:12:03 +000028842 fi
cristy3ed852e2009-09-05 21:47:34 +000028843 fi
cristy71203402010-06-18 13:12:03 +000028844
28845 # Failed to find lcms header?
28846 if test "$have_lcms_header" != 'yes'; then
28847 failed=`expr $failed + 1`
28848 fi
28849
28850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28851$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028852if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028853 $as_echo_n "(cached) " >&6
28854else
28855 ac_check_lib_save_LIBS=$LIBS
28856LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028858/* end confdefs.h. */
28859
28860/* Override any GCC internal prototype to avoid an error.
28861 Use char because int might match the return type of a GCC
28862 builtin and then its argument prototype would still apply. */
28863#ifdef __cplusplus
28864extern "C"
28865#endif
cristy71203402010-06-18 13:12:03 +000028866char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028867int
28868main ()
28869{
cristy71203402010-06-18 13:12:03 +000028870return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028871 ;
28872 return 0;
28873}
28874_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028875if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028876 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028877else
cristy71203402010-06-18 13:12:03 +000028878 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028879fi
cristy8b350f62009-11-15 23:12:43 +000028880rm -f core conftest.err conftest.$ac_objext \
28881 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028882LIBS=$ac_check_lib_save_LIBS
28883fi
cristy71203402010-06-18 13:12:03 +000028884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28885$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000028886if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028887 passed=`expr $passed + 1`
28888else
28889 failed=`expr $failed + 1`
28890fi
28891
cristy8b350f62009-11-15 23:12:43 +000028892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028893$as_echo_n "checking if LCMS package is complete... " >&6; }
28894 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028895 if test $failed -gt 0; then
28896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028897$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028898 have_lcms='no (failed tests)'
28899 else
28900 LCMS_LIBS='-llcms'
28901 LIBS="$LCMS_LIBS $LIBS"
28902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028903$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028904 have_lcms='yes'
28905 fi
cristy3ed852e2009-09-05 21:47:34 +000028906 else
cristy71203402010-06-18 13:12:03 +000028907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028908$as_echo "no" >&6; }
28909 fi
28910fi
cristy71203402010-06-18 13:12:03 +000028911
cristy73bd4a52010-10-05 11:24:23 +000028912 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28913 LCMS_DELEGATE_TRUE=
28914 LCMS_DELEGATE_FALSE='#'
28915else
28916 LCMS_DELEGATE_TRUE='#'
28917 LCMS_DELEGATE_FALSE=
28918fi
28919
cristy71203402010-06-18 13:12:03 +000028920if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28921
28922$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28923
28924fi
28925
cristy3ed852e2009-09-05 21:47:34 +000028926
28927
28928
28929#
28930# Check for the LQR (Liquid Rescale) delegate library.
28931#
28932
28933# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028934if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028935 withval=$with_lqr; with_lqr=$withval
28936else
28937 with_lqr='yes'
28938fi
28939
28940
28941if test "$with_lqr" != 'yes'; then
28942 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28943fi
28944
28945have_lqr='no'
28946LQR_CFLAGS=""
28947LQR_LIBS=""
28948LQR_PKG=""
28949if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028951$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028952
28953pkg_failed=no
28954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28955$as_echo_n "checking for LQR... " >&6; }
28956
28957if test -n "$LQR_CFLAGS"; then
28958 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28959 elif test -n "$PKG_CONFIG"; then
28960 if test -n "$PKG_CONFIG" && \
28961 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28962 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28963 ac_status=$?
28964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28965 test $ac_status = 0; }; then
28966 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28967else
28968 pkg_failed=yes
28969fi
28970 else
28971 pkg_failed=untried
28972fi
28973if test -n "$LQR_LIBS"; then
28974 pkg_cv_LQR_LIBS="$LQR_LIBS"
28975 elif test -n "$PKG_CONFIG"; then
28976 if test -n "$PKG_CONFIG" && \
28977 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28978 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28979 ac_status=$?
28980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28981 test $ac_status = 0; }; then
28982 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28983else
28984 pkg_failed=yes
28985fi
28986 else
28987 pkg_failed=untried
28988fi
28989
28990
28991
28992if test $pkg_failed = yes; then
28993
28994if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28995 _pkg_short_errors_supported=yes
28996else
28997 _pkg_short_errors_supported=no
28998fi
28999 if test $_pkg_short_errors_supported = yes; then
29000 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29001 else
29002 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29003 fi
29004 # Put the nasty error message in config.log where it belongs
29005 echo "$LQR_PKG_ERRORS" >&5
29006
29007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29008$as_echo "no" >&6; }
29009 have_lqr=no
29010elif test $pkg_failed = untried; then
29011 have_lqr=no
29012else
29013 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29014 LQR_LIBS=$pkg_cv_LQR_LIBS
29015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29016$as_echo "yes" >&6; }
29017 have_lqr=yes
29018fi
cristy8b350f62009-11-15 23:12:43 +000029019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029020$as_echo "" >&6; }
29021fi
29022
29023if test "$have_lqr" = 'yes'; then
29024
cristy8b350f62009-11-15 23:12:43 +000029025$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029026
29027 CFLAGS="$LQR_CFLAGS $CFLAGS"
29028fi
29029
cristy73bd4a52010-10-05 11:24:23 +000029030 if test "$have_lqr" = 'yes'; then
29031 LQR_DELEGATE_TRUE=
29032 LQR_DELEGATE_FALSE='#'
29033else
29034 LQR_DELEGATE_TRUE='#'
29035 LQR_DELEGATE_FALSE=
29036fi
29037
cristy3ed852e2009-09-05 21:47:34 +000029038
29039
29040
29041
cristyfbb0ef02010-12-19 02:32:11 +000029042# Disable LZMA (lzma library)
29043
29044# Check whether --with-lzma was given.
29045if test "${with_lzma+set}" = set; then :
29046 withval=$with_lzma; with_lzma=$withval
29047else
29048 with_lzma='yes'
29049fi
29050
29051if test "$with_lzma" != 'yes' ; then
29052 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29053fi
29054
29055#
29056# Check for LZMA
29057#
29058have_lzma='no'
29059LZMA_LIBS=''
29060if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
29061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29062$as_echo "-------------------------------------------------------------" >&6; }
29063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
29064$as_echo_n "checking for LZMA... " >&6; }
29065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29066$as_echo "" >&6; }
29067 failed=0
29068 passed=0
29069 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029070if test "x$ac_cv_header_lzma_h" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029071 passed=`expr $passed + 1`
29072else
29073 failed=`expr $failed + 1`
29074fi
29075
29076
29077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
29078$as_echo_n "checking for lzma_code in -llzma... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029079if ${ac_cv_lib_lzma_lzma_code+:} false; then :
cristyfbb0ef02010-12-19 02:32:11 +000029080 $as_echo_n "(cached) " >&6
29081else
29082 ac_check_lib_save_LIBS=$LIBS
29083LIBS="-llzma $LIBS"
29084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29085/* end confdefs.h. */
29086
29087/* Override any GCC internal prototype to avoid an error.
29088 Use char because int might match the return type of a GCC
29089 builtin and then its argument prototype would still apply. */
29090#ifdef __cplusplus
29091extern "C"
29092#endif
29093char lzma_code ();
29094int
29095main ()
29096{
29097return lzma_code ();
29098 ;
29099 return 0;
29100}
29101_ACEOF
29102if ac_fn_c_try_link "$LINENO"; then :
29103 ac_cv_lib_lzma_lzma_code=yes
29104else
29105 ac_cv_lib_lzma_lzma_code=no
29106fi
29107rm -f core conftest.err conftest.$ac_objext \
29108 conftest$ac_exeext conftest.$ac_ext
29109LIBS=$ac_check_lib_save_LIBS
29110fi
29111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
29112$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
cristyda16f162011-02-19 23:52:17 +000029113if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029114 passed=`expr $passed + 1`
29115else
29116 failed=`expr $failed + 1`
29117fi
29118
29119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
29120$as_echo_n "checking if LZMA package is complete... " >&6; }
29121 if test $passed -gt 0; then
29122 if test $failed -gt 0; then
29123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29124$as_echo "no -- some components failed test" >&6; }
29125 have_lzma='no (failed tests)'
29126 else
29127 LZMA_LIBS='-llzma'
29128 LIBS="$LZMA_LIBS $LIBS"
29129
29130$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29131
29132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29133$as_echo "yes" >&6; }
29134 have_lzma='yes'
29135 fi
29136 else
29137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29138$as_echo "no" >&6; }
29139 fi
29140fi
29141 if test "$have_lzma" = 'yes'; then
29142 LZMA_DELEGATE_TRUE=
29143 LZMA_DELEGATE_FALSE='#'
29144else
29145 LZMA_DELEGATE_TRUE='#'
29146 LZMA_DELEGATE_FALSE=
29147fi
29148
29149
29150
29151
cristy3ed852e2009-09-05 21:47:34 +000029152#
29153# Check for the OpenEXR delegate library.
29154#
29155
29156# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000029157if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029158 withval=$with_openexr; with_openexr=$withval
29159else
29160 with_openexr='yes'
29161fi
29162
29163
29164if test "$with_openexr" != 'yes'; then
29165 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
29166fi
29167
29168have_openexr='no'
29169OPENEXR_CFLAGS=""
29170OPENEXR_LIBS=""
29171OPENEXR_PKG=""
29172if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029174$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029175
29176pkg_failed=no
29177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
29178$as_echo_n "checking for OPENEXR... " >&6; }
29179
29180if test -n "$OPENEXR_CFLAGS"; then
29181 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
29182 elif test -n "$PKG_CONFIG"; then
29183 if test -n "$PKG_CONFIG" && \
29184 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29185 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29186 ac_status=$?
29187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29188 test $ac_status = 0; }; then
29189 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
29190else
29191 pkg_failed=yes
29192fi
29193 else
29194 pkg_failed=untried
29195fi
29196if test -n "$OPENEXR_LIBS"; then
29197 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
29198 elif test -n "$PKG_CONFIG"; then
29199 if test -n "$PKG_CONFIG" && \
29200 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29201 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29202 ac_status=$?
29203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29204 test $ac_status = 0; }; then
29205 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
29206else
29207 pkg_failed=yes
29208fi
29209 else
29210 pkg_failed=untried
29211fi
29212
29213
29214
29215if test $pkg_failed = yes; then
29216
29217if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29218 _pkg_short_errors_supported=yes
29219else
29220 _pkg_short_errors_supported=no
29221fi
29222 if test $_pkg_short_errors_supported = yes; then
29223 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
29224 else
29225 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
29226 fi
29227 # Put the nasty error message in config.log where it belongs
29228 echo "$OPENEXR_PKG_ERRORS" >&5
29229
29230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29231$as_echo "no" >&6; }
29232 have_openexr=no
29233elif test $pkg_failed = untried; then
29234 have_openexr=no
29235else
29236 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
29237 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
29238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29239$as_echo "yes" >&6; }
29240 have_openexr=yes
29241fi
cristy8b350f62009-11-15 23:12:43 +000029242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029243$as_echo "" >&6; }
29244fi
29245
29246if test "$have_openexr" = 'yes'; then
29247
cristy8b350f62009-11-15 23:12:43 +000029248$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029249
29250 if test "$with_modules" = 'no'; then
29251 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
29252 fi
29253fi
29254
cristy73bd4a52010-10-05 11:24:23 +000029255 if test "$have_openexr" = 'yes'; then
29256 OPENEXR_DELEGATE_TRUE=
29257 OPENEXR_DELEGATE_FALSE='#'
29258else
29259 OPENEXR_DELEGATE_TRUE='#'
29260 OPENEXR_DELEGATE_FALSE=
29261fi
29262
cristy3ed852e2009-09-05 21:47:34 +000029263
29264
29265
29266
29267#
29268# Check for PNG delegate library.
29269#
29270
29271# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000029272if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029273 withval=$with_png; with_png=$withval
29274else
29275 with_png='yes'
29276fi
29277
29278
29279if test "$with_png" != 'yes'; then
29280 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
29281fi
29282
29283have_png='no'
29284PNG_LIBS=''
29285if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029287$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029289$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029291$as_echo "" >&6; }
29292 failed=0
29293 passed=0
cristy8b350f62009-11-15 23:12:43 +000029294 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029295if test "x$ac_cv_header_png_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029296 passed=`expr $passed + 1`
29297else
29298 failed=`expr $failed + 1`
29299fi
29300
29301
cristy8b350f62009-11-15 23:12:43 +000029302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000029303$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029304if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029305 $as_echo_n "(cached) " >&6
29306else
29307 ac_check_lib_save_LIBS=$LIBS
29308LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029310/* end confdefs.h. */
29311
29312/* Override any GCC internal prototype to avoid an error.
29313 Use char because int might match the return type of a GCC
29314 builtin and then its argument prototype would still apply. */
29315#ifdef __cplusplus
29316extern "C"
29317#endif
29318char png_get_io_ptr ();
29319int
29320main ()
29321{
29322return png_get_io_ptr ();
29323 ;
29324 return 0;
29325}
29326_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029327if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029328 ac_cv_lib_png_png_get_io_ptr=yes
29329else
cristy8b350f62009-11-15 23:12:43 +000029330 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000029331fi
cristy8b350f62009-11-15 23:12:43 +000029332rm -f core conftest.err conftest.$ac_objext \
29333 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029334LIBS=$ac_check_lib_save_LIBS
29335fi
cristy8b350f62009-11-15 23:12:43 +000029336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000029337$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristyda16f162011-02-19 23:52:17 +000029338if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029339 passed=`expr $passed + 1`
29340else
29341 failed=`expr $failed + 1`
29342fi
29343
cristy8b350f62009-11-15 23:12:43 +000029344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029345$as_echo_n "checking if PNG package is complete... " >&6; }
29346 if test $passed -gt 0; then
29347 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029349$as_echo "no -- some components failed test" >&6; }
29350 have_png='no (failed tests)'
29351 else
29352 PNG_LIBS='-lpng'
29353 LIBS="$PNG_LIBS $LIBS"
29354
cristy8b350f62009-11-15 23:12:43 +000029355$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029356
cristy8b350f62009-11-15 23:12:43 +000029357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029358$as_echo "yes" >&6; }
29359 have_png='yes'
29360 fi
29361 else
cristy8b350f62009-11-15 23:12:43 +000029362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029363$as_echo "no" >&6; }
29364 fi
29365fi
cristy73bd4a52010-10-05 11:24:23 +000029366 if test "$have_png" = 'yes'; then
29367 PNG_DELEGATE_TRUE=
29368 PNG_DELEGATE_FALSE='#'
29369else
29370 PNG_DELEGATE_TRUE='#'
29371 PNG_DELEGATE_FALSE=
29372fi
29373
cristy3ed852e2009-09-05 21:47:34 +000029374
29375
29376
29377#
29378# Check for RSVG delegate library.
29379#
29380
29381# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000029382if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029383 withval=$with_rsvg; with_rsvg=$withval
29384else
29385 with_rsvg=$have_x
29386fi
29387
29388
29389if test "$with_rsvg" != 'yes'; then
29390 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
29391fi
29392
29393have_rsvg='no'
29394have_cairo='no'
29395RSVG_CFLAGS=""
29396RSVG_LIBS=""
29397RSVG_PKG=""
29398if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029400$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029401
29402pkg_failed=no
29403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
29404$as_echo_n "checking for RSVG... " >&6; }
29405
29406if test -n "$RSVG_CFLAGS"; then
29407 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
29408 elif test -n "$PKG_CONFIG"; then
29409 if test -n "$PKG_CONFIG" && \
29410 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
29411 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
29412 ac_status=$?
29413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29414 test $ac_status = 0; }; then
29415 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
29416else
29417 pkg_failed=yes
29418fi
29419 else
29420 pkg_failed=untried
29421fi
29422if test -n "$RSVG_LIBS"; then
29423 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
29424 elif test -n "$PKG_CONFIG"; then
29425 if test -n "$PKG_CONFIG" && \
29426 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
29427 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
29428 ac_status=$?
29429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29430 test $ac_status = 0; }; then
29431 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
29432else
29433 pkg_failed=yes
29434fi
29435 else
29436 pkg_failed=untried
29437fi
29438
29439
29440
29441if test $pkg_failed = yes; then
29442
29443if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29444 _pkg_short_errors_supported=yes
29445else
29446 _pkg_short_errors_supported=no
29447fi
29448 if test $_pkg_short_errors_supported = yes; then
29449 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
29450 else
29451 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
29452 fi
29453 # Put the nasty error message in config.log where it belongs
29454 echo "$RSVG_PKG_ERRORS" >&5
29455
29456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29457$as_echo "no" >&6; }
29458 have_rsvg=no
29459elif test $pkg_failed = untried; then
29460 have_rsvg=no
29461else
29462 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
29463 RSVG_LIBS=$pkg_cv_RSVG_LIBS
29464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29465$as_echo "yes" >&6; }
29466 have_rsvg=yes
29467fi
cristy8b350f62009-11-15 23:12:43 +000029468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029469$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029470
29471pkg_failed=no
29472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
29473$as_echo_n "checking for CAIRO_SVG... " >&6; }
29474
29475if test -n "$CAIRO_SVG_CFLAGS"; then
29476 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
29477 elif test -n "$PKG_CONFIG"; then
29478 if test -n "$PKG_CONFIG" && \
29479 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
29480 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
29481 ac_status=$?
29482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29483 test $ac_status = 0; }; then
29484 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
29485else
29486 pkg_failed=yes
29487fi
29488 else
29489 pkg_failed=untried
29490fi
29491if test -n "$CAIRO_SVG_LIBS"; then
29492 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
29493 elif test -n "$PKG_CONFIG"; then
29494 if test -n "$PKG_CONFIG" && \
29495 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
29496 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
29497 ac_status=$?
29498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29499 test $ac_status = 0; }; then
29500 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
29501else
29502 pkg_failed=yes
29503fi
29504 else
29505 pkg_failed=untried
29506fi
29507
29508
29509
29510if test $pkg_failed = yes; then
29511
29512if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29513 _pkg_short_errors_supported=yes
29514else
29515 _pkg_short_errors_supported=no
29516fi
29517 if test $_pkg_short_errors_supported = yes; then
29518 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
29519 else
29520 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
29521 fi
29522 # Put the nasty error message in config.log where it belongs
29523 echo "$CAIRO_SVG_PKG_ERRORS" >&5
29524
29525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29526$as_echo "no" >&6; }
29527 have_cairo=no
29528elif test $pkg_failed = untried; then
29529 have_cairo=no
29530else
29531 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
29532 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
29533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29534$as_echo "yes" >&6; }
29535 have_cairo=yes
29536fi
cristy8b350f62009-11-15 23:12:43 +000029537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029538$as_echo "" >&6; }
29539fi
29540
29541if test "$have_rsvg" = 'yes'; then
29542
cristy8b350f62009-11-15 23:12:43 +000029543$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029544
29545 if test "$with_modules" = 'no'; then
29546 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
29547 fi
29548fi
29549
29550if test "$have_cairo" = 'yes'; then
29551
cristy8b350f62009-11-15 23:12:43 +000029552$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029553
29554 if test "$with_modules" = 'no'; then
29555 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
29556 fi
29557fi
29558
cristy73bd4a52010-10-05 11:24:23 +000029559 if test "$have_rsvg" = 'yes'; then
29560 RSVG_DELEGATE_TRUE=
29561 RSVG_DELEGATE_FALSE='#'
29562else
29563 RSVG_DELEGATE_TRUE='#'
29564 RSVG_DELEGATE_FALSE=
29565fi
29566
29567 if test "$have_cairo" = 'yes'; then
29568 CAIRO_DELEGATE_TRUE=
29569 CAIRO_DELEGATE_FALSE='#'
29570else
29571 CAIRO_DELEGATE_TRUE='#'
29572 CAIRO_DELEGATE_FALSE=
29573fi
29574
cristy3ed852e2009-09-05 21:47:34 +000029575
29576
29577
29578
29579#
29580# Check for TIFF delegate library.
29581#
29582
29583# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000029584if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029585 withval=$with_tiff; with_tiff=$withval
29586else
29587 with_tiff='yes'
29588fi
29589
29590
29591if test "$with_tiff" != 'yes'; then
29592 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
29593fi
29594
29595have_tiff='no'
29596TIFF_LIBS=''
29597if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029599$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029601$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029603$as_echo "" >&6; }
29604 failed=0
29605 passed=0
cristy8b350f62009-11-15 23:12:43 +000029606 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029607if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029608 passed=`expr $passed + 1`
29609else
29610 failed=`expr $failed + 1`
29611fi
29612
29613
cristy8b350f62009-11-15 23:12:43 +000029614 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029615if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029616 passed=`expr $passed + 1`
29617else
29618 failed=`expr $failed + 1`
29619fi
29620
29621
cristy8b350f62009-11-15 23:12:43 +000029622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029623$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029624if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029625 $as_echo_n "(cached) " >&6
29626else
29627 ac_check_lib_save_LIBS=$LIBS
29628LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029630/* end confdefs.h. */
29631
29632/* Override any GCC internal prototype to avoid an error.
29633 Use char because int might match the return type of a GCC
29634 builtin and then its argument prototype would still apply. */
29635#ifdef __cplusplus
29636extern "C"
29637#endif
29638char TIFFOpen ();
29639int
29640main ()
29641{
29642return TIFFOpen ();
29643 ;
29644 return 0;
29645}
29646_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029647if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029648 ac_cv_lib_tiff_TIFFOpen=yes
29649else
cristy8b350f62009-11-15 23:12:43 +000029650 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000029651fi
cristy8b350f62009-11-15 23:12:43 +000029652rm -f core conftest.err conftest.$ac_objext \
29653 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029654LIBS=$ac_check_lib_save_LIBS
29655fi
cristy8b350f62009-11-15 23:12:43 +000029656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029657$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029658if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029659 passed=`expr $passed + 1`
29660else
29661 failed=`expr $failed + 1`
29662fi
29663
cristy8b350f62009-11-15 23:12:43 +000029664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029665$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029666if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029667 $as_echo_n "(cached) " >&6
29668else
29669 ac_check_lib_save_LIBS=$LIBS
29670LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029672/* end confdefs.h. */
29673
29674/* Override any GCC internal prototype to avoid an error.
29675 Use char because int might match the return type of a GCC
29676 builtin and then its argument prototype would still apply. */
29677#ifdef __cplusplus
29678extern "C"
29679#endif
29680char TIFFClientOpen ();
29681int
29682main ()
29683{
29684return TIFFClientOpen ();
29685 ;
29686 return 0;
29687}
29688_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029689if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029690 ac_cv_lib_tiff_TIFFClientOpen=yes
29691else
cristy8b350f62009-11-15 23:12:43 +000029692 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000029693fi
cristy8b350f62009-11-15 23:12:43 +000029694rm -f core conftest.err conftest.$ac_objext \
29695 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029696LIBS=$ac_check_lib_save_LIBS
29697fi
cristy8b350f62009-11-15 23:12:43 +000029698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029699$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029700if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029701 passed=`expr $passed + 1`
29702else
29703 failed=`expr $failed + 1`
29704fi
29705
cristyb97f1002010-07-26 14:02:57 +000029706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
29707$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029708if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
cristyb97f1002010-07-26 14:02:57 +000029709 $as_echo_n "(cached) " >&6
29710else
29711 ac_check_lib_save_LIBS=$LIBS
29712LIBS="-ltiff $LIBS"
29713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29714/* end confdefs.h. */
29715
29716/* Override any GCC internal prototype to avoid an error.
29717 Use char because int might match the return type of a GCC
29718 builtin and then its argument prototype would still apply. */
29719#ifdef __cplusplus
29720extern "C"
29721#endif
29722char TIFFIsBigEndian ();
29723int
29724main ()
29725{
29726return TIFFIsBigEndian ();
29727 ;
29728 return 0;
29729}
29730_ACEOF
29731if ac_fn_c_try_link "$LINENO"; then :
29732 ac_cv_lib_tiff_TIFFIsBigEndian=yes
29733else
29734 ac_cv_lib_tiff_TIFFIsBigEndian=no
29735fi
29736rm -f core conftest.err conftest.$ac_objext \
29737 conftest$ac_exeext conftest.$ac_ext
29738LIBS=$ac_check_lib_save_LIBS
29739fi
29740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
29741$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
cristyda16f162011-02-19 23:52:17 +000029742if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
cristyb97f1002010-07-26 14:02:57 +000029743 passed=`expr $passed + 1`
29744else
29745 failed=`expr $failed + 1`
29746fi
29747
cristy8b350f62009-11-15 23:12:43 +000029748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029749$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029750if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029751 $as_echo_n "(cached) " >&6
29752else
29753 ac_check_lib_save_LIBS=$LIBS
29754LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029756/* end confdefs.h. */
29757
29758/* Override any GCC internal prototype to avoid an error.
29759 Use char because int might match the return type of a GCC
29760 builtin and then its argument prototype would still apply. */
29761#ifdef __cplusplus
29762extern "C"
29763#endif
29764char TIFFIsByteSwapped ();
29765int
29766main ()
29767{
29768return TIFFIsByteSwapped ();
29769 ;
29770 return 0;
29771}
29772_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029773if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029774 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
29775else
cristy8b350f62009-11-15 23:12:43 +000029776 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000029777fi
cristy8b350f62009-11-15 23:12:43 +000029778rm -f core conftest.err conftest.$ac_objext \
29779 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029780LIBS=$ac_check_lib_save_LIBS
29781fi
cristy8b350f62009-11-15 23:12:43 +000029782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000029783$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000029784if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029785 passed=`expr $passed + 1`
29786else
29787 failed=`expr $failed + 1`
29788fi
29789
cristy8b350f62009-11-15 23:12:43 +000029790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029791$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029792if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029793 $as_echo_n "(cached) " >&6
29794else
29795 ac_check_lib_save_LIBS=$LIBS
29796LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029798/* end confdefs.h. */
29799
29800/* Override any GCC internal prototype to avoid an error.
29801 Use char because int might match the return type of a GCC
29802 builtin and then its argument prototype would still apply. */
29803#ifdef __cplusplus
29804extern "C"
29805#endif
29806char TIFFReadRGBATile ();
29807int
29808main ()
29809{
29810return TIFFReadRGBATile ();
29811 ;
29812 return 0;
29813}
29814_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029815if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029816 ac_cv_lib_tiff_TIFFReadRGBATile=yes
29817else
cristy8b350f62009-11-15 23:12:43 +000029818 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000029819fi
cristy8b350f62009-11-15 23:12:43 +000029820rm -f core conftest.err conftest.$ac_objext \
29821 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029822LIBS=$ac_check_lib_save_LIBS
29823fi
cristy8b350f62009-11-15 23:12:43 +000029824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000029825$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000029826if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029827 passed=`expr $passed + 1`
29828else
29829 failed=`expr $failed + 1`
29830fi
29831
cristy8b350f62009-11-15 23:12:43 +000029832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029833$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029834if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029835 $as_echo_n "(cached) " >&6
29836else
29837 ac_check_lib_save_LIBS=$LIBS
29838LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029840/* end confdefs.h. */
29841
29842/* Override any GCC internal prototype to avoid an error.
29843 Use char because int might match the return type of a GCC
29844 builtin and then its argument prototype would still apply. */
29845#ifdef __cplusplus
29846extern "C"
29847#endif
29848char TIFFReadRGBAStrip ();
29849int
29850main ()
29851{
29852return TIFFReadRGBAStrip ();
29853 ;
29854 return 0;
29855}
29856_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029857if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029858 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29859else
cristy8b350f62009-11-15 23:12:43 +000029860 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000029861fi
cristy8b350f62009-11-15 23:12:43 +000029862rm -f core conftest.err conftest.$ac_objext \
29863 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029864LIBS=$ac_check_lib_save_LIBS
29865fi
cristy8b350f62009-11-15 23:12:43 +000029866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000029867$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000029868if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029869 passed=`expr $passed + 1`
29870else
29871 failed=`expr $failed + 1`
29872fi
29873
cristy8b350f62009-11-15 23:12:43 +000029874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029875$as_echo_n "checking if TIFF package is complete... " >&6; }
29876 if test $passed -gt 0; then
29877 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029879$as_echo "no -- some components failed test" >&6; }
29880 have_tiff='no (failed tests)'
29881 else
29882 TIFF_LIBS='-ltiff'
29883 LIBS="$TIFF_LIBS $LIBS"
29884
cristy8b350f62009-11-15 23:12:43 +000029885$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029886
cristy8b350f62009-11-15 23:12:43 +000029887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029888$as_echo "yes" >&6; }
29889 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000029890 for ac_header in tiffconf.h
29891do :
29892 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029893if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029894 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029895#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000029896_ACEOF
29897
29898fi
29899
29900done
29901
cristy8b350f62009-11-15 23:12:43 +000029902 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000029903 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29904 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000029905do :
29906 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29907ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000029908if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000029909 cat >>confdefs.h <<_ACEOF
29910#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29911_ACEOF
29912
29913fi
29914done
29915
29916 fi
29917 else
cristy8b350f62009-11-15 23:12:43 +000029918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029919$as_echo "no" >&6; }
29920 fi
29921fi
cristy73bd4a52010-10-05 11:24:23 +000029922 if test "$have_tiff" = 'yes'; then
29923 TIFF_DELEGATE_TRUE=
29924 TIFF_DELEGATE_FALSE='#'
29925else
29926 TIFF_DELEGATE_TRUE='#'
29927 TIFF_DELEGATE_FALSE=
29928fi
29929
cristy3ed852e2009-09-05 21:47:34 +000029930
29931
29932
29933#
cristyb1860752011-03-14 00:27:46 +000029934# Check for WEBP delegate library.
29935#
29936
29937# Check whether --with-webp was given.
29938if test "${with_webp+set}" = set; then :
29939 withval=$with_webp; with_webp=$withval
29940else
29941 with_webp='yes'
29942fi
29943
29944
29945if test "$with_webp" != 'yes'; then
29946 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
29947fi
29948
29949have_webp='no'
29950WEBP_LIBS=''
29951if test "$with_webp" != 'no'; then
29952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29953$as_echo "-------------------------------------------------------------" >&6; }
29954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
29955$as_echo_n "checking for WEBP... " >&6; }
29956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29957$as_echo "" >&6; }
29958 failed=0
29959 passed=0
29960 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
29961if test "x$ac_cv_header_webp_decode_h" = xyes; then :
29962 passed=`expr $passed + 1`
29963else
29964 failed=`expr $failed + 1`
29965fi
29966
29967
29968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
29969$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
29970if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
29971 $as_echo_n "(cached) " >&6
29972else
29973 ac_check_lib_save_LIBS=$LIBS
29974LIBS="-lwebp $LIBS"
29975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29976/* end confdefs.h. */
29977
29978/* Override any GCC internal prototype to avoid an error.
29979 Use char because int might match the return type of a GCC
29980 builtin and then its argument prototype would still apply. */
29981#ifdef __cplusplus
29982extern "C"
29983#endif
29984char WebPDecodeRGB ();
29985int
29986main ()
29987{
29988return WebPDecodeRGB ();
29989 ;
29990 return 0;
29991}
29992_ACEOF
29993if ac_fn_c_try_link "$LINENO"; then :
29994 ac_cv_lib_webp_WebPDecodeRGB=yes
29995else
29996 ac_cv_lib_webp_WebPDecodeRGB=no
29997fi
29998rm -f core conftest.err conftest.$ac_objext \
29999 conftest$ac_exeext conftest.$ac_ext
30000LIBS=$ac_check_lib_save_LIBS
30001fi
30002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
30003$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
30004if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
30005 passed=`expr $passed + 1`
30006else
30007 failed=`expr $failed + 1`
30008fi
30009
30010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
30011$as_echo_n "checking if WEBP package is complete... " >&6; }
30012 if test $passed -gt 0; then
30013 if test $failed -gt 0; then
30014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30015$as_echo "no -- some components failed test" >&6; }
30016 have_webp='no (failed tests)'
30017 else
30018 WEBP_LIBS='-lwebp'
30019 LIBS="$WEBP_LIBS $LIBS"
30020
30021$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
30022
30023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30024$as_echo "yes" >&6; }
30025 have_webp='yes'
30026 fi
30027 else
30028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30029$as_echo "no" >&6; }
30030 fi
30031fi
30032 if test "$have_webp" = 'yes'; then
30033 WEBP_DELEGATE_TRUE=
30034 WEBP_DELEGATE_FALSE='#'
30035else
30036 WEBP_DELEGATE_TRUE='#'
30037 WEBP_DELEGATE_FALSE=
30038fi
30039
30040
30041
30042
30043#
cristy3ed852e2009-09-05 21:47:34 +000030044# Set Windows font directory.
30045#
30046
30047# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000030048if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030049 withval=$with_windows_font_dir; with_windows_font_dir=$withval
30050else
30051 with_windows_font_dir=''
30052fi
30053
30054if test "$with_windows_font_dir" != '' ; then
30055 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
30056fi
30057
30058
30059#
30060# Check for WMF delegate library.
30061#
30062
30063# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000030064if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030065 withval=$with_wmf; with_wmf=$withval
30066else
cristy8d63d1d2010-01-06 20:38:37 +000030067 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000030068fi
30069
30070
30071if test "$with_wmf" != 'yes'; then
30072 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
30073fi
30074
30075have_wmf='no'
30076WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000030077if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030079$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000030081$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030083$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000030084 failed=0
30085 passed=0
30086 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030087if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
cristy735e8942010-04-02 20:32:57 +000030088 passed=`expr $passed + 1`
30089else
30090 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030091fi
30092
30093
cristy735e8942010-04-02 20:32:57 +000030094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
30095$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030096if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030097 $as_echo_n "(cached) " >&6
30098else
30099 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000030100LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030102/* end confdefs.h. */
30103
30104/* Override any GCC internal prototype to avoid an error.
30105 Use char because int might match the return type of a GCC
30106 builtin and then its argument prototype would still apply. */
30107#ifdef __cplusplus
30108extern "C"
30109#endif
cristy735e8942010-04-02 20:32:57 +000030110char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000030111int
30112main ()
30113{
cristy735e8942010-04-02 20:32:57 +000030114return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000030115 ;
30116 return 0;
30117}
30118_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030119if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000030120 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000030121else
cristy735e8942010-04-02 20:32:57 +000030122 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000030123fi
cristy8b350f62009-11-15 23:12:43 +000030124rm -f core conftest.err conftest.$ac_objext \
30125 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030126LIBS=$ac_check_lib_save_LIBS
30127fi
cristy735e8942010-04-02 20:32:57 +000030128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
30129$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
cristyda16f162011-02-19 23:52:17 +000030130if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
cristy735e8942010-04-02 20:32:57 +000030131 passed=`expr $passed + 1`
30132else
30133 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030134fi
30135
cristy735e8942010-04-02 20:32:57 +000030136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
30137$as_echo_n "checking if WMF package is complete... " >&6; }
30138 if test $passed -gt 0; then
30139 if test $failed -gt 0; then
30140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30141$as_echo "no -- some components failed test" >&6; }
30142 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000030143 else
cristy735e8942010-04-02 20:32:57 +000030144 WMF_LIBS='-lwmf -lwmflite'
30145 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030146
cristy8b350f62009-11-15 23:12:43 +000030147$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030148
cristy735e8942010-04-02 20:32:57 +000030149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030150$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000030151 have_wmf='yes'
30152 fi
cristy3ed852e2009-09-05 21:47:34 +000030153 else
cristy8b350f62009-11-15 23:12:43 +000030154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030155$as_echo "no" >&6; }
30156 fi
30157fi
cristy73bd4a52010-10-05 11:24:23 +000030158 if test "$have_wmf" = 'yes'; then
30159 WMF_DELEGATE_TRUE=
30160 WMF_DELEGATE_FALSE='#'
30161else
30162 WMF_DELEGATE_TRUE='#'
30163 WMF_DELEGATE_FALSE=
30164fi
30165
cristy3ed852e2009-09-05 21:47:34 +000030166
30167
30168
30169
cristy735e8942010-04-02 20:32:57 +000030170
cristy3ed852e2009-09-05 21:47:34 +000030171#
30172# Check for XML delegate library.
30173#
30174
30175# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000030176if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030177 withval=$with_xml; with_xml=$withval
30178else
30179 with_xml=$have_x
30180fi
30181
30182
30183if test "$with_xml" != 'yes' ; then
30184 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
30185fi
30186
30187have_xml='no'
30188XML_LIBS=''
30189if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030191$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000030193$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030195$as_echo "" >&6; }
30196 PERSIST_LDFLAGS=$LDFLAGS
30197 PERSIST_CPPFLAGS=$CPPFLAGS
30198 xml2_config=''
30199 for ac_prog in xml2-config
30200do
30201 # Extract the first word of "$ac_prog", so it can be a program name with args.
30202set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030204$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030205if ${ac_cv_prog_xml2_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030206 $as_echo_n "(cached) " >&6
30207else
30208 if test -n "$xml2_config"; then
30209 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
30210else
30211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30212for as_dir in $PATH
30213do
30214 IFS=$as_save_IFS
30215 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030216 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30218 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030220 break 2
30221 fi
30222done
cristy8b350f62009-11-15 23:12:43 +000030223 done
cristy3ed852e2009-09-05 21:47:34 +000030224IFS=$as_save_IFS
30225
30226fi
30227fi
30228xml2_config=$ac_cv_prog_xml2_config
30229if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000030230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000030231$as_echo "$xml2_config" >&6; }
30232else
cristy8b350f62009-11-15 23:12:43 +000030233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030234$as_echo "no" >&6; }
30235fi
30236
30237
30238 test -n "$xml2_config" && break
30239done
30240 if test -n "$xml2_config"; then
30241 # Debian installs libxml headers under /usr/include/libxml2/libxml with
30242 # the shared library installed under /usr/lib, whereas the package
30243 # installs itself under $prefix/libxml and $prefix/lib.
30244 xml2_prefix=`xml2-config --prefix`
30245 if test -d "${xml2_prefix}/include/libxml2"; then
30246 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
30247 fi
30248 if test "${xml2_prefix}" != '/usr'; then
30249 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
30250 fi
30251 fi
30252 failed=0
30253 passed=0
cristy8b350f62009-11-15 23:12:43 +000030254 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 +000030255if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030256 passed=`expr $passed + 1`
30257else
30258 failed=`expr $failed + 1`
30259fi
30260
30261
cristy8b350f62009-11-15 23:12:43 +000030262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030263$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030264if ${ac_cv_lib_xml2_xmlParseExternalEntity+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030265 $as_echo_n "(cached) " >&6
30266else
30267 ac_check_lib_save_LIBS=$LIBS
30268LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030270/* end confdefs.h. */
30271
30272/* Override any GCC internal prototype to avoid an error.
30273 Use char because int might match the return type of a GCC
30274 builtin and then its argument prototype would still apply. */
30275#ifdef __cplusplus
30276extern "C"
30277#endif
30278char xmlParseExternalEntity ();
30279int
30280main ()
30281{
30282return xmlParseExternalEntity ();
30283 ;
30284 return 0;
30285}
30286_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030287if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030288 ac_cv_lib_xml2_xmlParseExternalEntity=yes
30289else
cristy8b350f62009-11-15 23:12:43 +000030290 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000030291fi
cristy8b350f62009-11-15 23:12:43 +000030292rm -f core conftest.err conftest.$ac_objext \
30293 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030294LIBS=$ac_check_lib_save_LIBS
30295fi
cristy8b350f62009-11-15 23:12:43 +000030296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000030297$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristyda16f162011-02-19 23:52:17 +000030298if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030299 passed=`expr $passed + 1`
30300else
30301 failed=`expr $failed + 1`
30302fi
30303
cristy8b350f62009-11-15 23:12:43 +000030304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030305$as_echo_n "checking if XML package is complete... " >&6; }
30306 if test $passed -gt 0; then
30307 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000030308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000030309$as_echo "no -- some components failed test" >&6; }
30310 have_xml='no (failed tests)'
30311 LDFLAGS="$PERSIST_LDFLAGS"
30312 CPPFLAGS="$PERSIST_CPPFLAGS"
30313 else
30314 XML_LIBS='-lxml2'
30315 LIBS="$XML_LIBS $LIBS"
30316
cristy8b350f62009-11-15 23:12:43 +000030317$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030318
cristy8b350f62009-11-15 23:12:43 +000030319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030320$as_echo "yes" >&6; }
30321 have_xml='yes'
30322 fi
30323 else
cristy8b350f62009-11-15 23:12:43 +000030324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030325$as_echo "no" >&6; }
30326 fi
30327fi
cristy73bd4a52010-10-05 11:24:23 +000030328 if test "$have_xml" = 'yes'; then
30329 XML_DELEGATE_TRUE=
30330 XML_DELEGATE_FALSE='#'
30331else
30332 XML_DELEGATE_TRUE='#'
30333 XML_DELEGATE_FALSE=
30334fi
30335
cristy3ed852e2009-09-05 21:47:34 +000030336
30337
30338
30339# Substitute compiler name to build/link PerlMagick
30340#
30341
30342
30343#
30344# Configure install Paths
30345#
30346
30347# Subdirectory under lib to place ImageMagick lib files
30348LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
30349
30350cat >>confdefs.h <<_ACEOF
30351#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
30352_ACEOF
30353
30354
30355# Path to ImageMagick bin directory
30356EXECUTABLE_PATH="${BIN_DIR}"
30357DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
30358case "${build_os}" in
30359 mingw* )
30360 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
30361 ;;
30362esac
30363
30364cat >>confdefs.h <<_ACEOF
30365#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
30366_ACEOF
30367
30368
30369
30370# Path to ImageMagick lib
30371LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
30372DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
30373case "${build_os}" in
30374 mingw* )
30375 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
30376 ;;
30377esac
30378
30379cat >>confdefs.h <<_ACEOF
30380#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
30381_ACEOF
30382
30383
30384
cristy3ed852e2009-09-05 21:47:34 +000030385#
30386# Subdirectory under lib to place ImageMagick coder module files
30387CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
30388
30389cat >>confdefs.h <<_ACEOF
30390#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
30391_ACEOF
30392
30393CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
30394DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
30395case "${build_os}" in
30396 mingw* )
30397 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
30398 ;;
30399esac
30400
30401cat >>confdefs.h <<_ACEOF
30402#define CODER_PATH "$DEFINE_CODER_PATH"
30403_ACEOF
30404
30405
30406
30407#
30408# Subdirectory under lib to place ImageMagick filter module files
30409FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
30410
30411cat >>confdefs.h <<_ACEOF
30412#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
30413_ACEOF
30414
30415FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
30416DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
30417case "${build_os}" in
30418 mingw* )
30419 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
30420 ;;
30421esac
30422
30423cat >>confdefs.h <<_ACEOF
30424#define FILTER_PATH "$DEFINE_FILTER_PATH"
30425_ACEOF
30426
30427
30428
30429#
30430# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000030431DOCUMENTATION_RELATIVE_PATH=""
30432DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
30433DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000030434case "${build_os}" in
30435 mingw* )
30436 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
30437 ;;
30438esac
30439
30440cat >>confdefs.h <<_ACEOF
30441#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
30442_ACEOF
30443
30444
30445
cristy3cf8a722011-03-20 23:32:22 +000030446# Subdirectory to place ImageMagick configuration files
cristyba0f1972011-03-28 12:42:52 +000030447CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000030448
30449cat >>confdefs.h <<_ACEOF
30450#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
30451_ACEOF
30452
30453CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
30454DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
30455case "${build_os}" in
30456 mingw* )
30457 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
30458 ;;
30459esac
30460
30461cat >>confdefs.h <<_ACEOF
30462#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
30463_ACEOF
30464
30465
30466
30467# Subdirectory to place ImageMagick configuration files
cristy4f820712011-04-01 12:35:43 +000030468SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000030469
30470cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000030471#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000030472_ACEOF
30473
cristy4f820712011-04-01 12:35:43 +000030474SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
30475DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000030476case "${build_os}" in
30477 mingw* )
cristy4f820712011-04-01 12:35:43 +000030478 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000030479 ;;
30480esac
30481
30482cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000030483#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000030484_ACEOF
30485
30486
30487
30488#
30489# program_transform_name is formed for use in a Makefile, so create a
30490# modified version for use in a shell script.
30491configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
30492
30493# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000030494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030495$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000030497$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030499$as_echo "" >&6; }
30500AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000030501BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000030502BZIPDelegateDefault='bzip2'
30503BrowseDelegateDefault='xdg-open'
30504CGMDecodeDelegateDefault='ralcgm'
30505CatDelegateDefault='cat'
30506DNGDecodeDelegateDefault='ufraw-batch'
30507GVCDecodeDelegateDefault='dot'
30508DVIDecodeDelegateDefault='dvips'
30509EchoDelegateDefault='echo'
30510EditorDelegateDefault='xterm'
30511FIGDecodeDelegateDefault='fig2dev'
30512ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
30513DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
30514MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
30515GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000030516HPGLDecodeDelegateDefault='hp2xx'
30517HTMLDecodeDelegateDefault='html2ps'
30518ILBMDecodeDelegateDefault='ilbmtoppm'
30519ILBMEncodeDelegateDefault='ppmtoilbm'
30520LPDelegateDefault='lp'
30521LPRDelegateDefault='lpr'
30522LZWDecodeDelegateDefault='uncompress'
30523LZWEncodeDelegateDefault='compress'
30524LaunchDelegateDefault='gimp'
30525MANDelegateDefault='groff'
30526MPEGDecodeDelegateDefault='ffmpeg'
30527MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000030528MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000030529MVDelegateDefault='mv'
30530PCLDelegateDefault='pcl6'
30531PGPDecodeDelegateDefault='pgpv'
30532POVDelegateDefault='povray'
30533if test "$native_win32_build" = 'yes'; then
30534 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000030535elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030536 PSDelegateDefault='gsc'
30537else
30538 PSDelegateDefault='gs'
30539fi
30540RLEEncodeDelegateDefault='rawtorle'
30541RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000030542RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000030543SCANDecodeDelegateDefault='scanimage'
30544TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000030545UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000030546WMFDecodeDelegateDefault='wmf2eps'
30547WWWDecodeDelegateDefault='curl'
30548XPSDelegateDefault='gxps'
30549ZipDelegateDefault='gzip'
30550
30551# Search for delegates
30552# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
30553set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030555$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030556if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030557 $as_echo_n "(cached) " >&6
30558else
30559 case $AutotraceDecodeDelegate in
30560 [\\/]* | ?:[\\/]*)
30561 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
30562 ;;
30563 *)
30564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30565for as_dir in $PATH
30566do
30567 IFS=$as_save_IFS
30568 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030569 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30571 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030573 break 2
30574 fi
30575done
cristy8b350f62009-11-15 23:12:43 +000030576 done
cristy3ed852e2009-09-05 21:47:34 +000030577IFS=$as_save_IFS
30578
30579 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
30580 ;;
30581esac
30582fi
30583AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
30584if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030586$as_echo "$AutotraceDecodeDelegate" >&6; }
30587else
cristy8b350f62009-11-15 23:12:43 +000030588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030589$as_echo "no" >&6; }
30590fi
30591
30592
cristy3ed852e2009-09-05 21:47:34 +000030593# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
30594set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030596$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030597if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030598 $as_echo_n "(cached) " >&6
30599else
30600 case $BlenderDecodeDelegate in
30601 [\\/]* | ?:[\\/]*)
30602 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
30603 ;;
30604 *)
30605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30606for as_dir in $PATH
30607do
30608 IFS=$as_save_IFS
30609 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030610 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30612 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030614 break 2
30615 fi
30616done
cristy8b350f62009-11-15 23:12:43 +000030617 done
cristy3ed852e2009-09-05 21:47:34 +000030618IFS=$as_save_IFS
30619
30620 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
30621 ;;
30622esac
30623fi
30624BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
30625if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030627$as_echo "$BlenderDecodeDelegate" >&6; }
30628else
cristy8b350f62009-11-15 23:12:43 +000030629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030630$as_echo "no" >&6; }
30631fi
30632
30633
30634# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
30635set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030637$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030638if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030639 $as_echo_n "(cached) " >&6
30640else
30641 case $BZIPDelegate in
30642 [\\/]* | ?:[\\/]*)
30643 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
30644 ;;
30645 *)
30646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30647for as_dir in $PATH
30648do
30649 IFS=$as_save_IFS
30650 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030651 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30653 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030655 break 2
30656 fi
30657done
cristy8b350f62009-11-15 23:12:43 +000030658 done
cristy3ed852e2009-09-05 21:47:34 +000030659IFS=$as_save_IFS
30660
30661 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
30662 ;;
30663esac
30664fi
30665BZIPDelegate=$ac_cv_path_BZIPDelegate
30666if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030668$as_echo "$BZIPDelegate" >&6; }
30669else
cristy8b350f62009-11-15 23:12:43 +000030670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030671$as_echo "no" >&6; }
30672fi
30673
30674
30675# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
30676set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030678$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030679if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030680 $as_echo_n "(cached) " >&6
30681else
30682 case $BrowseDelegate in
30683 [\\/]* | ?:[\\/]*)
30684 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
30685 ;;
30686 *)
30687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30688for as_dir in $PATH
30689do
30690 IFS=$as_save_IFS
30691 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030692 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30694 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030696 break 2
30697 fi
30698done
cristy8b350f62009-11-15 23:12:43 +000030699 done
cristy3ed852e2009-09-05 21:47:34 +000030700IFS=$as_save_IFS
30701
30702 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
30703 ;;
30704esac
30705fi
30706BrowseDelegate=$ac_cv_path_BrowseDelegate
30707if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030709$as_echo "$BrowseDelegate" >&6; }
30710else
cristy8b350f62009-11-15 23:12:43 +000030711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030712$as_echo "no" >&6; }
30713fi
30714
30715
30716# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
30717set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030719$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030720if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030721 $as_echo_n "(cached) " >&6
30722else
30723 case $CGMDecodeDelegate in
30724 [\\/]* | ?:[\\/]*)
30725 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
30726 ;;
30727 *)
30728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30729for as_dir in $PATH
30730do
30731 IFS=$as_save_IFS
30732 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030733 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30735 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030737 break 2
30738 fi
30739done
cristy8b350f62009-11-15 23:12:43 +000030740 done
cristy3ed852e2009-09-05 21:47:34 +000030741IFS=$as_save_IFS
30742
30743 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
30744 ;;
30745esac
30746fi
30747CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
30748if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030750$as_echo "$CGMDecodeDelegate" >&6; }
30751else
cristy8b350f62009-11-15 23:12:43 +000030752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030753$as_echo "no" >&6; }
30754fi
30755
30756
30757# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
30758set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030760$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030761if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030762 $as_echo_n "(cached) " >&6
30763else
30764 case $CatDelegate in
30765 [\\/]* | ?:[\\/]*)
30766 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
30767 ;;
30768 *)
30769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30770for as_dir in $PATH
30771do
30772 IFS=$as_save_IFS
30773 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030774 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30776 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030778 break 2
30779 fi
30780done
cristy8b350f62009-11-15 23:12:43 +000030781 done
cristy3ed852e2009-09-05 21:47:34 +000030782IFS=$as_save_IFS
30783
30784 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
30785 ;;
30786esac
30787fi
30788CatDelegate=$ac_cv_path_CatDelegate
30789if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030791$as_echo "$CatDelegate" >&6; }
30792else
cristy8b350f62009-11-15 23:12:43 +000030793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030794$as_echo "no" >&6; }
30795fi
30796
30797
30798# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
30799set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030801$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030802if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030803 $as_echo_n "(cached) " >&6
30804else
30805 case $DNGDecodeDelegate in
30806 [\\/]* | ?:[\\/]*)
30807 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
30808 ;;
30809 *)
30810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30811for as_dir in $PATH
30812do
30813 IFS=$as_save_IFS
30814 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030815 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30817 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030819 break 2
30820 fi
30821done
cristy8b350f62009-11-15 23:12:43 +000030822 done
cristy3ed852e2009-09-05 21:47:34 +000030823IFS=$as_save_IFS
30824
30825 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
30826 ;;
30827esac
30828fi
30829DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
30830if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030832$as_echo "$DNGDecodeDelegate" >&6; }
30833else
cristy8b350f62009-11-15 23:12:43 +000030834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030835$as_echo "no" >&6; }
30836fi
30837
30838
30839# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
30840set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030842$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030843if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030844 $as_echo_n "(cached) " >&6
30845else
30846 case $GVCDecodeDelegate in
30847 [\\/]* | ?:[\\/]*)
30848 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
30849 ;;
30850 *)
30851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30852for as_dir in $PATH
30853do
30854 IFS=$as_save_IFS
30855 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030856 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30858 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030860 break 2
30861 fi
30862done
cristy8b350f62009-11-15 23:12:43 +000030863 done
cristy3ed852e2009-09-05 21:47:34 +000030864IFS=$as_save_IFS
30865
30866 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
30867 ;;
30868esac
30869fi
30870GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
30871if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030873$as_echo "$GVCDecodeDelegate" >&6; }
30874else
cristy8b350f62009-11-15 23:12:43 +000030875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030876$as_echo "no" >&6; }
30877fi
30878
30879
30880# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
30881set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030883$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030884if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030885 $as_echo_n "(cached) " >&6
30886else
30887 case $DVIDecodeDelegate in
30888 [\\/]* | ?:[\\/]*)
30889 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
30890 ;;
30891 *)
30892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30893for as_dir in $PATH
30894do
30895 IFS=$as_save_IFS
30896 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030897 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30899 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030901 break 2
30902 fi
30903done
cristy8b350f62009-11-15 23:12:43 +000030904 done
cristy3ed852e2009-09-05 21:47:34 +000030905IFS=$as_save_IFS
30906
30907 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30908 ;;
30909esac
30910fi
30911DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30912if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030914$as_echo "$DVIDecodeDelegate" >&6; }
30915else
cristy8b350f62009-11-15 23:12:43 +000030916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030917$as_echo "no" >&6; }
30918fi
30919
30920
30921# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30922set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030924$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030925if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030926 $as_echo_n "(cached) " >&6
30927else
30928 case $EchoDelegate in
30929 [\\/]* | ?:[\\/]*)
30930 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30931 ;;
30932 *)
30933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30934for as_dir in $PATH
30935do
30936 IFS=$as_save_IFS
30937 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030938 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30940 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030942 break 2
30943 fi
30944done
cristy8b350f62009-11-15 23:12:43 +000030945 done
cristy3ed852e2009-09-05 21:47:34 +000030946IFS=$as_save_IFS
30947
30948 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30949 ;;
30950esac
30951fi
30952EchoDelegate=$ac_cv_path_EchoDelegate
30953if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030955$as_echo "$EchoDelegate" >&6; }
30956else
cristy8b350f62009-11-15 23:12:43 +000030957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030958$as_echo "no" >&6; }
30959fi
30960
30961
30962# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30963set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030965$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030966if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030967 $as_echo_n "(cached) " >&6
30968else
30969 case $EditorDelegate in
30970 [\\/]* | ?:[\\/]*)
30971 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30972 ;;
30973 *)
30974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30975for as_dir in $PATH
30976do
30977 IFS=$as_save_IFS
30978 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030979 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30981 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030983 break 2
30984 fi
30985done
cristy8b350f62009-11-15 23:12:43 +000030986 done
cristy3ed852e2009-09-05 21:47:34 +000030987IFS=$as_save_IFS
30988
30989 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30990 ;;
30991esac
30992fi
30993EditorDelegate=$ac_cv_path_EditorDelegate
30994if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030996$as_echo "$EditorDelegate" >&6; }
30997else
cristy8b350f62009-11-15 23:12:43 +000030998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030999$as_echo "no" >&6; }
31000fi
31001
31002
31003# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
31004set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031006$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031007if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031008 $as_echo_n "(cached) " >&6
31009else
31010 case $FIGDecodeDelegate in
31011 [\\/]* | ?:[\\/]*)
31012 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
31013 ;;
31014 *)
31015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31016for as_dir in $PATH
31017do
31018 IFS=$as_save_IFS
31019 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031020 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31022 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031024 break 2
31025 fi
31026done
cristy8b350f62009-11-15 23:12:43 +000031027 done
cristy3ed852e2009-09-05 21:47:34 +000031028IFS=$as_save_IFS
31029
31030 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
31031 ;;
31032esac
31033fi
31034FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
31035if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031037$as_echo "$FIGDecodeDelegate" >&6; }
31038else
cristy8b350f62009-11-15 23:12:43 +000031039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031040$as_echo "no" >&6; }
31041fi
31042
31043
31044# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
31045set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031047$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031048if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031049 $as_echo_n "(cached) " >&6
31050else
31051 case $ConvertDelegate in
31052 [\\/]* | ?:[\\/]*)
31053 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
31054 ;;
31055 *)
31056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31057for as_dir in $PATH
31058do
31059 IFS=$as_save_IFS
31060 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031061 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31063 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031065 break 2
31066 fi
31067done
cristy8b350f62009-11-15 23:12:43 +000031068 done
cristy3ed852e2009-09-05 21:47:34 +000031069IFS=$as_save_IFS
31070
31071 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
31072 ;;
31073esac
31074fi
31075ConvertDelegate=$ac_cv_path_ConvertDelegate
31076if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031078$as_echo "$ConvertDelegate" >&6; }
31079else
cristy8b350f62009-11-15 23:12:43 +000031080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031081$as_echo "no" >&6; }
31082fi
31083
31084
31085# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
31086set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031088$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031089if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031090 $as_echo_n "(cached) " >&6
31091else
31092 case $DisplayDelegate in
31093 [\\/]* | ?:[\\/]*)
31094 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
31095 ;;
31096 *)
31097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31098for as_dir in $PATH
31099do
31100 IFS=$as_save_IFS
31101 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031102 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31104 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031106 break 2
31107 fi
31108done
cristy8b350f62009-11-15 23:12:43 +000031109 done
cristy3ed852e2009-09-05 21:47:34 +000031110IFS=$as_save_IFS
31111
31112 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
31113 ;;
31114esac
31115fi
31116DisplayDelegate=$ac_cv_path_DisplayDelegate
31117if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031119$as_echo "$DisplayDelegate" >&6; }
31120else
cristy8b350f62009-11-15 23:12:43 +000031121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031122$as_echo "no" >&6; }
31123fi
31124
31125
31126# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
31127set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031129$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031130if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031131 $as_echo_n "(cached) " >&6
31132else
31133 case $MogrifyDelegate in
31134 [\\/]* | ?:[\\/]*)
31135 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
31136 ;;
31137 *)
31138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31139for as_dir in $PATH
31140do
31141 IFS=$as_save_IFS
31142 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031143 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31145 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031147 break 2
31148 fi
31149done
cristy8b350f62009-11-15 23:12:43 +000031150 done
cristy3ed852e2009-09-05 21:47:34 +000031151IFS=$as_save_IFS
31152
31153 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
31154 ;;
31155esac
31156fi
31157MogrifyDelegate=$ac_cv_path_MogrifyDelegate
31158if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031160$as_echo "$MogrifyDelegate" >&6; }
31161else
cristy8b350f62009-11-15 23:12:43 +000031162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031163$as_echo "no" >&6; }
31164fi
31165
31166
31167# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
31168set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031170$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031171if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031172 $as_echo_n "(cached) " >&6
31173else
31174 case $GnuplotDecodeDelegate in
31175 [\\/]* | ?:[\\/]*)
31176 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
31177 ;;
31178 *)
31179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31180for as_dir in $PATH
31181do
31182 IFS=$as_save_IFS
31183 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031184 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31186 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031188 break 2
31189 fi
31190done
cristy8b350f62009-11-15 23:12:43 +000031191 done
cristy3ed852e2009-09-05 21:47:34 +000031192IFS=$as_save_IFS
31193
31194 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
31195 ;;
31196esac
31197fi
31198GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
31199if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031201$as_echo "$GnuplotDecodeDelegate" >&6; }
31202else
cristy8b350f62009-11-15 23:12:43 +000031203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031204$as_echo "no" >&6; }
31205fi
31206
31207
cristy3ed852e2009-09-05 21:47:34 +000031208# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
31209set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031211$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031212if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031213 $as_echo_n "(cached) " >&6
31214else
31215 case $HPGLDecodeDelegate in
31216 [\\/]* | ?:[\\/]*)
31217 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
31218 ;;
31219 *)
31220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31221for as_dir in $PATH
31222do
31223 IFS=$as_save_IFS
31224 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031225 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31227 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031229 break 2
31230 fi
31231done
cristy8b350f62009-11-15 23:12:43 +000031232 done
cristy3ed852e2009-09-05 21:47:34 +000031233IFS=$as_save_IFS
31234
31235 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
31236 ;;
31237esac
31238fi
31239HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
31240if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031242$as_echo "$HPGLDecodeDelegate" >&6; }
31243else
cristy8b350f62009-11-15 23:12:43 +000031244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031245$as_echo "no" >&6; }
31246fi
31247
31248
31249# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
31250set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031252$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031253if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031254 $as_echo_n "(cached) " >&6
31255else
31256 case $HTMLDecodeDelegate in
31257 [\\/]* | ?:[\\/]*)
31258 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
31259 ;;
31260 *)
31261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31262for as_dir in $PATH
31263do
31264 IFS=$as_save_IFS
31265 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031266 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31268 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031270 break 2
31271 fi
31272done
cristy8b350f62009-11-15 23:12:43 +000031273 done
cristy3ed852e2009-09-05 21:47:34 +000031274IFS=$as_save_IFS
31275
31276 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
31277 ;;
31278esac
31279fi
31280HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
31281if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031283$as_echo "$HTMLDecodeDelegate" >&6; }
31284else
cristy8b350f62009-11-15 23:12:43 +000031285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031286$as_echo "no" >&6; }
31287fi
31288
31289
31290# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
31291set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031293$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031294if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031295 $as_echo_n "(cached) " >&6
31296else
31297 case $ILBMDecodeDelegate in
31298 [\\/]* | ?:[\\/]*)
31299 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
31300 ;;
31301 *)
31302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31303for as_dir in $PATH
31304do
31305 IFS=$as_save_IFS
31306 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031307 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31309 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031311 break 2
31312 fi
31313done
cristy8b350f62009-11-15 23:12:43 +000031314 done
cristy3ed852e2009-09-05 21:47:34 +000031315IFS=$as_save_IFS
31316
31317 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
31318 ;;
31319esac
31320fi
31321ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
31322if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031324$as_echo "$ILBMDecodeDelegate" >&6; }
31325else
cristy8b350f62009-11-15 23:12:43 +000031326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031327$as_echo "no" >&6; }
31328fi
31329
31330
31331# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
31332set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031334$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031335if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031336 $as_echo_n "(cached) " >&6
31337else
31338 case $ILBMEncodeDelegate in
31339 [\\/]* | ?:[\\/]*)
31340 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
31341 ;;
31342 *)
31343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31344for as_dir in $PATH
31345do
31346 IFS=$as_save_IFS
31347 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031348 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31350 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031352 break 2
31353 fi
31354done
cristy8b350f62009-11-15 23:12:43 +000031355 done
cristy3ed852e2009-09-05 21:47:34 +000031356IFS=$as_save_IFS
31357
31358 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
31359 ;;
31360esac
31361fi
31362ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
31363if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031365$as_echo "$ILBMEncodeDelegate" >&6; }
31366else
cristy8b350f62009-11-15 23:12:43 +000031367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031368$as_echo "no" >&6; }
31369fi
31370
31371
31372# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
31373set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031375$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031376if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031377 $as_echo_n "(cached) " >&6
31378else
31379 case $LPDelegate in
31380 [\\/]* | ?:[\\/]*)
31381 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
31382 ;;
31383 *)
31384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31385for as_dir in $PATH
31386do
31387 IFS=$as_save_IFS
31388 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031389 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31391 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031393 break 2
31394 fi
31395done
cristy8b350f62009-11-15 23:12:43 +000031396 done
cristy3ed852e2009-09-05 21:47:34 +000031397IFS=$as_save_IFS
31398
31399 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
31400 ;;
31401esac
31402fi
31403LPDelegate=$ac_cv_path_LPDelegate
31404if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031406$as_echo "$LPDelegate" >&6; }
31407else
cristy8b350f62009-11-15 23:12:43 +000031408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031409$as_echo "no" >&6; }
31410fi
31411
31412
31413# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
31414set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031416$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031417if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031418 $as_echo_n "(cached) " >&6
31419else
31420 case $LPRDelegate in
31421 [\\/]* | ?:[\\/]*)
31422 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
31423 ;;
31424 *)
31425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31426for as_dir in $PATH
31427do
31428 IFS=$as_save_IFS
31429 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031430 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31432 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031434 break 2
31435 fi
31436done
cristy8b350f62009-11-15 23:12:43 +000031437 done
cristy3ed852e2009-09-05 21:47:34 +000031438IFS=$as_save_IFS
31439
31440 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
31441 ;;
31442esac
31443fi
31444LPRDelegate=$ac_cv_path_LPRDelegate
31445if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031447$as_echo "$LPRDelegate" >&6; }
31448else
cristy8b350f62009-11-15 23:12:43 +000031449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031450$as_echo "no" >&6; }
31451fi
31452
31453
31454# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
31455set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031457$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031458if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031459 $as_echo_n "(cached) " >&6
31460else
31461 case $LZWDecodeDelegate in
31462 [\\/]* | ?:[\\/]*)
31463 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
31464 ;;
31465 *)
31466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31467for as_dir in $PATH
31468do
31469 IFS=$as_save_IFS
31470 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031471 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31473 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031475 break 2
31476 fi
31477done
cristy8b350f62009-11-15 23:12:43 +000031478 done
cristy3ed852e2009-09-05 21:47:34 +000031479IFS=$as_save_IFS
31480
31481 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
31482 ;;
31483esac
31484fi
31485LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
31486if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031488$as_echo "$LZWDecodeDelegate" >&6; }
31489else
cristy8b350f62009-11-15 23:12:43 +000031490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031491$as_echo "no" >&6; }
31492fi
31493
31494
31495# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
31496set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031498$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031499if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031500 $as_echo_n "(cached) " >&6
31501else
31502 case $LZWEncodeDelegate in
31503 [\\/]* | ?:[\\/]*)
31504 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
31505 ;;
31506 *)
31507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31508for as_dir in $PATH
31509do
31510 IFS=$as_save_IFS
31511 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031512 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31514 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031516 break 2
31517 fi
31518done
cristy8b350f62009-11-15 23:12:43 +000031519 done
cristy3ed852e2009-09-05 21:47:34 +000031520IFS=$as_save_IFS
31521
31522 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
31523 ;;
31524esac
31525fi
31526LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
31527if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031529$as_echo "$LZWEncodeDelegate" >&6; }
31530else
cristy8b350f62009-11-15 23:12:43 +000031531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031532$as_echo "no" >&6; }
31533fi
31534
31535
31536# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
31537set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031539$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031540if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031541 $as_echo_n "(cached) " >&6
31542else
31543 case $LaunchDelegate in
31544 [\\/]* | ?:[\\/]*)
31545 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
31546 ;;
31547 *)
31548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31549for as_dir in $PATH
31550do
31551 IFS=$as_save_IFS
31552 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031553 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31555 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031557 break 2
31558 fi
31559done
cristy8b350f62009-11-15 23:12:43 +000031560 done
cristy3ed852e2009-09-05 21:47:34 +000031561IFS=$as_save_IFS
31562
31563 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
31564 ;;
31565esac
31566fi
31567LaunchDelegate=$ac_cv_path_LaunchDelegate
31568if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031570$as_echo "$LaunchDelegate" >&6; }
31571else
cristy8b350f62009-11-15 23:12:43 +000031572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031573$as_echo "no" >&6; }
31574fi
31575
31576
31577# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
31578set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031580$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031581if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031582 $as_echo_n "(cached) " >&6
31583else
31584 case $MANDelegate in
31585 [\\/]* | ?:[\\/]*)
31586 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
31587 ;;
31588 *)
31589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31590for as_dir in $PATH
31591do
31592 IFS=$as_save_IFS
31593 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031594 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31596 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031598 break 2
31599 fi
31600done
cristy8b350f62009-11-15 23:12:43 +000031601 done
cristy3ed852e2009-09-05 21:47:34 +000031602IFS=$as_save_IFS
31603
31604 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
31605 ;;
31606esac
31607fi
31608MANDelegate=$ac_cv_path_MANDelegate
31609if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031611$as_echo "$MANDelegate" >&6; }
31612else
cristy8b350f62009-11-15 23:12:43 +000031613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031614$as_echo "no" >&6; }
31615fi
31616
31617
31618# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
31619set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031621$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031622if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031623 $as_echo_n "(cached) " >&6
31624else
31625 case $MPEGDecodeDelegate in
31626 [\\/]* | ?:[\\/]*)
31627 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
31628 ;;
31629 *)
31630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31631for as_dir in $PATH
31632do
31633 IFS=$as_save_IFS
31634 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031635 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31637 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031639 break 2
31640 fi
31641done
cristy8b350f62009-11-15 23:12:43 +000031642 done
cristy3ed852e2009-09-05 21:47:34 +000031643IFS=$as_save_IFS
31644
31645 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
31646 ;;
31647esac
31648fi
31649MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
31650if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031652$as_echo "$MPEGDecodeDelegate" >&6; }
31653else
cristy8b350f62009-11-15 23:12:43 +000031654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031655$as_echo "no" >&6; }
31656fi
31657
31658
31659# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
31660set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031662$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031663if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031664 $as_echo_n "(cached) " >&6
31665else
31666 case $MPEGEncodeDelegate in
31667 [\\/]* | ?:[\\/]*)
31668 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
31669 ;;
31670 *)
31671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31672for as_dir in $PATH
31673do
31674 IFS=$as_save_IFS
31675 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031676 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31678 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031680 break 2
31681 fi
31682done
cristy8b350f62009-11-15 23:12:43 +000031683 done
cristy3ed852e2009-09-05 21:47:34 +000031684IFS=$as_save_IFS
31685
31686 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
31687 ;;
31688esac
31689fi
31690MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
31691if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031693$as_echo "$MPEGEncodeDelegate" >&6; }
31694else
cristy8b350f62009-11-15 23:12:43 +000031695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031696$as_echo "no" >&6; }
31697fi
31698
31699
cristy935c86e2010-06-05 23:50:07 +000031700# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
31701set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
31702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31703$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031704if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000031705 $as_echo_n "(cached) " >&6
31706else
31707 case $MrSIDDecodeDelegate in
31708 [\\/]* | ?:[\\/]*)
31709 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
31710 ;;
31711 *)
31712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31713for as_dir in $PATH
31714do
31715 IFS=$as_save_IFS
31716 test -z "$as_dir" && as_dir=.
31717 for ac_exec_ext in '' $ac_executable_extensions; do
31718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31719 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31721 break 2
31722 fi
31723done
31724 done
31725IFS=$as_save_IFS
31726
31727 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
31728 ;;
31729esac
31730fi
31731MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
31732if test -n "$MrSIDDecodeDelegate"; then
31733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
31734$as_echo "$MrSIDDecodeDelegate" >&6; }
31735else
31736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31737$as_echo "no" >&6; }
31738fi
31739
31740
cristy3ed852e2009-09-05 21:47:34 +000031741# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
31742set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031744$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031745if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031746 $as_echo_n "(cached) " >&6
31747else
31748 case $MVDelegate in
31749 [\\/]* | ?:[\\/]*)
31750 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
31751 ;;
31752 *)
31753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31754for as_dir in $PATH
31755do
31756 IFS=$as_save_IFS
31757 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031758 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31760 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031762 break 2
31763 fi
31764done
cristy8b350f62009-11-15 23:12:43 +000031765 done
cristy3ed852e2009-09-05 21:47:34 +000031766IFS=$as_save_IFS
31767
31768 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
31769 ;;
31770esac
31771fi
31772MVDelegate=$ac_cv_path_MVDelegate
31773if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031775$as_echo "$MVDelegate" >&6; }
31776else
cristy8b350f62009-11-15 23:12:43 +000031777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031778$as_echo "no" >&6; }
31779fi
31780
31781
31782# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
31783set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031785$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031786if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031787 $as_echo_n "(cached) " >&6
31788else
31789 case $PCLDelegate in
31790 [\\/]* | ?:[\\/]*)
31791 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
31792 ;;
31793 *)
31794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31795for as_dir in $PATH
31796do
31797 IFS=$as_save_IFS
31798 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031799 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31801 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031803 break 2
31804 fi
31805done
cristy8b350f62009-11-15 23:12:43 +000031806 done
cristy3ed852e2009-09-05 21:47:34 +000031807IFS=$as_save_IFS
31808
31809 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
31810 ;;
31811esac
31812fi
31813PCLDelegate=$ac_cv_path_PCLDelegate
31814if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031816$as_echo "$PCLDelegate" >&6; }
31817else
cristy8b350f62009-11-15 23:12:43 +000031818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031819$as_echo "no" >&6; }
31820fi
31821
31822
31823# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
31824set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031826$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031827if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031828 $as_echo_n "(cached) " >&6
31829else
31830 case $PGPDecodeDelegate in
31831 [\\/]* | ?:[\\/]*)
31832 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
31833 ;;
31834 *)
31835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31836for as_dir in $PATH
31837do
31838 IFS=$as_save_IFS
31839 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031840 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31842 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031844 break 2
31845 fi
31846done
cristy8b350f62009-11-15 23:12:43 +000031847 done
cristy3ed852e2009-09-05 21:47:34 +000031848IFS=$as_save_IFS
31849
31850 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
31851 ;;
31852esac
31853fi
31854PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
31855if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031857$as_echo "$PGPDecodeDelegate" >&6; }
31858else
cristy8b350f62009-11-15 23:12:43 +000031859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031860$as_echo "no" >&6; }
31861fi
31862
31863
31864# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31865set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031867$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031868if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031869 $as_echo_n "(cached) " >&6
31870else
31871 case $POVDelegate in
31872 [\\/]* | ?:[\\/]*)
31873 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31874 ;;
31875 *)
31876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31877for as_dir in $PATH
31878do
31879 IFS=$as_save_IFS
31880 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031881 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31883 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031885 break 2
31886 fi
31887done
cristy8b350f62009-11-15 23:12:43 +000031888 done
cristy3ed852e2009-09-05 21:47:34 +000031889IFS=$as_save_IFS
31890
31891 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31892 ;;
31893esac
31894fi
31895POVDelegate=$ac_cv_path_POVDelegate
31896if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031898$as_echo "$POVDelegate" >&6; }
31899else
cristy8b350f62009-11-15 23:12:43 +000031900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031901$as_echo "no" >&6; }
31902fi
31903
31904
31905for ac_prog in gsx gsc "$PSDelegateDefault"
31906do
31907 # Extract the first word of "$ac_prog", so it can be a program name with args.
31908set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031910$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031911if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031912 $as_echo_n "(cached) " >&6
31913else
31914 case $PSDelegate in
31915 [\\/]* | ?:[\\/]*)
31916 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31917 ;;
31918 *)
31919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31920for as_dir in $PATH
31921do
31922 IFS=$as_save_IFS
31923 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031924 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31926 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031928 break 2
31929 fi
31930done
cristy8b350f62009-11-15 23:12:43 +000031931 done
cristy3ed852e2009-09-05 21:47:34 +000031932IFS=$as_save_IFS
31933
31934 ;;
31935esac
31936fi
31937PSDelegate=$ac_cv_path_PSDelegate
31938if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031940$as_echo "$PSDelegate" >&6; }
31941else
cristy8b350f62009-11-15 23:12:43 +000031942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031943$as_echo "no" >&6; }
31944fi
31945
31946
31947 test -n "$PSDelegate" && break
31948done
31949test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31950
31951# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31952set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031954$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031955if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031956 $as_echo_n "(cached) " >&6
31957else
31958 case $RLEEncodeDelegate in
31959 [\\/]* | ?:[\\/]*)
31960 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31961 ;;
31962 *)
31963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31964for as_dir in $PATH
31965do
31966 IFS=$as_save_IFS
31967 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031968 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31970 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031972 break 2
31973 fi
31974done
cristy8b350f62009-11-15 23:12:43 +000031975 done
cristy3ed852e2009-09-05 21:47:34 +000031976IFS=$as_save_IFS
31977
31978 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31979 ;;
31980esac
31981fi
31982RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31983if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031985$as_echo "$RLEEncodeDelegate" >&6; }
31986else
cristy8b350f62009-11-15 23:12:43 +000031987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031988$as_echo "no" >&6; }
31989fi
31990
31991
31992# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31993set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031995$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031996if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031997 $as_echo_n "(cached) " >&6
31998else
31999 case $RMDelegate in
32000 [\\/]* | ?:[\\/]*)
32001 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
32002 ;;
32003 *)
32004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32005for as_dir in $PATH
32006do
32007 IFS=$as_save_IFS
32008 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032009 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32011 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032013 break 2
32014 fi
32015done
cristy8b350f62009-11-15 23:12:43 +000032016 done
cristy3ed852e2009-09-05 21:47:34 +000032017IFS=$as_save_IFS
32018
32019 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
32020 ;;
32021esac
32022fi
32023RMDelegate=$ac_cv_path_RMDelegate
32024if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032026$as_echo "$RMDelegate" >&6; }
32027else
cristy8b350f62009-11-15 23:12:43 +000032028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032029$as_echo "no" >&6; }
32030fi
32031
32032
cristy4689cf02010-02-17 21:15:45 +000032033# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
32034set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
32035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32036$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032037if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000032038 $as_echo_n "(cached) " >&6
32039else
32040 case $RSVGDecodeDelegate in
32041 [\\/]* | ?:[\\/]*)
32042 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
32043 ;;
32044 *)
32045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32046for as_dir in $PATH
32047do
32048 IFS=$as_save_IFS
32049 test -z "$as_dir" && as_dir=.
32050 for ac_exec_ext in '' $ac_executable_extensions; do
32051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32052 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32054 break 2
32055 fi
32056done
32057 done
32058IFS=$as_save_IFS
32059
32060 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
32061 ;;
32062esac
32063fi
32064RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
32065if test -n "$RSVGDecodeDelegate"; then
32066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
32067$as_echo "$RSVGDecodeDelegate" >&6; }
32068else
32069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32070$as_echo "no" >&6; }
32071fi
32072
32073
cristy3ed852e2009-09-05 21:47:34 +000032074# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
32075set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032077$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032078if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032079 $as_echo_n "(cached) " >&6
32080else
32081 case $SCANDecodeDelegate in
32082 [\\/]* | ?:[\\/]*)
32083 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
32084 ;;
32085 *)
32086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32087for as_dir in $PATH
32088do
32089 IFS=$as_save_IFS
32090 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032091 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32093 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032095 break 2
32096 fi
32097done
cristy8b350f62009-11-15 23:12:43 +000032098 done
cristy3ed852e2009-09-05 21:47:34 +000032099IFS=$as_save_IFS
32100
32101 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
32102 ;;
32103esac
32104fi
32105SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
32106if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032108$as_echo "$SCANDecodeDelegate" >&6; }
32109else
cristy8b350f62009-11-15 23:12:43 +000032110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032111$as_echo "no" >&6; }
32112fi
32113
32114
32115# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
32116set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032118$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032119if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032120 $as_echo_n "(cached) " >&6
32121else
32122 case $TXTDelegate in
32123 [\\/]* | ?:[\\/]*)
32124 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
32125 ;;
32126 *)
32127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32128for as_dir in $PATH
32129do
32130 IFS=$as_save_IFS
32131 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032132 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32134 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032136 break 2
32137 fi
32138done
cristy8b350f62009-11-15 23:12:43 +000032139 done
cristy3ed852e2009-09-05 21:47:34 +000032140IFS=$as_save_IFS
32141
32142 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
32143 ;;
32144esac
32145fi
32146TXTDelegate=$ac_cv_path_TXTDelegate
32147if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032149$as_echo "$TXTDelegate" >&6; }
32150else
cristy8b350f62009-11-15 23:12:43 +000032151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032152$as_echo "no" >&6; }
32153fi
32154
32155
cristy5ac9ac82010-07-29 13:24:24 +000032156# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
32157set dummy "$UniconvertorDelegateDefault"; ac_word=$2
32158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32159$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032160if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000032161 $as_echo_n "(cached) " >&6
32162else
32163 case $UniconvertorDelegate in
32164 [\\/]* | ?:[\\/]*)
32165 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
32166 ;;
32167 *)
32168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32169for as_dir in $PATH
32170do
32171 IFS=$as_save_IFS
32172 test -z "$as_dir" && as_dir=.
32173 for ac_exec_ext in '' $ac_executable_extensions; do
32174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32175 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
32176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32177 break 2
32178 fi
32179done
32180 done
32181IFS=$as_save_IFS
32182
32183 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
32184 ;;
32185esac
32186fi
32187UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
32188if test -n "$UniconvertorDelegate"; then
32189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
32190$as_echo "$UniconvertorDelegate" >&6; }
32191else
32192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32193$as_echo "no" >&6; }
32194fi
32195
32196
cristy3ed852e2009-09-05 21:47:34 +000032197# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
32198set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032200$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032201if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032202 $as_echo_n "(cached) " >&6
32203else
32204 case $WMFDecodeDelegate in
32205 [\\/]* | ?:[\\/]*)
32206 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
32207 ;;
32208 *)
32209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32210for as_dir in $PATH
32211do
32212 IFS=$as_save_IFS
32213 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032214 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32216 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032218 break 2
32219 fi
32220done
cristy8b350f62009-11-15 23:12:43 +000032221 done
cristy3ed852e2009-09-05 21:47:34 +000032222IFS=$as_save_IFS
32223
32224 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
32225 ;;
32226esac
32227fi
32228WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
32229if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032231$as_echo "$WMFDecodeDelegate" >&6; }
32232else
cristy8b350f62009-11-15 23:12:43 +000032233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032234$as_echo "no" >&6; }
32235fi
32236
32237
32238# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
32239set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032241$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032242if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032243 $as_echo_n "(cached) " >&6
32244else
32245 case $WWWDecodeDelegate in
32246 [\\/]* | ?:[\\/]*)
32247 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
32248 ;;
32249 *)
32250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32251for as_dir in $PATH
32252do
32253 IFS=$as_save_IFS
32254 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032255 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32257 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032259 break 2
32260 fi
32261done
cristy8b350f62009-11-15 23:12:43 +000032262 done
cristy3ed852e2009-09-05 21:47:34 +000032263IFS=$as_save_IFS
32264
32265 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
32266 ;;
32267esac
32268fi
32269WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
32270if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032272$as_echo "$WWWDecodeDelegate" >&6; }
32273else
cristy8b350f62009-11-15 23:12:43 +000032274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032275$as_echo "no" >&6; }
32276fi
32277
32278
32279# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
32280set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032282$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032283if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032284 $as_echo_n "(cached) " >&6
32285else
32286 case $XPSDelegate in
32287 [\\/]* | ?:[\\/]*)
32288 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
32289 ;;
32290 *)
32291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32292for as_dir in $PATH
32293do
32294 IFS=$as_save_IFS
32295 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032296 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32298 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032300 break 2
32301 fi
32302done
cristy8b350f62009-11-15 23:12:43 +000032303 done
cristy3ed852e2009-09-05 21:47:34 +000032304IFS=$as_save_IFS
32305
32306 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
32307 ;;
32308esac
32309fi
32310XPSDelegate=$ac_cv_path_XPSDelegate
32311if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032313$as_echo "$XPSDelegate" >&6; }
32314else
cristy8b350f62009-11-15 23:12:43 +000032315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032316$as_echo "no" >&6; }
32317fi
32318
32319
32320# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
32321set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032323$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032324if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032325 $as_echo_n "(cached) " >&6
32326else
32327 case $ZipDelegate in
32328 [\\/]* | ?:[\\/]*)
32329 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
32330 ;;
32331 *)
32332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32333for as_dir in $PATH
32334do
32335 IFS=$as_save_IFS
32336 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032337 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32339 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032341 break 2
32342 fi
32343done
cristy8b350f62009-11-15 23:12:43 +000032344 done
cristy3ed852e2009-09-05 21:47:34 +000032345IFS=$as_save_IFS
32346
32347 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
32348 ;;
32349esac
32350fi
32351ZipDelegate=$ac_cv_path_ZipDelegate
32352if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032354$as_echo "$ZipDelegate" >&6; }
32355else
cristy8b350f62009-11-15 23:12:43 +000032356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032357$as_echo "no" >&6; }
32358fi
32359
32360
32361
32362# Prefer lpr to lp; lp needs options tacked on.
32363if test "$LPRDelegate" != no; then
32364 PrintDelegate="$LPRDelegate"
32365else
32366 PrintDelegate="$LPDelegate -c -s"
32367fi
32368
32369
32370# Installed ImageMagick utiltity paths
32371ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
32372DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
32373MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
32374
32375# Set delegate booleans
32376have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
32377have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
32378have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
32379have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
32380have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000032381have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000032382have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
32383have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000032384have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
32385have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
32386
32387#
32388# Test for font directories
32389#
32390type_include_files=''
32391
cristy430a7312010-01-21 20:44:04 +000032392# Dejavu fonts.
32393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
32394$as_echo_n "checking for Dejavu fonts directory... " >&6; }
32395dejavu_font_dir=''
32396if test "${with_dejavu_font_dir}" != 'default'; then
32397 dejavu_font_dir="${with_dejavu_font_dir}/"
32398else
32399 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
32400 if test -f "${font_dir}DejaVuSerif.ttf"; then
32401 dejavu_font_dir="${font_dir}"
32402 break 1
32403 fi
32404 done
32405fi
32406if test "${dejavu_font_dir}x" != 'x'; then
32407 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
32408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
32409$as_echo "$dejavu_font_dir" >&6; }
32410else
32411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
32412$as_echo "not found!" >&6; };
32413fi
32414
32415
cristy3ed852e2009-09-05 21:47:34 +000032416# Windows
32417windows_font_dir=''
32418if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
32419 windows_font_dir="${with_windows_font_dir}/"
32420fi
cristy430a7312010-01-21 20:44:04 +000032421if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000032422 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
32423 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
32424 fi
32425 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
32426 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
32427 fi
32428 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
32429 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
32430 fi
32431fi
cristy430a7312010-01-21 20:44:04 +000032432if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000032433 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
32434fi
32435
32436
32437# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000032438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000032439$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
32440ghostscript_font_dir=''
32441if test "${with_gs_font_dir}" != 'default'; then
32442 ghostscript_font_dir="${with_gs_font_dir}/"
32443else
32444 if test "${native_win32_build}" = 'yes'; then
32445 # Native Windows Build
32446 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
32447 if test -f "${font_dir}a010013l.pfb"; then
32448 ghostscript_font_dir="$font_dir"
32449 break 1
32450 fi
32451 done
32452 if test "${PSDelegate}" != 'gswin32c'; then
32453 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
32454 fi
32455 else
32456 # Linux / Mac OS X / Unix Build
32457 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
32458 if test -f "${font_dir}a010013l.pfb"; then
32459 ghostscript_font_dir="${font_dir}"
32460 break 1
32461 fi
32462 done
32463 if test "${ghostscript_font_dir}x" = 'x'; then
32464 if test "$PSDelegate" != 'gs'; then
32465 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
32466 fi
32467 fi
32468 fi
32469fi
32470if test "${ghostscript_font_dir}x" != 'x'; then
32471 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000032472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000032473$as_echo "$ghostscript_font_dir" >&6; }
32474else
cristy8b350f62009-11-15 23:12:43 +000032475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000032476$as_echo "not found!" >&6; };
32477fi
32478
32479case "${build_os}" in
32480 mingw* )
32481 PSDelegate=`$WinPathScript "$PSDelegate" 1`
32482 ;;
32483esac
32484
32485
32486
32487#
32488# Handle case where user doesn't want frozen paths
32489#
32490if test "$with_frozenpaths" != 'yes'; then
32491 # Re-set delegate definitions to default (no paths)
32492 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032493 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
32494 BZIPDelegate="$BZIPDelegateDefault"
32495 BrowseDelegate="$BrowseDelegateDefault"
32496 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
32497 CatDelegate="$CatDelegateDefault"
32498 ConvertDelegate="$ConvertDelegateDefault"
32499 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
32500 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
32501 EchoDelegate="$EchoDelegateDefault"
32502 EditorDelegate="$EditorDelegateDefault"
32503 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
32504 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
32505 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
32506 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
32507 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
32508 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
32509 LPDelegate="$LPDelegateDefault"
32510 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
32511 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
32512 LaunchDelegate="$LaunchDelegateDefault"
32513 MANDelegate="$MANDelegateDefault"
32514 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
32515 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032516 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000032517 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
32518 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032519 PCLDelegate="$PCLDelegateDefault"
32520 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
32521 POVDelegate="$POVDelegateDefault"
32522 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032523 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
32524 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000032525 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032526 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
32527 ShowImageDelegate="$ShowImageDelegateDefault"
32528 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000032529 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032530 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
32531 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
32532 XPSDelegate="$XPSDelegateDefault"
32533 ZipDelegate="$ZipDelegateDefault"
32534fi
32535
32536# Delegate substitutions
32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
32554
32555
32556
32557
32558
32559
32560
32561
32562
32563
32564
32565
32566
32567
32568
32569
32570
32571
32572
32573
32574
32575
32576
32577
32578
32579#
32580# RPM support.
32581#
32582RPM=''
32583for ac_prog in gnutar gtar tar
32584do
32585 # Extract the first word of "$ac_prog", so it can be a program name with args.
32586set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032588$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032589if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032590 $as_echo_n "(cached) " >&6
32591else
32592 if test -n "$TAR"; then
32593 ac_cv_prog_TAR="$TAR" # Let the user override the test.
32594else
32595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32596for as_dir in $PATH
32597do
32598 IFS=$as_save_IFS
32599 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032600 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32602 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032604 break 2
32605 fi
32606done
cristy8b350f62009-11-15 23:12:43 +000032607 done
cristy3ed852e2009-09-05 21:47:34 +000032608IFS=$as_save_IFS
32609
32610fi
32611fi
32612TAR=$ac_cv_prog_TAR
32613if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000032614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000032615$as_echo "$TAR" >&6; }
32616else
cristy8b350f62009-11-15 23:12:43 +000032617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032618$as_echo "no" >&6; }
32619fi
32620
32621
32622 test -n "$TAR" && break
32623done
32624
32625for ac_prog in perl
32626do
32627 # Extract the first word of "$ac_prog", so it can be a program name with args.
32628set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032630$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032631if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032632 $as_echo_n "(cached) " >&6
32633else
32634 if test -n "$PERL"; then
32635 ac_cv_prog_PERL="$PERL" # Let the user override the test.
32636else
32637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32638for as_dir in $PATH
32639do
32640 IFS=$as_save_IFS
32641 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032642 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32644 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032646 break 2
32647 fi
32648done
cristy8b350f62009-11-15 23:12:43 +000032649 done
cristy3ed852e2009-09-05 21:47:34 +000032650IFS=$as_save_IFS
32651
32652fi
32653fi
32654PERL=$ac_cv_prog_PERL
32655if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032657$as_echo "$PERL" >&6; }
32658else
cristy8b350f62009-11-15 23:12:43 +000032659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032660$as_echo "no" >&6; }
32661fi
32662
32663
32664 test -n "$PERL" && break
32665done
32666
32667for ac_prog in rpmbuild rpm
32668do
32669 # Extract the first word of "$ac_prog", so it can be a program name with args.
32670set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032672$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032673if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032674 $as_echo_n "(cached) " >&6
32675else
32676 if test -n "$RPM"; then
32677 ac_cv_prog_RPM="$RPM" # Let the user override the test.
32678else
32679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32680for as_dir in $PATH
32681do
32682 IFS=$as_save_IFS
32683 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032684 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32686 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032688 break 2
32689 fi
32690done
cristy8b350f62009-11-15 23:12:43 +000032691 done
cristy3ed852e2009-09-05 21:47:34 +000032692IFS=$as_save_IFS
32693
32694fi
32695fi
32696RPM=$ac_cv_prog_RPM
32697if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000032698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000032699$as_echo "$RPM" >&6; }
32700else
cristy8b350f62009-11-15 23:12:43 +000032701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032702$as_echo "no" >&6; }
32703fi
32704
32705
32706 test -n "$RPM" && break
32707done
32708
32709
cristy73bd4a52010-10-05 11:24:23 +000032710ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
32711
32712
32713AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
32714
32715
32716AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
32717
32718
32719AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
32720
32721
32722 if test "x$RPM" != "x" ; then
32723 RPM_DELEGATE_TRUE=
32724 RPM_DELEGATE_FALSE='#'
32725else
32726 RPM_DELEGATE_TRUE='#'
32727 RPM_DELEGATE_FALSE=
32728fi
32729
cristy3ed852e2009-09-05 21:47:34 +000032730
32731#
32732# 7ZIP support (http://p7zip.sourceforge.net/)
32733#
32734P7ZIP=''
32735for ac_prog in 7za
32736do
32737 # Extract the first word of "$ac_prog", so it can be a program name with args.
32738set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032740$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032741if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032742 $as_echo_n "(cached) " >&6
32743else
32744 if test -n "$P7ZIP"; then
32745 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
32746else
32747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32748for as_dir in $PATH
32749do
32750 IFS=$as_save_IFS
32751 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032752 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32754 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032756 break 2
32757 fi
32758done
cristy8b350f62009-11-15 23:12:43 +000032759 done
cristy3ed852e2009-09-05 21:47:34 +000032760IFS=$as_save_IFS
32761
32762fi
32763fi
32764P7ZIP=$ac_cv_prog_P7ZIP
32765if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032767$as_echo "$P7ZIP" >&6; }
32768else
cristy8b350f62009-11-15 23:12:43 +000032769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032770$as_echo "no" >&6; }
32771fi
32772
32773
32774 test -n "$P7ZIP" && break
32775done
32776
32777
cristy73bd4a52010-10-05 11:24:23 +000032778 if test "x$P7ZIP" != "x" ; then
32779 P7ZIP_DELEGATE_TRUE=
32780 P7ZIP_DELEGATE_FALSE='#'
32781else
32782 P7ZIP_DELEGATE_TRUE='#'
32783 P7ZIP_DELEGATE_FALSE=
32784fi
32785
cristy3ed852e2009-09-05 21:47:34 +000032786
32787#
32788# ZIP support (http://www.info-zip.org/Zip.html)
32789#
32790ZIP=''
32791for ac_prog in zip
32792do
32793 # Extract the first word of "$ac_prog", so it can be a program name with args.
32794set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032796$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032797if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032798 $as_echo_n "(cached) " >&6
32799else
32800 if test -n "$ZIP"; then
32801 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
32802else
32803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32804for as_dir in $PATH
32805do
32806 IFS=$as_save_IFS
32807 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032808 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32810 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032812 break 2
32813 fi
32814done
cristy8b350f62009-11-15 23:12:43 +000032815 done
cristy3ed852e2009-09-05 21:47:34 +000032816IFS=$as_save_IFS
32817
32818fi
32819fi
32820ZIP=$ac_cv_prog_ZIP
32821if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032823$as_echo "$ZIP" >&6; }
32824else
cristy8b350f62009-11-15 23:12:43 +000032825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032826$as_echo "no" >&6; }
32827fi
32828
32829
32830 test -n "$ZIP" && break
32831done
32832
32833
cristy73bd4a52010-10-05 11:24:23 +000032834 if test "x$ZIP" != "x" ; then
32835 ZIP_DELEGATE_TRUE=
32836 ZIP_DELEGATE_FALSE='#'
32837else
32838 ZIP_DELEGATE_TRUE='#'
32839 ZIP_DELEGATE_FALSE=
32840fi
32841
cristy3ed852e2009-09-05 21:47:34 +000032842
32843#
32844# GhostPCL related configuration.
32845#
32846PCLColorDevice=ppmraw
32847PCLCMYKDevice=bmpsep8
32848PCLMonoDevice=pbmraw
32849if test -z "$PCLVersion"; then
32850 PCLVersion='unknown'
32851fi
32852if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032854$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032856$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032858$as_echo "" >&6; }
32859 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000032860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032861$as_echo_n "checking for pcl color device... " >&6; }
32862 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32863 :
32864 else
32865 PCLColorDevice=ppmraw
32866 fi
cristy8b350f62009-11-15 23:12:43 +000032867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032868$as_echo "$PCLColorDevice" >&6; }
32869
32870 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032872$as_echo_n "checking for pcl CMYK device... " >&6; }
32873 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32874 :
32875 else
32876 PCLCMYKDevice=$PCLColorDevice
32877 fi
cristy8b350f62009-11-15 23:12:43 +000032878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032879$as_echo "$PCLCMYKDevice" >&6; }
32880
32881 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032883$as_echo_n "checking for pcl mono device... " >&6; }
32884 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32885 :
32886 else
32887 PCLMonoDevice=$PCLColorDevice
32888 fi
cristy8b350f62009-11-15 23:12:43 +000032889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032890$as_echo "$PCLMonoDevice" >&6; }
32891fi
32892
32893
32894
32895
32896
32897
32898#
32899# GhostXPS related configuration.
32900#
32901XPSColorDevice=ppmraw
32902XPSCMYKDevice=bmpsep8
32903XPSMonoDevice=pbmraw
32904if test -z "$XPSVersion"; then
32905 XPSVersion='unknown'
32906fi
32907if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032909$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032911$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032913$as_echo "" >&6; }
32914 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032916$as_echo_n "checking for xps color device... " >&6; }
32917 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32918 :
32919 else
32920 XPSColorDevice=ppmraw
32921 fi
cristy8b350f62009-11-15 23:12:43 +000032922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032923$as_echo "$XPSColorDevice" >&6; }
32924
32925 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032927$as_echo_n "checking for xps CMYK device... " >&6; }
32928 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32929 :
32930 else
32931 XPSCMYKDevice=$XPSColorDevice
32932 fi
cristy8b350f62009-11-15 23:12:43 +000032933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032934$as_echo "$XPSCMYKDevice" >&6; }
32935
32936 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032938$as_echo_n "checking for xps mono device... " >&6; }
32939 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32940 :
32941 else
32942 XPSMonoDevice=$XPSColorDevice
32943 fi
cristy8b350f62009-11-15 23:12:43 +000032944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032945$as_echo "$XPSMonoDevice" >&6; }
32946fi
32947
32948
32949
32950
32951
32952
32953#
32954# Ghostscript related configuration.
32955#
cristya97426c2011-02-04 01:41:27 +000032956GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000032957GSColorDevice=pnmraw
32958GSCMYKDevice=pam
32959GSMonoDevice=pbmraw
32960GSPDFDevice=pdfwrite
32961GSPSDevice=pswrite
32962GSEPSDevice=epswrite
32963GSVersion='unknown'
32964if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032966$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032968$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032970$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032972$as_echo_n "checking for Ghostscript version... " >&6; }
32973 if GSVersion=`$PSDelegate --version`; then
32974 :
32975 else
32976 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32977 fi
cristy8b350f62009-11-15 23:12:43 +000032978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032979$as_echo "$GSVersion" >&6; }
32980
32981 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032983$as_echo_n "checking for gs alpha device... " >&6; }
32984 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32985 :
32986 else
32987 GSAlphaDevice=pnmraw
32988 fi
cristy8b350f62009-11-15 23:12:43 +000032989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032990$as_echo "$GSAlphaDevice" >&6; }
32991
32992 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032994$as_echo_n "checking for gs color device... " >&6; }
32995 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32996 :
32997 else
32998 GSColorDevice=pnmraw
32999 fi
cristy8b350f62009-11-15 23:12:43 +000033000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033001$as_echo "$GSColorDevice" >&6; }
33002
33003 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000033004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033005$as_echo_n "checking for gs CMYK device... " >&6; }
33006 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33007 :
33008 else
33009 GSCMYKDevice=bmpsep8
33010 fi
cristy8b350f62009-11-15 23:12:43 +000033011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033012$as_echo "$GSCMYKDevice" >&6; }
33013
33014 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000033015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033016$as_echo_n "checking for gs mono device... " >&6; }
33017 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33018 :
33019 else
33020 GSMonoDevice=$GSColorDevice
33021 fi
cristy8b350f62009-11-15 23:12:43 +000033022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033023$as_echo "$GSMonoDevice" >&6; }
33024
33025 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000033026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033027$as_echo_n "checking for gs PDF writing device... " >&6; }
33028 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33029 :
33030 else
33031 GSPDFDevice=nodevice
33032 fi
cristy8b350f62009-11-15 23:12:43 +000033033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033034$as_echo "$GSPDFDevice" >&6; }
33035
33036 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000033037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033038$as_echo_n "checking for gs PS writing device... " >&6; }
33039 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33040 :
33041 else
33042 GSPSDevice=nodevice
33043 fi
cristy8b350f62009-11-15 23:12:43 +000033044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033045$as_echo "$GSPSDevice" >&6; }
33046
33047 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000033048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033049$as_echo_n "checking for gs EPS writing device... " >&6; }
33050 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33051 :
33052 else
33053 GSEPSDevice=nodevice
33054 fi
cristy8b350f62009-11-15 23:12:43 +000033055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033056$as_echo "$GSEPSDevice" >&6; }
33057fi
33058
33059
33060
33061
33062
33063
33064
33065
33066
33067
33068#
33069# PerlMagick-related configuration
33070#
33071
33072# Look for PERL if PerlMagick requested
33073# If name/path of desired PERL interpreter is specified, look for that one first
33074have_perl='no'
33075if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000033076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033077$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000033079$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033081$as_echo "" >&6; }
33082 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000033084$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033085if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033086 $as_echo_n "(cached) " >&6
33087else
33088 ac_cv_path_PERL="$with_perl"
33089fi
cristy8b350f62009-11-15 23:12:43 +000033090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033091$as_echo "$ac_cv_path_PERL" >&6; };
33092 PERL=$ac_cv_path_PERL
33093 have_perl="$ac_cv_path_PERL"
33094 else
33095 for ac_prog in perl perl5
33096do
33097 # Extract the first word of "$ac_prog", so it can be a program name with args.
33098set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033100$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033101if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033102 $as_echo_n "(cached) " >&6
33103else
33104 case $PERL in
33105 [\\/]* | ?:[\\/]*)
33106 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33107 ;;
33108 *)
33109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33110for as_dir in $PATH
33111do
33112 IFS=$as_save_IFS
33113 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033114 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33116 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033118 break 2
33119 fi
33120done
cristy8b350f62009-11-15 23:12:43 +000033121 done
cristy3ed852e2009-09-05 21:47:34 +000033122IFS=$as_save_IFS
33123
33124 ;;
33125esac
33126fi
33127PERL=$ac_cv_path_PERL
33128if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000033129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033130$as_echo "$PERL" >&6; }
33131else
cristy8b350f62009-11-15 23:12:43 +000033132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033133$as_echo "no" >&6; }
33134fi
33135
33136
33137 test -n "$PERL" && break
33138done
33139 if test "$ac_cv_path_PERL"; then
33140 have_perl="$ac_cv_path_PERL"
33141 fi
33142 fi
33143fi
33144
cristy949301e2010-01-06 01:38:40 +000033145if test "$with_perl" != 'yes' ; then
33146 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
33147fi
33148
33149PERL_SUPPORTS_DESTDIR='no'
33150
cristy3ed852e2009-09-05 21:47:34 +000033151with_perl_static='no'
33152with_perl_dynamic='no'
33153if test "$have_perl" != 'no'; then
33154 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
33155 with_perl_static='yes'
33156 fi
33157 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
33158 with_perl_dynamic='yes'
33159 fi
33160 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000033161
33162
33163
33164
33165 if test -n "$PERL"; then :
33166
33167 ax_perl_version="5.8.1"
33168
33169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
33170$as_echo_n "checking for perl version... " >&6; }
33171
33172 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
33173
33174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
33175$as_echo "$perl_version" >&6; }
33176
33177 PERL_VERSION=$perl_version
33178
33179
33180
33181
33182
33183 # Used to indicate true or false condition
33184 ax_compare_version=false
33185
33186 # Convert the two version strings to be compared into a format that
33187 # allows a simple string comparison. The end result is that a version
33188 # string of the form 1.12.5-r617 will be converted to the form
33189 # 0001001200050617. In other words, each number is zero padded to four
33190 # digits, and non digits are removed.
33191
33192 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33193 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33194 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33195 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33196 -e 's/[^0-9]//g'`
33197
33198
33199 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33200 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33201 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33202 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33203 -e 's/[^0-9]//g'`
33204
33205
33206 ax_compare_version=`echo "x$ax_compare_version_A
33207x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
33208
33209
33210
33211 if test "$ax_compare_version" = "true" ; then
33212
33213 :
33214 PERL_SUPPORTS_DESTDIR='yes'
33215
33216 else
33217 :
33218 PERL_SUPPORTS_DESTDIR='no'
33219
33220 fi
33221
33222
33223else
33224
33225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
33226$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
33227 PERL_SUPPORTS_DESTDIR='no'
33228
cristy3ed852e2009-09-05 21:47:34 +000033229fi
cristy73bd4a52010-10-05 11:24:23 +000033230
33231fi
33232 if test "$have_perl" != 'no'; then
33233 WITH_PERL_TRUE=
33234 WITH_PERL_FALSE='#'
33235else
33236 WITH_PERL_TRUE='#'
33237 WITH_PERL_FALSE=
33238fi
33239
33240 if test $with_perl_static = 'yes'; then
33241 WITH_PERL_STATIC_TRUE=
33242 WITH_PERL_STATIC_FALSE='#'
33243else
33244 WITH_PERL_STATIC_TRUE='#'
33245 WITH_PERL_STATIC_FALSE=
33246fi
33247
33248 if test $with_perl_dynamic = 'yes'; then
33249 WITH_PERL_DYNAMIC_TRUE=
33250 WITH_PERL_DYNAMIC_FALSE='#'
33251else
33252 WITH_PERL_DYNAMIC_TRUE='#'
33253 WITH_PERL_DYNAMIC_FALSE=
33254fi
33255
cristy3ed852e2009-09-05 21:47:34 +000033256
33257
33258# Determine path to pick up MagickCore library from for use with building PerlMagick
33259MAGICKCORE_PATH="${LIB_DIR}"
33260if test $with_perl_static = 'yes'; then
33261 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
33262 libtool_objdir=$objdir
33263
33264 # Linker search path to library, followed by -lMagickCore
33265 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
33266fi
33267
33268
33269# Create a simple string containing format names for all delegate libraries
33270DELEGATES=''
33271if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
33272if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
33273if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
33274if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
33275if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
33276if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
33277if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
33278if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
33279if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
33280if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
33281if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
33282if test "$have_jpeg" = 'yes'; then
33283 DELEGATES="$DELEGATES jpeg";
33284 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
33285fi
33286if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000033287if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000033288if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
33289if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000033290if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000033291if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
33292if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
33293if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
33294if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
33295if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
33296if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
33297if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
33298if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
33299if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
33300
33301
33302
33303#
33304# Handle special compiler flags
33305#
33306
33307# Add '-p' if prof source profiling support enabled
33308if test "$enable_prof" = 'yes'; then
33309 CFLAGS="-p $CFLAGS"
33310 CXXFLAGS="-p $CXXFLAGS"
33311 LDFLAGS="-p $LDFLAGS"
33312fi
33313
33314# Add '-pg' if gprof source profiling support enabled
33315if test "$enable_gprof" = 'yes'; then
33316 CFLAGS="-pg $CFLAGS"
33317 CXXFLAGS="-pg $CXXFLAGS"
33318 LDFLAGS="-pg $LDFLAGS"
33319fi
33320
33321# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
33322# This is a gcc-specific feature
33323if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000033325$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033326if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033327 $as_echo_n "(cached) " >&6
33328else
33329 ac_check_lib_save_LIBS=$LIBS
33330LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000033331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033332/* end confdefs.h. */
33333
33334/* Override any GCC internal prototype to avoid an error.
33335 Use char because int might match the return type of a GCC
33336 builtin and then its argument prototype would still apply. */
33337#ifdef __cplusplus
33338extern "C"
33339#endif
33340char _gcov_init ();
33341int
33342main ()
33343{
33344return _gcov_init ();
33345 ;
33346 return 0;
33347}
33348_ACEOF
cristy8b350f62009-11-15 23:12:43 +000033349if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000033350 ac_cv_lib_gcov__gcov_init=yes
33351else
cristy8b350f62009-11-15 23:12:43 +000033352 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000033353fi
cristy8b350f62009-11-15 23:12:43 +000033354rm -f core conftest.err conftest.$ac_objext \
33355 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033356LIBS=$ac_check_lib_save_LIBS
33357fi
cristy8b350f62009-11-15 23:12:43 +000033358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000033359$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000033360if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033361 cat >>confdefs.h <<_ACEOF
33362#define HAVE_LIBGCOV 1
33363_ACEOF
33364
33365 LIBS="-lgcov $LIBS"
33366
33367fi
33368
cristy8b350f62009-11-15 23:12:43 +000033369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000033370$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033371if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033372 $as_echo_n "(cached) " >&6
33373else
33374 ac_check_lib_save_LIBS=$LIBS
33375LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000033376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033377/* end confdefs.h. */
33378
33379/* Override any GCC internal prototype to avoid an error.
33380 Use char because int might match the return type of a GCC
33381 builtin and then its argument prototype would still apply. */
33382#ifdef __cplusplus
33383extern "C"
33384#endif
33385char __gcov_init ();
33386int
33387main ()
33388{
33389return __gcov_init ();
33390 ;
33391 return 0;
33392}
33393_ACEOF
cristy8b350f62009-11-15 23:12:43 +000033394if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000033395 ac_cv_lib_gcov___gcov_init=yes
33396else
cristy8b350f62009-11-15 23:12:43 +000033397 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000033398fi
cristy8b350f62009-11-15 23:12:43 +000033399rm -f core conftest.err conftest.$ac_objext \
33400 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033401LIBS=$ac_check_lib_save_LIBS
33402fi
cristy8b350f62009-11-15 23:12:43 +000033403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000033404$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000033405if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033406 cat >>confdefs.h <<_ACEOF
33407#define HAVE_LIBGCOV 1
33408_ACEOF
33409
33410 LIBS="-lgcov $LIBS"
33411
33412fi
33413
33414 case "$target_os" in
33415 darwin*)
33416 OSX_GCOV_LDFLAG="-Wl,-single_module"
33417 ;;
33418 *)
33419 OSX_GCOV_LDFLAG=""
33420 ;;
33421 esac
33422
33423 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
33424 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
33425 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
33426fi
33427
33428#
33429# Build library dependency list for libMagickCore
33430#
33431
33432MAGICK_LIBLTDL='' # Libltdl for build
33433MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
33434MAGICK_LTDLDEPS='' # extra libltdl dependencies
33435if test "$with_ltdl" != 'no'
33436then
33437 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
33438 MAGICK_API_LIBLTDL='-lltdl'
33439 fi
33440 MAGICK_LIBLTDL=${LIBLTDL}
33441 MAGICK_LTDLDEPS=${LTDLDEPS}
33442fi
33443
33444
33445
33446if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000033447 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 +000033448else
cristyb1860752011-03-14 00:27:46 +000033449 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 +000033450fi
33451
33452
33453#
33454# Remove extraneous spaces from output variables (asthetic)
33455#
33456X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
33457X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
33458X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
33459X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
33460
33461CC=`echo $CC | sed -e 's/ */ /g'`
33462CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
33463CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
33464CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
33465DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
33466DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
33467LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
33468TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
33469MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
33470#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
33471
33472# Pass only user-provided LIBS as "global" libraries
33473LIBS=$USER_LIBS
33474
33475#AC_SUBST(CPPFLAGS)
33476
33477#AC_SUBST(LDFLAGS)
33478#AC_SUBST(X_PRE_LIBS)
33479#AC_SUBST(X_LIBS)
33480#AC_SUBST(X_EXTRA_LIBS)
33481
33482MAGICK_CFLAGS=$CFLAGS
33483MAGICK_CXXFLAGS="$CXXFLAGS"
33484MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
33485MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
33486MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
33487MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
33488
33489
33490
33491
33492
33493
33494
33495
cristyfd9dcd42010-08-08 18:07:02 +000033496
cristy3ed852e2009-09-05 21:47:34 +000033497# Set configured scripts to executable.
33498ac_config_commands="$ac_config_commands default"
33499
33500ac_config_commands="$ac_config_commands MagickCore-config.in"
33501
33502ac_config_commands="$ac_config_commands Magick-config.in"
33503
33504ac_config_commands="$ac_config_commands MagickWand-config.in"
33505
33506ac_config_commands="$ac_config_commands Wand-config.in"
33507
33508ac_config_commands="$ac_config_commands Magick++-config.in"
33509
33510ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
33511
33512
cristy8b350f62009-11-15 23:12:43 +000033513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033514$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000033516$as_echo "Update ImageMagick configuration" >&6; }
33517cat >confcache <<\_ACEOF
33518# This file is a shell script that caches the results of configure
33519# tests run on this system so they can be shared between configure
33520# scripts and configure runs, see configure's option --config-cache.
33521# It is not useful on other systems. If it contains results you don't
33522# want to keep, you may remove or edit it.
33523#
33524# config.status only pays attention to the cache file if you give it
33525# the --recheck option to rerun configure.
33526#
33527# `ac_cv_env_foo' variables (set or unset) will be overridden when
33528# loading this file, other *unset* `ac_cv_foo' will be assigned the
33529# following values.
33530
33531_ACEOF
33532
33533# The following way of writing the cache mishandles newlines in values,
33534# but we know of no workaround that is simple, portable, and efficient.
33535# So, we kill variables containing newlines.
33536# Ultrix sh set writes to stderr and can't be redirected directly,
33537# and sets the high bit in the cache file unless we assign to the vars.
33538(
33539 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33540 eval ac_val=\$$ac_var
33541 case $ac_val in #(
33542 *${as_nl}*)
33543 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000033544 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000033545$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33546 esac
33547 case $ac_var in #(
33548 _ | IFS | as_nl) ;; #(
33549 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000033550 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000033551 esac ;;
33552 esac
33553 done
33554
33555 (set) 2>&1 |
33556 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33557 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000033558 # `set' does not quote correctly, so add quotes: double-quote
33559 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000033560 sed -n \
33561 "s/'/'\\\\''/g;
33562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33563 ;; #(
33564 *)
33565 # `set' quotes correctly as required by POSIX, so do not add quotes.
33566 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33567 ;;
33568 esac |
33569 sort
33570) |
33571 sed '
33572 /^ac_cv_env_/b end
33573 t clear
33574 :clear
33575 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33576 t end
33577 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33578 :end' >>confcache
33579if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33580 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000033581 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000033582 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033583$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000033584 if test ! -f "$cache_file" || test -h "$cache_file"; then
33585 cat confcache >"$cache_file"
33586 else
33587 case $cache_file in #(
33588 */* | ?:*)
33589 mv -f confcache "$cache_file"$$ &&
33590 mv -f "$cache_file"$$ "$cache_file" ;; #(
33591 *)
33592 mv -f confcache "$cache_file" ;;
33593 esac
33594 fi
33595 fi
cristy3ed852e2009-09-05 21:47:34 +000033596 else
cristy8b350f62009-11-15 23:12:43 +000033597 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033598$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33599 fi
33600fi
33601rm -f confcache
33602
33603test "x$prefix" = xNONE && prefix=$ac_default_prefix
33604# Let make expand exec_prefix.
33605test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33606
33607DEFS=-DHAVE_CONFIG_H
33608
33609ac_libobjs=
33610ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000033611U=
cristy3ed852e2009-09-05 21:47:34 +000033612for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33613 # 1. Remove the extension, and $U if already installed.
33614 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33615 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33616 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33617 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000033618 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33619 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000033620done
33621LIBOBJS=$ac_libobjs
33622
33623LTLIBOBJS=$ac_ltlibobjs
33624
33625
cristy73bd4a52010-10-05 11:24:23 +000033626 if test -n "$EXEEXT"; then
33627 am__EXEEXT_TRUE=
33628 am__EXEEXT_FALSE='#'
33629else
33630 am__EXEEXT_TRUE='#'
33631 am__EXEEXT_FALSE=
33632fi
cristy3ed852e2009-09-05 21:47:34 +000033633
cristy73bd4a52010-10-05 11:24:23 +000033634if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033635 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033636Usually this means the macro was only invoked conditionally." "$LINENO" 5
33637fi
33638if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033639 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033640Usually this means the macro was only invoked conditionally." "$LINENO" 5
33641fi
33642if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033643 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033644Usually this means the macro was only invoked conditionally." "$LINENO" 5
33645fi
33646if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033647 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033648Usually this means the macro was only invoked conditionally." "$LINENO" 5
33649fi
33650if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033651 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033652Usually this means the macro was only invoked conditionally." "$LINENO" 5
33653fi
33654if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033655 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033656Usually this means the macro was only invoked conditionally." "$LINENO" 5
33657fi
33658if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033659 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033660Usually this means the macro was only invoked conditionally." "$LINENO" 5
33661fi
33662if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033663 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033664Usually this means the macro was only invoked conditionally." "$LINENO" 5
33665fi
cristy73bd4a52010-10-05 11:24:23 +000033666if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033667 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033668Usually this means the macro was only invoked conditionally." "$LINENO" 5
33669fi
33670if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033671 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033672Usually this means the macro was only invoked conditionally." "$LINENO" 5
33673fi
33674LT_CONFIG_H=config/config.h
33675
33676 _ltdl_libobjs=
33677 _ltdl_ltlibobjs=
33678 if test -n "$_LT_LIBOBJS"; then
33679 # Remove the extension.
33680 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
33681 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
33682 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
33683 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
33684 done
33685 fi
33686 ltdl_LIBOBJS=$_ltdl_libobjs
33687
33688 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
33689
33690
33691if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033692 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033693Usually this means the macro was only invoked conditionally." "$LINENO" 5
33694fi
33695if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033696 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033697Usually this means the macro was only invoked conditionally." "$LINENO" 5
33698fi
33699if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033700 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033701Usually this means the macro was only invoked conditionally." "$LINENO" 5
33702fi
33703if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033704 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033705Usually this means the macro was only invoked conditionally." "$LINENO" 5
33706fi
33707
33708if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033709 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033710Usually this means the macro was only invoked conditionally." "$LINENO" 5
33711fi
33712if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033713 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033714Usually this means the macro was only invoked conditionally." "$LINENO" 5
33715fi
33716if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033717 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033718Usually this means the macro was only invoked conditionally." "$LINENO" 5
33719fi
33720if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033721 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033722Usually this means the macro was only invoked conditionally." "$LINENO" 5
33723fi
33724if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033725 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033726Usually this means the macro was only invoked conditionally." "$LINENO" 5
33727fi
33728if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033729 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033730Usually this means the macro was only invoked conditionally." "$LINENO" 5
33731fi
33732if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033733 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033734Usually this means the macro was only invoked conditionally." "$LINENO" 5
33735fi
33736if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033737 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033738Usually this means the macro was only invoked conditionally." "$LINENO" 5
33739fi
33740if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033741 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033742Usually this means the macro was only invoked conditionally." "$LINENO" 5
33743fi
33744if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033745 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033746Usually this means the macro was only invoked conditionally." "$LINENO" 5
33747fi
33748if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033749 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033750Usually this means the macro was only invoked conditionally." "$LINENO" 5
33751fi
33752if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033753 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033754Usually this means the macro was only invoked conditionally." "$LINENO" 5
33755fi
33756if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033757 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033758Usually this means the macro was only invoked conditionally." "$LINENO" 5
33759fi
33760if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033761 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033762Usually this means the macro was only invoked conditionally." "$LINENO" 5
33763fi
33764if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033765 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033766Usually this means the macro was only invoked conditionally." "$LINENO" 5
33767fi
33768if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033769 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033770Usually this means the macro was only invoked conditionally." "$LINENO" 5
33771fi
33772if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033773 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033774Usually this means the macro was only invoked conditionally." "$LINENO" 5
33775fi
33776if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033777 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033778Usually this means the macro was only invoked conditionally." "$LINENO" 5
33779fi
33780if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033781 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033782Usually this means the macro was only invoked conditionally." "$LINENO" 5
33783fi
33784if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033785 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033786Usually this means the macro was only invoked conditionally." "$LINENO" 5
33787fi
cristyfbb0ef02010-12-19 02:32:11 +000033788if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
33789 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
33790Usually this means the macro was only invoked conditionally." "$LINENO" 5
33791fi
cristy73bd4a52010-10-05 11:24:23 +000033792if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033793 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033794Usually this means the macro was only invoked conditionally." "$LINENO" 5
33795fi
33796if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033797 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033798Usually this means the macro was only invoked conditionally." "$LINENO" 5
33799fi
33800if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033801 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033802Usually this means the macro was only invoked conditionally." "$LINENO" 5
33803fi
33804if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033805 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033806Usually this means the macro was only invoked conditionally." "$LINENO" 5
33807fi
33808if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033809 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033810Usually this means the macro was only invoked conditionally." "$LINENO" 5
33811fi
cristyb1860752011-03-14 00:27:46 +000033812if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
33813 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
33814Usually this means the macro was only invoked conditionally." "$LINENO" 5
33815fi
cristy73bd4a52010-10-05 11:24:23 +000033816if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033817 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033818Usually this means the macro was only invoked conditionally." "$LINENO" 5
33819fi
33820if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033821 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033822Usually this means the macro was only invoked conditionally." "$LINENO" 5
33823fi
33824if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033825 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033826Usually this means the macro was only invoked conditionally." "$LINENO" 5
33827fi
33828if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033829 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033830Usually this means the macro was only invoked conditionally." "$LINENO" 5
33831fi
33832if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033833 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033834Usually this means the macro was only invoked conditionally." "$LINENO" 5
33835fi
33836if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033837 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033838Usually this means the macro was only invoked conditionally." "$LINENO" 5
33839fi
33840if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033841 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033842Usually this means the macro was only invoked conditionally." "$LINENO" 5
33843fi
33844if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033845 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033846Usually this means the macro was only invoked conditionally." "$LINENO" 5
33847fi
cristy3ed852e2009-09-05 21:47:34 +000033848
cristyda16f162011-02-19 23:52:17 +000033849: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000033850ac_write_fail=0
33851ac_clean_files_save=$ac_clean_files
33852ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000033853{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000033854$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000033855as_write_fail=0
33856cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033857#! $SHELL
33858# Generated by $as_me.
33859# Run this file to recreate the current configuration.
33860# Compiler output produced by configure, useful for debugging
33861# configure, is in config.log if it exists.
33862
33863debug=false
33864ac_cs_recheck=false
33865ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000033866
cristy8b350f62009-11-15 23:12:43 +000033867SHELL=\${CONFIG_SHELL-$SHELL}
33868export SHELL
33869_ASEOF
33870cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33871## -------------------- ##
33872## M4sh Initialization. ##
33873## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000033874
33875# Be more Bourne compatible
33876DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000033877if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000033878 emulate sh
33879 NULLCMD=:
33880 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33881 # is contrary to our usage. Disable this feature.
33882 alias -g '${1+"$@"}'='"$@"'
33883 setopt NO_GLOB_SUBST
33884else
cristy8b350f62009-11-15 23:12:43 +000033885 case `(set -o) 2>/dev/null` in #(
33886 *posix*) :
33887 set -o posix ;; #(
33888 *) :
33889 ;;
cristy3ed852e2009-09-05 21:47:34 +000033890esac
cristy3ed852e2009-09-05 21:47:34 +000033891fi
33892
33893
cristy3ed852e2009-09-05 21:47:34 +000033894as_nl='
33895'
33896export as_nl
33897# Printing a long string crashes Solaris 7 /usr/bin/printf.
33898as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33899as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33900as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000033901# Prefer a ksh shell builtin over an external printf program on Solaris,
33902# but without wasting forks for bash or zsh.
33903if test -z "$BASH_VERSION$ZSH_VERSION" \
33904 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33905 as_echo='print -r --'
33906 as_echo_n='print -rn --'
33907elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000033908 as_echo='printf %s\n'
33909 as_echo_n='printf %s'
33910else
33911 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33912 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33913 as_echo_n='/usr/ucb/echo -n'
33914 else
33915 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33916 as_echo_n_body='eval
33917 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000033918 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000033919 *"$as_nl"*)
33920 expr "X$arg" : "X\\(.*\\)$as_nl";
33921 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33922 esac;
33923 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33924 '
33925 export as_echo_n_body
33926 as_echo_n='sh -c $as_echo_n_body as_echo'
33927 fi
33928 export as_echo_body
33929 as_echo='sh -c $as_echo_body as_echo'
33930fi
33931
33932# The user is always right.
33933if test "${PATH_SEPARATOR+set}" != set; then
33934 PATH_SEPARATOR=:
33935 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33936 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33937 PATH_SEPARATOR=';'
33938 }
33939fi
33940
cristy3ed852e2009-09-05 21:47:34 +000033941
33942# IFS
33943# We need space, tab and new line, in precisely that order. Quoting is
33944# there to prevent editors from complaining about space-tab.
33945# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33946# splitting by setting IFS to empty value.)
33947IFS=" "" $as_nl"
33948
33949# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000033950as_myself=
cristy8b350f62009-11-15 23:12:43 +000033951case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033952 *[\\/]* ) as_myself=$0 ;;
33953 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33954for as_dir in $PATH
33955do
33956 IFS=$as_save_IFS
33957 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033958 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33959 done
cristy3ed852e2009-09-05 21:47:34 +000033960IFS=$as_save_IFS
33961
33962 ;;
33963esac
33964# We did not find ourselves, most probably we were run as `sh COMMAND'
33965# in which case we are not to be found in the path.
33966if test "x$as_myself" = x; then
33967 as_myself=$0
33968fi
33969if test ! -f "$as_myself"; then
33970 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033971 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033972fi
33973
cristy8b350f62009-11-15 23:12:43 +000033974# Unset variables that we do not need and which cause bugs (e.g. in
33975# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33976# suppresses any "Segmentation fault" message there. '((' could
33977# trigger a bug in pdksh 5.2.14.
33978for as_var in BASH_ENV ENV MAIL MAILPATH
33979do eval test x\${$as_var+set} = xset \
33980 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033981done
33982PS1='$ '
33983PS2='> '
33984PS4='+ '
33985
33986# NLS nuisances.
33987LC_ALL=C
33988export LC_ALL
33989LANGUAGE=C
33990export LANGUAGE
33991
cristy8b350f62009-11-15 23:12:43 +000033992# CDPATH.
33993(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33994
33995
cristy98dddb52010-11-04 00:30:15 +000033996# as_fn_error STATUS ERROR [LINENO LOG_FD]
33997# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000033998# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33999# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000034000# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000034001as_fn_error ()
34002{
cristy98dddb52010-11-04 00:30:15 +000034003 as_status=$1; test $as_status -eq 0 && as_status=1
34004 if test "$4"; then
34005 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
34006 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000034007 fi
cristy98dddb52010-11-04 00:30:15 +000034008 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000034009 as_fn_exit $as_status
34010} # as_fn_error
34011
34012
34013# as_fn_set_status STATUS
34014# -----------------------
34015# Set $? to STATUS, without forking.
34016as_fn_set_status ()
34017{
34018 return $1
34019} # as_fn_set_status
34020
34021# as_fn_exit STATUS
34022# -----------------
34023# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34024as_fn_exit ()
34025{
34026 set +e
34027 as_fn_set_status $1
34028 exit $1
34029} # as_fn_exit
34030
34031# as_fn_unset VAR
34032# ---------------
34033# Portably unset VAR.
34034as_fn_unset ()
34035{
34036 { eval $1=; unset $1;}
34037}
34038as_unset=as_fn_unset
34039# as_fn_append VAR VALUE
34040# ----------------------
34041# Append the text in VALUE to the end of the definition contained in VAR. Take
34042# advantage of any shell optimizations that allow amortized linear growth over
34043# repeated appends, instead of the typical quadratic growth present in naive
34044# implementations.
34045if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
34046 eval 'as_fn_append ()
34047 {
34048 eval $1+=\$2
34049 }'
34050else
34051 as_fn_append ()
34052 {
34053 eval $1=\$$1\$2
34054 }
34055fi # as_fn_append
34056
34057# as_fn_arith ARG...
34058# ------------------
34059# Perform arithmetic evaluation on the ARGs, and store the result in the
34060# global $as_val. Take advantage of shells that can avoid forks. The arguments
34061# must be portable across $(()) and expr.
34062if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
34063 eval 'as_fn_arith ()
34064 {
34065 as_val=$(( $* ))
34066 }'
34067else
34068 as_fn_arith ()
34069 {
34070 as_val=`expr "$@" || test $? -eq 1`
34071 }
34072fi # as_fn_arith
34073
34074
cristy3ed852e2009-09-05 21:47:34 +000034075if expr a : '\(a\)' >/dev/null 2>&1 &&
34076 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34077 as_expr=expr
34078else
34079 as_expr=false
34080fi
34081
34082if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34083 as_basename=basename
34084else
34085 as_basename=false
34086fi
34087
cristy8b350f62009-11-15 23:12:43 +000034088if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34089 as_dirname=dirname
34090else
34091 as_dirname=false
34092fi
cristy3ed852e2009-09-05 21:47:34 +000034093
cristy3ed852e2009-09-05 21:47:34 +000034094as_me=`$as_basename -- "$0" ||
34095$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34096 X"$0" : 'X\(//\)$' \| \
34097 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34098$as_echo X/"$0" |
34099 sed '/^.*\/\([^/][^/]*\)\/*$/{
34100 s//\1/
34101 q
34102 }
34103 /^X\/\(\/\/\)$/{
34104 s//\1/
34105 q
34106 }
34107 /^X\/\(\/\).*/{
34108 s//\1/
34109 q
34110 }
34111 s/.*/./; q'`
34112
cristy8b350f62009-11-15 23:12:43 +000034113# Avoid depending upon Character Ranges.
34114as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34115as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34116as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34117as_cr_digits='0123456789'
34118as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000034119
34120ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000034121case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000034122-n*)
cristy8b350f62009-11-15 23:12:43 +000034123 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000034124 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000034125 xy) ECHO_C='\c';;
34126 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
34127 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000034128 esac;;
34129*)
34130 ECHO_N='-n';;
34131esac
cristy3ed852e2009-09-05 21:47:34 +000034132
34133rm -f conf$$ conf$$.exe conf$$.file
34134if test -d conf$$.dir; then
34135 rm -f conf$$.dir/conf$$.file
34136else
34137 rm -f conf$$.dir
34138 mkdir conf$$.dir 2>/dev/null
34139fi
34140if (echo >conf$$.file) 2>/dev/null; then
34141 if ln -s conf$$.file conf$$ 2>/dev/null; then
34142 as_ln_s='ln -s'
34143 # ... but there are two gotchas:
34144 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34145 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34146 # In both cases, we have to default to `cp -p'.
34147 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34148 as_ln_s='cp -p'
34149 elif ln conf$$.file conf$$ 2>/dev/null; then
34150 as_ln_s=ln
34151 else
34152 as_ln_s='cp -p'
34153 fi
34154else
34155 as_ln_s='cp -p'
34156fi
34157rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34158rmdir conf$$.dir 2>/dev/null
34159
cristy8b350f62009-11-15 23:12:43 +000034160
34161# as_fn_mkdir_p
34162# -------------
34163# Create "$as_dir" as a directory, including parents if necessary.
34164as_fn_mkdir_p ()
34165{
34166
34167 case $as_dir in #(
34168 -*) as_dir=./$as_dir;;
34169 esac
34170 test -d "$as_dir" || eval $as_mkdir_p || {
34171 as_dirs=
34172 while :; do
34173 case $as_dir in #(
34174 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34175 *) as_qdir=$as_dir;;
34176 esac
34177 as_dirs="'$as_qdir' $as_dirs"
34178 as_dir=`$as_dirname -- "$as_dir" ||
34179$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34180 X"$as_dir" : 'X\(//\)[^/]' \| \
34181 X"$as_dir" : 'X\(//\)$' \| \
34182 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34183$as_echo X"$as_dir" |
34184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34185 s//\1/
34186 q
34187 }
34188 /^X\(\/\/\)[^/].*/{
34189 s//\1/
34190 q
34191 }
34192 /^X\(\/\/\)$/{
34193 s//\1/
34194 q
34195 }
34196 /^X\(\/\).*/{
34197 s//\1/
34198 q
34199 }
34200 s/.*/./; q'`
34201 test -d "$as_dir" && break
34202 done
34203 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000034204 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000034205
34206
34207} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034208if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034209 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000034210else
34211 test -d ./-p && rmdir ./-p
34212 as_mkdir_p=false
34213fi
34214
34215if test -x / >/dev/null 2>&1; then
34216 as_test_x='test -x'
34217else
34218 if ls -dL / >/dev/null 2>&1; then
34219 as_ls_L_option=L
34220 else
34221 as_ls_L_option=
34222 fi
34223 as_test_x='
34224 eval sh -c '\''
34225 if test -d "$1"; then
34226 test -d "$1/.";
34227 else
cristy8b350f62009-11-15 23:12:43 +000034228 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000034229 -*)set "./$1";;
34230 esac;
cristy8b350f62009-11-15 23:12:43 +000034231 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000034232 ???[sx]*):;;*)false;;esac;fi
34233 '\'' sh
34234 '
34235fi
34236as_executable_p=$as_test_x
34237
34238# Sed expression to map a string onto a valid CPP name.
34239as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34240
34241# Sed expression to map a string onto a valid variable name.
34242as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34243
34244
34245exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000034246## ----------------------------------- ##
34247## Main body of $CONFIG_STATUS script. ##
34248## ----------------------------------- ##
34249_ASEOF
34250test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000034251
cristy8b350f62009-11-15 23:12:43 +000034252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34253# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000034254# report actual input values of CONFIG_FILES etc. instead of their
34255# values after options handling.
34256ac_log="
cristy45dbd322011-03-27 16:40:38 +000034257This file was extended by ImageMagick $as_me 6.6.9, which was
cristyda16f162011-02-19 23:52:17 +000034258generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000034259
34260 CONFIG_FILES = $CONFIG_FILES
34261 CONFIG_HEADERS = $CONFIG_HEADERS
34262 CONFIG_LINKS = $CONFIG_LINKS
34263 CONFIG_COMMANDS = $CONFIG_COMMANDS
34264 $ $0 $@
34265
34266on `(hostname || uname -n) 2>/dev/null | sed 1q`
34267"
34268
34269_ACEOF
34270
34271case $ac_config_files in *"
34272"*) set x $ac_config_files; shift; ac_config_files=$*;;
34273esac
34274
34275case $ac_config_headers in *"
34276"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34277esac
34278
34279
34280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34281# Files that config.status was made for.
34282config_files="$ac_config_files"
34283config_headers="$ac_config_headers"
34284config_commands="$ac_config_commands"
34285
34286_ACEOF
34287
34288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34289ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000034290\`$as_me' instantiates files and other configuration actions
34291from templates according to the current configuration. Unless the files
34292and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000034293
cristy8b350f62009-11-15 23:12:43 +000034294Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000034295
34296 -h, --help print this help, then exit
34297 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000034298 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000034299 -q, --quiet, --silent
34300 do not print progress messages
34301 -d, --debug don't remove temporary files
34302 --recheck update $as_me by reconfiguring in the same conditions
34303 --file=FILE[:TEMPLATE]
34304 instantiate the configuration file FILE
34305 --header=FILE[:TEMPLATE]
34306 instantiate the configuration header FILE
34307
34308Configuration files:
34309$config_files
34310
34311Configuration headers:
34312$config_headers
34313
34314Configuration commands:
34315$config_commands
34316
cristy8b350f62009-11-15 23:12:43 +000034317Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000034318
34319_ACEOF
34320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000034321ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000034322ac_cs_version="\\
cristy45dbd322011-03-27 16:40:38 +000034323ImageMagick config.status 6.6.9
cristyda16f162011-02-19 23:52:17 +000034324configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000034325 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000034326
cristy98dddb52010-11-04 00:30:15 +000034327Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000034328This config.status script is free software; the Free Software Foundation
34329gives unlimited permission to copy, distribute and modify it."
34330
34331ac_pwd='$ac_pwd'
34332srcdir='$srcdir'
34333INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000034334MKDIR_P='$MKDIR_P'
34335AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000034336test -n "\$AWK" || AWK=awk
34337_ACEOF
34338
34339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34340# The default lists apply if the user does not specify any file.
34341ac_need_defaults=:
34342while test $# != 0
34343do
34344 case $1 in
cristyda16f162011-02-19 23:52:17 +000034345 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000034346 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34347 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34348 ac_shift=:
34349 ;;
cristyda16f162011-02-19 23:52:17 +000034350 --*=)
34351 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34352 ac_optarg=
34353 ac_shift=:
34354 ;;
cristy3ed852e2009-09-05 21:47:34 +000034355 *)
34356 ac_option=$1
34357 ac_optarg=$2
34358 ac_shift=shift
34359 ;;
34360 esac
34361
34362 case $ac_option in
34363 # Handling of the options.
34364 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34365 ac_cs_recheck=: ;;
34366 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34367 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000034368 --config | --confi | --conf | --con | --co | --c )
34369 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000034370 --debug | --debu | --deb | --de | --d | -d )
34371 debug=: ;;
34372 --file | --fil | --fi | --f )
34373 $ac_shift
34374 case $ac_optarg in
34375 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000034376 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000034377 esac
cristy8b350f62009-11-15 23:12:43 +000034378 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000034379 ac_need_defaults=false;;
34380 --header | --heade | --head | --hea )
34381 $ac_shift
34382 case $ac_optarg in
34383 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34384 esac
cristy8b350f62009-11-15 23:12:43 +000034385 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000034386 ac_need_defaults=false;;
34387 --he | --h)
34388 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000034389 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000034390Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000034391 --help | --hel | -h )
34392 $as_echo "$ac_cs_usage"; exit ;;
34393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34394 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34395 ac_cs_silent=: ;;
34396
34397 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000034398 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000034399Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000034400
cristy8b350f62009-11-15 23:12:43 +000034401 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000034402 ac_need_defaults=false ;;
34403
34404 esac
34405 shift
34406done
34407
34408ac_configure_extra_args=
34409
34410if $ac_cs_silent; then
34411 exec 6>/dev/null
34412 ac_configure_extra_args="$ac_configure_extra_args --silent"
34413fi
34414
34415_ACEOF
34416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34417if \$ac_cs_recheck; then
34418 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34419 shift
34420 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34421 CONFIG_SHELL='$SHELL'
34422 export CONFIG_SHELL
34423 exec "\$@"
34424fi
34425
34426_ACEOF
34427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34428exec 5>>config.log
34429{
34430 echo
34431 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34432## Running $as_me. ##
34433_ASBOX
34434 $as_echo "$ac_log"
34435} >&5
34436
34437_ACEOF
34438cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000034439#
34440# INIT-COMMANDS
34441#
34442PACKAGE="$PACKAGE"
34443AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34444
34445
34446# The HP-UX ksh and POSIX shell print the target directory to stdout
34447# if CDPATH is set.
34448(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34449
34450sed_quote_subst='$sed_quote_subst'
34451double_quote_subst='$double_quote_subst'
34452delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000034453SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34454Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34455GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34456EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34457FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34458SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34459ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34460LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34461macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34462macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34463AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
34464DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
34465OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34466enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34467enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34468pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34469enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34470host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34471host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34472host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34473build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34474build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34475build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34476NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34477LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34478max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34479ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34480exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34481lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34482lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34483lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034484lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
34485lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034486reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34487reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34488deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34489file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034490file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
34491want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
34492sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034493AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34494AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034495archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034496STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34497RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34498old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34499old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34500old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34501lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34502CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34503CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34504compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34505GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34506lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34507lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34508lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34509lt_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 +000034510nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
34511lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034512objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34513MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34514lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034515lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034516lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034517lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34518lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34519need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034520MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034521DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34522NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34523LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34524OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34525OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34526libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34527shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34528extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34529archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34530enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34531export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34532whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34533compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34534old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34535old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34536archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34537archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34538module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34539module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34540with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34541allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34542no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34543hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34544hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
34545hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34546hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34547hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34548hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34549hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34550hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34551inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34552link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034553always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34554export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34555exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34556include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34557prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034558postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034559file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34560variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34561need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34562need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34563version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34564runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34565shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34566shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34567libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34568library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34569soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34570install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34571postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34572postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34573finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34574finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34575hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34576sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34577sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
34578hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34579enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34580enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34581enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34582old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34583striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34584compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
34585predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
34586postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
34587predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
34588postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
34589compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
34590LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
34591reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
34592reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34593old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34594compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
34595GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
34596lt_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 +000034597lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034598lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034599lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
34600lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
34601archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
34602enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
34603export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34604whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34605compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
34606old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34607old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34608archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34609archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34610module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34611module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34612with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
34613allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34614no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34615hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34616hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
34617hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
34618hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
34619hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
34620hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
34621hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
34622hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
34623inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
34624link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034625always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
34626export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34627exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34628include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34629prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034630postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034631file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
34632hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
34633compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
34634predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34635postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34636predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
34637postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
34638compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000034639
34640LTCC='$LTCC'
34641LTCFLAGS='$LTCFLAGS'
34642compiler='$compiler_DEFAULT'
34643
cristy0c60a692010-11-04 01:09:47 +000034644# A function that is used when there is no print builtin or printf.
34645func_fallback_echo ()
34646{
34647 eval 'cat <<_LTECHO_EOF
34648\$1
34649_LTECHO_EOF'
34650}
34651
cristy73bd4a52010-10-05 11:24:23 +000034652# Quote evaled strings.
34653for var in SED \
34654GREP \
34655EGREP \
34656FGREP \
cristy0c60a692010-11-04 01:09:47 +000034657SHELL \
34658ECHO \
cristy73bd4a52010-10-05 11:24:23 +000034659LD \
cristy0c60a692010-11-04 01:09:47 +000034660AS \
34661DLLTOOL \
34662OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000034663NM \
34664LN_S \
34665lt_SP2NL \
34666lt_NL2SP \
34667reload_flag \
34668deplibs_check_method \
34669file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000034670file_magic_glob \
34671want_nocaseglob \
34672sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000034673AR \
34674AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000034675archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000034676STRIP \
34677RANLIB \
34678CC \
34679CFLAGS \
34680compiler \
34681lt_cv_sys_global_symbol_pipe \
34682lt_cv_sys_global_symbol_to_cdecl \
34683lt_cv_sys_global_symbol_to_c_name_address \
34684lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000034685nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000034686lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000034687lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000034688lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000034689lt_prog_compiler_static \
34690lt_cv_prog_compiler_c_o \
34691need_locks \
cristyda16f162011-02-19 23:52:17 +000034692MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000034693DSYMUTIL \
34694NMEDIT \
34695LIPO \
34696OTOOL \
34697OTOOL64 \
34698shrext_cmds \
34699export_dynamic_flag_spec \
34700whole_archive_flag_spec \
34701compiler_needs_object \
34702with_gnu_ld \
34703allow_undefined_flag \
34704no_undefined_flag \
34705hardcode_libdir_flag_spec \
34706hardcode_libdir_flag_spec_ld \
34707hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000034708exclude_expsyms \
34709include_expsyms \
34710file_list_spec \
34711variables_saved_for_relink \
34712libname_spec \
34713library_names_spec \
34714soname_spec \
cristy0c60a692010-11-04 01:09:47 +000034715install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000034716finish_eval \
34717old_striplib \
34718striplib \
34719compiler_lib_search_dirs \
34720predep_objects \
34721postdep_objects \
34722predeps \
34723postdeps \
34724compiler_lib_search_path \
34725LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000034726reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034727compiler_CXX \
34728lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034729lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000034730lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034731lt_prog_compiler_static_CXX \
34732lt_cv_prog_compiler_c_o_CXX \
34733export_dynamic_flag_spec_CXX \
34734whole_archive_flag_spec_CXX \
34735compiler_needs_object_CXX \
34736with_gnu_ld_CXX \
34737allow_undefined_flag_CXX \
34738no_undefined_flag_CXX \
34739hardcode_libdir_flag_spec_CXX \
34740hardcode_libdir_flag_spec_ld_CXX \
34741hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034742exclude_expsyms_CXX \
34743include_expsyms_CXX \
34744file_list_spec_CXX \
34745compiler_lib_search_dirs_CXX \
34746predep_objects_CXX \
34747postdep_objects_CXX \
34748predeps_CXX \
34749postdeps_CXX \
34750compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000034751 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000034752 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000034753 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000034754 ;;
34755 *)
34756 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34757 ;;
34758 esac
34759done
34760
34761# Double-quote double-evaled strings.
34762for var in reload_cmds \
34763old_postinstall_cmds \
34764old_postuninstall_cmds \
34765old_archive_cmds \
34766extract_expsyms_cmds \
34767old_archive_from_new_cmds \
34768old_archive_from_expsyms_cmds \
34769archive_cmds \
34770archive_expsym_cmds \
34771module_cmds \
34772module_expsym_cmds \
34773export_symbols_cmds \
34774prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000034775postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000034776postinstall_cmds \
34777postuninstall_cmds \
34778finish_cmds \
34779sys_lib_search_path_spec \
34780sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000034781reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034782old_archive_cmds_CXX \
34783old_archive_from_new_cmds_CXX \
34784old_archive_from_expsyms_cmds_CXX \
34785archive_cmds_CXX \
34786archive_expsym_cmds_CXX \
34787module_cmds_CXX \
34788module_expsym_cmds_CXX \
34789export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000034790prelink_cmds_CXX \
34791postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000034792 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000034793 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000034794 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000034795 ;;
34796 *)
34797 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34798 ;;
34799 esac
34800done
34801
cristy73bd4a52010-10-05 11:24:23 +000034802ac_aux_dir='$ac_aux_dir'
34803xsi_shell='$xsi_shell'
34804lt_shell_append='$lt_shell_append'
34805
34806# See if we are running on zsh, and set the options which allow our
34807# commands through without removal of \ escapes INIT.
34808if test -n "\${ZSH_VERSION+set}" ; then
34809 setopt NO_GLOB_SUBST
34810fi
34811
34812
34813 PACKAGE='$PACKAGE'
34814 VERSION='$VERSION'
34815 TIMESTAMP='$TIMESTAMP'
34816 RM='$RM'
34817 ofile='$ofile'
34818
34819
34820
34821
34822
34823
cristy3ed852e2009-09-05 21:47:34 +000034824_ACEOF
34825
34826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34827
34828# Handling of arguments.
34829for ac_config_target in $ac_config_targets
34830do
34831 case $ac_config_target in
34832 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy73bd4a52010-10-05 11:24:23 +000034833 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000034834 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
34835 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
34836 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
34837 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
34838 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000034839 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000034840 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
34841 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
34842 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
34843 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
34844 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
34845 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
34846 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
34847 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
34848 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
34849 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
34850 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
34851 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
34852 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34853 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
34854 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
34855 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
34856 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
34857 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
34858 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
34859 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
34860 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
34861 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
34862 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
34863 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
34864 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
34865 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
34866 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
34867 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
34868 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
34869 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
34870 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
34871 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
34872 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000034873 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34874 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000034875 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34876 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
34877 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
34878 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
34879 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
34880 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
34881 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
34882
cristy98dddb52010-11-04 00:30:15 +000034883 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034884 esac
34885done
34886
34887
34888# If the user did not use the arguments to specify the items to instantiate,
34889# then the envvar interface is used. Set only those that are not.
34890# We use the long form for the default assignment because of an extremely
34891# bizarre bug on SunOS 4.1.3.
34892if $ac_need_defaults; then
34893 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34894 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34895 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34896fi
34897
34898# Have a temporary directory for convenience. Make it in the build tree
34899# simply because there is no reason against having it here, and in addition,
34900# creating and moving files from /tmp can sometimes cause problems.
34901# Hook for its removal unless debugging.
34902# Note that there is a small window in which the directory will not be cleaned:
34903# after its creation but before its name has been assigned to `$tmp'.
34904$debug ||
34905{
cristyda16f162011-02-19 23:52:17 +000034906 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000034907 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000034908 : "${ac_tmp:=$tmp}"
34909 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000034910' 0
cristy8b350f62009-11-15 23:12:43 +000034911 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000034912}
34913# Create a (secure) tmp directory for tmp files.
34914
34915{
34916 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000034917 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000034918} ||
34919{
34920 tmp=./conf$$-$RANDOM
34921 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000034922} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000034923ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000034924
34925# Set up the scripts for CONFIG_FILES section.
34926# No need to generate them if there are no CONFIG_FILES.
34927# This happens for instance with `./config.status config.h'.
34928if test -n "$CONFIG_FILES"; then
34929
34930
cristy8b350f62009-11-15 23:12:43 +000034931ac_cr=`echo X | tr X '\015'`
34932# On cygwin, bash can eat \r inside `` if the user requested igncr.
34933# But we know of no other shell where ac_cr would be empty at this
34934# point, so we can use a bashism as a fallback.
34935if test "x$ac_cr" = x; then
34936 eval ac_cr=\$\'\\r\'
34937fi
cristy3ed852e2009-09-05 21:47:34 +000034938ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34939if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000034940 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000034941else
34942 ac_cs_awk_cr=$ac_cr
34943fi
34944
cristyda16f162011-02-19 23:52:17 +000034945echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000034946_ACEOF
34947
34948
34949{
34950 echo "cat >conf$$subs.awk <<_ACEOF" &&
34951 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34952 echo "_ACEOF"
34953} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000034954 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34955ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000034956ac_delim='%!_!# '
34957for ac_last_try in false false false false false :; do
34958 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000034959 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034960
34961 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34962 if test $ac_delim_n = $ac_delim_num; then
34963 break
34964 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000034965 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034966 else
34967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34968 fi
34969done
34970rm -f conf$$subs.sh
34971
34972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000034973cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000034974_ACEOF
34975sed -n '
34976h
34977s/^/S["/; s/!.*/"]=/
34978p
34979g
34980s/^[^!]*!//
34981:repl
34982t repl
34983s/'"$ac_delim"'$//
34984t delim
34985:nl
34986h
cristycd4c5312009-11-22 01:19:08 +000034987s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034988t more1
34989s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34990p
34991n
34992b repl
34993:more1
34994s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34995p
34996g
34997s/.\{148\}//
34998t nl
34999:delim
35000h
cristycd4c5312009-11-22 01:19:08 +000035001s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000035002t more2
35003s/["\\]/\\&/g; s/^/"/; s/$/"/
35004p
35005b
35006:more2
35007s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35008p
35009g
35010s/.\{148\}//
35011t delim
35012' <conf$$subs.awk | sed '
35013/^[^""]/{
35014 N
35015 s/\n//
35016}
35017' >>$CONFIG_STATUS || ac_write_fail=1
35018rm -f conf$$subs.awk
35019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35020_ACAWK
cristyda16f162011-02-19 23:52:17 +000035021cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000035022 for (key in S) S_is_set[key] = 1
35023 FS = ""
35024
35025}
35026{
35027 line = $ 0
35028 nfields = split(line, field, "@")
35029 substed = 0
35030 len = length(field[1])
35031 for (i = 2; i < nfields; i++) {
35032 key = field[i]
35033 keylen = length(key)
35034 if (S_is_set[key]) {
35035 value = S[key]
35036 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35037 len += length(value) + length(field[++i])
35038 substed = 1
35039 } else
35040 len += 1 + keylen
35041 }
35042
35043 print line
35044}
35045
35046_ACAWK
35047_ACEOF
35048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35049if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35050 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35051else
35052 cat
cristyda16f162011-02-19 23:52:17 +000035053fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000035054 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035055_ACEOF
35056
cristy98dddb52010-11-04 00:30:15 +000035057# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35058# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000035059# trailing colons and then remove the whole line if VPATH becomes empty
35060# (actually we leave an empty line to preserve line numbers).
35061if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000035062 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35063h
35064s///
35065s/^/:/
35066s/[ ]*$/:/
35067s/:\$(srcdir):/:/g
35068s/:\${srcdir}:/:/g
35069s/:@srcdir@:/:/g
35070s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000035071s/:*$//
cristy98dddb52010-11-04 00:30:15 +000035072x
35073s/\(=[ ]*\).*/\1/
35074G
35075s/\n//
cristy3ed852e2009-09-05 21:47:34 +000035076s/^[^=]*=[ ]*$//
35077}'
35078fi
35079
35080cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35081fi # test -n "$CONFIG_FILES"
35082
35083# Set up the scripts for CONFIG_HEADERS section.
35084# No need to generate them if there are no CONFIG_HEADERS.
35085# This happens for instance with `./config.status Makefile'.
35086if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000035087cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000035088BEGIN {
35089_ACEOF
35090
35091# Transform confdefs.h into an awk script `defines.awk', embedded as
35092# here-document in config.status, that substitutes the proper values into
35093# config.h.in to produce config.h.
35094
35095# Create a delimiter string that does not exist in confdefs.h, to ease
35096# handling of long lines.
35097ac_delim='%!_!# '
35098for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000035099 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35100 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000035101 break
35102 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000035103 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035104 else
35105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35106 fi
35107done
35108
35109# For the awk script, D is an array of macro values keyed by name,
35110# likewise P contains macro parameters if any. Preserve backslash
35111# newline sequences.
35112
35113ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35114sed -n '
35115s/.\{148\}/&'"$ac_delim"'/g
35116t rset
35117:rset
35118s/^[ ]*#[ ]*define[ ][ ]*/ /
35119t def
35120d
35121:def
35122s/\\$//
35123t bsnl
35124s/["\\]/\\&/g
35125s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35126D["\1"]=" \3"/p
35127s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35128d
35129:bsnl
35130s/["\\]/\\&/g
35131s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35132D["\1"]=" \3\\\\\\n"\\/p
35133t cont
35134s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35135t cont
35136d
35137:cont
35138n
35139s/.\{148\}/&'"$ac_delim"'/g
35140t clear
35141:clear
35142s/\\$//
35143t bsnlc
35144s/["\\]/\\&/g; s/^/"/; s/$/"/p
35145d
35146:bsnlc
35147s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35148b cont
35149' <confdefs.h | sed '
35150s/'"$ac_delim"'/"\\\
35151"/g' >>$CONFIG_STATUS || ac_write_fail=1
35152
35153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35154 for (key in D) D_is_set[key] = 1
35155 FS = ""
35156}
35157/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35158 line = \$ 0
35159 split(line, arg, " ")
35160 if (arg[1] == "#") {
35161 defundef = arg[2]
35162 mac1 = arg[3]
35163 } else {
35164 defundef = substr(arg[1], 2)
35165 mac1 = arg[2]
35166 }
35167 split(mac1, mac2, "(") #)
35168 macro = mac2[1]
35169 prefix = substr(line, 1, index(line, defundef) - 1)
35170 if (D_is_set[macro]) {
35171 # Preserve the white space surrounding the "#".
35172 print prefix "define", macro P[macro] D[macro]
35173 next
35174 } else {
35175 # Replace #undef with comments. This is necessary, for example,
35176 # in the case of _POSIX_SOURCE, which is predefined and required
35177 # on some systems where configure will not decide to define it.
35178 if (defundef == "undef") {
35179 print "/*", prefix defundef, macro, "*/"
35180 next
35181 }
35182 }
35183}
35184{ print }
35185_ACAWK
35186_ACEOF
35187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000035188 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035189fi # test -n "$CONFIG_HEADERS"
35190
35191
35192eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
35193shift
35194for ac_tag
35195do
35196 case $ac_tag in
35197 :[FHLC]) ac_mode=$ac_tag; continue;;
35198 esac
35199 case $ac_mode$ac_tag in
35200 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000035201 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035202 :[FH]-) ac_tag=-:-;;
35203 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35204 esac
35205 ac_save_IFS=$IFS
35206 IFS=:
35207 set x $ac_tag
35208 IFS=$ac_save_IFS
35209 shift
35210 ac_file=$1
35211 shift
35212
35213 case $ac_mode in
35214 :L) ac_source=$1;;
35215 :[FH])
35216 ac_file_inputs=
35217 for ac_f
35218 do
35219 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000035220 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000035221 *) # Look for the file first in the build tree, then in the source tree
35222 # (if the path is not absolute). The absolute path cannot be DOS-style,
35223 # because $ac_f cannot contain `:'.
35224 test -f "$ac_f" ||
35225 case $ac_f in
35226 [\\/$]*) false;;
35227 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35228 esac ||
cristy98dddb52010-11-04 00:30:15 +000035229 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035230 esac
35231 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000035232 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000035233 done
35234
35235 # Let's still pretend it is `configure' which instantiates (i.e., don't
35236 # use $as_me), people would be surprised to read:
35237 # /* config.h. Generated by config.status. */
35238 configure_input='Generated from '`
35239 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35240 `' by configure.'
35241 if test x"$ac_file" != x-; then
35242 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000035243 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035244$as_echo "$as_me: creating $ac_file" >&6;}
35245 fi
35246 # Neutralize special characters interpreted by sed in replacement strings.
35247 case $configure_input in #(
35248 *\&* | *\|* | *\\* )
35249 ac_sed_conf_input=`$as_echo "$configure_input" |
35250 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35251 *) ac_sed_conf_input=$configure_input;;
35252 esac
35253
35254 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000035255 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000035256 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000035257 esac
35258 ;;
35259 esac
35260
35261 ac_dir=`$as_dirname -- "$ac_file" ||
35262$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35263 X"$ac_file" : 'X\(//\)[^/]' \| \
35264 X"$ac_file" : 'X\(//\)$' \| \
35265 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35266$as_echo X"$ac_file" |
35267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35268 s//\1/
35269 q
35270 }
35271 /^X\(\/\/\)[^/].*/{
35272 s//\1/
35273 q
35274 }
35275 /^X\(\/\/\)$/{
35276 s//\1/
35277 q
35278 }
35279 /^X\(\/\).*/{
35280 s//\1/
35281 q
35282 }
35283 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000035284 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035285 ac_builddir=.
35286
35287case "$ac_dir" in
35288.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35289*)
35290 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35291 # A ".." for each directory in $ac_dir_suffix.
35292 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35293 case $ac_top_builddir_sub in
35294 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35295 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35296 esac ;;
35297esac
35298ac_abs_top_builddir=$ac_pwd
35299ac_abs_builddir=$ac_pwd$ac_dir_suffix
35300# for backward compatibility:
35301ac_top_builddir=$ac_top_build_prefix
35302
35303case $srcdir in
35304 .) # We are building in place.
35305 ac_srcdir=.
35306 ac_top_srcdir=$ac_top_builddir_sub
35307 ac_abs_top_srcdir=$ac_pwd ;;
35308 [\\/]* | ?:[\\/]* ) # Absolute name.
35309 ac_srcdir=$srcdir$ac_dir_suffix;
35310 ac_top_srcdir=$srcdir
35311 ac_abs_top_srcdir=$srcdir ;;
35312 *) # Relative name.
35313 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35314 ac_top_srcdir=$ac_top_build_prefix$srcdir
35315 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35316esac
35317ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35318
35319
35320 case $ac_mode in
35321 :F)
35322 #
35323 # CONFIG_FILE
35324 #
35325
35326 case $INSTALL in
35327 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35328 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35329 esac
cristy73bd4a52010-10-05 11:24:23 +000035330 ac_MKDIR_P=$MKDIR_P
35331 case $MKDIR_P in
35332 [\\/$]* | ?:[\\/]* ) ;;
35333 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
35334 esac
cristy3ed852e2009-09-05 21:47:34 +000035335_ACEOF
35336
35337cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35338# If the template does not know about datarootdir, expand it.
35339# FIXME: This hack should be removed a few years after 2.60.
35340ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000035341ac_sed_dataroot='
35342/datarootdir/ {
35343 p
35344 q
35345}
35346/@datadir@/p
35347/@docdir@/p
35348/@infodir@/p
35349/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000035350/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000035351case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35352*datarootdir*) ac_datarootdir_seen=yes;;
35353*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000035354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000035355$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35356_ACEOF
35357cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35358 ac_datarootdir_hack='
35359 s&@datadir@&$datadir&g
35360 s&@docdir@&$docdir&g
35361 s&@infodir@&$infodir&g
35362 s&@localedir@&$localedir&g
35363 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000035364 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000035365esac
35366_ACEOF
35367
35368# Neutralize VPATH when `$srcdir' = `.'.
35369# Shell code in configure.ac might set extrasub.
35370# FIXME: do we really want to maintain this feature?
35371cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35372ac_sed_extra="$ac_vpsub
35373$extrasub
35374_ACEOF
35375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35376:t
35377/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35378s|@configure_input@|$ac_sed_conf_input|;t t
35379s&@top_builddir@&$ac_top_builddir_sub&;t t
35380s&@top_build_prefix@&$ac_top_build_prefix&;t t
35381s&@srcdir@&$ac_srcdir&;t t
35382s&@abs_srcdir@&$ac_abs_srcdir&;t t
35383s&@top_srcdir@&$ac_top_srcdir&;t t
35384s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35385s&@builddir@&$ac_builddir&;t t
35386s&@abs_builddir@&$ac_abs_builddir&;t t
35387s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35388s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000035389s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000035390$ac_datarootdir_hack
35391"
cristyda16f162011-02-19 23:52:17 +000035392eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
35393 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035394
35395test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000035396 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35397 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
35398 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000035399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000035400which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000035401$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000035402which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000035403
cristyda16f162011-02-19 23:52:17 +000035404 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000035405 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000035406 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35407 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000035408 esac \
cristy98dddb52010-11-04 00:30:15 +000035409 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035410 ;;
35411 :H)
35412 #
35413 # CONFIG_HEADER
35414 #
35415 if test x"$ac_file" != x-; then
35416 {
35417 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000035418 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35419 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000035420 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000035421 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000035422 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000035423$as_echo "$as_me: $ac_file is unchanged" >&6;}
35424 else
35425 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000035426 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000035427 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035428 fi
35429 else
35430 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000035431 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000035432 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035433 fi
cristy73bd4a52010-10-05 11:24:23 +000035434# Compute "$ac_file"'s index in $config_headers.
35435_am_arg="$ac_file"
35436_am_stamp_count=1
35437for _am_header in $config_headers :; do
35438 case $_am_header in
35439 $_am_arg | $_am_arg:* )
35440 break ;;
35441 * )
35442 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35443 esac
35444done
35445echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
35446$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35447 X"$_am_arg" : 'X\(//\)[^/]' \| \
35448 X"$_am_arg" : 'X\(//\)$' \| \
35449 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
35450$as_echo X"$_am_arg" |
35451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35452 s//\1/
35453 q
35454 }
35455 /^X\(\/\/\)[^/].*/{
35456 s//\1/
35457 q
35458 }
35459 /^X\(\/\/\)$/{
35460 s//\1/
35461 q
35462 }
35463 /^X\(\/\).*/{
35464 s//\1/
35465 q
35466 }
35467 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000035468 ;;
35469
cristy8b350f62009-11-15 23:12:43 +000035470 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000035471$as_echo "$as_me: executing $ac_file commands" >&6;}
35472 ;;
35473 esac
35474
35475
35476 case $ac_file$ac_mode in
cristy73bd4a52010-10-05 11:24:23 +000035477 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
35478ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
35479ac_prefix_conf_PKG=`echo MagickCore`
35480ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
35481ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
35482ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
35483if test ".$ac_prefix_conf_INP" = "."; then
35484 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
35485 case "$ac_file" in
35486 *.h) ac_prefix_conf_INP=$ac_file ;;
35487 *)
35488 esac
35489 test ".$ac_prefix_conf_INP" != "." && break
35490 done
35491fi
35492if test ".$ac_prefix_conf_INP" = "."; then
35493 case "$ac_prefix_conf_OUT" in
35494 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
35495 ;;
35496 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
35497 ;;
35498 *) ac_prefix_conf_INP=config.h
35499 ;;
35500 esac
35501fi
35502if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000035503 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000035504else
35505 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
35506 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
35507 fi fi
35508 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
35509$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
35510 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000035511 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
35512 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
35513 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
35514 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
35515 $as_echo "#endif/" >> conftest.prefix
35516 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
35517 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
35518 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000035519 # now executing _script on _DEF input to create _OUT output file
35520 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
35521 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
35522 echo ' ' >>$tmp/pconfig.h
35523 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
35524
35525 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
35526 echo ' ' >>$tmp/pconfig.h
35527 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
35528 echo "#endif" >>$tmp/pconfig.h
35529 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
35530 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
35531$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
35532 else
35533 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
35534$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35535 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
35536 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
35537 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
35538$as_echo X"$ac_prefix_conf_OUT" |
35539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35540 s//\1/
35541 q
35542 }
35543 /^X\(\/\/\)[^/].*/{
35544 s//\1/
35545 q
35546 }
35547 /^X\(\/\/\)$/{
35548 s//\1/
35549 q
35550 }
35551 /^X\(\/\).*/{
35552 s//\1/
35553 q
35554 }
35555 s/.*/./; q'`
35556 as_dir="$ac_dir"; as_fn_mkdir_p
35557 rm -f "$ac_prefix_conf_OUT"
35558 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
35559 fi
35560 cp conftest.prefix _configs.sed
35561 else
cristy98dddb52010-11-04 00:30:15 +000035562 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 +000035563 fi
35564 rm -f conftest.*
35565fi
35566 ;;
35567 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
35568 # Autoconf 2.62 quotes --file arguments for eval, but not when files
35569 # are listed without --file. Let's play safe and only enable the eval
35570 # if we detect the quoting.
35571 case $CONFIG_FILES in
35572 *\'*) eval set x "$CONFIG_FILES" ;;
35573 *) set x $CONFIG_FILES ;;
35574 esac
35575 shift
35576 for mf
35577 do
35578 # Strip MF so we end up with the name of the file.
35579 mf=`echo "$mf" | sed -e 's/:.*$//'`
35580 # Check whether this is an Automake generated Makefile or not.
35581 # We used to match only the files named `Makefile.in', but
35582 # some people rename them; so instead we look at the file content.
35583 # Grep'ing the first line is not enough: some people post-process
35584 # each Makefile.in and add a new line on top of each file to say so.
35585 # Grep'ing the whole file is not good either: AIX grep has a line
35586 # limit of 2048, but all sed's we know have understand at least 4000.
35587 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
35588 dirpart=`$as_dirname -- "$mf" ||
35589$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35590 X"$mf" : 'X\(//\)[^/]' \| \
35591 X"$mf" : 'X\(//\)$' \| \
35592 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35593$as_echo X"$mf" |
35594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35595 s//\1/
35596 q
35597 }
35598 /^X\(\/\/\)[^/].*/{
35599 s//\1/
35600 q
35601 }
35602 /^X\(\/\/\)$/{
35603 s//\1/
35604 q
35605 }
35606 /^X\(\/\).*/{
35607 s//\1/
35608 q
35609 }
35610 s/.*/./; q'`
35611 else
35612 continue
35613 fi
35614 # Extract the definition of DEPDIR, am__include, and am__quote
35615 # from the Makefile without running `make'.
35616 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35617 test -z "$DEPDIR" && continue
35618 am__include=`sed -n 's/^am__include = //p' < "$mf"`
35619 test -z "am__include" && continue
35620 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35621 # When using ansi2knr, U may be empty or an underscore; expand it
35622 U=`sed -n 's/^U = //p' < "$mf"`
35623 # Find all dependency output files, they are included files with
35624 # $(DEPDIR) in their names. We invoke sed twice because it is the
35625 # simplest approach to changing $(DEPDIR) to its actual value in the
35626 # expansion.
35627 for file in `sed -n "
35628 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35629 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35630 # Make sure the directory exists.
35631 test -f "$dirpart/$file" && continue
35632 fdir=`$as_dirname -- "$file" ||
35633$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35634 X"$file" : 'X\(//\)[^/]' \| \
35635 X"$file" : 'X\(//\)$' \| \
35636 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35637$as_echo X"$file" |
35638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35639 s//\1/
35640 q
35641 }
35642 /^X\(\/\/\)[^/].*/{
35643 s//\1/
35644 q
35645 }
35646 /^X\(\/\/\)$/{
35647 s//\1/
35648 q
35649 }
35650 /^X\(\/\).*/{
35651 s//\1/
35652 q
35653 }
35654 s/.*/./; q'`
35655 as_dir=$dirpart/$fdir; as_fn_mkdir_p
35656 # echo "creating $dirpart/$file"
35657 echo '# dummy' > "$dirpart/$file"
35658 done
35659 done
35660}
35661 ;;
35662 "libtool":C)
35663
35664 # See if we are running on zsh, and set the options which allow our
35665 # commands through without removal of \ escapes.
35666 if test -n "${ZSH_VERSION+set}" ; then
35667 setopt NO_GLOB_SUBST
35668 fi
35669
35670 cfgfile="${ofile}T"
35671 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35672 $RM "$cfgfile"
35673
35674 cat <<_LT_EOF >> "$cfgfile"
35675#! $SHELL
35676
35677# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
35678# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
35679# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35680# NOTE: Changes made to this file will be lost: look at ltmain.sh.
35681#
35682# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000035683# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
35684# Inc.
cristy73bd4a52010-10-05 11:24:23 +000035685# Written by Gordon Matzigkeit, 1996
35686#
35687# This file is part of GNU Libtool.
35688#
35689# GNU Libtool is free software; you can redistribute it and/or
35690# modify it under the terms of the GNU General Public License as
35691# published by the Free Software Foundation; either version 2 of
35692# the License, or (at your option) any later version.
35693#
35694# As a special exception to the GNU General Public License,
35695# if you distribute this file as part of a program or library that
35696# is built using GNU Libtool, you may include this file under the
35697# same distribution terms that you use for the rest of that program.
35698#
35699# GNU Libtool is distributed in the hope that it will be useful,
35700# but WITHOUT ANY WARRANTY; without even the implied warranty of
35701# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35702# GNU General Public License for more details.
35703#
35704# You should have received a copy of the GNU General Public License
35705# along with GNU Libtool; see the file COPYING. If not, a copy
35706# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
35707# obtained by writing to the Free Software Foundation, Inc.,
35708# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35709
35710
35711# The names of the tagged configurations supported by this script.
35712available_tags="CXX "
35713
35714# ### BEGIN LIBTOOL CONFIG
35715
35716# A sed program that does not truncate output.
35717SED=$lt_SED
35718
35719# Sed that helps us avoid accidentally triggering echo(1) options like -n.
35720Xsed="\$SED -e 1s/^X//"
35721
35722# A grep program that handles long lines.
35723GREP=$lt_GREP
35724
35725# An ERE matcher.
35726EGREP=$lt_EGREP
35727
35728# A literal string matcher.
35729FGREP=$lt_FGREP
35730
cristy0c60a692010-11-04 01:09:47 +000035731# Shell to use when invoking shell scripts.
35732SHELL=$lt_SHELL
35733
35734# An echo program that protects backslashes.
35735ECHO=$lt_ECHO
35736
cristy73bd4a52010-10-05 11:24:23 +000035737# Which release of libtool.m4 was used?
35738macro_version=$macro_version
35739macro_revision=$macro_revision
35740
35741# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000035742AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000035743
35744# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000035745DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000035746
35747# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000035748OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000035749
35750# Whether or not to build shared libraries.
35751build_libtool_libs=$enable_shared
35752
35753# Whether or not to build static libraries.
35754build_old_libs=$enable_static
35755
35756# What type of objects to build.
35757pic_mode=$pic_mode
35758
35759# Whether or not to optimize for fast installation.
35760fast_install=$enable_fast_install
35761
35762# The host system.
35763host_alias=$host_alias
35764host=$host
35765host_os=$host_os
35766
35767# The build system.
35768build_alias=$build_alias
35769build=$build
35770build_os=$build_os
35771
35772# A BSD- or MS-compatible name lister.
35773NM=$lt_NM
35774
35775# Whether we need soft or hard links.
35776LN_S=$lt_LN_S
35777
35778# What is the maximum length of a command?
35779max_cmd_len=$max_cmd_len
35780
35781# Object file suffix (normally "o").
35782objext=$ac_objext
35783
35784# Executable file suffix (normally "").
35785exeext=$exeext
35786
35787# whether the shell understands "unset".
35788lt_unset=$lt_unset
35789
35790# turn spaces into newlines.
35791SP2NL=$lt_lt_SP2NL
35792
35793# turn newlines into spaces.
35794NL2SP=$lt_lt_NL2SP
35795
cristyda16f162011-02-19 23:52:17 +000035796# convert \$build file names to \$host format.
35797to_host_file_cmd=$lt_cv_to_host_file_cmd
35798
35799# convert \$build files to toolchain format.
35800to_tool_file_cmd=$lt_cv_to_tool_file_cmd
35801
cristy73bd4a52010-10-05 11:24:23 +000035802# Method to check whether dependent libraries are shared objects.
35803deplibs_check_method=$lt_deplibs_check_method
35804
cristyda16f162011-02-19 23:52:17 +000035805# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000035806file_magic_cmd=$lt_file_magic_cmd
35807
cristyda16f162011-02-19 23:52:17 +000035808# How to find potential files when deplibs_check_method = "file_magic".
35809file_magic_glob=$lt_file_magic_glob
35810
35811# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
35812want_nocaseglob=$lt_want_nocaseglob
35813
35814# Command to associate shared and link libraries.
35815sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
35816
cristy73bd4a52010-10-05 11:24:23 +000035817# The archiver.
35818AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000035819
35820# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000035821AR_FLAGS=$lt_AR_FLAGS
35822
cristyda16f162011-02-19 23:52:17 +000035823# How to feed a file listing to the archiver.
35824archiver_list_spec=$lt_archiver_list_spec
35825
cristy73bd4a52010-10-05 11:24:23 +000035826# A symbol stripping program.
35827STRIP=$lt_STRIP
35828
35829# Commands used to install an old-style archive.
35830RANLIB=$lt_RANLIB
35831old_postinstall_cmds=$lt_old_postinstall_cmds
35832old_postuninstall_cmds=$lt_old_postuninstall_cmds
35833
cristy0c60a692010-11-04 01:09:47 +000035834# Whether to use a lock for old archive extraction.
35835lock_old_archive_extraction=$lock_old_archive_extraction
35836
cristy73bd4a52010-10-05 11:24:23 +000035837# A C compiler.
35838LTCC=$lt_CC
35839
35840# LTCC compiler flags.
35841LTCFLAGS=$lt_CFLAGS
35842
35843# Take the output of nm and produce a listing of raw symbols and C names.
35844global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35845
35846# Transform the output of nm in a proper C declaration.
35847global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35848
35849# Transform the output of nm in a C name address pair.
35850global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35851
35852# Transform the output of nm in a C name address pair when lib prefix is needed.
35853global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35854
cristyda16f162011-02-19 23:52:17 +000035855# Specify filename containing input files for \$NM.
35856nm_file_list_spec=$lt_nm_file_list_spec
35857
35858# The root where to search for dependent libraries,and in which our libraries should be installed.
35859lt_sysroot=$lt_sysroot
35860
cristy73bd4a52010-10-05 11:24:23 +000035861# The name of the directory that contains temporary libtool files.
35862objdir=$objdir
35863
cristy73bd4a52010-10-05 11:24:23 +000035864# Used to examine libraries when file_magic_cmd begins with "file".
35865MAGIC_CMD=$MAGIC_CMD
35866
35867# Must we lock files when doing compilation?
35868need_locks=$lt_need_locks
35869
cristyda16f162011-02-19 23:52:17 +000035870# Manifest tool.
35871MANIFEST_TOOL=$lt_MANIFEST_TOOL
35872
cristy73bd4a52010-10-05 11:24:23 +000035873# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35874DSYMUTIL=$lt_DSYMUTIL
35875
35876# Tool to change global to local symbols on Mac OS X.
35877NMEDIT=$lt_NMEDIT
35878
35879# Tool to manipulate fat objects and archives on Mac OS X.
35880LIPO=$lt_LIPO
35881
35882# ldd/readelf like tool for Mach-O binaries on Mac OS X.
35883OTOOL=$lt_OTOOL
35884
35885# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35886OTOOL64=$lt_OTOOL64
35887
35888# Old archive suffix (normally "a").
35889libext=$libext
35890
35891# Shared library suffix (normally ".so").
35892shrext_cmds=$lt_shrext_cmds
35893
35894# The commands to extract the exported symbol list from a shared archive.
35895extract_expsyms_cmds=$lt_extract_expsyms_cmds
35896
35897# Variables whose values should be saved in libtool wrapper scripts and
35898# restored at link time.
35899variables_saved_for_relink=$lt_variables_saved_for_relink
35900
35901# Do we need the "lib" prefix for modules?
35902need_lib_prefix=$need_lib_prefix
35903
35904# Do we need a version for libraries?
35905need_version=$need_version
35906
35907# Library versioning type.
35908version_type=$version_type
35909
35910# Shared library runtime path variable.
35911runpath_var=$runpath_var
35912
35913# Shared library path variable.
35914shlibpath_var=$shlibpath_var
35915
35916# Is shlibpath searched before the hard-coded library search path?
35917shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35918
35919# Format of library name prefix.
35920libname_spec=$lt_libname_spec
35921
35922# List of archive names. First name is the real one, the rest are links.
35923# The last name is the one that the linker finds with -lNAME
35924library_names_spec=$lt_library_names_spec
35925
35926# The coded name of the library, if different from the real name.
35927soname_spec=$lt_soname_spec
35928
cristy0c60a692010-11-04 01:09:47 +000035929# Permission mode override for installation of shared libraries.
35930install_override_mode=$lt_install_override_mode
35931
cristy73bd4a52010-10-05 11:24:23 +000035932# Command to use after installation of a shared archive.
35933postinstall_cmds=$lt_postinstall_cmds
35934
35935# Command to use after uninstallation of a shared archive.
35936postuninstall_cmds=$lt_postuninstall_cmds
35937
35938# Commands used to finish a libtool library installation in a directory.
35939finish_cmds=$lt_finish_cmds
35940
35941# As "finish_cmds", except a single script fragment to be evaled but
35942# not shown.
35943finish_eval=$lt_finish_eval
35944
35945# Whether we should hardcode library paths into libraries.
35946hardcode_into_libs=$hardcode_into_libs
35947
35948# Compile-time system search path for libraries.
35949sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35950
35951# Run-time system search path for libraries.
35952sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35953
35954# Whether dlopen is supported.
35955dlopen_support=$enable_dlopen
35956
35957# Whether dlopen of programs is supported.
35958dlopen_self=$enable_dlopen_self
35959
35960# Whether dlopen of statically linked programs is supported.
35961dlopen_self_static=$enable_dlopen_self_static
35962
35963# Commands to strip libraries.
35964old_striplib=$lt_old_striplib
35965striplib=$lt_striplib
35966
35967
35968# The linker used to build libraries.
35969LD=$lt_LD
35970
cristy0c60a692010-11-04 01:09:47 +000035971# How to create reloadable object files.
35972reload_flag=$lt_reload_flag
35973reload_cmds=$lt_reload_cmds
35974
cristy73bd4a52010-10-05 11:24:23 +000035975# Commands used to build an old-style archive.
35976old_archive_cmds=$lt_old_archive_cmds
35977
35978# A language specific compiler.
35979CC=$lt_compiler
35980
35981# Is the compiler the GNU compiler?
35982with_gcc=$GCC
35983
35984# Compiler flag to turn off builtin functions.
35985no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35986
cristy73bd4a52010-10-05 11:24:23 +000035987# Additional compiler flags for building library objects.
35988pic_flag=$lt_lt_prog_compiler_pic
35989
cristyda16f162011-02-19 23:52:17 +000035990# How to pass a linker flag through the compiler.
35991wl=$lt_lt_prog_compiler_wl
35992
cristy73bd4a52010-10-05 11:24:23 +000035993# Compiler flag to prevent dynamic linking.
35994link_static_flag=$lt_lt_prog_compiler_static
35995
35996# Does compiler simultaneously support -c and -o options?
35997compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35998
35999# Whether or not to add -lc for building shared libraries.
36000build_libtool_need_lc=$archive_cmds_need_lc
36001
36002# Whether or not to disallow shared libs when runtime libs are static.
36003allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
36004
36005# Compiler flag to allow reflexive dlopens.
36006export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
36007
36008# Compiler flag to generate shared objects directly from archives.
36009whole_archive_flag_spec=$lt_whole_archive_flag_spec
36010
36011# Whether the compiler copes with passing no objects directly.
36012compiler_needs_object=$lt_compiler_needs_object
36013
36014# Create an old-style archive from a shared archive.
36015old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
36016
36017# Create a temporary old-style archive to link instead of a shared archive.
36018old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
36019
36020# Commands used to build a shared archive.
36021archive_cmds=$lt_archive_cmds
36022archive_expsym_cmds=$lt_archive_expsym_cmds
36023
36024# Commands used to build a loadable module if different from building
36025# a shared archive.
36026module_cmds=$lt_module_cmds
36027module_expsym_cmds=$lt_module_expsym_cmds
36028
36029# Whether we are building with GNU ld or not.
36030with_gnu_ld=$lt_with_gnu_ld
36031
36032# Flag that allows shared libraries with undefined symbols to be built.
36033allow_undefined_flag=$lt_allow_undefined_flag
36034
36035# Flag that enforces no undefined symbols.
36036no_undefined_flag=$lt_no_undefined_flag
36037
36038# Flag to hardcode \$libdir into a binary during linking.
36039# This must work even if \$libdir does not exist
36040hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
36041
36042# If ld is used when linking, flag to hardcode \$libdir into a binary
36043# during linking. This must work even if \$libdir does not exist.
36044hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
36045
36046# Whether we need a single "-rpath" flag with a separated argument.
36047hardcode_libdir_separator=$lt_hardcode_libdir_separator
36048
36049# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36050# DIR into the resulting binary.
36051hardcode_direct=$hardcode_direct
36052
36053# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36054# DIR into the resulting binary and the resulting library dependency is
36055# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36056# library is relocated.
36057hardcode_direct_absolute=$hardcode_direct_absolute
36058
36059# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36060# into the resulting binary.
36061hardcode_minus_L=$hardcode_minus_L
36062
36063# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36064# into the resulting binary.
36065hardcode_shlibpath_var=$hardcode_shlibpath_var
36066
36067# Set to "yes" if building a shared library automatically hardcodes DIR
36068# into the library and all subsequent libraries and executables linked
36069# against it.
36070hardcode_automatic=$hardcode_automatic
36071
36072# Set to yes if linker adds runtime paths of dependent libraries
36073# to runtime path list.
36074inherit_rpath=$inherit_rpath
36075
36076# Whether libtool must link a program against all its dependency libraries.
36077link_all_deplibs=$link_all_deplibs
36078
cristy73bd4a52010-10-05 11:24:23 +000036079# Set to "yes" if exported symbols are required.
36080always_export_symbols=$always_export_symbols
36081
36082# The commands to list exported symbols.
36083export_symbols_cmds=$lt_export_symbols_cmds
36084
36085# Symbols that should not be listed in the preloaded symbols.
36086exclude_expsyms=$lt_exclude_expsyms
36087
36088# Symbols that must always be exported.
36089include_expsyms=$lt_include_expsyms
36090
36091# Commands necessary for linking programs (against libraries) with templates.
36092prelink_cmds=$lt_prelink_cmds
36093
cristyda16f162011-02-19 23:52:17 +000036094# Commands necessary for finishing linking programs.
36095postlink_cmds=$lt_postlink_cmds
36096
cristy73bd4a52010-10-05 11:24:23 +000036097# Specify filename containing input files.
36098file_list_spec=$lt_file_list_spec
36099
36100# How to hardcode a shared library path into an executable.
36101hardcode_action=$hardcode_action
36102
36103# The directories searched by this compiler when creating a shared library.
36104compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
36105
36106# Dependencies to place before and after the objects being linked to
36107# create a shared library.
36108predep_objects=$lt_predep_objects
36109postdep_objects=$lt_postdep_objects
36110predeps=$lt_predeps
36111postdeps=$lt_postdeps
36112
36113# The library search path used internally by the compiler when linking
36114# a shared library.
36115compiler_lib_search_path=$lt_compiler_lib_search_path
36116
36117# ### END LIBTOOL CONFIG
36118
36119_LT_EOF
36120
36121 case $host_os in
36122 aix3*)
36123 cat <<\_LT_EOF >> "$cfgfile"
36124# AIX sometimes has problems with the GCC collect2 program. For some
36125# reason, if we set the COLLECT_NAMES environment variable, the problems
36126# vanish in a puff of smoke.
36127if test "X${COLLECT_NAMES+set}" != Xset; then
36128 COLLECT_NAMES=
36129 export COLLECT_NAMES
36130fi
36131_LT_EOF
36132 ;;
36133 esac
36134
36135
36136ltmain="$ac_aux_dir/ltmain.sh"
36137
36138
36139 # We use sed instead of cat because bash on DJGPP gets confused if
36140 # if finds mixed CR/LF and LF-only lines. Since sed operates in
36141 # text mode, it properly converts lines to CR/LF. This bash problem
36142 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000036143 sed '$q' "$ltmain" >> "$cfgfile" \
36144 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000036145
cristyda16f162011-02-19 23:52:17 +000036146 if test x"$xsi_shell" = xyes; then
36147 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
36148func_dirname ()\
36149{\
36150\ case ${1} in\
36151\ */*) func_dirname_result="${1%/*}${2}" ;;\
36152\ * ) func_dirname_result="${3}" ;;\
36153\ esac\
36154} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
36155 && mv -f "$cfgfile.tmp" "$cfgfile" \
36156 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36157test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036158
36159
cristyda16f162011-02-19 23:52:17 +000036160 sed -e '/^func_basename ()$/,/^} # func_basename /c\
36161func_basename ()\
36162{\
36163\ func_basename_result="${1##*/}"\
36164} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
36165 && mv -f "$cfgfile.tmp" "$cfgfile" \
36166 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36167test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036168
36169
cristyda16f162011-02-19 23:52:17 +000036170 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
36171func_dirname_and_basename ()\
36172{\
36173\ case ${1} in\
36174\ */*) func_dirname_result="${1%/*}${2}" ;;\
36175\ * ) func_dirname_result="${3}" ;;\
36176\ esac\
36177\ func_basename_result="${1##*/}"\
36178} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
36179 && mv -f "$cfgfile.tmp" "$cfgfile" \
36180 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36181test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036182
cristyda16f162011-02-19 23:52:17 +000036183
36184 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
36185func_stripname ()\
36186{\
36187\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
36188\ # positional parameters, so assign one to ordinary parameter first.\
36189\ func_stripname_result=${3}\
36190\ func_stripname_result=${func_stripname_result#"${1}"}\
36191\ func_stripname_result=${func_stripname_result%"${2}"}\
36192} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
36193 && mv -f "$cfgfile.tmp" "$cfgfile" \
36194 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36195test 0 -eq $? || _lt_function_replace_fail=:
36196
36197
36198 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
36199func_split_long_opt ()\
36200{\
36201\ func_split_long_opt_name=${1%%=*}\
36202\ func_split_long_opt_arg=${1#*=}\
36203} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
36204 && mv -f "$cfgfile.tmp" "$cfgfile" \
36205 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36206test 0 -eq $? || _lt_function_replace_fail=:
36207
36208
36209 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
36210func_split_short_opt ()\
36211{\
36212\ func_split_short_opt_arg=${1#??}\
36213\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
36214} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
36215 && mv -f "$cfgfile.tmp" "$cfgfile" \
36216 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36217test 0 -eq $? || _lt_function_replace_fail=:
36218
36219
36220 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
36221func_lo2o ()\
36222{\
36223\ case ${1} in\
36224\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
36225\ *) func_lo2o_result=${1} ;;\
36226\ esac\
36227} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
36228 && mv -f "$cfgfile.tmp" "$cfgfile" \
36229 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36230test 0 -eq $? || _lt_function_replace_fail=:
36231
36232
36233 sed -e '/^func_xform ()$/,/^} # func_xform /c\
36234func_xform ()\
36235{\
36236 func_xform_result=${1%.*}.lo\
36237} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
36238 && mv -f "$cfgfile.tmp" "$cfgfile" \
36239 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36240test 0 -eq $? || _lt_function_replace_fail=:
36241
36242
36243 sed -e '/^func_arith ()$/,/^} # func_arith /c\
36244func_arith ()\
36245{\
36246 func_arith_result=$(( $* ))\
36247} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
36248 && mv -f "$cfgfile.tmp" "$cfgfile" \
36249 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36250test 0 -eq $? || _lt_function_replace_fail=:
36251
36252
36253 sed -e '/^func_len ()$/,/^} # func_len /c\
36254func_len ()\
36255{\
36256 func_len_result=${#1}\
36257} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
36258 && mv -f "$cfgfile.tmp" "$cfgfile" \
36259 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36260test 0 -eq $? || _lt_function_replace_fail=:
36261
36262fi
36263
36264if test x"$lt_shell_append" = xyes; then
36265 sed -e '/^func_append ()$/,/^} # func_append /c\
36266func_append ()\
36267{\
36268 eval "${1}+=\\${2}"\
36269} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
36270 && mv -f "$cfgfile.tmp" "$cfgfile" \
36271 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36272test 0 -eq $? || _lt_function_replace_fail=:
36273
36274
36275 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
36276func_append_quoted ()\
36277{\
36278\ func_quote_for_eval "${2}"\
36279\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
36280} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
36281 && mv -f "$cfgfile.tmp" "$cfgfile" \
36282 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36283test 0 -eq $? || _lt_function_replace_fail=:
36284
36285
36286 # Save a `func_append' function call where possible by direct use of '+='
36287 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
36288 && mv -f "$cfgfile.tmp" "$cfgfile" \
36289 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36290 test 0 -eq $? || _lt_function_replace_fail=:
36291else
36292 # Save a `func_append' function call even when '+=' is not available
36293 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
36294 && mv -f "$cfgfile.tmp" "$cfgfile" \
36295 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36296 test 0 -eq $? || _lt_function_replace_fail=:
36297fi
36298
36299if test x"$_lt_function_replace_fail" = x":"; then
36300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
36301$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
36302fi
36303
36304
36305 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000036306 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
36307 chmod +x "$ofile"
36308
36309
36310 cat <<_LT_EOF >> "$ofile"
36311
36312# ### BEGIN LIBTOOL TAG CONFIG: CXX
36313
36314# The linker used to build libraries.
36315LD=$lt_LD_CXX
36316
cristy0c60a692010-11-04 01:09:47 +000036317# How to create reloadable object files.
36318reload_flag=$lt_reload_flag_CXX
36319reload_cmds=$lt_reload_cmds_CXX
36320
cristy73bd4a52010-10-05 11:24:23 +000036321# Commands used to build an old-style archive.
36322old_archive_cmds=$lt_old_archive_cmds_CXX
36323
36324# A language specific compiler.
36325CC=$lt_compiler_CXX
36326
36327# Is the compiler the GNU compiler?
36328with_gcc=$GCC_CXX
36329
36330# Compiler flag to turn off builtin functions.
36331no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
36332
cristy73bd4a52010-10-05 11:24:23 +000036333# Additional compiler flags for building library objects.
36334pic_flag=$lt_lt_prog_compiler_pic_CXX
36335
cristyda16f162011-02-19 23:52:17 +000036336# How to pass a linker flag through the compiler.
36337wl=$lt_lt_prog_compiler_wl_CXX
36338
cristy73bd4a52010-10-05 11:24:23 +000036339# Compiler flag to prevent dynamic linking.
36340link_static_flag=$lt_lt_prog_compiler_static_CXX
36341
36342# Does compiler simultaneously support -c and -o options?
36343compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
36344
36345# Whether or not to add -lc for building shared libraries.
36346build_libtool_need_lc=$archive_cmds_need_lc_CXX
36347
36348# Whether or not to disallow shared libs when runtime libs are static.
36349allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
36350
36351# Compiler flag to allow reflexive dlopens.
36352export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
36353
36354# Compiler flag to generate shared objects directly from archives.
36355whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
36356
36357# Whether the compiler copes with passing no objects directly.
36358compiler_needs_object=$lt_compiler_needs_object_CXX
36359
36360# Create an old-style archive from a shared archive.
36361old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
36362
36363# Create a temporary old-style archive to link instead of a shared archive.
36364old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
36365
36366# Commands used to build a shared archive.
36367archive_cmds=$lt_archive_cmds_CXX
36368archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
36369
36370# Commands used to build a loadable module if different from building
36371# a shared archive.
36372module_cmds=$lt_module_cmds_CXX
36373module_expsym_cmds=$lt_module_expsym_cmds_CXX
36374
36375# Whether we are building with GNU ld or not.
36376with_gnu_ld=$lt_with_gnu_ld_CXX
36377
36378# Flag that allows shared libraries with undefined symbols to be built.
36379allow_undefined_flag=$lt_allow_undefined_flag_CXX
36380
36381# Flag that enforces no undefined symbols.
36382no_undefined_flag=$lt_no_undefined_flag_CXX
36383
36384# Flag to hardcode \$libdir into a binary during linking.
36385# This must work even if \$libdir does not exist
36386hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
36387
36388# If ld is used when linking, flag to hardcode \$libdir into a binary
36389# during linking. This must work even if \$libdir does not exist.
36390hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
36391
36392# Whether we need a single "-rpath" flag with a separated argument.
36393hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
36394
36395# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36396# DIR into the resulting binary.
36397hardcode_direct=$hardcode_direct_CXX
36398
36399# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36400# DIR into the resulting binary and the resulting library dependency is
36401# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36402# library is relocated.
36403hardcode_direct_absolute=$hardcode_direct_absolute_CXX
36404
36405# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36406# into the resulting binary.
36407hardcode_minus_L=$hardcode_minus_L_CXX
36408
36409# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36410# into the resulting binary.
36411hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
36412
36413# Set to "yes" if building a shared library automatically hardcodes DIR
36414# into the library and all subsequent libraries and executables linked
36415# against it.
36416hardcode_automatic=$hardcode_automatic_CXX
36417
36418# Set to yes if linker adds runtime paths of dependent libraries
36419# to runtime path list.
36420inherit_rpath=$inherit_rpath_CXX
36421
36422# Whether libtool must link a program against all its dependency libraries.
36423link_all_deplibs=$link_all_deplibs_CXX
36424
cristy73bd4a52010-10-05 11:24:23 +000036425# Set to "yes" if exported symbols are required.
36426always_export_symbols=$always_export_symbols_CXX
36427
36428# The commands to list exported symbols.
36429export_symbols_cmds=$lt_export_symbols_cmds_CXX
36430
36431# Symbols that should not be listed in the preloaded symbols.
36432exclude_expsyms=$lt_exclude_expsyms_CXX
36433
36434# Symbols that must always be exported.
36435include_expsyms=$lt_include_expsyms_CXX
36436
36437# Commands necessary for linking programs (against libraries) with templates.
36438prelink_cmds=$lt_prelink_cmds_CXX
36439
cristyda16f162011-02-19 23:52:17 +000036440# Commands necessary for finishing linking programs.
36441postlink_cmds=$lt_postlink_cmds_CXX
36442
cristy73bd4a52010-10-05 11:24:23 +000036443# Specify filename containing input files.
36444file_list_spec=$lt_file_list_spec_CXX
36445
36446# How to hardcode a shared library path into an executable.
36447hardcode_action=$hardcode_action_CXX
36448
36449# The directories searched by this compiler when creating a shared library.
36450compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
36451
36452# Dependencies to place before and after the objects being linked to
36453# create a shared library.
36454predep_objects=$lt_predep_objects_CXX
36455postdep_objects=$lt_postdep_objects_CXX
36456predeps=$lt_predeps_CXX
36457postdeps=$lt_postdeps_CXX
36458
36459# The library search path used internally by the compiler when linking
36460# a shared library.
36461compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
36462
36463# ### END LIBTOOL TAG CONFIG: CXX
36464_LT_EOF
36465
36466 ;;
cristy3ed852e2009-09-05 21:47:34 +000036467 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
36468 "Magick-config.in":C) chmod +x magick/Magick-config ;;
36469 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
36470 "Wand-config.in":C) chmod +x wand/Wand-config ;;
36471 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
36472 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
36473
36474 esac
36475done # for ac_tag
36476
36477
cristy8b350f62009-11-15 23:12:43 +000036478as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000036479_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000036480ac_clean_files=$ac_clean_files_save
36481
36482test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000036483 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036484
36485
36486# configure is writing to config.log, and then calls config.status.
36487# config.status does its own redirection, appending to config.log.
36488# Unfortunately, on DOS this fails, as config.log is still kept open
36489# by configure, so config.status won't be able to write to it; its
36490# output is simply discarded. So we exec the FD to /dev/null,
36491# effectively closing config.log, so it can be properly (re)opened and
36492# appended to by config.status. When coming back to configure, we
36493# need to make the FD available again.
36494if test "$no_create" != yes; then
36495 ac_cs_success=:
36496 ac_config_status_args=
36497 test "$silent" = yes &&
36498 ac_config_status_args="$ac_config_status_args --quiet"
36499 exec 5>/dev/null
36500 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36501 exec 5>>config.log
36502 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36503 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000036504 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000036505fi
36506if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000036507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000036508$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
36509fi
36510
36511
36512rm -f magick-version
36513
cristy430a7312010-01-21 20:44:04 +000036514result_dejavu_font_dir='none'
36515if test "${dejavu_font_dir}x" != 'x'; then
36516 result_dejavu_font_dir=$dejavu_font_dir
36517fi
36518
cristy3ed852e2009-09-05 21:47:34 +000036519result_ghostscript_font_dir='none'
36520if test "${ghostscript_font_dir}x" != 'x'; then
36521 result_ghostscript_font_dir=$ghostscript_font_dir
36522fi
36523
36524result_windows_font_dir='none'
36525if test "${windows_font_dir}x" != 'x'; then
36526 result_windows_font_dir=${windows_font_dir}
36527fi
36528
cristy8b350f62009-11-15 23:12:43 +000036529{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000036530ImageMagick is configured as follows. Please verify that this configuration
36531matches your expectations.
36532
36533Host system type: $host
36534Build system type: $build
36535
36536 Option Value
36537-------------------------------------------------------------------------------
36538Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
36539Static libraries --enable-static=$enable_static $libtool_build_static_libs
36540Module support --with-modules=$with_modules $with_modules
36541GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
36542Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
36543High Dynamic Range Imagery
36544 --enable-hdri=$enable_hdri $enable_hdri
36545
36546Delegate Configuration:
36547BZLIB --with-bzlib=$with_bzlib $have_bzlib
36548Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000036549Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000036550DJVU --with-djvu=$with_djvu $have_djvu
36551DPS --with-dps=$with_dps $have_dps
36552FFTW --with-fftw=$with_fftw $have_fftw
36553FlashPIX --with-fpx=$with_fpx $have_fpx
36554FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
36555FreeType --with-freetype=$with_freetype $have_freetype
36556GhostPCL None $PCLDelegate ($PCLVersion)
36557GhostXPS None $XPSDelegate ($XPSVersion)
36558Ghostscript None $PSDelegate ($GSVersion)
36559Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
36560Ghostscript lib --with-gslib=$with_gslib $have_gslib
36561Graphviz --with-gvc=$with_gvc $have_gvc
36562JBIG --with-jbig=$with_jbig $have_jbig
36563JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
36564JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000036565LCMS v1 --with-lcms=$with_lcms $have_lcms
36566LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000036567LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000036568LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000036569Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
36570OpenEXR --with-openexr=$with_openexr $have_openexr
36571PERL --with-perl=$with_perl $have_perl
36572PNG --with-png=$with_png $have_png
36573RSVG --with-rsvg=$with_rsvg $have_rsvg
36574TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000036575WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000036576Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
36577WMF --with-wmf=$with_wmf $have_wmf
36578X11 --with-x=$with_x $have_x
36579XML --with-xml=$with_xml $have_xml
36580ZLIB --with-zlib=$with_zlib $have_zlib
36581
36582X11 Configuration:
36583 X_CFLAGS = $X_CFLAGS
36584 X_PRE_LIBS = $X_PRE_LIBS
36585 X_LIBS = $X_LIBS
36586 X_EXTRA_LIBS = $X_EXTRA_LIBS
36587
36588Options used to compile and link:
36589 PREFIX = $PREFIX_DIR
36590 EXEC-PREFIX = $EXEC_PREFIX_DIR
36591 VERSION = $PACKAGE_VERSION
36592 CC = $CC
36593 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000036594 CPPFLAGS = $MAGICK_CPPFLAGS
36595 PCFLAGS = $MAGICK_PCFLAGS
36596 DEFS = $DEFS
36597 LDFLAGS = $LDFLAGS
36598 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
36599 LIBS = $MAGICK_LIBS
36600 CXX = $CXX
36601 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000036602 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000036603" >&5
36604$as_echo "
36605ImageMagick is configured as follows. Please verify that this configuration
36606matches your expectations.
36607
36608Host system type: $host
36609Build system type: $build
36610
36611 Option Value
36612-------------------------------------------------------------------------------
36613Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
36614Static libraries --enable-static=$enable_static $libtool_build_static_libs
36615Module support --with-modules=$with_modules $with_modules
36616GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
36617Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
36618High Dynamic Range Imagery
36619 --enable-hdri=$enable_hdri $enable_hdri
36620
36621Delegate Configuration:
36622BZLIB --with-bzlib=$with_bzlib $have_bzlib
36623Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000036624Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000036625DJVU --with-djvu=$with_djvu $have_djvu
36626DPS --with-dps=$with_dps $have_dps
36627FFTW --with-fftw=$with_fftw $have_fftw
36628FlashPIX --with-fpx=$with_fpx $have_fpx
36629FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
36630FreeType --with-freetype=$with_freetype $have_freetype
36631GhostPCL None $PCLDelegate ($PCLVersion)
36632GhostXPS None $XPSDelegate ($XPSVersion)
36633Ghostscript None $PSDelegate ($GSVersion)
36634Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
36635Ghostscript lib --with-gslib=$with_gslib $have_gslib
36636Graphviz --with-gvc=$with_gvc $have_gvc
36637JBIG --with-jbig=$with_jbig $have_jbig
36638JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
36639JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000036640LCMS v1 --with-lcms=$with_lcms $have_lcms
36641LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000036642LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000036643LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000036644Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
36645OpenEXR --with-openexr=$with_openexr $have_openexr
36646PERL --with-perl=$with_perl $have_perl
36647PNG --with-png=$with_png $have_png
36648RSVG --with-rsvg=$with_rsvg $have_rsvg
36649TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000036650WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000036651Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
36652WMF --with-wmf=$with_wmf $have_wmf
36653X11 --with-x=$with_x $have_x
36654XML --with-xml=$with_xml $have_xml
36655ZLIB --with-zlib=$with_zlib $have_zlib
36656
36657X11 Configuration:
36658 X_CFLAGS = $X_CFLAGS
36659 X_PRE_LIBS = $X_PRE_LIBS
36660 X_LIBS = $X_LIBS
36661 X_EXTRA_LIBS = $X_EXTRA_LIBS
36662
36663Options used to compile and link:
36664 PREFIX = $PREFIX_DIR
36665 EXEC-PREFIX = $EXEC_PREFIX_DIR
36666 VERSION = $PACKAGE_VERSION
36667 CC = $CC
36668 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000036669 CPPFLAGS = $MAGICK_CPPFLAGS
36670 PCFLAGS = $MAGICK_PCFLAGS
36671 DEFS = $DEFS
36672 LDFLAGS = $LDFLAGS
36673 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
36674 LIBS = $MAGICK_LIBS
36675 CXX = $CXX
36676 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000036677 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000036678" >&6; }